/// <summary> /// Initiates the asynchronous execution of the GetLoginProfile operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetLoginProfile 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<GetLoginProfileResponse> GetLoginProfileAsync(GetLoginProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.Instance; return InvokeAsync<GetLoginProfileRequest,GetLoginProfileResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeGetLoginProfile(GetLoginProfileRequest getLoginProfileRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetLoginProfileRequestMarshaller().Marshall(getLoginProfileRequest); var unmarshaller = GetLoginProfileResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal GetLoginProfileResponse GetLoginProfile(GetLoginProfileRequest request) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.Instance; return Invoke<GetLoginProfileRequest,GetLoginProfileResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetLoginProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetLoginProfile 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 EndGetLoginProfile /// operation.</returns> public IAsyncResult BeginGetLoginProfile(GetLoginProfileRequest request, AsyncCallback callback, object state) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.Instance; return BeginInvoke<GetLoginProfileRequest>(request, marshaller, unmarshaller, callback, state); }
public void GetLoginProfileMarshallTest() { var operation = service_model.FindOperation("GetLoginProfile"); var request = InstantiateClassGenerator.Execute<GetLoginProfileRequest>(); var marshaller = new GetLoginProfileRequestMarshaller(); 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 = GetLoginProfileResponseUnmarshaller.Instance.Unmarshall(context) as GetLoginProfileResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Retrieves the login profile for the specified User.</para> /// <para><b>NOTE:</b>In the full release you will be able to use IAM to /// access your services through the AWS Management Console. Although this /// feature is not currently available, you can create login profiles for /// your Users now. Then, when this feature is implemented, your Users can /// use IAM to access your services through the AWS Management /// Console.</para> /// </summary> /// /// <param name="getLoginProfileRequest">Container for the necessary /// parameters to execute the GetLoginProfile service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetLoginProfile service method, as /// returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="NoSuchEntityException"/> public GetLoginProfileResponse GetLoginProfile(GetLoginProfileRequest getLoginProfileRequest) { IRequest<GetLoginProfileRequest> request = new GetLoginProfileRequestMarshaller().Marshall(getLoginProfileRequest); GetLoginProfileResponse response = Invoke<GetLoginProfileRequest, GetLoginProfileResponse> (request, this.signer, GetLoginProfileResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the GetLoginProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetLoginProfile 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 GetLoginProfileAsync(GetLoginProfileRequest request, AmazonServiceCallback<GetLoginProfileRequest, GetLoginProfileResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetLoginProfileRequest,GetLoginProfileResponse> responseObject = new AmazonServiceResult<GetLoginProfileRequest,GetLoginProfileResponse>((GetLoginProfileRequest)req, (GetLoginProfileResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetLoginProfileRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the GetLoginProfile operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.GetLoginProfile"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetLoginProfile 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<GetLoginProfileResponse> GetLoginProfileAsync(GetLoginProfileRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetLoginProfileRequest, GetLoginProfileResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Retrieves the user name and password-creation date for the specified user. If the user has not been assigned a password, the action /// returns a 404 ( <c>NoSuchEntity</c> ) error. </para> /// </summary> /// /// <param name="getLoginProfileRequest">Container for the necessary parameters to execute the GetLoginProfile service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetLoginProfile 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<GetLoginProfileResponse> GetLoginProfileAsync(GetLoginProfileRequest getLoginProfileRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetLoginProfileRequest, GetLoginProfileResponse>(getLoginProfileRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeGetLoginProfile(GetLoginProfileRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetLoginProfileRequestMarshaller(); var unmarshaller = GetLoginProfileResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }