Skip to content

PolicyAttachmentProps

Properties for defining a PolicyAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-resourcemanager-policyattachment

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkresourcemanager"
&alicloudroscdkresourcemanager.PolicyAttachmentProps {
    PolicyName: interface{},
    PolicyType: interface{},
    PrincipalName: interface{},
    PrincipalType: interface{},
    ResourceGroupId: interface{},
}

Properties

Name Type Description
PolicyName interface{} Property policyName: The name of the policy.
PolicyType interface{} Property policyType: The type of the policy.
PrincipalName interface{} Property principalName: The name of the object to which you want to attach the policy.
PrincipalType interface{} Property principalType: The type of the object to which you want to attach the policy.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.

PolicyNameRequired

PolicyName interface{}
  • Type: interface{}

Property policyName: The name of the policy.


PolicyTypeRequired

PolicyType interface{}
  • Type: interface{}

Property policyType: The type of the policy.


PrincipalNameRequired

PrincipalName interface{}
  • Type: interface{}

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


PrincipalTypeRequired

PrincipalType interface{}
  • Type: interface{}

Property principalType: 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


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

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