You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IAM::MfaDevice
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::IAM::MfaDevice
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#enable_date ⇒ Time
readonly
The date when the MFA device was enabled for the user.
-
#serial_number ⇒ String
readonly
-
#user_name ⇒ String
readonly
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#associate(options = {}) ⇒ Struct
Enables the specified MFA device and associates it with the specified IAM user.
-
#disassociate ⇒ Struct
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 Enabling a Virtual Multi-factor Authentication (MFA) Device in the IAM User Guide.
. -
#initialize ⇒ Object
constructor
-
#resync(options = {}) ⇒ Struct
Synchronizes the specified MFA device with its IAM resource object on the AWS servers.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.
. -
#user ⇒ User
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(user_name, serial_number, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#enable_date ⇒ Time (readonly)
The date when the MFA device was enabled for the user.
#serial_number ⇒ String (readonly)
#user_name ⇒ String (readonly)
Instance Method Details
#associate(options = {}) ⇒ Struct
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.
#disassociate ⇒ Struct
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 Enabling a Virtual Multi-factor Authentication (MFA) Device in the IAM User Guide.
#resync(options = {}) ⇒ Struct
Synchronizes the specified MFA device with its IAM resource object on the AWS servers.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.