amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.Types.AllowedPrincipal

Description

 
Synopsis

Documentation

data AllowedPrincipal Source #

Describes a principal.

See: newAllowedPrincipal smart constructor.

Constructors

AllowedPrincipal' 

Fields

Instances

Instances details
FromXML AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

Generic AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

Associated Types

type Rep AllowedPrincipal :: Type -> Type #

Read AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

Show AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

NFData AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

Methods

rnf :: AllowedPrincipal -> () #

Eq AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

Hashable AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

type Rep AllowedPrincipal Source # 
Instance details

Defined in Amazonka.EC2.Types.AllowedPrincipal

type Rep AllowedPrincipal = D1 ('MetaData "AllowedPrincipal" "Amazonka.EC2.Types.AllowedPrincipal" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AllowedPrincipal'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "principalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PrincipalType))) :*: (S1 ('MetaSel ('Just "serviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "servicePermissionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))))))

newAllowedPrincipal :: AllowedPrincipal Source #

Create a value of AllowedPrincipal 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:principal:AllowedPrincipal', allowedPrincipal_principal - The Amazon Resource Name (ARN) of the principal.

$sel:principalType:AllowedPrincipal', allowedPrincipal_principalType - The type of principal.

$sel:serviceId:AllowedPrincipal', allowedPrincipal_serviceId - The ID of the service.

$sel:servicePermissionId:AllowedPrincipal', allowedPrincipal_servicePermissionId - The ID of the service permission.

$sel:tags:AllowedPrincipal', allowedPrincipal_tags - The tags.

allowedPrincipal_principal :: Lens' AllowedPrincipal (Maybe Text) Source #

The Amazon Resource Name (ARN) of the principal.