| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IAM.Types.MFADevice
Description
Synopsis
- data MFADevice = MFADevice' {
- userName :: Text
- serialNumber :: Text
- enableDate :: ISO8601
- newMFADevice :: Text -> Text -> UTCTime -> MFADevice
- mfaDevice_userName :: Lens' MFADevice Text
- mfaDevice_serialNumber :: Lens' MFADevice Text
- mfaDevice_enableDate :: Lens' MFADevice UTCTime
Documentation
Contains information about an MFA device.
This data type is used as a response element in the ListMFADevices operation.
See: newMFADevice smart constructor.
Constructors
| MFADevice' | |
Fields
| |
Instances
| FromXML MFADevice Source # | |
| Generic MFADevice Source # | |
| Read MFADevice Source # | |
| Show MFADevice Source # | |
| NFData MFADevice Source # | |
Defined in Amazonka.IAM.Types.MFADevice | |
| Eq MFADevice Source # | |
| Hashable MFADevice Source # | |
Defined in Amazonka.IAM.Types.MFADevice | |
| type Rep MFADevice Source # | |
Defined in Amazonka.IAM.Types.MFADevice type Rep MFADevice = D1 ('MetaData "MFADevice" "Amazonka.IAM.Types.MFADevice" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "MFADevice'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "serialNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "enableDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)))) | |
Create a value of MFADevice with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userName:MFADevice', mfaDevice_userName - The user with whom the MFA device is associated.
$sel:serialNumber:MFADevice', mfaDevice_serialNumber - The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.
$sel:enableDate:MFADevice', mfaDevice_enableDate - The date when the MFA device was enabled for the user.