GetManagedPolicyResult

data class GetManagedPolicyResult(val attachmentCount: Int? = null, val createDate: String? = null, val defaultVersionId: String? = null, val groups: List<String>? = null, val isAttachable: Boolean? = null, val permissionsBoundaryUsageCount: Int? = null, val policyArn: String? = null, val policyDocument: Any? = null, val policyId: String? = null, val roles: List<String>? = null, val updateDate: String? = null, val users: List<String>? = null)

Constructors

Link copied to clipboard
constructor(attachmentCount: Int? = null, createDate: String? = null, defaultVersionId: String? = null, groups: List<String>? = null, isAttachable: Boolean? = null, permissionsBoundaryUsageCount: Int? = null, policyArn: String? = null, policyDocument: Any? = null, policyId: String? = null, roles: List<String>? = null, updateDate: String? = null, users: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val attachmentCount: Int? = null

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

Link copied to clipboard
val createDate: String? = null

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

Link copied to clipboard

The identifier for the version of the policy that is set as the default (operative) version. For more information about policy versions, see Versioning for managed policies in the IAM User Guide .

Link copied to clipboard
val groups: List<String>? = null

The name (friendly name, not ARN) of the group to attach the policy to. This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Link copied to clipboard
val isAttachable: Boolean? = null

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

Link copied to clipboard

The number of entities (users and roles) for which the policy is used as the permissions boundary. For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide .

Link copied to clipboard
val policyArn: String? = null

The Amazon Resource Name (ARN) of the managed policy that you want information about. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference .

Link copied to clipboard
val policyDocument: Any? = null

The JSON policy document that you want to use as the content for the new policy. You must provide policies in JSON format in IAM. However, for CFN templates formatted in YAML, you can provide the policy in JSON or YAML format. CFN always converts a YAML policy to JSON format before submitting it to IAM. The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and character quotas. To learn more about JSON policy grammar, see Grammar of the IAM JSON policy language in the IAM User Guide. The regex pattern used to validate this parameter is a string of characters consisting of the following:

Link copied to clipboard
val policyId: String? = null

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

Link copied to clipboard
val roles: List<String>? = null

The name (friendly name, not ARN) of the role to attach the policy to. This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- If an external policy (such as `AWS::IAM::Policy` or `AWS::IAM::ManagedPolicy`) has a `Ref` to a role and if a resource (such as `AWS::ECS::Service`) also has a `Ref` to the same role, add a `DependsOn` attribute to the resource to make the resource depend on the external policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with an `AWS::ECS::Service` resource, the `DependsOn` attribute ensures that CFN deletes the `AWS::ECS::Service` resource before deleting its role's policy.

Link copied to clipboard
val updateDate: String? = null

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.

Link copied to clipboard
val users: List<String>? = null

The name (friendly name, not ARN) of the IAM user to attach the policy to. This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-