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 |
Synopsis
- data Policy = Policy' {
- arn :: Maybe Text
- attachmentCount :: Maybe Int
- createDate :: Maybe ISO8601
- defaultVersionId :: Maybe Text
- description :: Maybe Text
- isAttachable :: Maybe Bool
- path :: Maybe Text
- permissionsBoundaryUsageCount :: Maybe Int
- policyId :: Maybe Text
- policyName :: Maybe Text
- tags :: Maybe [Tag]
- updateDate :: Maybe ISO8601
- newPolicy :: Policy
- policy_arn :: Lens' Policy (Maybe Text)
- policy_attachmentCount :: Lens' Policy (Maybe Int)
- policy_createDate :: Lens' Policy (Maybe UTCTime)
- policy_defaultVersionId :: Lens' Policy (Maybe Text)
- policy_description :: Lens' Policy (Maybe Text)
- policy_isAttachable :: Lens' Policy (Maybe Bool)
- policy_path :: Lens' Policy (Maybe Text)
- policy_permissionsBoundaryUsageCount :: Lens' Policy (Maybe Int)
- policy_policyId :: Lens' Policy (Maybe Text)
- policy_policyName :: Lens' Policy (Maybe Text)
- policy_tags :: Lens' Policy (Maybe [Tag])
- policy_updateDate :: Lens' Policy (Maybe UTCTime)
Documentation
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.
Policy' | |
|
Instances
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_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.