amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.Types.Principal

Description

 
Synopsis

Documentation

data Principal Source #

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' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the principal.

  • service :: Maybe Text

    The name of the AWS service that should allowed or denied access to an Amazon Lex action.

Instances

Instances details
ToJSON Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

Generic Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

Associated Types

type Rep Principal :: Type -> Type #

Read Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

Show Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

NFData Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

Methods

rnf :: Principal -> () #

Eq Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

Hashable Principal Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Principal

type Rep Principal Source # 
Instance details

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.

principal_arn :: Lens' Principal (Maybe Text) Source #

The Amazon Resource Name (ARN) of the principal.

principal_service :: Lens' Principal (Maybe Text) Source #

The name of the AWS service that should allowed or denied access to an Amazon Lex action.