@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:26.859Z") @Stability(value=Stable) public class CfnConnection extends CfnResource implements IInspectable
The AWS::CodeStarConnections::Connection resource can be used to connect external source providers with services like AWS CodePipeline .
Note: A connection created through AWS CloudFormation is in PENDING status by default. You can make its status AVAILABLE by updating the connection in the console.
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.codestarconnections.*;
CfnConnection cfnConnection = CfnConnection.Builder.create(this, "MyCfnConnection")
.connectionName("connectionName")
// the properties below are optional
.hostArn("hostArn")
.providerType("providerType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConnection.Builder
A fluent builder for
CfnConnection. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConnection(Construct scope,
String id,
CfnConnectionProps props)
Create a new `AWS::CodeStarConnections::Connection`.
|
protected |
CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConnection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrConnectionArn()
The Amazon Resource Name (ARN) of the connection.
|
String |
getAttrConnectionStatus()
The current status of the connection.
|
String |
getAttrOwnerAccountId()
The AWS account ID of the owner of the connection.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getConnectionName()
The name of the connection.
|
String |
getHostArn()
The Amazon Resource Name (ARN) of the host associated with the connection.
|
String |
getProviderType()
The name of the external provider where your third-party code repository is configured.
|
TagManager |
getTags()
Specifies the tags applied to the resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setConnectionName(String value)
The name of the connection.
|
void |
setHostArn(String value)
The Amazon Resource Name (ARN) of the host associated with the connection.
|
void |
setProviderType(String value)
The name of the external provider where your third-party code repository is configured.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConnection(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnConnectionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrConnectionArn()
The ARN is used as the connection reference when the connection is shared between AWS services. For example: arn:aws:codestar-connections:us-west-2:123456789012:connection/39e4c34d-e13a-4e94-a886-ea67651bf042 .
@Stability(value=Stable) @NotNull public String getAttrConnectionStatus()
For example: PENDING , AVAILABLE , or ERROR .
@Stability(value=Stable) @NotNull public String getAttrOwnerAccountId()
For Bitbucket, this is the account ID of the owner of the Bitbucket repository. For example: 123456789012 .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getConnectionName()
Connection names must be unique in an AWS user account.
@Stability(value=Stable)
public void setConnectionName(@NotNull
String value)
Connection names must be unique in an AWS user account.
@Stability(value=Stable) @Nullable public String getHostArn()
@Stability(value=Stable)
public void setHostArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getProviderType()
@Stability(value=Stable)
public void setProviderType(@Nullable
String value)
Copyright © 2023. All rights reserved.