amazonka-servicecatalog-2.0: Amazon Service Catalog 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.ServiceCatalog.Types.Principal

Description

 
Synopsis

Documentation

data Principal Source #

Information about a principal.

See: newPrincipal smart constructor.

Constructors

Principal' 

Fields

  • principalARN :: Maybe Text

    The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no accountID if the PrincipalType is an IAM_PATTERN.

  • principalType :: Maybe PrincipalType

    The principal type. The supported value is IAM if you use a fully defined ARN, or IAM_PATTERN if you use an ARN with no accountID.

Instances

Instances details
FromJSON Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

Generic Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

Associated Types

type Rep Principal :: Type -> Type #

Read Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

Show Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

NFData Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

Methods

rnf :: Principal -> () #

Eq Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

Hashable Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

type Rep Principal Source # 
Instance details

Defined in Amazonka.ServiceCatalog.Types.Principal

type Rep Principal = D1 ('MetaData "Principal" "Amazonka.ServiceCatalog.Types.Principal" "amazonka-servicecatalog-2.0-HQc7wwDA1XY4nlo6issXoI" 'False) (C1 ('MetaCons "Principal'" 'PrefixI 'True) (S1 ('MetaSel ('Just "principalARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "principalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PrincipalType))))

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:principalARN:Principal', principal_principalARN - The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no accountID if the PrincipalType is an IAM_PATTERN.

$sel:principalType:Principal', principal_principalType - The principal type. The supported value is IAM if you use a fully defined ARN, or IAM_PATTERN if you use an ARN with no accountID.

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

The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no accountID if the PrincipalType is an IAM_PATTERN.

principal_principalType :: Lens' Principal (Maybe PrincipalType) Source #

The principal type. The supported value is IAM if you use a fully defined ARN, or IAM_PATTERN if you use an ARN with no accountID.