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
Link copied to clipboard
val createDate: String? = null
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
val policyArn: String? = null
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
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
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: _+=,.@-