/// <summary> /// Initiates the asynchronous execution of the ListServiceSpecificCredentials operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListServiceSpecificCredentials 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<ListServiceSpecificCredentialsResponse> ListServiceSpecificCredentialsAsync(ListServiceSpecificCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); var unmarshaller = ListServiceSpecificCredentialsResponseUnmarshaller.Instance; return InvokeAsync<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Returns information about the service-specific credentials associated with the specified /// IAM user. If there are none, the action returns an empty list. The service-specific /// credentials returned by this action are used only for authenticating the IAM user /// to a specific service. For more information about using service-specific credentials /// to authenticate to an AWS service, see <a href="http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html">Set /// Up service-specific credentials</a> in the AWS CodeCommit User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListServiceSpecificCredentials service method.</param> /// /// <returns>The response from the ListServiceSpecificCredentials service method, as returned by IdentityManagementService.</returns> /// <exception cref="Amazon.IdentityManagement.Model.NoSuchEntityException"> /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// </exception> /// <exception cref="Amazon.IdentityManagement.Model.ServiceNotSupportedException"> /// The specified service does not support service-specific credentials. /// </exception> public ListServiceSpecificCredentialsResponse ListServiceSpecificCredentials(ListServiceSpecificCredentialsRequest request) { var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); var unmarshaller = ListServiceSpecificCredentialsResponseUnmarshaller.Instance; return Invoke<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListServiceSpecificCredentials operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListServiceSpecificCredentials operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListServiceSpecificCredentials /// operation.</returns> public IAsyncResult BeginListServiceSpecificCredentials(ListServiceSpecificCredentialsRequest request, AsyncCallback callback, object state) { var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); var unmarshaller = ListServiceSpecificCredentialsResponseUnmarshaller.Instance; return BeginInvoke<ListServiceSpecificCredentialsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the ListServiceSpecificCredentials operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListServiceSpecificCredentials operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void ListServiceSpecificCredentialsAsync(ListServiceSpecificCredentialsRequest request, AmazonServiceCallback<ListServiceSpecificCredentialsRequest, ListServiceSpecificCredentialsResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); var unmarshaller = ListServiceSpecificCredentialsResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse> responseObject = new AmazonServiceResult<ListServiceSpecificCredentialsRequest,ListServiceSpecificCredentialsResponse>((ListServiceSpecificCredentialsRequest)req, (ListServiceSpecificCredentialsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListServiceSpecificCredentialsRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
public void ListServiceSpecificCredentialsMarshallTest() { var operation = service_model.FindOperation("ListServiceSpecificCredentials"); var request = InstantiateClassGenerator.Execute<ListServiceSpecificCredentialsRequest>(); var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ListServiceSpecificCredentialsResponseUnmarshaller.Instance.Unmarshall(context) as ListServiceSpecificCredentialsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }