/// <summary> /// Initiates the asynchronous execution of the DeleteLoginProfile operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoginProfile 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<DeleteLoginProfileResponse> DeleteLoginProfileAsync(DeleteLoginProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance; return InvokeAsync<DeleteLoginProfileRequest,DeleteLoginProfileResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteLoginProfile(DeleteLoginProfileRequest deleteLoginProfileRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteLoginProfileRequestMarshaller().Marshall(deleteLoginProfileRequest); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal DeleteLoginProfileResponse DeleteLoginProfile(DeleteLoginProfileRequest request) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance; return Invoke<DeleteLoginProfileRequest,DeleteLoginProfileResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoginProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoginProfile 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 EndDeleteLoginProfile /// operation.</returns> public IAsyncResult BeginDeleteLoginProfile(DeleteLoginProfileRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance; return BeginInvoke<DeleteLoginProfileRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteLoginProfileMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute<DeleteLoginProfileRequest>(); var marshaller = new DeleteLoginProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>Deletes the login profile for the specified User, which /// terminates the User's ability to access AWS services through the IAM /// login page.</para> <para><b>IMPORTANT:</b>Deleting a User's login /// profile does not prevent a User from accessing IAM through the command /// line interface or the API. To prevent all User access you must also /// either make the access key inactive or delete it. For more /// information about making keys inactive or deleting them, see /// UpdateAccessKey and DeleteAccessKey. </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="deleteLoginProfileRequest">Container for the necessary /// parameters to execute the DeleteLoginProfile service method on /// AmazonIdentityManagementService.</param> /// /// <exception cref="EntityTemporarilyUnmodifiableException"/> /// <exception cref="NoSuchEntityException"/> public DeleteLoginProfileResponse DeleteLoginProfile(DeleteLoginProfileRequest deleteLoginProfileRequest) { IRequest<DeleteLoginProfileRequest> request = new DeleteLoginProfileRequestMarshaller().Marshall(deleteLoginProfileRequest); DeleteLoginProfileResponse response = Invoke<DeleteLoginProfileRequest, DeleteLoginProfileResponse> (request, this.signer, DeleteLoginProfileResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoginProfile operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoginProfile 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 DeleteLoginProfileAsync(DeleteLoginProfileRequest request, AmazonServiceCallback<DeleteLoginProfileRequest, DeleteLoginProfileResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DeleteLoginProfileRequest,DeleteLoginProfileResponse> responseObject = new AmazonServiceResult<DeleteLoginProfileRequest,DeleteLoginProfileResponse>((DeleteLoginProfileRequest)req, (DeleteLoginProfileResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DeleteLoginProfileRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoginProfile operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.DeleteLoginProfile"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoginProfile 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<DeleteLoginProfileResponse> DeleteLoginProfileAsync(DeleteLoginProfileRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteLoginProfileRequest, DeleteLoginProfileResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Deletes the password for the specified user, which terminates the user's ability to access AWS services through the AWS Management /// Console.</para> <para><b>IMPORTANT:</b>Deleting a user's password does not prevent a user from accessing IAM through the command line /// interface or the API. To prevent all user access you must also either make the access key inactive or delete it. For more information about /// making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey. </para> /// </summary> /// /// <param name="deleteLoginProfileRequest">Container for the necessary parameters to execute the DeleteLoginProfile service method on /// AmazonIdentityManagementService.</param> /// /// <exception cref="T:Amazon.IdentityManagement.Model.EntityTemporarilyUnmodifiableException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.LimitExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteLoginProfileResponse> DeleteLoginProfileAsync(DeleteLoginProfileRequest deleteLoginProfileRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteLoginProfileRequest, DeleteLoginProfileResponse>(deleteLoginProfileRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDeleteLoginProfile(DeleteLoginProfileRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteLoginProfileRequestMarshaller(); var unmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }