Class CfnEnvironmentAccountConnection.Builder

java.lang.Object
software.amazon.awscdk.services.proton.CfnEnvironmentAccountConnection.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentAccountConnection>
Enclosing class:
CfnEnvironmentAccountConnection

@Stability(Stable) public static final class CfnEnvironmentAccountConnection.Builder extends Object implements software.amazon.jsii.Builder<CfnEnvironmentAccountConnection>
A fluent builder for CfnEnvironmentAccountConnection.
  • Method Details

    • create

      @Stability(Stable) public static CfnEnvironmentAccountConnection.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 CfnEnvironmentAccountConnection.Builder.
    • codebuildRoleArn

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder codebuildRoleArn(String codebuildRoleArn)
      The Amazon Resource Name (ARN) of an IAM service role in the environment account.

      AWS Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.

      Parameters:
      codebuildRoleArn - The Amazon Resource Name (ARN) of an IAM service role in the environment account. This parameter is required.
      Returns:
      this
    • componentRoleArn

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder componentRoleArn(String componentRoleArn)
      The Amazon Resource Name (ARN) of the IAM service role that AWS Proton uses when provisioning directly defined components in the associated environment account.

      It determines the scope of infrastructure that a component can provision in the account.

      The environment account connection must have a componentRoleArn to allow directly defined components to be associated with any environments running in the account.

      For more information about components, see AWS Proton components in the AWS Proton User Guide .

      Parameters:
      componentRoleArn - The Amazon Resource Name (ARN) of the IAM service role that AWS Proton uses when provisioning directly defined components in the associated environment account. This parameter is required.
      Returns:
      this
    • environmentAccountId

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder environmentAccountId(String environmentAccountId)
      The environment account that's connected to the environment account connection.

      Parameters:
      environmentAccountId - The environment account that's connected to the environment account connection. This parameter is required.
      Returns:
      this
    • environmentName

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder environmentName(String environmentName)
      The name of the environment that's associated with the environment account connection.

      Parameters:
      environmentName - The name of the environment that's associated with the environment account connection. This parameter is required.
      Returns:
      this
    • managementAccountId

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder managementAccountId(String managementAccountId)
      The ID of the management account that's connected to the environment account connection.

      Parameters:
      managementAccountId - The ID of the management account that's connected to the environment account connection. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder roleArn(String roleArn)
      The IAM service role that's associated with the environment account connection.

      Parameters:
      roleArn - The IAM service role that's associated with the environment account connection. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnEnvironmentAccountConnection.Builder tags(List<? extends CfnTag> tags)
      An optional list of metadata items that you can associate with the AWS Proton environment account connection.

      A tag is a key-value pair.

      For more information, see AWS Proton resources and tagging in the AWS Proton User Guide .

      Parameters:
      tags - An optional list of metadata items that you can associate with the AWS Proton environment account connection. This parameter is required.
      Returns:
      this
    • build

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