@intentius/chant-lexicon-aws 0.0.5 → 0.0.8
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/README.md +9 -425
- package/dist/integrity.json +7 -7
- package/dist/manifest.json +1 -1
- package/dist/meta.json +3767 -3706
- package/dist/rules/ext001.ts +2 -4
- package/dist/rules/s3-encryption.ts +2 -3
- package/dist/skills/chant-aws.md +72 -0
- package/dist/types/index.d.ts +57174 -57070
- package/package.json +2 -2
- package/src/codegen/__snapshots__/snapshot.test.ts.snap +18 -18
- package/src/codegen/docs.ts +104 -349
- package/src/codegen/generate.ts +2 -14
- package/src/codegen/package.ts +2 -0
- package/src/codegen/sam.ts +11 -11
- package/src/codegen/typecheck.test.ts +1 -1
- package/src/generated/index.d.ts +57174 -57070
- package/src/generated/index.ts +1356 -1351
- package/src/generated/lexicon-aws.json +3767 -3706
- package/src/import/generator.test.ts +5 -5
- package/src/import/generator.ts +4 -4
- package/src/import/roundtrip-fixtures.test.ts +8 -28
- package/src/import/roundtrip.test.ts +5 -5
- package/src/integration.test.ts +21 -21
- package/src/lint/post-synth/ext001.ts +2 -4
- package/src/lint/rules/rules.test.ts +8 -8
- package/src/lint/rules/s3-encryption.ts +2 -3
- package/src/lsp/completions.ts +2 -0
- package/src/lsp/hover.ts +2 -0
- package/src/nested-stack.ts +1 -1
- package/src/plugin.test.ts +13 -15
- package/src/plugin.ts +126 -149
- package/src/serializer.test.ts +42 -43
- package/src/serializer.ts +7 -16
- package/src/spec/parse.ts +2 -2
- package/dist/skills/aws-cloudformation.md +0 -41
- package/src/codegen/rollback.test.ts +0 -80
- package/src/codegen/rollback.ts +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-aws",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": ["src/", "dist/"],
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepack": "bun run bundle && bun run validate"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@intentius/chant": "0.0.
|
|
25
|
+
"@intentius/chant": "0.0.5",
|
|
26
26
|
"fflate": "^0.8.2",
|
|
27
27
|
"js-yaml": "^4.1.0"
|
|
28
28
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`snapshot tests Bucket lexicon entry 1`] = `
|
|
4
4
|
{
|
|
5
5
|
"attrs": {
|
|
6
|
-
"
|
|
6
|
+
"Arn": "Arn",
|
|
7
7
|
},
|
|
8
8
|
"createOnly": [
|
|
9
9
|
"BucketName",
|
|
@@ -27,7 +27,7 @@ exports[`snapshot tests Bucket lexicon entry 1`] = `
|
|
|
27
27
|
exports[`snapshot tests Function lexicon entry 1`] = `
|
|
28
28
|
{
|
|
29
29
|
"attrs": {
|
|
30
|
-
"
|
|
30
|
+
"Arn": "Arn",
|
|
31
31
|
},
|
|
32
32
|
"kind": "resource",
|
|
33
33
|
"lexicon": "aws",
|
|
@@ -79,8 +79,8 @@ exports[`snapshot tests Function lexicon entry 1`] = `
|
|
|
79
79
|
exports[`snapshot tests Role lexicon entry 1`] = `
|
|
80
80
|
{
|
|
81
81
|
"attrs": {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
82
|
+
"Arn": "Arn",
|
|
83
|
+
"RoleId": "RoleId",
|
|
84
84
|
},
|
|
85
85
|
"kind": "resource",
|
|
86
86
|
"lexicon": "aws",
|
|
@@ -160,17 +160,17 @@ exports[`snapshot tests Bucket .d.ts class declaration 1`] = `
|
|
|
160
160
|
"export declare class Bucket {
|
|
161
161
|
constructor(props: {
|
|
162
162
|
/** A name for the bucket. */
|
|
163
|
-
|
|
163
|
+
BucketName: string;
|
|
164
164
|
/** The Amazon Resource Name (ARN) of the bucket. */
|
|
165
|
-
|
|
165
|
+
Arn?: string;
|
|
166
166
|
/** Specifies default encryption for a bucket. */
|
|
167
|
-
|
|
167
|
+
BucketEncryption?: Bucket_BucketEncryption;
|
|
168
168
|
/** An arbitrary set of tags (key-value pairs) for this S3 bucket. */
|
|
169
|
-
|
|
169
|
+
Tags?: Bucket_Tag[];
|
|
170
170
|
/** Enables multiple versions of all objects in this bucket. */
|
|
171
|
-
|
|
171
|
+
VersioningConfiguration?: Bucket_VersioningConfiguration;
|
|
172
172
|
});
|
|
173
|
-
readonly
|
|
173
|
+
readonly Arn: string;
|
|
174
174
|
}"
|
|
175
175
|
`;
|
|
176
176
|
|
|
@@ -178,20 +178,20 @@ exports[`snapshot tests Function .d.ts class declaration 1`] = `
|
|
|
178
178
|
"export declare class Function {
|
|
179
179
|
constructor(props: {
|
|
180
180
|
/** The code for the function. */
|
|
181
|
-
|
|
181
|
+
Code: Function_Code;
|
|
182
182
|
/** The ARN of the function's execution role. */
|
|
183
|
-
|
|
183
|
+
Role: string;
|
|
184
184
|
/** The ARN of the function. */
|
|
185
|
-
|
|
185
|
+
Arn?: string;
|
|
186
186
|
/** The name of the Lambda function. */
|
|
187
|
-
|
|
187
|
+
FunctionName?: string;
|
|
188
188
|
/** The name of the method within your code that Lambda calls to run your function. */
|
|
189
|
-
|
|
189
|
+
Handler?: string;
|
|
190
190
|
/** The amount of memory available to the function at runtime. */
|
|
191
|
-
|
|
191
|
+
MemorySize?: number;
|
|
192
192
|
/** The identifier of the function's runtime. */
|
|
193
|
-
|
|
193
|
+
Runtime?: "java17" | "java21" | "nodejs18.x" | "nodejs20.x" | "python3.11" | "python3.12";
|
|
194
194
|
});
|
|
195
|
-
readonly
|
|
195
|
+
readonly Arn: string;
|
|
196
196
|
}"
|
|
197
197
|
`;
|