Class | AWS::IAM::MFADeviceCollection |
In: |
lib/aws/iam/mfa_device_collection.rb
|
Parent: | Object |
@attr_reader [User] user Returns the user that owns this collection.
user | [R] |
@return [User] Returns the user that this mfa
device collection
belongs to. |
@param [String] serial_number The serial number of an MFA device. @return [MFADevice] Returns a reference to an MFA device with the
given serial number.
Deactivates all of the MFA devices in this collection. Virtual MFA devices in this collection will not be deleted. Instead they will be available in the {IAM#virtual_mfa_devices} collection so that they can either be deleted or enabled for different users.
@return [nil]
@param [String] serial_number The serial number of the MFA device you
want to disable.
@return [nil]
Yields once for each MFA device.
You can limit the number of devices yielded using +:limit+.
@param [Hash] options @option options [Integer] :limit The maximum number of devices to yield. @option options [Integer] :batch_size The maximum number of devices
receive each service reqeust.
@yieldparam [User] user @return [nil]
Enables an MFA device for this user. @param [String] serial_number The serial number that uniquely
identifies the MFA device
@param [String] authentication_code_1 An authentication code emitted
by the device.
@param [String] authentication_code_2 A subsequent authentication
code emitted by the device.
@return [MFADevice] Returns the newly enabled MFA device.