@aws-cdk/aws-codestar-alpha 2.9.0-alpha.0 → 2.10.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.9.0",
11
+ "aws-cdk-lib": "^2.10.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -2921,12 +2921,15 @@
2921
2921
  "compiledWithDeprecationWarnings": true,
2922
2922
  "pacmak": {
2923
2923
  "hasDefaultInterfaces": true
2924
+ },
2925
+ "rosetta": {
2926
+ "strict": true
2924
2927
  }
2925
2928
  }
2926
2929
  },
2927
2930
  "name": "@aws-cdk/aws-codestar-alpha",
2928
2931
  "readme": {
2929
- "markdown": "# AWS::CodeStar Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\n## GitHub Repository\n\nTo create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:\n\n```ts\nimport * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});\n```\n\n## Update or Delete the GitHubRepository\n\nAt 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.\n"
2932
+ "markdown": "# AWS::CodeStar Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\n## GitHub Repository\n\nTo create a new GitHub Repository and commit the assets from S3 bucket into the repository after it is created:\n\n```ts\nimport * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});\n```\n\n## Update or Delete the GitHubRepository\n\nAt 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.\n"
2930
2933
  },
2931
2934
  "repository": {
2932
2935
  "directory": "packages/individual-packages/aws-codestar",
@@ -2971,7 +2974,7 @@
2971
2974
  "custom": {
2972
2975
  "exampleMetadata": "infused"
2973
2976
  },
2974
- "example": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
2977
+ "example": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
2975
2978
  "stability": "experimental",
2976
2979
  "summary": "The GitHubRepository resource."
2977
2980
  },
@@ -3057,7 +3060,7 @@
3057
3060
  "custom": {
3058
3061
  "exampleMetadata": "infused"
3059
3062
  },
3060
- "example": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
3063
+ "example": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
3061
3064
  "stability": "experimental",
3062
3065
  "summary": "Construction properties of {@link GitHubRepository}."
3063
3066
  },
@@ -3312,6 +3315,6 @@
3312
3315
  "symbolId": "lib/github-repository:RepositoryVisibility"
3313
3316
  }
3314
3317
  },
3315
- "version": "2.9.0-alpha.0",
3318
+ "version": "2.10.0-alpha.0",
3316
3319
  "fingerprint": "**********"
3317
3320
  }
package/.jsii.tabl.json CHANGED
@@ -2,22 +2,22 @@
2
2
  "version": "2",
3
3
  "toolVersion": "1.52.1",
4
4
  "snippets": {
5
- "8488ef32a1afce9090262af79c0541aca720f1709127c2d92c71c292b66c9f16": {
5
+ "08aca27e6c6b0ba7d882ef99efbe9a82246c6084e0134ba28fdef4449ef1ada5": {
6
6
  "translations": {
7
7
  "python": {
8
- "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\ncodestar.GitHubRepository(stack, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=cdk.SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(stack, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
8
+ "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\n\ncodestar.GitHubRepository(self, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(self, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
9
9
  "version": "2"
10
10
  },
11
11
  "csharp": {
12
- "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\nnew GitHubRepository(stack, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = cdk.SecretValue.SecretsManager(\"my-github-token\", new Struct {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(stack, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
12
+ "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\n\nnew GitHubRepository(this, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = SecretValue.SecretsManager(\"my-github-token\", new SecretsManagerSecretOptions {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(this, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
13
13
  "version": "1"
14
14
  },
15
15
  "java": {
16
- "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\nGitHubRepository.Builder.create(stack, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(cdk.SecretValue.secretsManager(\"my-github-token\", Map.of(\n \"jsonField\", \"token\")))\n .contentsBucket(Bucket.fromBucketName(stack, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
16
+ "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\n\nGitHubRepository.Builder.create(this, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(SecretValue.secretsManager(\"my-github-token\", SecretsManagerSecretOptions.builder()\n .jsonField(\"token\")\n .build()))\n .contentsBucket(Bucket.fromBucketName(this, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
17
17
  "version": "1"
18
18
  },
19
19
  "$": {
20
- "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
20
+ "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
21
21
  "version": "0"
22
22
  }
23
23
  },
@@ -31,21 +31,24 @@
31
31
  "line": 22
32
32
  }
33
33
  },
34
- "didCompile": false,
34
+ "didCompile": true,
35
35
  "fqnsReferenced": [
36
36
  "@aws-cdk/aws-codestar-alpha.GitHubRepository",
37
37
  "@aws-cdk/aws-codestar-alpha.GitHubRepositoryProps",
38
38
  "aws-cdk-lib.SecretValue",
39
+ "aws-cdk-lib.SecretValue#secretsManager",
40
+ "aws-cdk-lib.SecretsManagerSecretOptions",
39
41
  "aws-cdk-lib.aws_s3.Bucket",
40
42
  "aws-cdk-lib.aws_s3.Bucket#fromBucketName",
41
43
  "aws-cdk-lib.aws_s3.IBucket"
42
44
  ],
43
- "fullSource": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
45
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
44
46
  "syntaxKindCounter": {
45
47
  "10": 10,
46
- "75": 18,
48
+ "75": 15,
49
+ "104": 2,
47
50
  "193": 2,
48
- "194": 5,
51
+ "194": 4,
49
52
  "196": 2,
50
53
  "197": 1,
51
54
  "226": 1,
@@ -55,24 +58,24 @@
55
58
  "281": 6,
56
59
  "290": 1
57
60
  },
58
- "fqnsFingerprint": "0f08c8611b0f45d7589168785639e80dd0e0d926f165ebe698b0be6252678c32"
61
+ "fqnsFingerprint": "fc7e269ab7f33d001ee08e84e3fbadcda94f34b9443783249de3acfca363f548"
59
62
  },
60
- "888a3287415b2fb863678f8b51292b64f81feffc2c20f3d234cd55adba12586f": {
63
+ "0e5ab43957b24f9fbab4cb922d46799749f1c4aae071bf104ef0cd07348a30bd": {
61
64
  "translations": {
62
65
  "python": {
63
- "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\ncodestar.GitHubRepository(stack, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=cdk.SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(stack, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
66
+ "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\n\ncodestar.GitHubRepository(self, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(self, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
64
67
  "version": "2"
65
68
  },
66
69
  "csharp": {
67
- "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\nnew GitHubRepository(stack, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = cdk.SecretValue.SecretsManager(\"my-github-token\", new Struct {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(stack, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
70
+ "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\n\nnew GitHubRepository(this, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = SecretValue.SecretsManager(\"my-github-token\", new SecretsManagerSecretOptions {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(this, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
68
71
  "version": "1"
69
72
  },
70
73
  "java": {
71
- "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\nGitHubRepository.Builder.create(stack, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(cdk.SecretValue.secretsManager(\"my-github-token\", Map.of(\n \"jsonField\", \"token\")))\n .contentsBucket(Bucket.fromBucketName(stack, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
74
+ "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\n\nGitHubRepository.Builder.create(this, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(SecretValue.secretsManager(\"my-github-token\", SecretsManagerSecretOptions.builder()\n .jsonField(\"token\")\n .build()))\n .contentsBucket(Bucket.fromBucketName(this, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
72
75
  "version": "1"
73
76
  },
74
77
  "$": {
75
- "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
78
+ "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
76
79
  "version": "0"
77
80
  }
78
81
  },
@@ -85,21 +88,24 @@
85
88
  "field": "example"
86
89
  }
87
90
  },
88
- "didCompile": false,
91
+ "didCompile": true,
89
92
  "fqnsReferenced": [
90
93
  "@aws-cdk/aws-codestar-alpha.GitHubRepository",
91
94
  "@aws-cdk/aws-codestar-alpha.GitHubRepositoryProps",
92
95
  "aws-cdk-lib.SecretValue",
96
+ "aws-cdk-lib.SecretValue#secretsManager",
97
+ "aws-cdk-lib.SecretsManagerSecretOptions",
93
98
  "aws-cdk-lib.aws_s3.Bucket",
94
99
  "aws-cdk-lib.aws_s3.Bucket#fromBucketName",
95
100
  "aws-cdk-lib.aws_s3.IBucket"
96
101
  ],
97
- "fullSource": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
102
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
98
103
  "syntaxKindCounter": {
99
104
  "10": 10,
100
- "75": 18,
105
+ "75": 15,
106
+ "104": 2,
101
107
  "193": 2,
102
- "194": 5,
108
+ "194": 4,
103
109
  "196": 2,
104
110
  "197": 1,
105
111
  "226": 1,
@@ -109,24 +115,24 @@
109
115
  "281": 6,
110
116
  "290": 1
111
117
  },
112
- "fqnsFingerprint": "0f08c8611b0f45d7589168785639e80dd0e0d926f165ebe698b0be6252678c32"
118
+ "fqnsFingerprint": "fc7e269ab7f33d001ee08e84e3fbadcda94f34b9443783249de3acfca363f548"
113
119
  },
114
- "44771a69af5f3b5903efdd375284782c872da6c81f816d0b40e8fc95b3b8ae75": {
120
+ "b2c45949efe39cb2b851297e64553c29136455a562c27964c29b3fac49b7ab22": {
115
121
  "translations": {
116
122
  "python": {
117
- "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\ncodestar.GitHubRepository(stack, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=cdk.SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(stack, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
123
+ "source": "import aws_cdk.aws_codestar_alpha as codestar\nimport aws_cdk.aws_s3 as s3\n\n\ncodestar.GitHubRepository(self, \"GitHubRepo\",\n owner=\"aws\",\n repository_name=\"aws-cdk\",\n access_token=SecretValue.secrets_manager(\"my-github-token\",\n json_field=\"token\"\n ),\n contents_bucket=s3.Bucket.from_bucket_name(self, \"Bucket\", \"bucket-name\"),\n contents_key=\"import.zip\"\n)",
118
124
  "version": "2"
119
125
  },
120
126
  "csharp": {
121
- "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\nnew GitHubRepository(stack, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = cdk.SecretValue.SecretsManager(\"my-github-token\", new Struct {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(stack, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
127
+ "source": "using Amazon.CDK.AWS.Codestar.Alpha;\nusing Amazon.CDK.AWS.S3;\n\n\nnew GitHubRepository(this, \"GitHubRepo\", new GitHubRepositoryProps {\n Owner = \"aws\",\n RepositoryName = \"aws-cdk\",\n AccessToken = SecretValue.SecretsManager(\"my-github-token\", new SecretsManagerSecretOptions {\n JsonField = \"token\"\n }),\n ContentsBucket = Bucket.FromBucketName(this, \"Bucket\", \"bucket-name\"),\n ContentsKey = \"import.zip\"\n});",
122
128
  "version": "1"
123
129
  },
124
130
  "java": {
125
- "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\nGitHubRepository.Builder.create(stack, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(cdk.SecretValue.secretsManager(\"my-github-token\", Map.of(\n \"jsonField\", \"token\")))\n .contentsBucket(Bucket.fromBucketName(stack, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
131
+ "source": "import software.amazon.awscdk.services.codestar.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\n\nGitHubRepository.Builder.create(this, \"GitHubRepo\")\n .owner(\"aws\")\n .repositoryName(\"aws-cdk\")\n .accessToken(SecretValue.secretsManager(\"my-github-token\", SecretsManagerSecretOptions.builder()\n .jsonField(\"token\")\n .build()))\n .contentsBucket(Bucket.fromBucketName(this, \"Bucket\", \"bucket-name\"))\n .contentsKey(\"import.zip\")\n .build();",
126
132
  "version": "1"
127
133
  },
128
134
  "$": {
129
- "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
135
+ "source": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
130
136
  "version": "0"
131
137
  }
132
138
  },
@@ -139,21 +145,24 @@
139
145
  "field": "example"
140
146
  }
141
147
  },
142
- "didCompile": false,
148
+ "didCompile": true,
143
149
  "fqnsReferenced": [
144
150
  "@aws-cdk/aws-codestar-alpha.GitHubRepository",
145
151
  "@aws-cdk/aws-codestar-alpha.GitHubRepositoryProps",
146
152
  "aws-cdk-lib.SecretValue",
153
+ "aws-cdk-lib.SecretValue#secretsManager",
154
+ "aws-cdk-lib.SecretsManagerSecretOptions",
147
155
  "aws-cdk-lib.aws_s3.Bucket",
148
156
  "aws-cdk-lib.aws_s3.Bucket#fromBucketName",
149
157
  "aws-cdk-lib.aws_s3.IBucket"
150
158
  ],
151
- "fullSource": "import * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n\nnew codestar.GitHubRepository(stack, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: cdk.SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});",
159
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as codestar from '@aws-cdk/aws-codestar-alpha';\nimport * as s3 from 'aws-cdk-lib/aws-s3'\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { SecretValue, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew codestar.GitHubRepository(this, 'GitHubRepo', {\n owner: 'aws',\n repositoryName: 'aws-cdk',\n accessToken: SecretValue.secretsManager('my-github-token', {\n jsonField: 'token',\n }),\n contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),\n contentsKey: 'import.zip',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
152
160
  "syntaxKindCounter": {
153
161
  "10": 10,
154
- "75": 18,
162
+ "75": 15,
163
+ "104": 2,
155
164
  "193": 2,
156
- "194": 5,
165
+ "194": 4,
157
166
  "196": 2,
158
167
  "197": 1,
159
168
  "226": 1,
@@ -163,7 +172,7 @@
163
172
  "281": 6,
164
173
  "290": 1
165
174
  },
166
- "fqnsFingerprint": "0f08c8611b0f45d7589168785639e80dd0e0d926f165ebe698b0be6252678c32"
175
+ "fqnsFingerprint": "fc7e269ab7f33d001ee08e84e3fbadcda94f34b9443783249de3acfca363f548"
167
176
  }
168
177
  }
169
178
  }
package/README.md CHANGED
@@ -23,13 +23,13 @@ To create a new GitHub Repository and commit the assets from S3 bucket into the
23
23
  import * as codestar from '@aws-cdk/aws-codestar-alpha';
24
24
  import * as s3 from 'aws-cdk-lib/aws-s3'
25
25
 
26
- new codestar.GitHubRepository(stack, 'GitHubRepo', {
26
+ new codestar.GitHubRepository(this, 'GitHubRepo', {
27
27
  owner: 'aws',
28
28
  repositoryName: 'aws-cdk',
29
- accessToken: cdk.SecretValue.secretsManager('my-github-token', {
29
+ accessToken: SecretValue.secretsManager('my-github-token', {
30
30
  jsonField: 'token',
31
31
  }),
32
- contentsBucket: s3.Bucket.fromBucketName(stack, 'Bucket', 'bucket-name'),
32
+ contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),
33
33
  contentsKey: 'import.zip',
34
34
  });
35
35
  ```
@@ -40,7 +40,7 @@ class GitHubRepository extends cdk.Resource {
40
40
  }
41
41
  exports.GitHubRepository = GitHubRepository;
42
42
  _a = JSII_RTTI_SYMBOL_1;
43
- GitHubRepository[_a] = { fqn: "@aws-cdk/aws-codestar-alpha.GitHubRepository", version: "2.9.0-alpha.0" };
43
+ GitHubRepository[_a] = { fqn: "@aws-cdk/aws-codestar-alpha.GitHubRepository", version: "2.10.0-alpha.0" };
44
44
  /**
45
45
  * (experimental) Visibility of the GitHubRepository.
46
46
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-codestar-alpha",
3
- "version": "2.9.0-alpha.0",
3
+ "version": "2.10.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::CodeStar",
6
6
  "main": "lib/index.js",
@@ -33,7 +33,14 @@
33
33
  "packageName": "awscdkcodestaralpha"
34
34
  }
35
35
  },
36
- "projectReferences": true
36
+ "projectReferences": true,
37
+ "metadata": {
38
+ "jsii": {
39
+ "rosetta": {
40
+ "strict": true
41
+ }
42
+ }
43
+ }
37
44
  },
38
45
  "repository": {
39
46
  "type": "git",
@@ -76,17 +83,17 @@
76
83
  },
77
84
  "license": "Apache-2.0",
78
85
  "devDependencies": {
79
- "@aws-cdk/cdk-build-tools": "2.9.0",
80
- "@aws-cdk/cdk-integ-tools": "2.9.0",
81
- "@aws-cdk/cfn2ts": "2.9.0",
82
- "@aws-cdk/pkglint": "2.9.0",
86
+ "@aws-cdk/cdk-build-tools": "2.10.0",
87
+ "@aws-cdk/cdk-integ-tools": "2.10.0",
88
+ "@aws-cdk/cfn2ts": "2.10.0",
89
+ "@aws-cdk/pkglint": "2.10.0",
83
90
  "@types/jest": "^27.4.0",
84
- "aws-cdk-lib": "2.9.0",
91
+ "aws-cdk-lib": "2.10.0",
85
92
  "constructs": "^10.0.0"
86
93
  },
87
94
  "dependencies": {},
88
95
  "peerDependencies": {
89
- "aws-cdk-lib": "^2.9.0",
96
+ "aws-cdk-lib": "^2.10.0",
90
97
  "constructs": "^10.0.0"
91
98
  },
92
99
  "engines": {
@@ -0,0 +1,10 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { SecretValue, Stack } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+
5
+ class Fixture extends Stack {
6
+ constructor(scope: Construct, id: string) {
7
+ super(scope, id);
8
+ /// here
9
+ }
10
+ }