PolicyAttachmentProps
Properties for defining a PolicyAttachment
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-resourcemanager-policyattachment
Initializer
import com.aliyun.ros.cdk.resourcemanager.PolicyAttachmentProps;
PolicyAttachmentProps.builder()
.policyName(java.lang.String)
.policyName(IResolvable)
.policyType(java.lang.String)
.policyType(IResolvable)
.principalName(java.lang.String)
.principalName(IResolvable)
.principalType(java.lang.String)
.principalType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
policyName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property policyName: The name of the policy. |
policyType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property policyType: The type of the policy. |
principalName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property principalName: The name of the object to which you want to attach the policy. |
principalType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property principalType: The type of the object to which you want to attach the policy. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. |
policyName
Required
public java.lang.Object getPolicyName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property policyName: The name of the policy.
policyType
Required
public java.lang.Object getPolicyType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property policyType: The type of the policy.
principalName
Required
public java.lang.Object getPrincipalName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property principalName: The name of the object to which you want to attach the policy.
principalType
Required
public java.lang.Object getPrincipalType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
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
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.