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