Skip to content

CrossAccountProps

Properties for defining a CrossAccount.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-crossaccount

Initializer

import com.aliyun.ros.cdk.hbr.CrossAccountProps;
CrossAccountProps.builder()
//  .alias(java.lang.String)
//  .alias(IResolvable)
//  .crossAccountRoleName(java.lang.String)
//  .crossAccountRoleName(IResolvable)
//  .crossAccountType(java.lang.String)
//  .crossAccountType(IResolvable)
//  .crossAccountUserId(java.lang.Number)
//  .crossAccountUserId(IResolvable)
    .build();

Properties

Name Type Description
alias java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property alias: The alias.
crossAccountRoleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property crossAccountRoleName: The name of the RAM role for the account to back up.
crossAccountType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property crossAccountType: The type of the cross-account authorization.
crossAccountUserId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property crossAccountUserId: The user ID of the account that you want to authorize to back up data in your account.

aliasOptional

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

Property alias: The alias.

The maximum length is 32 characters. This parameter is not required for cross-account backups that are configured based on a resource directory.


crossAccountRoleNameOptional

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

Property crossAccountRoleName: The name of the RAM role for the account to back up.

This parameter is used when you configure a cross-account backup by assuming a RAM role.


crossAccountTypeOptional

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

Property crossAccountType: The type of the cross-account authorization.

Valid values: CROSS_ACCOUNT, CROSS_ACCOUNT_BY_RD.


crossAccountUserIdOptional

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

Property crossAccountUserId: The user ID of the account that you want to authorize to back up data in your account.