amazonka-iam-2.0: Amazon Identity and Access Management 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.IAM.Types.AttachedPolicy

Description

 
Synopsis

Documentation

data AttachedPolicy Source #

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails operations.

For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.

See: newAttachedPolicy smart constructor.

Constructors

AttachedPolicy' 

Fields

Instances

Instances details
FromXML AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Generic AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Associated Types

type Rep AttachedPolicy :: Type -> Type #

Read AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Show AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

NFData AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Methods

rnf :: AttachedPolicy -> () #

Eq AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Hashable AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

type Rep AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

type Rep AttachedPolicy = D1 ('MetaData "AttachedPolicy" "Amazonka.IAM.Types.AttachedPolicy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "AttachedPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAttachedPolicy :: AttachedPolicy Source #

Create a value of AttachedPolicy 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:policyArn:AttachedPolicy', attachedPolicy_policyArn - Undocumented member.

$sel:policyName:AttachedPolicy', attachedPolicy_policyName - The friendly name of the attached policy.

attachedPolicy_policyName :: Lens' AttachedPolicy (Maybe Text) Source #

The friendly name of the attached policy.