| 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.ServiceCatalog.Types.Principal
Description
Synopsis
Documentation
Information about a principal.
See: newPrincipal smart constructor.
Constructors
| Principal' | |
Fields
| |
Instances
| FromJSON Principal Source # | |
| Generic Principal Source # | |
| Read Principal Source # | |
| Show Principal Source # | |
| NFData Principal Source # | |
Defined in Amazonka.ServiceCatalog.Types.Principal | |
| Eq Principal Source # | |
| Hashable Principal Source # | |
Defined in Amazonka.ServiceCatalog.Types.Principal | |
| type Rep Principal Source # | |
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.