aws-cdk-lib.aws_codecommit.CodeConfig

interface CodeConfig

LanguageType name
.NETAmazon.CDK.AWS.CodeCommit.CodeConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodecommit#CodeConfig
Javasoftware.amazon.awscdk.services.codecommit.CodeConfig
Pythonaws_cdk.aws_codecommit.CodeConfig
TypeScript (source)aws-cdk-lib » aws_codecommit » CodeConfig

Obtainable from Code.bind()

Represents the structure to pass into the underlying CfnRepository class.

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

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

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

Properties

NameTypeDescription
codeCodePropertyrepresents the underlying code structure.

code

Type: CodeProperty

represents the underlying code structure.