/// <summary> /// Initiates the asynchronous execution of the ListAccessKeys operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessKeys 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<ListAccessKeysResponse> ListAccessKeysAsync(ListAccessKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.Instance; return InvokeAsync<ListAccessKeysRequest,ListAccessKeysResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeListAccessKeys(ListAccessKeysRequest listAccessKeysRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListAccessKeysRequestMarshaller().Marshall(listAccessKeysRequest); var unmarshaller = ListAccessKeysResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal ListAccessKeysResponse ListAccessKeys(ListAccessKeysRequest request) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.Instance; return Invoke<ListAccessKeysRequest,ListAccessKeysResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListAccessKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessKeys 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 EndListAccessKeys /// operation.</returns> public IAsyncResult BeginListAccessKeys(ListAccessKeysRequest request, AsyncCallback callback, object state) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.Instance; return BeginInvoke<ListAccessKeysRequest>(request, marshaller, unmarshaller, callback, state); }
public void ListAccessKeysMarshallTest() { var operation = service_model.FindOperation("ListAccessKeys"); var request = InstantiateClassGenerator.Execute<ListAccessKeysRequest>(); var marshaller = new ListAccessKeysRequestMarshaller(); 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 = ListAccessKeysResponseUnmarshaller.Instance.Unmarshall(context) as ListAccessKeysResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Returns information about the Access Key IDs associated with the /// specified User. If there are none, the action returns an empty /// list.</para> <para>Although each User is limited to a small number of /// keys, you can still paginate the results using the <c>MaxItems</c> and /// <c>Marker</c> parameters.</para> <para>If the <c>UserName</c> field is /// not specified, the UserName is determined implicitly based on the AWS /// Access Key ID used to sign the request. Because this action works for /// access keys under the AWS Account, this API can be used to manage root /// credentials even if the AWS Account has no associated Users.</para> /// <para><b>NOTE:</b>To ensure the security of your AWS Account, the /// secret access key is accessible only during key and User /// creation.</para> /// </summary> /// /// <param name="listAccessKeysRequest">Container for the necessary /// parameters to execute the ListAccessKeys service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the ListAccessKeys service method, as /// returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="NoSuchEntityException"/> public ListAccessKeysResponse ListAccessKeys(ListAccessKeysRequest listAccessKeysRequest) { IRequest<ListAccessKeysRequest> request = new ListAccessKeysRequestMarshaller().Marshall(listAccessKeysRequest); ListAccessKeysResponse response = Invoke<ListAccessKeysRequest, ListAccessKeysResponse> (request, this.signer, ListAccessKeysResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the ListAccessKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessKeys 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 ListAccessKeysAsync(ListAccessKeysRequest request, AmazonServiceCallback<ListAccessKeysRequest, ListAccessKeysResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListAccessKeysRequest,ListAccessKeysResponse> responseObject = new AmazonServiceResult<ListAccessKeysRequest,ListAccessKeysResponse>((ListAccessKeysRequest)req, (ListAccessKeysResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListAccessKeysRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the ListAccessKeys operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.ListAccessKeys"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessKeys 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 async Task<ListAccessKeysResponse> ListAccessKeysAsync(ListAccessKeysRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ListAccessKeysRequest, ListAccessKeysResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Returns information about the access key IDs associated with the specified user. If there are none, the action returns an empty /// list.</para> <para>Although each user is limited to a small number of keys, you can still paginate the results using the <c>MaxItems</c> and /// <c>Marker</c> parameters.</para> <para>If the <c>UserName</c> field is not specified, the UserName is determined implicitly based on the AWS /// access key ID used to sign the request. Because this action works for access keys under the AWS account, this API can be used to manage root /// credentials even if the AWS account has no associated users.</para> <para><b>NOTE:</b>To ensure the security of your AWS account, the secret /// access key is accessible only during key and user creation.</para> /// </summary> /// /// <param name="listAccessKeysRequest">Container for the necessary parameters to execute the ListAccessKeys service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the ListAccessKeys service method, as returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<ListAccessKeysResponse> ListAccessKeysAsync(ListAccessKeysRequest listAccessKeysRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListAccessKeysRequest, ListAccessKeysResponse>(listAccessKeysRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeListAccessKeys(ListAccessKeysRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListAccessKeysRequestMarshaller(); var unmarshaller = ListAccessKeysResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }