Provides details about CodeStar Connection.
data "aws_codestarconnections_connection" "example" {
arn = aws_codestarconnections_connection.example.arn
}
data "aws_codestarconnections_connection" "example" {
name = aws_codestarconnections_connection.example.name
}
This data source supports the following arguments:
arn
- (Optional) CodeStar Connection ARN.name
- (Optional) CodeStar Connection name.This data source exports the following attributes in addition to the arguments above:
connection_status
- CodeStar Connection status. Possible values are PENDING
, AVAILABLE
and ERROR
.id
- CodeStar Connection ARN.host_arn
- ARN of the host associated with the connection.name
- Name of the CodeStar Connection. The name is unique in the calling AWS account.provider_type
- Name of the external provider where your third-party code repository is configured. Possible values are Bitbucket
, GitHub
and GitLab
. For connections to GitHub Enterprise Server or GitLab Self-Managed instances, you must create an aws_codestarconnections_host resource and use host_arn
instead.tags
- Map of key-value resource tags to associate with the resource.