Class CfnLaunchRoleConstraintProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CfnLaunchRoleConstraintProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchRoleConstraintProps>
- Enclosing interface:
CfnLaunchRoleConstraintProps
@Stability(Stable)
public static final class CfnLaunchRoleConstraintProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchRoleConstraintProps>
A builder for
CfnLaunchRoleConstraintProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage
(String acceptLanguage) Sets the value ofCfnLaunchRoleConstraintProps.getAcceptLanguage()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnLaunchRoleConstraintProps.getDescription()
localRoleName
(String localRoleName) Sets the value ofCfnLaunchRoleConstraintProps.getLocalRoleName()
portfolioId
(String portfolioId) Sets the value ofCfnLaunchRoleConstraintProps.getPortfolioId()
Sets the value ofCfnLaunchRoleConstraintProps.getProductId()
Sets the value ofCfnLaunchRoleConstraintProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portfolioId
Sets the value ofCfnLaunchRoleConstraintProps.getPortfolioId()
- Parameters:
portfolioId
- The portfolio identifier. This parameter is required.- Returns:
this
-
productId
Sets the value ofCfnLaunchRoleConstraintProps.getProductId()
- Parameters:
productId
- The product identifier. This parameter is required.- Returns:
this
-
acceptLanguage
@Stability(Stable) public CfnLaunchRoleConstraintProps.Builder acceptLanguage(String acceptLanguage) Sets the value ofCfnLaunchRoleConstraintProps.getAcceptLanguage()
- Parameters:
acceptLanguage
- The language code.jp
- Japanesezh
- Chinese
- Returns:
this
-
description
Sets the value ofCfnLaunchRoleConstraintProps.getDescription()
- Parameters:
description
- The description of the constraint.- Returns:
this
-
localRoleName
Sets the value ofCfnLaunchRoleConstraintProps.getLocalRoleName()
- Parameters:
localRoleName
- You are required to specify either theRoleArn
or theLocalRoleName
but can't use both. If you specify theLocalRoleName
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.
- Returns:
this
-
roleArn
Sets the value ofCfnLaunchRoleConstraintProps.getRoleArn()
- Parameters:
roleArn
- The ARN of the launch role. You are required to specifyRoleArn
orLocalRoleName
but can't use both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunchRoleConstraintProps>
- Returns:
- a new instance of
CfnLaunchRoleConstraintProps
- Throws:
NullPointerException
- if any required attribute was not provided
-