Skip to content
v2.274.0

CodeProperty Struct ​

The Code property type specifies information about code to be committed.

Code is a property of the AWS::CodeStar::GitHubRepository resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestar as codestar } from 'aws-cdk-lib';
const codeProperty: codestar.CfnGitHubRepository.CodeProperty = {
  s3: {
    bucket: 'bucket',
    key: 'key',

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

Properties ​

Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.