Skip to content

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.

policyNameRequired

public java.lang.Object getPolicyName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property policyName: The name of the policy.


policyTypeRequired

public java.lang.Object getPolicyType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property policyType: The type of the policy.


principalNameRequired

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.


principalTypeRequired

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


resourceGroupIdOptional

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.