| 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.LexV2Models.Types.Principal
Description
Synopsis
- data Principal = Principal' {}
- newPrincipal :: Principal
- principal_arn :: Lens' Principal (Maybe Text)
- principal_service :: Lens' Principal (Maybe Text)
Documentation
The IAM principal that you allowing or denying access to an Amazon Lex
action. You must provide a service or an arn, but not both in the
same statement. For more information, see
AWS JSON policy elements: Principal
.
See: newPrincipal smart constructor.
Constructors
| Principal' | |
Instances
| ToJSON Principal Source # | |
Defined in Amazonka.LexV2Models.Types.Principal | |
| Generic Principal Source # | |
| Read Principal Source # | |
| Show Principal Source # | |
| NFData Principal Source # | |
Defined in Amazonka.LexV2Models.Types.Principal | |
| Eq Principal Source # | |
| Hashable Principal Source # | |
Defined in Amazonka.LexV2Models.Types.Principal | |
| type Rep Principal Source # | |
Defined in Amazonka.LexV2Models.Types.Principal type Rep Principal = D1 ('MetaData "Principal" "Amazonka.LexV2Models.Types.Principal" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "Principal'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) | |
newPrincipal :: Principal Source #
Create a value of Principal 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:arn:Principal', principal_arn - The Amazon Resource Name (ARN) of the principal.
$sel:service:Principal', principal_service - The name of the AWS service that should allowed or denied access to an
Amazon Lex action.