Class CfnEnvironmentAccountConnectionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.proton.CfnEnvironmentAccountConnectionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentAccountConnectionMixinProps>
- Enclosing interface:
CfnEnvironmentAccountConnectionMixinProps
@Stability(Stable)
public static final class CfnEnvironmentAccountConnectionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironmentAccountConnectionMixinProps>
A builder for
CfnEnvironmentAccountConnectionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codebuildRoleArn(String codebuildRoleArn) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getCodebuildRoleArn()componentRoleArn(String componentRoleArn) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getComponentRoleArn()environmentAccountId(String environmentAccountId) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getEnvironmentAccountId()environmentName(String environmentName) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getEnvironmentName()managementAccountId(String managementAccountId) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getManagementAccountId()Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getRoleArn()Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codebuildRoleArn
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder codebuildRoleArn(String codebuildRoleArn) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getCodebuildRoleArn()- Parameters:
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.- Returns:
this
-
componentRoleArn
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder componentRoleArn(String componentRoleArn) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getComponentRoleArn()- 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. It determines the scope of infrastructure that a component can provision in the account.The environment account connection must have a
componentRoleArnto 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 .
- Returns:
this
-
environmentAccountId
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder environmentAccountId(String environmentAccountId) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getEnvironmentAccountId()- Parameters:
environmentAccountId- The environment account that's connected to the environment account connection.- Returns:
this
-
environmentName
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder environmentName(String environmentName) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getEnvironmentName()- Parameters:
environmentName- The name of the environment that's associated with the environment account connection.- Returns:
this
-
managementAccountId
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder managementAccountId(String managementAccountId) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getManagementAccountId()- Parameters:
managementAccountId- The ID of the management account that's connected to the environment account connection.- Returns:
this
-
roleArn
Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getRoleArn()- Parameters:
roleArn- The IAM service role that's associated with the environment account connection.- Returns:
this
-
tags
@Stability(Stable) public CfnEnvironmentAccountConnectionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnEnvironmentAccountConnectionMixinProps.getTags()- Parameters:
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 .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironmentAccountConnectionMixinProps>- Returns:
- a new instance of
CfnEnvironmentAccountConnectionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-