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.PolicyRole

Description

 
Synopsis

Documentation

data PolicyRole Source #

Contains information about a role that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

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

See: newPolicyRole smart constructor.

Constructors

PolicyRole' 

Fields

Instances

Instances details
FromXML PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

Generic PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

Associated Types

type Rep PolicyRole :: Type -> Type #

Read PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

Show PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

NFData PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

Methods

rnf :: PolicyRole -> () #

Eq PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

Hashable PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

type Rep PolicyRole Source # 
Instance details

Defined in Amazonka.IAM.Types.PolicyRole

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

newPolicyRole :: PolicyRole Source #

Create a value of PolicyRole 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:roleId:PolicyRole', policyRole_roleId - The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.

$sel:roleName:PolicyRole', policyRole_roleName - The name (friendly name, not ARN) identifying the role.

policyRole_roleId :: Lens' PolicyRole (Maybe Text) Source #

The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.

policyRole_roleName :: Lens' PolicyRole (Maybe Text) Source #

The name (friendly name, not ARN) identifying the role.