public static final class CfnLaunchRoleConstraintProps.Builder
extends java.lang.Object
CfnLaunchRoleConstraintProps
Constructor and Description |
---|
Builder() |
public CfnLaunchRoleConstraintProps.Builder portfolioId(java.lang.String portfolioId)
CfnLaunchRoleConstraintProps.getPortfolioId()
portfolioId
- The portfolio identifier. This parameter is required.this
public CfnLaunchRoleConstraintProps.Builder productId(java.lang.String productId)
CfnLaunchRoleConstraintProps.getProductId()
productId
- The product identifier. This parameter is required.this
public CfnLaunchRoleConstraintProps.Builder acceptLanguage(java.lang.String acceptLanguage)
CfnLaunchRoleConstraintProps.getAcceptLanguage()
acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinesethis
public CfnLaunchRoleConstraintProps.Builder description(java.lang.String description)
CfnLaunchRoleConstraintProps.getDescription()
description
- The description of the constraint.this
public CfnLaunchRoleConstraintProps.Builder localRoleName(java.lang.String localRoleName)
CfnLaunchRoleConstraintProps.getLocalRoleName()
localRoleName
- You are required to specify either the `RoleArn` or the `LocalRoleName` but can't use both.
If you specify the LocalRoleName
property, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator can create fewer resources per shared account.
The given role name must exist in the account used to create the launch constraint and the account of the user who launches a product with this launch constraint.
this
public CfnLaunchRoleConstraintProps.Builder roleArn(java.lang.String roleArn)
CfnLaunchRoleConstraintProps.getRoleArn()
roleArn
- The ARN of the launch role.
You are required to specify RoleArn
or LocalRoleName
but can't use both.this
public CfnLaunchRoleConstraintProps build()
CfnLaunchRoleConstraintProps
java.lang.NullPointerException
- if any required attribute was not provided