@aws-cdk/aws-servicecatalogappregistry-alpha 2.4.0-alpha.0 → 2.8.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.4.0",
11
+ "aws-cdk-lib": "^2.8.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -2855,7 +2855,7 @@
2855
2855
  "stability": "experimental"
2856
2856
  },
2857
2857
  "homepage": "https://github.com/aws/aws-cdk",
2858
- "jsiiVersion": "1.50.0 (build d1830a4)",
2858
+ "jsiiVersion": "1.52.1 (build 5ccc8f6)",
2859
2859
  "keywords": [
2860
2860
  "aws",
2861
2861
  "cdk",
@@ -2869,12 +2869,15 @@
2869
2869
  "compiledWithDeprecationWarnings": true,
2870
2870
  "pacmak": {
2871
2871
  "hasDefaultInterfaces": true
2872
+ },
2873
+ "rosetta": {
2874
+ "strict": true
2872
2875
  }
2873
2876
  }
2874
2877
  },
2875
2878
  "name": "@aws-cdk/aws-servicecatalogappregistry-alpha",
2876
2879
  "readme": {
2877
- "markdown": "# AWS ServiceCatalogAppRegistry 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[AWS Service Catalog App Registry](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/appregistry.html)\nenables organizations to create and manage repositores of applications and associated resources.\n\n## Table Of Contents\n\n- [Application](#application)\n- [Attribute-Group](#attribute-group)\n- [Associations](#associations)\n - [Associating application with an attribute group](#attribute-group-association)\n - [Associating application with a stack](#resource-association)\n\nThe `@aws-cdk/aws-servicecatalogappregistry` package contains resources that enable users to automate governance and management of their AWS resources at scale.\n\n```ts nofixture\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n```\n\n## Application\n\nAn AppRegistry application enables you to define your applications and associated resources.\nThe application name must be unique at the account level, but is mutable.\n\n```ts\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n```\n\nAn application that has been created outside of the stack can be imported into your CDK app.\nApplications can be imported by their ARN via the `Application.fromApplicationArn()` API:\n\n```ts\nconst importedApplication = appreg.Application.fromApplicationArn(this, 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i');\n```\n\n## Attribute Group\n\nAn AppRegistry attribute group acts as a container for user-defined attributes for an application.\nMetadata is attached in a machine-readble format to integrate with automated workflows and tools.\n\n```ts\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n```\n\nAn attribute group that has been created outside of the stack can be imported into your CDK app.\nAttribute groups can be imported by their ARN via the `AttributeGroup.fromAttributeGroupArn()` API:\n\n```ts\nconst importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(this, 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i');\n```\n\n## Associations\n\nYou can associate your appregistry application with attribute groups and resources.\nResources are CloudFormation stacks that you can associate with an application to group relevant\nstacks together to enable metadata rich insights into your applications and resources.\nA Cloudformation stack can only be associated with one appregistry application.\nIf a stack is associated with multiple applications in your app or is already associated with one,\nCDK will fail at deploy time.\n\n### Associating application with an attribute group\n\nYou can associate an attribute group with an application with the `associateAttributeGroup()` API:\n\n```ts basic-constructs\napplication.associateAttributeGroup(attributeGroup);\n```\n\n### Associating application with a Stack\n\nYou can associate a stack with an application with the `associateStack()` API:\n\n```ts basic-constructs\nconst myStack = new cdk.Stack(app, 'MyStack');\n\napplication.associateStack(myStack);\n```\n"
2880
+ "markdown": "# AWS ServiceCatalogAppRegistry 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[AWS Service Catalog App Registry](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/appregistry.html)\nenables organizations to create and manage repositores of applications and associated resources.\n\n## Table Of Contents\n\n- [Application](#application)\n- [Attribute-Group](#attribute-group)\n- [Associations](#associations)\n - [Associating application with an attribute group](#attribute-group-association)\n - [Associating application with a stack](#resource-association)\n\nThe `@aws-cdk/aws-servicecatalogappregistry` package contains resources that enable users to automate governance and management of their AWS resources at scale.\n\n```ts nofixture\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n```\n\n## Application\n\nAn AppRegistry application enables you to define your applications and associated resources.\nThe application name must be unique at the account level, but is mutable.\n\n```ts\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n```\n\nAn application that has been created outside of the stack can be imported into your CDK app.\nApplications can be imported by their ARN via the `Application.fromApplicationArn()` API:\n\n```ts\nconst importedApplication = appreg.Application.fromApplicationArn(\n this,\n 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i',\n);\n```\n\n## Attribute Group\n\nAn AppRegistry attribute group acts as a container for user-defined attributes for an application.\nMetadata is attached in a machine-readble format to integrate with automated workflows and tools.\n\n```ts\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n```\n\nAn attribute group that has been created outside of the stack can be imported into your CDK app.\nAttribute groups can be imported by their ARN via the `AttributeGroup.fromAttributeGroupArn()` API:\n\n```ts\nconst importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(\n this,\n 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i',\n);\n```\n\n## Associations\n\nYou can associate your appregistry application with attribute groups and resources.\nResources are CloudFormation stacks that you can associate with an application to group relevant\nstacks together to enable metadata rich insights into your applications and resources.\nA Cloudformation stack can only be associated with one appregistry application.\nIf a stack is associated with multiple applications in your app or is already associated with one,\nCDK will fail at deploy time.\n\n### Associating application with an attribute group\n\nYou can associate an attribute group with an application with the `associateAttributeGroup()` API:\n\n```ts\ndeclare const application: appreg.Application;\ndeclare const attributeGroup: appreg.AttributeGroup;\napplication.associateAttributeGroup(attributeGroup);\n```\n\n### Associating application with a Stack\n\nYou can associate a stack with an application with the `associateStack()` API:\n\n```ts\nconst app = new App();\nconst myStack = new Stack(app, 'MyStack');\n\ndeclare const application: appreg.Application;\napplication.associateStack(myStack);\n```\n"
2878
2881
  },
2879
2882
  "repository": {
2880
2883
  "directory": "packages/individual-packages/aws-servicecatalogappregistry",
@@ -3547,6 +3550,6 @@
3547
3550
  "symbolId": "lib/attribute-group:IAttributeGroup"
3548
3551
  }
3549
3552
  },
3550
- "version": "2.4.0-alpha.0",
3553
+ "version": "2.8.0-alpha.0",
3551
3554
  "fingerprint": "**********"
3552
3555
  }
package/.jsii.tabl.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "version": "2",
3
- "toolVersion": "1.50.0",
3
+ "toolVersion": "1.52.1",
4
4
  "snippets": {
5
5
  "b54d6876cfcf5d45525d97eccc213472c316d19cb54a049a8e77ef5c721dc848": {
6
6
  "translations": {
7
7
  "python": {
8
8
  "source": "import aws_cdk.aws_servicecatalogappregistry_alpha as appreg",
9
- "version": "1"
9
+ "version": "2"
10
10
  },
11
11
  "csharp": {
12
12
  "source": "using Amazon.CDK.AWS.Servicecatalogappregistry.Alpha;",
@@ -48,7 +48,7 @@
48
48
  "translations": {
49
49
  "python": {
50
50
  "source": "application = appreg.Application(self, \"MyFirstApplication\",\n application_name=\"MyFirstApplicationName\",\n description=\"description for my application\"\n)",
51
- "version": "1"
51
+ "version": "2"
52
52
  },
53
53
  "csharp": {
54
54
  "source": "Application application = new Application(this, \"MyFirstApplication\", new ApplicationProps {\n ApplicationName = \"MyFirstApplicationName\",\n Description = \"description for my application\"\n});",
@@ -73,12 +73,12 @@
73
73
  "line": 40
74
74
  }
75
75
  },
76
- "didCompile": false,
76
+ "didCompile": true,
77
77
  "fqnsReferenced": [
78
78
  "@aws-cdk/aws-servicecatalogappregistry-alpha.Application",
79
79
  "@aws-cdk/aws-servicecatalogappregistry-alpha.ApplicationProps"
80
80
  ],
81
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
81
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
82
82
  "syntaxKindCounter": {
83
83
  "10": 3,
84
84
  "75": 5,
@@ -91,13 +91,13 @@
91
91
  "243": 1,
92
92
  "281": 2
93
93
  },
94
- "fqnsFingerprint": "8830e84ee9069bf6b6ff81e540c83694b6ba37293c2643da07f32ed168af8cea"
94
+ "fqnsFingerprint": "3171899d5ec14c0372417b37ca17c618069d7af74cbbd93ad02edcbd18a12bce"
95
95
  },
96
- "fd98a7188a18ce113b9467ecff87ce0fe7f0735060a2e35ba1deeb464262c3be": {
96
+ "9b6891d44c11d0adc2704ead9776a0f8c3b1d427619189c4e8b8417647185e99": {
97
97
  "translations": {
98
98
  "python": {
99
99
  "source": "imported_application = appreg.Application.from_application_arn(self, \"MyImportedApplication\", \"arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i\")",
100
- "version": "1"
100
+ "version": "2"
101
101
  },
102
102
  "csharp": {
103
103
  "source": "IApplication importedApplication = Application.FromApplicationArn(this, \"MyImportedApplication\", \"arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i\");",
@@ -108,7 +108,7 @@
108
108
  "version": "1"
109
109
  },
110
110
  "$": {
111
- "source": "const importedApplication = appreg.Application.fromApplicationArn(this, 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i');",
111
+ "source": "const importedApplication = appreg.Application.fromApplicationArn(\n this,\n 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i',\n);",
112
112
  "version": "0"
113
113
  }
114
114
  },
@@ -122,13 +122,13 @@
122
122
  "line": 50
123
123
  }
124
124
  },
125
- "didCompile": false,
125
+ "didCompile": true,
126
126
  "fqnsReferenced": [
127
127
  "@aws-cdk/aws-servicecatalogappregistry-alpha.Application",
128
128
  "@aws-cdk/aws-servicecatalogappregistry-alpha.Application#fromApplicationArn",
129
129
  "@aws-cdk/aws-servicecatalogappregistry-alpha.IApplication"
130
130
  ],
131
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst importedApplication = appreg.Application.fromApplicationArn(this, 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i');\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
131
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst importedApplication = appreg.Application.fromApplicationArn(\n this,\n 'MyImportedApplication',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i',\n);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
132
132
  "syntaxKindCounter": {
133
133
  "10": 2,
134
134
  "75": 4,
@@ -139,13 +139,13 @@
139
139
  "242": 1,
140
140
  "243": 1
141
141
  },
142
- "fqnsFingerprint": "7b6acf97d90407b06f2fc4b5382191810568b8c141a034a38021f3e0d925b2e5"
142
+ "fqnsFingerprint": "49498611d71819e12fa0047bee0c073a4aeb5a8d744cb6fbbab9fab2849a8986"
143
143
  },
144
144
  "9dc73a866361d4976a6b0e9f8dd7ae066771de818137f0849ab74e876da0a5d2": {
145
145
  "translations": {
146
146
  "python": {
147
147
  "source": "attribute_group = appreg.AttributeGroup(self, \"MyFirstAttributeGroup\",\n attribute_group_name=\"MyFirstAttributeGroupName\",\n description=\"description for my attribute group\", # the description is optional,\n attributes={\n \"project\": \"foo\",\n \"team\": [\"member1\", \"member2\", \"member3\"],\n \"public\": False,\n \"stages\": {\n \"alpha\": \"complete\",\n \"beta\": \"incomplete\",\n \"release\": \"not started\"\n }\n }\n)",
148
- "version": "1"
148
+ "version": "2"
149
149
  },
150
150
  "csharp": {
151
151
  "source": "AttributeGroup attributeGroup = new AttributeGroup(this, \"MyFirstAttributeGroup\", new AttributeGroupProps {\n AttributeGroupName = \"MyFirstAttributeGroupName\",\n Description = \"description for my attribute group\", // the description is optional,\n Attributes = new Dictionary<string, object> {\n { \"project\", \"foo\" },\n { \"team\", new [] { \"member1\", \"member2\", \"member3\" } },\n { \"public\", false },\n { \"stages\", new Dictionary<string, string> {\n { \"alpha\", \"complete\" },\n { \"beta\", \"incomplete\" },\n { \"release\", \"not started\" }\n } }\n }\n});",
@@ -167,15 +167,15 @@
167
167
  },
168
168
  "field": {
169
169
  "field": "markdown",
170
- "line": 60
170
+ "line": 63
171
171
  }
172
172
  },
173
- "didCompile": false,
173
+ "didCompile": true,
174
174
  "fqnsReferenced": [
175
175
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup",
176
176
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroupProps"
177
177
  ],
178
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
178
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
179
179
  "syntaxKindCounter": {
180
180
  "10": 10,
181
181
  "75": 13,
@@ -190,13 +190,13 @@
190
190
  "243": 1,
191
191
  "281": 10
192
192
  },
193
- "fqnsFingerprint": "d5dc9340becf6278f9544fafe855c2130271f05c6ee4a5a2ce78aae9174a99e8"
193
+ "fqnsFingerprint": "0e4ac5f81ea5afa85475d8318edb74ddfb995e1e509d90691382313762a3335f"
194
194
  },
195
- "ba34a256cd586ff3ad909b7c43f742267ce18cec06085155b59500d53efe65a1": {
195
+ "4e75c5c139eca4bf39fe5d70473617bb8bd9479ebbd49d16bad21dbbf72ba0e0": {
196
196
  "translations": {
197
197
  "python": {
198
198
  "source": "imported_attribute_group = appreg.AttributeGroup.from_attribute_group_arn(self, \"MyImportedAttrGroup\", \"arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i\")",
199
- "version": "1"
199
+ "version": "2"
200
200
  },
201
201
  "csharp": {
202
202
  "source": "IAttributeGroup importedAttributeGroup = AttributeGroup.FromAttributeGroupArn(this, \"MyImportedAttrGroup\", \"arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i\");",
@@ -207,7 +207,7 @@
207
207
  "version": "1"
208
208
  },
209
209
  "$": {
210
- "source": "const importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(this, 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i');",
210
+ "source": "const importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(\n this,\n 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i',\n);",
211
211
  "version": "0"
212
212
  }
213
213
  },
@@ -218,16 +218,16 @@
218
218
  },
219
219
  "field": {
220
220
  "field": "markdown",
221
- "line": 80
221
+ "line": 83
222
222
  }
223
223
  },
224
- "didCompile": false,
224
+ "didCompile": true,
225
225
  "fqnsReferenced": [
226
226
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup",
227
227
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup#fromAttributeGroupArn",
228
228
  "@aws-cdk/aws-servicecatalogappregistry-alpha.IAttributeGroup"
229
229
  ],
230
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(this, 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i');\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
230
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(\n this,\n 'MyImportedAttrGroup',\n 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i',\n);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
231
231
  "syntaxKindCounter": {
232
232
  "10": 2,
233
233
  "75": 4,
@@ -238,24 +238,24 @@
238
238
  "242": 1,
239
239
  "243": 1
240
240
  },
241
- "fqnsFingerprint": "7ac551909b86e2e5dce8c98a625b3e7f01194cae35cc01b0b6a44f4bbf5c8091"
241
+ "fqnsFingerprint": "aa28cdbc2cd9c43686abb1291414bd7d346aad87bd923764f60fea8ba289b319"
242
242
  },
243
- "aa44ab6fb1a9a51be68ba5490916c501836342790d98c7996b99f5865a56b448": {
243
+ "6ebfacea43f8d4c86a25a0856ed09d93144c2c23d7c2e70cde3feb8238d02f1a": {
244
244
  "translations": {
245
245
  "python": {
246
- "source": "application.associate_attribute_group(attribute_group)",
247
- "version": "1"
246
+ "source": "# application: appreg.Application\n# attribute_group: appreg.AttributeGroup\n\napplication.associate_attribute_group(attribute_group)",
247
+ "version": "2"
248
248
  },
249
249
  "csharp": {
250
- "source": "application.AssociateAttributeGroup(attributeGroup);",
250
+ "source": "Application application;\nAttributeGroup attributeGroup;\n\napplication.AssociateAttributeGroup(attributeGroup);",
251
251
  "version": "1"
252
252
  },
253
253
  "java": {
254
- "source": "application.associateAttributeGroup(attributeGroup);",
254
+ "source": "Application application;\nAttributeGroup attributeGroup;\n\napplication.associateAttributeGroup(attributeGroup);",
255
255
  "version": "1"
256
256
  },
257
257
  "$": {
258
- "source": "application.associateAttributeGroup(attributeGroup);",
258
+ "source": "declare const application: appreg.Application;\ndeclare const attributeGroup: appreg.AttributeGroup;\napplication.associateAttributeGroup(attributeGroup);",
259
259
  "version": "0"
260
260
  }
261
261
  },
@@ -266,36 +266,45 @@
266
266
  },
267
267
  "field": {
268
268
  "field": "markdown",
269
- "line": 98
269
+ "line": 104
270
270
  }
271
271
  },
272
- "didCompile": false,
273
- "fqnsReferenced": [],
274
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\napplication.associateAttributeGroup(attributeGroup);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
272
+ "didCompile": true,
273
+ "fqnsReferenced": [
274
+ "@aws-cdk/aws-servicecatalogappregistry-alpha.IAttributeGroup"
275
+ ],
276
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const application: appreg.Application;\ndeclare const attributeGroup: appreg.AttributeGroup;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\napplication.associateAttributeGroup(attributeGroup);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
275
277
  "syntaxKindCounter": {
276
- "75": 3,
278
+ "75": 9,
279
+ "130": 2,
280
+ "153": 2,
281
+ "169": 2,
277
282
  "194": 1,
278
283
  "196": 1,
279
- "226": 1
284
+ "225": 2,
285
+ "226": 1,
286
+ "242": 2,
287
+ "243": 2,
288
+ "290": 1
280
289
  },
281
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
290
+ "fqnsFingerprint": "4b91baf19b390ebcf36bcd22d9100b7b49a5e1ac2a4da6c8627fd7e2aa814511"
282
291
  },
283
- "3b30d43323dbbb7e67594c47acfbb9d86f52fe135da8777a2a2f12e600f67dbc": {
292
+ "6a95794c607acc8f979c7337468dbc509729f34094ff1c4e92601bb01e6204ce": {
284
293
  "translations": {
285
294
  "python": {
286
- "source": "my_stack = cdk.Stack(app, \"MyStack\")\n\napplication.associate_stack(my_stack)",
287
- "version": "1"
295
+ "source": "# application: appreg.Application\napp = App()\nmy_stack = Stack(app, \"MyStack\")\napplication.associate_stack(my_stack)",
296
+ "version": "2"
288
297
  },
289
298
  "csharp": {
290
- "source": "Stack myStack = new Stack(app, \"MyStack\");\n\napplication.AssociateStack(myStack);",
299
+ "source": "Application application;\nApp app = new App();\nStack myStack = new Stack(app, \"MyStack\");\napplication.AssociateStack(myStack);",
291
300
  "version": "1"
292
301
  },
293
302
  "java": {
294
- "source": "Stack myStack = new Stack(app, \"MyStack\");\n\napplication.associateStack(myStack);",
303
+ "source": "Application application;\nApp app = new App();\nStack myStack = new Stack(app, \"MyStack\");\napplication.associateStack(myStack);",
295
304
  "version": "1"
296
305
  },
297
306
  "$": {
298
- "source": "const myStack = new cdk.Stack(app, 'MyStack');\n\napplication.associateStack(myStack);",
307
+ "source": "const app = new App();\nconst myStack = new Stack(app, 'MyStack');\n\ndeclare const application: appreg.Application;\napplication.associateStack(myStack);",
299
308
  "version": "0"
300
309
  }
301
310
  },
@@ -306,32 +315,37 @@
306
315
  },
307
316
  "field": {
308
317
  "field": "markdown",
309
- "line": 106
318
+ "line": 114
310
319
  }
311
320
  },
312
- "didCompile": false,
321
+ "didCompile": true,
313
322
  "fqnsReferenced": [
323
+ "aws-cdk-lib.App",
314
324
  "aws-cdk-lib.Stack"
315
325
  ],
316
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst myStack = new cdk.Stack(app, 'MyStack');\n\napplication.associateStack(myStack);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
326
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const application: appreg.Application;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst app = new App();\nconst myStack = new Stack(app, 'MyStack');\napplication.associateStack(myStack);\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
317
327
  "syntaxKindCounter": {
318
328
  "10": 1,
319
- "75": 7,
320
- "194": 2,
329
+ "75": 11,
330
+ "130": 1,
331
+ "153": 1,
332
+ "169": 1,
333
+ "194": 1,
321
334
  "196": 1,
322
- "197": 1,
323
- "225": 1,
335
+ "197": 2,
336
+ "225": 3,
324
337
  "226": 1,
325
- "242": 1,
326
- "243": 1
338
+ "242": 3,
339
+ "243": 3,
340
+ "290": 1
327
341
  },
328
- "fqnsFingerprint": "9fdbcf0e7dddcea0f440e31d63dc0e5cd4de4fdc619e2cf6539fbeec4fca2f36"
342
+ "fqnsFingerprint": "9b28034e4673081ec3ca852e68669b808cc3a7550f88ed276e1396c57ea7354b"
329
343
  },
330
344
  "7c69a1b1e72af77b16c2d08aab6c56df0b8df087d657c873f6b4f415ed4b269f": {
331
345
  "translations": {
332
346
  "python": {
333
347
  "source": "application = appreg.Application(self, \"MyFirstApplication\",\n application_name=\"MyFirstApplicationName\",\n description=\"description for my application\"\n)",
334
- "version": "1"
348
+ "version": "2"
335
349
  },
336
350
  "csharp": {
337
351
  "source": "Application application = new Application(this, \"MyFirstApplication\", new ApplicationProps {\n ApplicationName = \"MyFirstApplicationName\",\n Description = \"description for my application\"\n});",
@@ -355,12 +369,12 @@
355
369
  "field": "example"
356
370
  }
357
371
  },
358
- "didCompile": false,
372
+ "didCompile": true,
359
373
  "fqnsReferenced": [
360
374
  "@aws-cdk/aws-servicecatalogappregistry-alpha.Application",
361
375
  "@aws-cdk/aws-servicecatalogappregistry-alpha.ApplicationProps"
362
376
  ],
363
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
377
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
364
378
  "syntaxKindCounter": {
365
379
  "10": 3,
366
380
  "75": 5,
@@ -373,13 +387,13 @@
373
387
  "243": 1,
374
388
  "281": 2
375
389
  },
376
- "fqnsFingerprint": "8830e84ee9069bf6b6ff81e540c83694b6ba37293c2643da07f32ed168af8cea"
390
+ "fqnsFingerprint": "3171899d5ec14c0372417b37ca17c618069d7af74cbbd93ad02edcbd18a12bce"
377
391
  },
378
392
  "556393d98427fe99c42f80175cf169f120d019b778303171d685ae1cc3561efd": {
379
393
  "translations": {
380
394
  "python": {
381
395
  "source": "application = appreg.Application(self, \"MyFirstApplication\",\n application_name=\"MyFirstApplicationName\",\n description=\"description for my application\"\n)",
382
- "version": "1"
396
+ "version": "2"
383
397
  },
384
398
  "csharp": {
385
399
  "source": "Application application = new Application(this, \"MyFirstApplication\", new ApplicationProps {\n ApplicationName = \"MyFirstApplicationName\",\n Description = \"description for my application\"\n});",
@@ -403,12 +417,12 @@
403
417
  "field": "example"
404
418
  }
405
419
  },
406
- "didCompile": false,
420
+ "didCompile": true,
407
421
  "fqnsReferenced": [
408
422
  "@aws-cdk/aws-servicecatalogappregistry-alpha.Application",
409
423
  "@aws-cdk/aws-servicecatalogappregistry-alpha.ApplicationProps"
410
424
  ],
411
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
425
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst application = new appreg.Application(this, 'MyFirstApplication', {\n applicationName: 'MyFirstApplicationName',\n description: 'description for my application', // the description is optional\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
412
426
  "syntaxKindCounter": {
413
427
  "10": 3,
414
428
  "75": 5,
@@ -421,13 +435,13 @@
421
435
  "243": 1,
422
436
  "281": 2
423
437
  },
424
- "fqnsFingerprint": "8830e84ee9069bf6b6ff81e540c83694b6ba37293c2643da07f32ed168af8cea"
438
+ "fqnsFingerprint": "3171899d5ec14c0372417b37ca17c618069d7af74cbbd93ad02edcbd18a12bce"
425
439
  },
426
440
  "cee2c8d7cf7a7cab5dc3ceb2bc700faae17da71a21d554d5a283dc3828526c08": {
427
441
  "translations": {
428
442
  "python": {
429
443
  "source": "attribute_group = appreg.AttributeGroup(self, \"MyFirstAttributeGroup\",\n attribute_group_name=\"MyFirstAttributeGroupName\",\n description=\"description for my attribute group\", # the description is optional,\n attributes={\n \"project\": \"foo\",\n \"team\": [\"member1\", \"member2\", \"member3\"],\n \"public\": False,\n \"stages\": {\n \"alpha\": \"complete\",\n \"beta\": \"incomplete\",\n \"release\": \"not started\"\n }\n }\n)",
430
- "version": "1"
444
+ "version": "2"
431
445
  },
432
446
  "csharp": {
433
447
  "source": "AttributeGroup attributeGroup = new AttributeGroup(this, \"MyFirstAttributeGroup\", new AttributeGroupProps {\n AttributeGroupName = \"MyFirstAttributeGroupName\",\n Description = \"description for my attribute group\", // the description is optional,\n Attributes = new Dictionary<string, object> {\n { \"project\", \"foo\" },\n { \"team\", new [] { \"member1\", \"member2\", \"member3\" } },\n { \"public\", false },\n { \"stages\", new Dictionary<string, string> {\n { \"alpha\", \"complete\" },\n { \"beta\", \"incomplete\" },\n { \"release\", \"not started\" }\n } }\n }\n});",
@@ -451,12 +465,12 @@
451
465
  "field": "example"
452
466
  }
453
467
  },
454
- "didCompile": false,
468
+ "didCompile": true,
455
469
  "fqnsReferenced": [
456
470
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup",
457
471
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroupProps"
458
472
  ],
459
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
473
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
460
474
  "syntaxKindCounter": {
461
475
  "10": 10,
462
476
  "75": 13,
@@ -471,13 +485,13 @@
471
485
  "243": 1,
472
486
  "281": 10
473
487
  },
474
- "fqnsFingerprint": "d5dc9340becf6278f9544fafe855c2130271f05c6ee4a5a2ce78aae9174a99e8"
488
+ "fqnsFingerprint": "0e4ac5f81ea5afa85475d8318edb74ddfb995e1e509d90691382313762a3335f"
475
489
  },
476
490
  "c37bf93e3c49033a2d092c01a0d0a2a1d110115c83af67adde537aa056aff848": {
477
491
  "translations": {
478
492
  "python": {
479
493
  "source": "attribute_group = appreg.AttributeGroup(self, \"MyFirstAttributeGroup\",\n attribute_group_name=\"MyFirstAttributeGroupName\",\n description=\"description for my attribute group\", # the description is optional,\n attributes={\n \"project\": \"foo\",\n \"team\": [\"member1\", \"member2\", \"member3\"],\n \"public\": False,\n \"stages\": {\n \"alpha\": \"complete\",\n \"beta\": \"incomplete\",\n \"release\": \"not started\"\n }\n }\n)",
480
- "version": "1"
494
+ "version": "2"
481
495
  },
482
496
  "csharp": {
483
497
  "source": "AttributeGroup attributeGroup = new AttributeGroup(this, \"MyFirstAttributeGroup\", new AttributeGroupProps {\n AttributeGroupName = \"MyFirstAttributeGroupName\",\n Description = \"description for my attribute group\", // the description is optional,\n Attributes = new Dictionary<string, object> {\n { \"project\", \"foo\" },\n { \"team\", new [] { \"member1\", \"member2\", \"member3\" } },\n { \"public\", false },\n { \"stages\", new Dictionary<string, string> {\n { \"alpha\", \"complete\" },\n { \"beta\", \"incomplete\" },\n { \"release\", \"not started\" }\n } }\n }\n});",
@@ -501,12 +515,12 @@
501
515
  "field": "example"
502
516
  }
503
517
  },
504
- "didCompile": false,
518
+ "didCompile": true,
505
519
  "fqnsReferenced": [
506
520
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup",
507
521
  "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroupProps"
508
522
  ],
509
- "fullSource": "// Fixture with packages imported, but nothing else\nimport * as cdk from 'aws-cdk-lib';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends cdk.Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
523
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { App, Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {\n attributeGroupName: 'MyFirstAttributeGroupName',\n description: 'description for my attribute group', // the description is optional,\n attributes: {\n project: 'foo',\n team: ['member1', 'member2', 'member3'],\n public: false,\n stages: {\n alpha: 'complete',\n beta: 'incomplete',\n release: 'not started'\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
510
524
  "syntaxKindCounter": {
511
525
  "10": 10,
512
526
  "75": 13,
@@ -521,7 +535,7 @@
521
535
  "243": 1,
522
536
  "281": 10
523
537
  },
524
- "fqnsFingerprint": "d5dc9340becf6278f9544fafe855c2130271f05c6ee4a5a2ce78aae9174a99e8"
538
+ "fqnsFingerprint": "0e4ac5f81ea5afa85475d8318edb74ddfb995e1e509d90691382313762a3335f"
525
539
  }
526
540
  }
527
541
  }
package/README.md CHANGED
@@ -48,8 +48,11 @@ An application that has been created outside of the stack can be imported into y
48
48
  Applications can be imported by their ARN via the `Application.fromApplicationArn()` API:
49
49
 
50
50
  ```ts
51
- const importedApplication = appreg.Application.fromApplicationArn(this, 'MyImportedApplication',
52
- 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i');
51
+ const importedApplication = appreg.Application.fromApplicationArn(
52
+ this,
53
+ 'MyImportedApplication',
54
+ 'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i',
55
+ );
53
56
  ```
54
57
 
55
58
  ## Attribute Group
@@ -78,8 +81,11 @@ An attribute group that has been created outside of the stack can be imported in
78
81
  Attribute groups can be imported by their ARN via the `AttributeGroup.fromAttributeGroupArn()` API:
79
82
 
80
83
  ```ts
81
- const importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(this, 'MyImportedAttrGroup',
82
- 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i');
84
+ const importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(
85
+ this,
86
+ 'MyImportedAttrGroup',
87
+ 'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i',
88
+ );
83
89
  ```
84
90
 
85
91
  ## Associations
@@ -95,7 +101,9 @@ CDK will fail at deploy time.
95
101
 
96
102
  You can associate an attribute group with an application with the `associateAttributeGroup()` API:
97
103
 
98
- ```ts basic-constructs
104
+ ```ts
105
+ declare const application: appreg.Application;
106
+ declare const attributeGroup: appreg.AttributeGroup;
99
107
  application.associateAttributeGroup(attributeGroup);
100
108
  ```
101
109
 
@@ -103,8 +111,10 @@ application.associateAttributeGroup(attributeGroup);
103
111
 
104
112
  You can associate a stack with an application with the `associateStack()` API:
105
113
 
106
- ```ts basic-constructs
107
- const myStack = new cdk.Stack(app, 'MyStack');
114
+ ```ts
115
+ const app = new App();
116
+ const myStack = new Stack(app, 'MyStack');
108
117
 
118
+ declare const application: appreg.Application;
109
119
  application.associateStack(myStack);
110
120
  ```
@@ -113,7 +113,7 @@ class Application extends ApplicationBase {
113
113
  }
114
114
  exports.Application = Application;
115
115
  _a = JSII_RTTI_SYMBOL_1;
116
- Application[_a] = { fqn: "@aws-cdk/aws-servicecatalogappregistry-alpha.Application", version: "2.4.0-alpha.0" };
116
+ Application[_a] = { fqn: "@aws-cdk/aws-servicecatalogappregistry-alpha.Application", version: "2.8.0-alpha.0" };
117
117
  /**
118
118
  * Generates a unique hash identfifer using SHA256 encryption algorithm
119
119
  */
@@ -63,5 +63,5 @@ class AttributeGroup extends AttributeGroupBase {
63
63
  }
64
64
  exports.AttributeGroup = AttributeGroup;
65
65
  _a = JSII_RTTI_SYMBOL_1;
66
- AttributeGroup[_a] = { fqn: "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup", version: "2.4.0-alpha.0" };
66
+ AttributeGroup[_a] = { fqn: "@aws-cdk/aws-servicecatalogappregistry-alpha.AttributeGroup", version: "2.8.0-alpha.0" };
67
67
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXR0cmlidXRlLWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG1DQUFtQztBQUNuQyxxREFBc0Q7QUFDdEQsNkZBQThFO0FBMkI5RSxNQUFlLGtCQUFtQixTQUFRLEdBQUcsQ0FBQyxRQUFRO0NBR3JEOzs7Ozs7QUFHRCxNQUFhLGNBQWUsU0FBUSxrQkFBa0I7Ozs7SUF1QnBELFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBMEI7UUFDbEUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQzs7UUFFakIsSUFBSSxDQUFDLDJCQUEyQixDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXhDLE1BQU0sY0FBYyxHQUFHLElBQUksaURBQWlCLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUM3RCxJQUFJLEVBQUUsS0FBSyxDQUFDLGtCQUFrQjtZQUM5QixXQUFXLEVBQUUsS0FBSyxDQUFDLFdBQVc7WUFDOUIsVUFBVSxFQUFFLEtBQUssQ0FBQyxVQUFVO1NBQzdCLENBQUMsQ0FBQztRQUVILElBQUksQ0FBQyxpQkFBaUIsR0FBRyxjQUFj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XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgYXR0cmlidXRlR3JvdXBJZDogc3RyaW5nO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGludGVyZmFjZSBBdHRyaWJ1dGVHcm91cFByb3BzIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBhdHRyaWJ1dGVHcm91cE5hbWU6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgYXR0cmlidXRlczogeyBba2V5OiBzdHJpbmddOiBhbnkgfTtcbn1cblxuYWJzdHJhY3QgY2xhc3MgQXR0cmlidXRlR3JvdXBCYXNlIGV4dGVuZHMgY2RrLlJlc291cmNlIGltcGxlbWVudHMgSUF0dHJpYnV0ZUdyb3VwIHtcbiAgcHVibGljIGFic3RyYWN0IHJlYWRvbmx5IGF0dHJpYnV0ZUdyb3VwQXJuOiBzdHJpbmc7XG4gIHB1YmxpYyBhYnN0cmFjdCByZWFkb25seSBhdHRyaWJ1dGVHcm91cElkOiBzdHJpbmc7XG59XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGNsYXNzIEF0dHJpYnV0ZUdyb3VwIGV4dGVuZHMgQXR0cmlidXRlR3JvdXBCYXNlIGltcGxlbWVudHMgSUF0dHJpYnV0ZUdyb3VwIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyBzdGF0aWMgZnJvbUF0dHJpYnV0ZUdyb3VwQXJuKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIGF0dHJpYnV0ZUdyb3VwQXJuOiBzdHJpbmcpOiBJQXR0cmlidXRlR3JvdXAge1xuICAgIGNvbnN0IGFybiA9IGNkay5TdGFjay5vZihzY29wZSkuc3BsaXRBcm4oYXR0cmlidXRlR3JvdXBBcm4sIGNkay5Bcm5Gb3JtYXQuU0xBU0hfUkVTT1VSQ0VfU0xBU0hfUkVTT1VSQ0VfTkFNRSk7XG4gICAgY29uc3QgYXR0cmlidXRlR3JvdXBJZCA9IGFybi5yZXNvdXJjZU5hbWU7XG5cbiAgICBpZiAoIWF0dHJpYnV0ZUdyb3VwSWQpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTWlzc2luZyByZXF1aXJlZCBBdHRyaWJ1dGUgR3JvdXAgSUQgZnJvbSBBdHRyaWJ1dGUgR3JvdXAgQVJOOiAnICsgYXR0cmlidXRlR3JvdXBBcm4pO1xuICAgIH1cblxuICAgIGNsYXNzIElt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gfVxuXG4gIHByaXZhdGUgdmFsaWRhdGVBdHRyaWJ1dGVHcm91cFByb3BzKHByb3BzOiBBdHRyaWJ1dGVHcm91cFByb3BzKSB7XG4gICAgSW5wdXRWYWxpZGF0b3IudmFsaWRhdGVMZW5ndGgodGhpcy5ub2RlLnBhdGgsICdhdHRyaWJ1dGUgZ3JvdXAgbmFtZScsIDEsIDI1NiwgcHJvcHMuYXR0cmlidXRlR3JvdXBOYW1lKTtcbiAgICBJbnB1dFZhbGlkYXRvci52YWxpZGF0ZVJlZ2V4KHRoaXMubm9kZS5wYXRoLCAnYXR0cmlidXRlIGdyb3VwIG5hbWUnLCAvXlthLXpBLVowLTktX10rJC8sIHByb3BzLmF0dHJpYnV0ZUdyb3VwTmFtZSk7XG4gICAgSW5wdXRWYWxpZGF0b3IudmFsaWRhdGVMZW5ndGgodGhpcy5ub2RlLnBhdGgsICdhdHRyaWJ1dGUgZ3JvdXAgZGVzY3JpcHRpb24nLCAwLCAxMDI0LCBwcm9wcy5kZXNjcmlwdGlvbik7XG4gIH1cbn1cbiJdfQ==
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-servicecatalogappregistry-alpha",
3
- "version": "2.4.0-alpha.0",
3
+ "version": "2.8.0-alpha.0",
4
4
  "description": "The CDK Construct Library for AWS::ServiceCatalogAppRegistry",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "jsii": {
8
8
  "outdir": "dist",
9
9
  "projectReferences": true,
10
+ "metadata": {
11
+ "jsii": {
12
+ "rosetta": {
13
+ "strict": true
14
+ }
15
+ }
16
+ },
10
17
  "targets": {
11
18
  "dotnet": {
12
19
  "namespace": "Amazon.CDK.AWS.Servicecatalogappregistry.Alpha",
@@ -77,17 +84,17 @@
77
84
  },
78
85
  "license": "Apache-2.0",
79
86
  "devDependencies": {
80
- "@aws-cdk/cdk-build-tools": "2.4.0",
81
- "@aws-cdk/cdk-integ-tools": "2.4.0",
82
- "@aws-cdk/cfn2ts": "2.4.0",
83
- "@aws-cdk/pkglint": "2.4.0",
84
- "@types/jest": "^27.0.3",
85
- "aws-cdk-lib": "2.4.0",
87
+ "@aws-cdk/cdk-build-tools": "2.8.0",
88
+ "@aws-cdk/cdk-integ-tools": "2.8.0",
89
+ "@aws-cdk/cfn2ts": "2.8.0",
90
+ "@aws-cdk/pkglint": "2.8.0",
91
+ "@types/jest": "^27.4.0",
92
+ "aws-cdk-lib": "2.8.0",
86
93
  "constructs": "^10.0.0"
87
94
  },
88
95
  "dependencies": {},
89
96
  "peerDependencies": {
90
- "aws-cdk-lib": "^2.4.0",
97
+ "aws-cdk-lib": "^2.8.0",
91
98
  "constructs": "^10.0.0"
92
99
  },
93
100
  "engines": {
@@ -1,8 +1,9 @@
1
1
  // Fixture with packages imported, but nothing else
2
- import * as cdk from 'aws-cdk-lib';
2
+ import { App, Stack } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
3
4
  import * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';
4
5
 
5
- class Fixture extends cdk.Stack {
6
+ class Fixture extends Stack {
6
7
  constructor(scope: Construct, id: string) {
7
8
  super(scope, id);
8
9
 
@@ -1,22 +0,0 @@
1
- // Fixture with packages imported, but nothing else
2
- import * as cdk from 'aws-cdk-lib';
3
- import * as appreg from '@aws-cdk/aws-servicecatalogappregistry-alpha';
4
-
5
- class Fixture extends cdk.Stack {
6
- constructor(scope: Construct, id: string) {
7
- super(scope, id);
8
-
9
- const application = new appreg.Application(stack, 'MyApplication', {
10
- applicationName: 'MyApplication',
11
- });
12
-
13
- const attributeGroup = new appreg.AttributeGroup(stack, 'MyAttributeGroup', {
14
- attributeGroupName: 'testAttributeGroup',
15
- attributes: {
16
- key: 'value',
17
- },
18
- });
19
-
20
- /// here
21
- }
22
- }