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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEnvironmentAccountConnection
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnEnvironmentAccountConnection
(Construct scope, String id) Create a newAWS::Proton::EnvironmentAccountConnection
.CfnEnvironmentAccountConnection
(Construct scope, String id, CfnEnvironmentAccountConnectionProps props) Create a newAWS::Proton::EnvironmentAccountConnection
.protected
CfnEnvironmentAccountConnection
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEnvironmentAccountConnection
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCodebuildRoleArn
(String value) The Amazon Resource Name (ARN) of an IAM service role in the environment account.void
setComponentRoleArn
(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.void
setEnvironmentAccountId
(String value) The environment account that's connected to the environment account connection.void
setEnvironmentName
(String value) The name of the environment that's associated with the environment account connection.void
setManagementAccountId
(String value) The ID of the management account that's connected to the environment account connection.void
setRoleArn
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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
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 .
-
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
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 .
-
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.
-