internal DescribeAssociationResponse DescribeAssociation(DescribeAssociationRequest request) { var marshaller = new DescribeAssociationRequestMarshaller(); var unmarshaller = DescribeAssociationResponseUnmarshaller.Instance; return(Invoke <DescribeAssociationRequest, DescribeAssociationResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAssociation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAssociation 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 <DescribeAssociationResponse> DescribeAssociationAsync(DescribeAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAssociationRequestMarshaller(); var unmarshaller = DescribeAssociationResponseUnmarshaller.Instance; return(InvokeAsync <DescribeAssociationRequest, DescribeAssociationResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Describes the associations for the specified configuration document or instance. /// </summary> /// <param name="instanceId">The ID of the instance.</param> /// <param name="name">The name of the configuration document.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAssociation service method, as returned by SimpleSystemsManagement.</returns> /// <exception cref="Amazon.SimpleSystemsManagement.Model.AssociationDoesNotExistException"> /// The specified association does not exist. /// </exception> /// <exception cref="Amazon.SimpleSystemsManagement.Model.InternalServerErrorException"> /// An error occurred on the server side. /// </exception> /// <exception cref="Amazon.SimpleSystemsManagement.Model.InvalidDocumentException"> /// The configuration document is not valid. /// </exception> /// <exception cref="Amazon.SimpleSystemsManagement.Model.InvalidInstanceIdException"> /// You must specify the ID of a running instance. /// </exception> public Task <DescribeAssociationResponse> DescribeAssociationAsync(string instanceId, string name, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeAssociationRequest(); request.InstanceId = instanceId; request.Name = name; return(DescribeAssociationAsync(request, cancellationToken)); }