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

EnableMFADevice() public method

Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.
/// The request was rejected because it attempted to create a resource that already exists. /// /// 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 the authentication code was not recognized. The error /// message describes the specific error. /// /// 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 EnableMFADevice ( EnableMFADeviceRequest request ) : Amazon.IdentityManagement.Model.EnableMFADeviceResponse
request Amazon.IdentityManagement.Model.EnableMFADeviceRequest Container for the necessary parameters to execute the EnableMFADevice service method.
return Amazon.IdentityManagement.Model.EnableMFADeviceResponse
        public EnableMFADeviceResponse EnableMFADevice(EnableMFADeviceRequest request)
        {
            var marshaller = new EnableMFADeviceRequestMarshaller();
            var unmarshaller = EnableMFADeviceResponseUnmarshaller.Instance;

            return Invoke<EnableMFADeviceRequest,EnableMFADeviceResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient