/// <summary> /// Initiates the asynchronous execution of the ListVirtualMFADevices operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMFADevices 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<ListVirtualMFADevicesResponse> ListVirtualMFADevicesAsync(ListVirtualMFADevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.Instance; return InvokeAsync<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeListVirtualMFADevices(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListVirtualMFADevicesRequestMarshaller().Marshall(listVirtualMFADevicesRequest); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal ListVirtualMFADevicesResponse ListVirtualMFADevices(ListVirtualMFADevicesRequest request) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.Instance; return Invoke<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListVirtualMFADevices operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMFADevices 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 EndListVirtualMFADevices /// operation.</returns> public IAsyncResult BeginListVirtualMFADevices(ListVirtualMFADevicesRequest request, AsyncCallback callback, object state) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.Instance; return BeginInvoke<ListVirtualMFADevicesRequest>(request, marshaller, unmarshaller, callback, state); }
public void ListVirtualMFADevicesMarshallTest() { var operation = service_model.FindOperation("ListVirtualMFADevices"); var request = InstantiateClassGenerator.Execute<ListVirtualMFADevicesRequest>(); var marshaller = new ListVirtualMFADevicesRequestMarshaller(); 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 = ListVirtualMFADevicesResponseUnmarshaller.Instance.Unmarshall(context) as ListVirtualMFADevicesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListVirtualMFADevices operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMFADevices 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 ListVirtualMFADevicesAsync(ListVirtualMFADevicesRequest request, AmazonServiceCallback<ListVirtualMFADevicesRequest, ListVirtualMFADevicesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResponse> responseObject = new AmazonServiceResult<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResponse>((ListVirtualMFADevicesRequest)req, (ListVirtualMFADevicesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListVirtualMFADevicesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the ListVirtualMFADevices operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.ListVirtualMFADevices"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMFADevices 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<ListVirtualMFADevicesResponse> ListVirtualMFADevicesAsync(ListVirtualMFADevicesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ListVirtualMFADevicesRequest, ListVirtualMFADevicesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para> Lists the virtual MFA devices under the AWS account by assignment status. If you do not specify an assignment status, the action /// returns a list of all virtual MFA devices. Assignment status can be <c>Assigned</c> , /// <c>Unassigned</c> , or <c>Any</c> . </para> <para>You can paginate the results using the <c>MaxItems</c> and /// <c>Marker</c> parameters.</para> /// </summary> /// /// <param name="listVirtualMFADevicesRequest">Container for the necessary parameters to execute the ListVirtualMFADevices service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the ListVirtualMFADevices service method, as returned by AmazonIdentityManagementService.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<ListVirtualMFADevicesResponse> ListVirtualMFADevicesAsync(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListVirtualMFADevicesRequest, ListVirtualMFADevicesResponse>(listVirtualMFADevicesRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeListVirtualMFADevices(ListVirtualMFADevicesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListVirtualMFADevicesRequestMarshaller(); var unmarshaller = ListVirtualMFADevicesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para> Lists the virtual MFA devices under the AWS account by assignment status. If you do not specify an assignment status, the action /// returns a list of all virtual MFA devices. Assignment status can be <c>Assigned</c> , /// /// <c>Unassigned</c> , or <c>Any</c> . /// </para> <para>You can paginate the results using the <c>MaxItems</c> and <c>Marker</c> parameters.</para> /// </summary> /// /// <param name="listVirtualMFADevicesRequest">Container for the necessary parameters to execute the ListVirtualMFADevices service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the ListVirtualMFADevices service method, as returned by AmazonIdentityManagementService.</returns> /// public ListVirtualMFADevicesResponse ListVirtualMFADevices(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest) { IRequest<ListVirtualMFADevicesRequest> request = new ListVirtualMFADevicesRequestMarshaller().Marshall(listVirtualMFADevicesRequest); ListVirtualMFADevicesResponse response = Invoke<ListVirtualMFADevicesRequest, ListVirtualMFADevicesResponse> (request, this.signer, ListVirtualMFADevicesResponseUnmarshaller.GetInstance()); return response; }