Class CfnEnvironmentAccountConnection
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Proton::EnvironmentAccountConnection.
Detailed data of an AWS Proton environment account connection resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.proton.*;
CfnEnvironmentAccountConnection cfnEnvironmentAccountConnection = CfnEnvironmentAccountConnection.Builder.create(this, "MyCfnEnvironmentAccountConnection")
.codebuildRoleArn("codebuildRoleArn")
.componentRoleArn("componentRoleArn")
.environmentAccountId("environmentAccountId")
.environmentName("environmentName")
.managementAccountId("managementAccountId")
.roleArn("roleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnvironmentAccountConnection.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEnvironmentAccountConnection(Construct scope, String id) Create a newAWS::Proton::EnvironmentAccountConnection.CfnEnvironmentAccountConnection(Construct scope, String id, CfnEnvironmentAccountConnectionProps props) Create a newAWS::Proton::EnvironmentAccountConnection.protectedCfnEnvironmentAccountConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnvironmentAccountConnection(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the environment account connection ARN.Returns the environment account connection ID.Returns the environment account connection status.The Amazon Resource Name (ARN) of an IAM service role in the environment account.The Amazon Resource Name (ARN) of the IAM service role that AWS Proton uses when provisioning directly defined components in the associated environment account.The environment account that's connected to the environment account connection.The name of the environment that's associated with the environment account connection.The ID of the management account that's connected to the environment account connection.The IAM service role that's associated with the environment account connection.getTags()An optional list of metadata items that you can associate with the AWS Proton environment account connection.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCodebuildRoleArn(String value) The Amazon Resource Name (ARN) of an IAM service role in the environment account.voidsetComponentRoleArn(String value) The Amazon Resource Name (ARN) of the IAM service role that AWS Proton uses when provisioning directly defined components in the associated environment account.voidsetEnvironmentAccountId(String value) The environment account that's connected to the environment account connection.voidsetEnvironmentName(String value) The name of the environment that's associated with the environment account connection.voidsetManagementAccountId(String value) The ID of the management account that's connected to the environment account connection.voidsetRoleArn(String value) The IAM service role that's associated with the environment account connection.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEnvironmentAccountConnection
protected CfnEnvironmentAccountConnection(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnvironmentAccountConnection
protected CfnEnvironmentAccountConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnvironmentAccountConnection
@Stability(Stable) public CfnEnvironmentAccountConnection(@NotNull Construct scope, @NotNull String id, @Nullable CfnEnvironmentAccountConnectionProps props) Create a newAWS::Proton::EnvironmentAccountConnection.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnEnvironmentAccountConnection
@Stability(Stable) public CfnEnvironmentAccountConnection(@NotNull Construct scope, @NotNull String id) Create a newAWS::Proton::EnvironmentAccountConnection.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the environment account connection ARN. -
getAttrId
Returns the environment account connection ID. -
getAttrStatus
Returns the environment account connection status. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
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 .
-
getCodebuildRoleArn
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.
-
setCodebuildRoleArn
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.
-
getComponentRoleArn
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 .
-
setComponentRoleArn
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 .
-
getEnvironmentAccountId
The environment account that's connected to the environment account connection. -
setEnvironmentAccountId
The environment account that's connected to the environment account connection. -
getEnvironmentName
The name of the environment that's associated with the environment account connection. -
setEnvironmentName
The name of the environment that's associated with the environment account connection. -
getManagementAccountId
The ID of the management account that's connected to the environment account connection. -
setManagementAccountId
The ID of the management account that's connected to the environment account connection. -
getRoleArn
The IAM service role that's associated with the environment account connection. -
setRoleArn
The IAM service role that's associated with the environment account connection.
-