internal GetAccountPasswordPolicyResponse GetAccountPasswordPolicy(GetAccountPasswordPolicyRequest request) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance; return Invoke<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountPasswordPolicy 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<GetAccountPasswordPolicyResponse> GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance; return InvokeAsync<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeGetAccountPasswordPolicy(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetAccountPasswordPolicyRequestMarshaller().Marshall(getAccountPasswordPolicyRequest); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation. /// <seealso cref="Amazon.IdentityManagement.AmazonIdentityManagementService.GetAccountPasswordPolicy"/> /// </summary> /// /// <param name="getAccountPasswordPolicyRequest">Container for the necessary parameters to execute the GetAccountPasswordPolicy operation on /// AmazonIdentityManagementService.</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 /// EndGetAccountPasswordPolicy operation.</returns> public IAsyncResult BeginGetAccountPasswordPolicy(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest, AsyncCallback callback, object state) { return invokeGetAccountPasswordPolicy(getAccountPasswordPolicyRequest, callback, state, false); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountPasswordPolicy 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 EndGetAccountPasswordPolicy /// operation.</returns> public IAsyncResult BeginGetAccountPasswordPolicy(GetAccountPasswordPolicyRequest request, AsyncCallback callback, object state) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance; return BeginInvoke<GetAccountPasswordPolicyRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para>Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password /// Policy.</para> /// </summary> /// /// <param name="getAccountPasswordPolicyRequest">Container for the necessary parameters to execute the GetAccountPasswordPolicy service method /// on AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountPasswordPolicy service method, as returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="NoSuchEntityException"/> public GetAccountPasswordPolicyResponse GetAccountPasswordPolicy(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest) { IAsyncResult asyncResult = invokeGetAccountPasswordPolicy(getAccountPasswordPolicyRequest, null, null, true); return EndGetAccountPasswordPolicy(asyncResult); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountPasswordPolicy 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 GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest request, AmazonServiceCallback<GetAccountPasswordPolicyRequest, GetAccountPasswordPolicyResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResponse> responseObject = new AmazonServiceResult<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResponse>((GetAccountPasswordPolicyRequest)req, (GetAccountPasswordPolicyResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetAccountPasswordPolicyRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
public Task <GetAccountPasswordPolicyResponse> GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest request, CancellationToken cancellationToken = new CancellationToken()) { throw new System.NotImplementedException(); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.GetAccountPasswordPolicy"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountPasswordPolicy 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<GetAccountPasswordPolicyResponse> GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetAccountPasswordPolicyRequest, GetAccountPasswordPolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Retrieves the password policy for the AWS account. For more information about using a password policy, go to <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html">Managing an IAM Password Policy</a> .</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountPasswordPolicy service method /// on AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountPasswordPolicy service method, as returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> public GetAccountPasswordPolicyResponse GetAccountPasswordPolicy(GetAccountPasswordPolicyRequest request) { var task = GetAccountPasswordPolicyAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
/// <summary> /// <para>Retrieves the password policy for the AWS account. For more information about using a password policy, go to <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html">Managing an IAM Password Policy</a> .</para> /// </summary> /// /// <param name="getAccountPasswordPolicyRequest">Container for the necessary parameters to execute the GetAccountPasswordPolicy service method /// on AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountPasswordPolicy 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<GetAccountPasswordPolicyResponse> GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetAccountPasswordPolicyRequest, GetAccountPasswordPolicyResponse>(getAccountPasswordPolicyRequest, marshaller, unmarshaller, signer, cancellationToken); }
internal GetAccountPasswordPolicyResponse GetAccountPasswordPolicy(GetAccountPasswordPolicyRequest request) { var task = GetAccountPasswordPolicyAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
IAsyncResult invokeGetAccountPasswordPolicy(GetAccountPasswordPolicyRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); var unmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }