aws-cdk-lib.aws_codecommit.CfnRepository.S3Property

interface S3Property

LanguageType name
.NETAmazon.CDK.AWS.CodeCommit.CfnRepository.S3Property
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodecommit#CfnRepository_S3Property
Javasoftware.amazon.awscdk.services.codecommit.CfnRepository.S3Property
Pythonaws_cdk.aws_codecommit.CfnRepository.S3Property
TypeScript aws-cdk-lib » aws_codecommit » CfnRepository » S3Property

Information about the Amazon S3 bucket that contains the code that will be committed to the new repository.

Changes to this property are ignored after initial resource creation.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codecommit as codecommit } from 'aws-cdk-lib';
const s3Property: codecommit.CfnRepository.S3Property = {
  bucket: 'bucket',
  key: 'key',

  // the properties below are optional
  objectVersion: 'objectVersion',
};

Properties

NameTypeDescription
bucketstringThe name of the Amazon S3 bucket that contains the ZIP file with the content that will be committed to the new repository.
keystringThe key to use for accessing the Amazon S3 bucket.
objectVersion?stringThe object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.

bucket

Type: string

The name of the Amazon S3 bucket that contains the ZIP file with the content that will be committed to the new repository.

This can be specified using the name of the bucket in the AWS account . Changes to this property are ignored after initial resource creation.


key

Type: string

The key to use for accessing the Amazon S3 bucket.

Changes to this property are ignored after initial resource creation. For more information, see Creating object key names and Uploading objects in the Amazon S3 User Guide.


objectVersion?

Type: string (optional)

The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.

Changes to this property are ignored after initial resource creation.