/// <summary> /// Lists the names of the rules that the given target is put to. You can see which of /// the rules in Amazon CloudWatch Events can invoke a specific target in your account. /// If you have more rules in your account than the given limit, the results will be paginated. /// In that case, use the next token returned in the response and repeat ListRulesByTarget /// until the NextToken in the response is returned as null. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget service method.</param> /// /// <returns>The response from the ListRuleNamesByTarget service method, as returned by CloudWatchEvents.</returns> /// <exception cref="Amazon.CloudWatchEvents.Model.InternalException"> /// This exception occurs due to unexpected causes. /// </exception> public ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request) { var marshaller = new ListRuleNamesByTargetRequestMarshaller(); var unmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance; return(Invoke <ListRuleNamesByTargetRequest, ListRuleNamesByTargetResponse>(request, marshaller, unmarshaller)); }
internal virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request) { var marshaller = ListRuleNamesByTargetRequestMarshaller.Instance; var unmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance; return(Invoke <ListRuleNamesByTargetRequest, ListRuleNamesByTargetResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListRuleNamesByTarget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListRuleNamesByTargetRequestMarshaller(); var unmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance; return(InvokeAsync <ListRuleNamesByTargetRequest, ListRuleNamesByTargetResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual ListRuleNamesByTargetResponse ListRuleNamesByTarget(ListRuleNamesByTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance; return(Invoke <ListRuleNamesByTargetResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the ListRuleNamesByTarget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRuleNamesByTarget operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget">REST API Reference for ListRuleNamesByTarget Operation</seealso> public virtual Task <ListRuleNamesByTargetResponse> ListRuleNamesByTargetAsync(ListRuleNamesByTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRuleNamesByTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRuleNamesByTargetResponseUnmarshaller.Instance; return(InvokeAsync <ListRuleNamesByTargetResponse>(request, options, cancellationToken)); }