Data Source: awsCodestarconnectionsConnection
Provides details about CodeStar Connection.
Example Usage
By ARN
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCodestarconnectionsConnection.DataAwsCodestarconnectionsConnection(
this,
"example",
{
arn: "${aws_codestarconnections_connection.example.arn}",
}
);
By Name
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCodestarconnectionsConnection.DataAwsCodestarconnectionsConnection(
this,
"example",
{
name: "${aws_codestarconnections_connection.example.name}",
}
);
Argument Reference
The following arguments are supported:
arn
- (Optional) CodeStar Connection ARN.name
- (Optional) CodeStar Connection name.
\~> NOTE: When both arn
and name
are specified, arn
takes precedence.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
connectionStatus
- CodeStar Connection status. Possible values arepending
,available
anderror
.id
- CodeStar Connection ARN.hostArn
- ARN of the host associated with the connection.name
- Name of the CodeStar Connection. The name is unique in the calling AWS account.providerType
- Name of the external provider where your third-party code repository is configured. Possible values arebitbucket
andgitHub
. For connections to a GitHub Enterprise Server instance, you must create an aws_codestarconnections_host resource and usehostArn
instead.tags
- Map of key-value resource tags to associate with the resource.