libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Read AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Show 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 #

NFData AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

Methods

rnf :: AttachedPolicy -> () #

Hashable AttachedPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.AttachedPolicy

FromXML 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" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "AttachedPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policyArn") '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:policyName:AttachedPolicy', attachedPolicy_policyName - The friendly name of the attached policy.

$sel:policyArn:AttachedPolicy', attachedPolicy_policyArn - Undocumented member.

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

The friendly name of the attached policy.