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 Details

    • create

      @Stability(Stable) public static CfnLaunchRoleConstraint.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLaunchRoleConstraint.Builder.
    • portfolioId

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder portfolioId(String portfolioId)
      The portfolio identifier.

      Parameters:
      portfolioId - The portfolio identifier. This parameter is required.
      Returns:
      this
    • productId

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder productId(String productId)
      The product identifier.

      Parameters:
      productId - The product identifier. This parameter is required.
      Returns:
      this
    • acceptLanguage

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder acceptLanguage(String acceptLanguage)
      The language code.

      • jp - Japanese
      • zh - Chinese

      Parameters:
      acceptLanguage - The language code. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder description(String description)
      The description of the constraint.

      Parameters:
      description - The description of the constraint. This parameter is required.
      Returns:
      this
    • localRoleName

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder localRoleName(String 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.

      Parameters:
      localRoleName - You are required to specify either the RoleArn or the LocalRoleName but can't use both. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnLaunchRoleConstraint.Builder roleArn(String roleArn)
      The ARN of the launch role.

      You are required to specify RoleArn or LocalRoleName but can't use both.

      Parameters:
      roleArn - The ARN of the launch role. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnLaunchRoleConstraint build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLaunchRoleConstraint>
      Returns:
      a newly built instance of CfnLaunchRoleConstraint.