PolicyAttachment

class PolicyAttachment : KotlinCustomResource

Provides a Resource Manager Policy Attachment resource to attaches a policy to an object. After you attach a policy to an object, the object has the operation permissions on the current resource group or the resources under the current account. For information about Resource Manager Policy Attachment and how to use it, see How to authorize and manage resource groups.

NOTE: Available since v1.93.0.

Import

Resource Manager Policy Attachment can be imported using the id, e.g.

$ pulumi import alicloud:resourcemanager/policyAttachment:PolicyAttachment example tf-testaccrdpolicy:Custom:tf-testaccrdpolicy@11827252********.onaliyun.com:IMSUser:rg******

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val policyName: Output<String>

The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

Link copied to clipboard
val policyType: Output<String>

The type of the policy. Valid values: Custom, System.

Link copied to clipboard
val principalName: Output<String>

The name of the object to which you want to attach the policy.

Link copied to clipboard
val principalType: Output<String>

The type of the object to which you want to attach the policy. Valid values: IMSUser: RAM user, IMSGroup: RAM user group, ServiceRole: RAM role.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.

Link copied to clipboard
val urn: Output<String>