Class CfnLaunchRoleConstraint.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CfnLaunchRoleConstraint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchRoleConstraint>
- Enclosing class:
CfnLaunchRoleConstraint
@Stability(Stable)
public static final class CfnLaunchRoleConstraint.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchRoleConstraint>
A fluent builder for
CfnLaunchRoleConstraint
.-
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage
(String acceptLanguage) The language code.build()
description
(String description) The description of the constraint.localRoleName
(String localRoleName) You are required to specify either theRoleArn
or theLocalRoleName
but can't use both.portfolioId
(String portfolioId) The portfolio identifier.The product identifier.The ARN of the launch role.
-
Method Details
-
create
@Stability(Stable) public static CfnLaunchRoleConstraint.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLaunchRoleConstraint.Builder
.
-
portfolioId
The portfolio identifier.- Parameters:
portfolioId
- The portfolio identifier. This parameter is required.- Returns:
this
- See Also:
-
productId
The product identifier.- Parameters:
productId
- The product identifier. This parameter is required.- Returns:
this
- See Also:
-
acceptLanguage
The language code.jp
- Japanesezh
- Chinese
- Parameters:
acceptLanguage
- The language code. This parameter is required.- Returns:
this
- See Also:
-
description
The description of the constraint.- Parameters:
description
- The description of the constraint. This parameter is required.- Returns:
this
- See Also:
-
localRoleName
You are required to specify either theRoleArn
or theLocalRoleName
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.
- Parameters:
localRoleName
- You are required to specify either theRoleArn
or theLocalRoleName
but can't use both. This parameter is required.- Returns:
this
- See Also:
-
roleArn
The ARN of the launch role.You are required to specify
RoleArn
orLocalRoleName
but can't use both.- Parameters:
roleArn
- The ARN of the launch role. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunchRoleConstraint>
- Returns:
- a newly built instance of
CfnLaunchRoleConstraint
.
-