Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.UpdateServiceSpecificCredentialAsync C# (CSharp) Méthode

UpdateServiceSpecificCredentialAsync() public méthode

Initiates the asynchronous execution of the UpdateServiceSpecificCredential operation.
public UpdateServiceSpecificCredentialAsync ( UpdateServiceSpecificCredentialRequest request, UpdateServiceSpecificCredentialResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request UpdateServiceSpecificCredentialRequest Container for the necessary parameters to execute the UpdateServiceSpecificCredential operation on AmazonIdentityManagementServiceClient.
callback UpdateServiceSpecificCredentialResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Résultat void
        public void UpdateServiceSpecificCredentialAsync(UpdateServiceSpecificCredentialRequest request, AmazonServiceCallback<UpdateServiceSpecificCredentialRequest, UpdateServiceSpecificCredentialResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new UpdateServiceSpecificCredentialRequestMarshaller();
            var unmarshaller = UpdateServiceSpecificCredentialResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<UpdateServiceSpecificCredentialRequest,UpdateServiceSpecificCredentialResponse> responseObject 
                            = new AmazonServiceResult<UpdateServiceSpecificCredentialRequest,UpdateServiceSpecificCredentialResponse>((UpdateServiceSpecificCredentialRequest)req, (UpdateServiceSpecificCredentialResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<UpdateServiceSpecificCredentialRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::UpdateServiceSpecificCredentialAsync ( UpdateServiceSpecificCredentialRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient