Package software.amazon.awscdk.services.codestar
AWS::CodeStar Construct Library
---
AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.
For more information on how to migrate, see the Migrating to AWS CDK v2 guide.
GitHub Repository
To create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:
import software.amazon.awscdk.services.codestar.*; import software.amazon.awscdk.services.s3.*; GitHubRepository.Builder.create(this, "GitHubRepo") .owner("aws") .repositoryName("aws-cdk") .accessToken(SecretValue.secretsManager("my-github-token", SecretsManagerSecretOptions.builder() .jsonField("token") .build())) .contentsBucket(Bucket.fromBucketName(this, "Bucket", "bucket-name")) .contentsKey("import.zip") .build();
Update or Delete the GitHubRepository
At this moment, updates to the GitHubRepository
are not supported and the repository will not be deleted upon the deletion of the CloudFormation stack. You will need to update or delete the GitHub repository manually.
Deprecated: AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.
For more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html
-
ClassDescriptionA CloudFormation
AWS::CodeStar::GitHubRepository
.A fluent builder forCfnGitHubRepository
.TheCode
property type specifies information about code to be committed.A builder forCfnGitHubRepository.CodeProperty
An implementation forCfnGitHubRepository.CodeProperty
TheS3
property type specifies information about the Amazon S3 bucket that contains the code to be committed to the new repository.A builder forCfnGitHubRepository.S3Property
An implementation forCfnGitHubRepository.S3Property
Properties for defining aCfnGitHubRepository
.A builder forCfnGitHubRepositoryProps
An implementation forCfnGitHubRepositoryProps
(experimental) The GitHubRepository resource.(experimental) A fluent builder forGitHubRepository
.(experimental) Construction properties ofGitHubRepository
.A builder forGitHubRepositoryProps
An implementation forGitHubRepositoryProps
(experimental) GitHubRepository resource interface.Internal default implementation forIGitHubRepository
.A proxy class which represents a concrete javascript instance of this type.(experimental) Visibility of the GitHubRepository.