Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.DeactivateMFADevice C# (CSharp) Method

DeactivateMFADevice() public method

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

/// The request was rejected because it referenced an entity that is temporarily unmodifiable, /// such as a user name that was deleted and then recreated. The error indicates that /// the request is likely to succeed if you try again after waiting several minutes. The /// error message describes the entity. /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error message describes the limit exceeded. /// /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public DeactivateMFADevice ( DeactivateMFADeviceRequest request ) : Amazon.IdentityManagement.Model.DeactivateMFADeviceResponse
request Amazon.IdentityManagement.Model.DeactivateMFADeviceRequest Container for the necessary parameters to execute the DeactivateMFADevice service method.
return Amazon.IdentityManagement.Model.DeactivateMFADeviceResponse
        public DeactivateMFADeviceResponse DeactivateMFADevice(DeactivateMFADeviceRequest request)
        {
            var marshaller = new DeactivateMFADeviceRequestMarshaller();
            var unmarshaller = DeactivateMFADeviceResponseUnmarshaller.Instance;

            return Invoke<DeactivateMFADeviceRequest,DeactivateMFADeviceResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient