Provides a CodeCommit Repository.
import { Repository } from 'aws-cdk-lib/aws-codecommit';Or use the module namespace:
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
// codecommit.RepositoryConfiguration passed to the constructor as RepositoryProps.
repositoryNameRequiredstringName of the repository. This property is required for all CodeCommit repositories.
codeOptionalCodeThe contents with which to initialize the repository after it has been created.
Default: - No initialization (create empty repo)
descriptionOptionalstringA description of the repository. Use the description to identify the purpose of the repository.
Default: - No description.
kmsKeyOptionalIKeyRefThe customer managed key used to encrypt and decrypt the data in repository.
Default: - Use an AWS managed key
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-codecommit