| 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.IoT.Types.AuthInfo
Description
Synopsis
- data AuthInfo = AuthInfo' {
- actionType :: Maybe ActionType
- resources :: [Text]
- newAuthInfo :: AuthInfo
- authInfo_actionType :: Lens' AuthInfo (Maybe ActionType)
- authInfo_resources :: Lens' AuthInfo [Text]
Documentation
A collection of authorization information.
See: newAuthInfo smart constructor.
Constructors
| AuthInfo' | |
Fields
| |
Instances
| FromJSON AuthInfo Source # | |
| ToJSON AuthInfo Source # | |
Defined in Amazonka.IoT.Types.AuthInfo | |
| Generic AuthInfo Source # | |
| Read AuthInfo Source # | |
| Show AuthInfo Source # | |
| NFData AuthInfo Source # | |
Defined in Amazonka.IoT.Types.AuthInfo | |
| Eq AuthInfo Source # | |
| Hashable AuthInfo Source # | |
Defined in Amazonka.IoT.Types.AuthInfo | |
| type Rep AuthInfo Source # | |
Defined in Amazonka.IoT.Types.AuthInfo type Rep AuthInfo = D1 ('MetaData "AuthInfo" "Amazonka.IoT.Types.AuthInfo" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "AuthInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActionType)) :*: S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))) | |
newAuthInfo :: AuthInfo Source #
Create a value of AuthInfo 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:actionType:AuthInfo', authInfo_actionType - The type of action for which the principal is being authorized.
$sel:resources:AuthInfo', authInfo_resources - The resources for which the principal is being authorized to perform the
specified action.
authInfo_actionType :: Lens' AuthInfo (Maybe ActionType) Source #
The type of action for which the principal is being authorized.