Skip to content

RamRoleAttachmentProps

Properties for defining a RamRoleAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-ramroleattachment

Initializer

import com.aliyun.ros.cdk.ecs.RamRoleAttachmentProps;
RamRoleAttachmentProps.builder()
    .instanceIds(IResolvable)
    .instanceIds(java.util.List<java.lang.String)
    .instanceIds(IResolvable>)
    .ramRoleName(java.lang.String)
    .ramRoleName(IResolvable)
//  .policy(java.lang.String)
//  .policy(IResolvable)
    .build();

Properties

Name Type Description
instanceIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property instanceIds: The instance id that needs to be granted the ram role.
ramRoleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ramRoleName: The ram role name.
policy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property policy: When granting the instance RAM role to one or more ECS instances, you can specify an additional permission policy to further limit the permissions of the RAM role.

instanceIdsRequired

public java.lang.Object getInstanceIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property instanceIds: The instance id that needs to be granted the ram role.


ramRoleNameRequired

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

Property ramRoleName: The ram role name.


policyOptional

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

Property policy: When granting the instance RAM role to one or more ECS instances, you can specify an additional permission policy to further limit the permissions of the RAM role.

The length is 1~1024 characters.