aws-cdk-lib.aws_codestar.CfnGitHubRepository.CodeProperty

interface CodeProperty

LanguageType name
.NETAmazon.CDK.AWS.Codestar.CfnGitHubRepository.CodeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodestar#CfnGitHubRepository_CodeProperty
Javasoftware.amazon.awscdk.services.codestar.CfnGitHubRepository.CodeProperty
Pythonaws_cdk.aws_codestar.CfnGitHubRepository.CodeProperty
TypeScript aws-cdk-lib » aws_codestar » CfnGitHubRepository » CodeProperty

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

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

Example

// 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

NameTypeDescription
s3IResolvable | S3PropertyInformation about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.

s3

Type: IResolvable | S3Property

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