Package software.amazon.awscdk.services.codestar


@Stability(Experimental) @Deprecated package software.amazon.awscdk.services.codestar
Deprecated.

AWS::CodeStar Construct Library

---

End-of-Support

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