Package services.proton
Class CfnEnvironmentAccountConnectionProps.Builder
java.lang.Object
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
Constructors -
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 service role in the environment account. 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 service role that 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.- 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 environment account connection. A tag is a key-value pair.For more information, see resources and tagging in the User Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironmentAccountConnectionProps>- Returns:
- a new instance of
CfnEnvironmentAccountConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-