Skip to content
v2.273.0

CodeConfig Struct ​

Represents the structure to pass into the underlying CfnRepository class.

Example ​

ts
// 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 codeConfig: codecommit.CodeConfig = {
  code: {
    s3: {
      bucket: 'bucket',
      key: 'key',

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

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

Properties ​

represents the underlying code structure.