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

Description

 
Synopsis

Documentation

data Policy Source #

Contains information about a managed policy.

This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies operations.

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

See: newPolicy smart constructor.

Constructors

Policy' 

Fields

Instances

Instances details
FromXML Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Generic Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Associated Types

type Rep Policy :: Type -> Type #

Methods

from :: Policy -> Rep Policy x #

to :: Rep Policy x -> Policy #

Read Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Show Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

NFData Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Methods

rnf :: Policy -> () #

Eq Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Methods

(==) :: Policy -> Policy -> Bool #

(/=) :: Policy -> Policy -> Bool #

Hashable Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

Methods

hashWithSalt :: Int -> Policy -> Int #

hash :: Policy -> Int #

type Rep Policy Source # 
Instance details

Defined in Amazonka.IAM.Types.Policy

type Rep Policy = D1 ('MetaData "Policy" "Amazonka.IAM.Types.Policy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "Policy'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "attachmentCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "createDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: (S1 ('MetaSel ('Just "defaultVersionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "isAttachable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "permissionsBoundaryUsageCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "updateDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))))))

newPolicy :: Policy Source #

Create a value of Policy 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:arn:Policy', policy_arn - Undocumented member.

$sel:attachmentCount:Policy', policy_attachmentCount - The number of entities (users, groups, and roles) that the policy is attached to.

$sel:createDate:Policy', policy_createDate - The date and time, in ISO 8601 date-time format, when the policy was created.

$sel:defaultVersionId:Policy', policy_defaultVersionId - The identifier for the version of the policy that is set as the default version.

$sel:description:Policy', policy_description - A friendly description of the policy.

This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

$sel:isAttachable:Policy', policy_isAttachable - Specifies whether the policy can be attached to an IAM user, group, or role.

$sel:path:Policy', policy_path - The path to the policy.

For more information about paths, see IAM identifiers in the IAM User Guide.

$sel:permissionsBoundaryUsageCount:Policy', policy_permissionsBoundaryUsageCount - The number of entities (users and roles) for which the policy is used to set the permissions boundary.

For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.

$sel:policyId:Policy', policy_policyId - The stable and unique string identifying the policy.

For more information about IDs, see IAM identifiers in the IAM User Guide.

$sel:policyName:Policy', policy_policyName - The friendly name (not ARN) identifying the policy.

$sel:tags:Policy', policy_tags - A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

$sel:updateDate:Policy', policy_updateDate - The date and time, in ISO 8601 date-time format, when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

policy_arn :: Lens' Policy (Maybe Text) Source #

Undocumented member.

policy_attachmentCount :: Lens' Policy (Maybe Int) Source #

The number of entities (users, groups, and roles) that the policy is attached to.

policy_createDate :: Lens' Policy (Maybe UTCTime) Source #

The date and time, in ISO 8601 date-time format, when the policy was created.

policy_defaultVersionId :: Lens' Policy (Maybe Text) Source #

The identifier for the version of the policy that is set as the default version.

policy_description :: Lens' Policy (Maybe Text) Source #

A friendly description of the policy.

This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

policy_isAttachable :: Lens' Policy (Maybe Bool) Source #

Specifies whether the policy can be attached to an IAM user, group, or role.

policy_path :: Lens' Policy (Maybe Text) Source #

The path to the policy.

For more information about paths, see IAM identifiers in the IAM User Guide.

policy_permissionsBoundaryUsageCount :: Lens' Policy (Maybe Int) Source #

The number of entities (users and roles) for which the policy is used to set the permissions boundary.

For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.

policy_policyId :: Lens' Policy (Maybe Text) Source #

The stable and unique string identifying the policy.

For more information about IDs, see IAM identifiers in the IAM User Guide.

policy_policyName :: Lens' Policy (Maybe Text) Source #

The friendly name (not ARN) identifying the policy.

policy_tags :: Lens' Policy (Maybe [Tag]) Source #

A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

policy_updateDate :: Lens' Policy (Maybe UTCTime) Source #

The date and time, in ISO 8601 date-time format, when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.