Data Source: awsCodecommitRepository
The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository.
Example Usage
/*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.dataAwsCodecommitRepository.DataAwsCodecommitRepository(this, "test", {
repositoryName: "MyTestRepository",
});
Argument Reference
The following arguments are supported:
repositoryName
- (Required) Name for the repository. This needs to be less than 100 characters.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
repositoryId
- ID of the repositoryarn
- ARN of the repositorycloneUrlHttp
- URL to use for cloning the repository over HTTPS.cloneUrlSsh
- URL to use for cloning the repository over SSH.