@intentius/chant-lexicon-aws 0.0.4 → 0.0.6
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 +11 -11
- package/dist/manifest.json +7 -1
- package/dist/meta.json +340 -320
- package/dist/skills/aws-cloudformation.md +1 -1
- package/dist/types/index.d.ts +39 -0
- package/package.json +2 -2
- package/src/codegen/docs.ts +80 -473
- package/src/codegen/generate.ts +1 -1
- package/src/codegen/sam.ts +11 -11
- package/src/generated/index.d.ts +39 -0
- package/src/generated/index.ts +4 -0
- package/src/generated/lexicon-aws.json +340 -320
- package/src/import/generator.test.ts +117 -6
- package/src/import/generator.ts +178 -62
- package/src/import/parser.ts +1 -1
- package/src/import/roundtrip-fixtures.test.ts +72 -11
- package/src/import/roundtrip.test.ts +6 -5
- package/src/index.ts +8 -1
- package/src/intrinsics.ts +27 -0
- package/src/parameter.ts +16 -0
- package/src/plugin.test.ts +1 -1
- package/src/plugin.ts +20 -48
- package/src/serializer.test.ts +4 -19
- package/src/spec/parse.ts +2 -2
package/src/codegen/generate.ts
CHANGED
|
@@ -200,7 +200,7 @@ function generateRuntimeIndex(
|
|
|
200
200
|
for (const pt of r.propertyTypes) {
|
|
201
201
|
const defName = extractDefName(pt.name, shortName);
|
|
202
202
|
const ptName = propertyTypeName(tsName, defName);
|
|
203
|
-
const ptCfnType = `${cfnType}.${pt.
|
|
203
|
+
const ptCfnType = `${cfnType}.${pt.specType}`;
|
|
204
204
|
propertyEntries.push({ tsName: ptName, resourceType: ptCfnType });
|
|
205
205
|
|
|
206
206
|
if (ptAliases) {
|
package/src/codegen/sam.ts
CHANGED
|
@@ -62,14 +62,14 @@ function samFunction(): SchemaParseResult {
|
|
|
62
62
|
propertyTypes: [
|
|
63
63
|
{
|
|
64
64
|
name: "Function_Environment",
|
|
65
|
-
|
|
65
|
+
specType: "Environment",
|
|
66
66
|
properties: [
|
|
67
67
|
{ name: "Variables", tsType: "Record<string, any>", required: false, constraints: {} },
|
|
68
68
|
],
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
name: "Function_VpcConfig",
|
|
72
|
-
|
|
72
|
+
specType: "VpcConfig",
|
|
73
73
|
properties: [
|
|
74
74
|
{ name: "SecurityGroupIds", tsType: "string[]", required: true, constraints: {} },
|
|
75
75
|
{ name: "SubnetIds", tsType: "string[]", required: true, constraints: {} },
|
|
@@ -77,7 +77,7 @@ function samFunction(): SchemaParseResult {
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
name: "Function_DeadLetterQueue",
|
|
80
|
-
|
|
80
|
+
specType: "DeadLetterQueue",
|
|
81
81
|
properties: [
|
|
82
82
|
{ name: "Type", tsType: "string", required: true, constraints: {} },
|
|
83
83
|
{ name: "TargetArn", tsType: "string", required: true, constraints: {} },
|
|
@@ -85,7 +85,7 @@ function samFunction(): SchemaParseResult {
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
name: "Function_DeploymentPreference",
|
|
88
|
-
|
|
88
|
+
specType: "DeploymentPreference",
|
|
89
89
|
properties: [
|
|
90
90
|
{ name: "Type", tsType: "string", required: true, constraints: {} },
|
|
91
91
|
{ name: "Enabled", tsType: "boolean", required: false, constraints: {} },
|
|
@@ -95,7 +95,7 @@ function samFunction(): SchemaParseResult {
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
name: "Function_EventSource",
|
|
98
|
-
|
|
98
|
+
specType: "EventSource",
|
|
99
99
|
properties: [
|
|
100
100
|
{ name: "Type", tsType: "string", required: true, constraints: {} },
|
|
101
101
|
{ name: "Properties", tsType: "any", required: false, constraints: {} },
|
|
@@ -103,7 +103,7 @@ function samFunction(): SchemaParseResult {
|
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
name: "Function_S3Location",
|
|
106
|
-
|
|
106
|
+
specType: "S3Location",
|
|
107
107
|
properties: [
|
|
108
108
|
{ name: "Bucket", tsType: "string", required: true, constraints: {} },
|
|
109
109
|
{ name: "Key", tsType: "string", required: true, constraints: {} },
|
|
@@ -148,7 +148,7 @@ function samApi(): SchemaParseResult {
|
|
|
148
148
|
propertyTypes: [
|
|
149
149
|
{
|
|
150
150
|
name: "Api_Auth",
|
|
151
|
-
|
|
151
|
+
specType: "Auth",
|
|
152
152
|
properties: [
|
|
153
153
|
{ name: "DefaultAuthorizer", tsType: "string", required: false, constraints: {} },
|
|
154
154
|
{ name: "Authorizers", tsType: "Record<string, any>", required: false, constraints: {} },
|
|
@@ -158,7 +158,7 @@ function samApi(): SchemaParseResult {
|
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
name: "Api_CorsConfiguration",
|
|
161
|
-
|
|
161
|
+
specType: "CorsConfiguration",
|
|
162
162
|
properties: [
|
|
163
163
|
{ name: "AllowOrigin", tsType: "string", required: true, constraints: {} },
|
|
164
164
|
{ name: "AllowHeaders", tsType: "string", required: false, constraints: {} },
|
|
@@ -199,7 +199,7 @@ function samHttpApi(): SchemaParseResult {
|
|
|
199
199
|
propertyTypes: [
|
|
200
200
|
{
|
|
201
201
|
name: "HttpApi_CorsConfiguration",
|
|
202
|
-
|
|
202
|
+
specType: "CorsConfiguration",
|
|
203
203
|
properties: [
|
|
204
204
|
{ name: "AllowOrigins", tsType: "string[]", required: false, constraints: {} },
|
|
205
205
|
{ name: "AllowHeaders", tsType: "string[]", required: false, constraints: {} },
|
|
@@ -233,7 +233,7 @@ function samSimpleTable(): SchemaParseResult {
|
|
|
233
233
|
propertyTypes: [
|
|
234
234
|
{
|
|
235
235
|
name: "SimpleTable_PrimaryKey",
|
|
236
|
-
|
|
236
|
+
specType: "PrimaryKey",
|
|
237
237
|
properties: [
|
|
238
238
|
{ name: "Name", tsType: "string", required: true, constraints: {} },
|
|
239
239
|
{ name: "Type", tsType: "string", required: true, constraints: {} },
|
|
@@ -299,7 +299,7 @@ function samStateMachine(): SchemaParseResult {
|
|
|
299
299
|
propertyTypes: [
|
|
300
300
|
{
|
|
301
301
|
name: "StateMachine_S3Location",
|
|
302
|
-
|
|
302
|
+
specType: "S3Location",
|
|
303
303
|
properties: [
|
|
304
304
|
{ name: "Bucket", tsType: "string", required: true, constraints: {} },
|
|
305
305
|
{ name: "Key", tsType: "string", required: true, constraints: {} },
|
package/src/generated/index.d.ts
CHANGED
|
@@ -19772,6 +19772,7 @@ export declare class MediaLiveChannel {
|
|
|
19772
19772
|
cdiInputSpecification?: MediaLiveChannel_CdiInputSpecification;
|
|
19773
19773
|
channelClass?: string;
|
|
19774
19774
|
channelEngineVersion?: MediaLiveChannel_ChannelEngineVersionRequest;
|
|
19775
|
+
channelSecurityGroups?: string[];
|
|
19775
19776
|
destinations?: MediaLiveChannel_OutputDestination[];
|
|
19776
19777
|
dryRun?: boolean;
|
|
19777
19778
|
encoderSettings?: MediaLiveChannel_EncoderSettings;
|
|
@@ -48827,6 +48828,7 @@ export declare class Av1ColorSpaceSettings {
|
|
|
48827
48828
|
export declare class Av1Settings {
|
|
48828
48829
|
constructor(props: {
|
|
48829
48830
|
afdSignaling?: string;
|
|
48831
|
+
bitDepth?: string;
|
|
48830
48832
|
bitrate?: number;
|
|
48831
48833
|
bufSize?: number;
|
|
48832
48834
|
colorSpaceSettings?: MediaLiveChannel_Av1ColorSpaceSettings;
|
|
@@ -100423,6 +100425,7 @@ export declare class MediaLiveChannel_Av1ColorSpaceSettings {
|
|
|
100423
100425
|
export declare class MediaLiveChannel_Av1Settings {
|
|
100424
100426
|
constructor(props: {
|
|
100425
100427
|
afdSignaling?: string;
|
|
100428
|
+
bitDepth?: string;
|
|
100426
100429
|
bitrate?: number;
|
|
100427
100430
|
bufSize?: number;
|
|
100428
100431
|
colorSpaceSettings?: MediaLiveChannel_Av1ColorSpaceSettings;
|
|
@@ -101693,7 +101696,9 @@ export declare class MediaLiveChannel_SrtGroupSettings {
|
|
|
101693
101696
|
|
|
101694
101697
|
export declare class MediaLiveChannel_SrtOutputDestinationSettings {
|
|
101695
101698
|
constructor(props: {
|
|
101699
|
+
connectionMode?: string;
|
|
101696
101700
|
encryptionPassphraseSecretArn?: string;
|
|
101701
|
+
listenerPort?: number;
|
|
101697
101702
|
streamId?: string;
|
|
101698
101703
|
url?: string;
|
|
101699
101704
|
});
|
|
@@ -102020,9 +102025,25 @@ export declare class MediaLiveInput_SrtCallerSourceRequest {
|
|
|
102020
102025
|
});
|
|
102021
102026
|
}
|
|
102022
102027
|
|
|
102028
|
+
export declare class MediaLiveInput_SrtListenerDecryptionRequest {
|
|
102029
|
+
constructor(props: {
|
|
102030
|
+
algorithm?: string;
|
|
102031
|
+
passphraseSecretArn?: string;
|
|
102032
|
+
});
|
|
102033
|
+
}
|
|
102034
|
+
|
|
102035
|
+
export declare class MediaLiveInput_SrtListenerSettingsRequest {
|
|
102036
|
+
constructor(props: {
|
|
102037
|
+
decryption?: MediaLiveInput_SrtListenerDecryptionRequest;
|
|
102038
|
+
minimumLatency?: number;
|
|
102039
|
+
streamId?: string;
|
|
102040
|
+
});
|
|
102041
|
+
}
|
|
102042
|
+
|
|
102023
102043
|
export declare class MediaLiveInput_SrtSettingsRequest {
|
|
102024
102044
|
constructor(props: {
|
|
102025
102045
|
srtCallerSources?: MediaLiveInput_SrtCallerSourceRequest[];
|
|
102046
|
+
srtListenerSettings?: MediaLiveInput_SrtListenerSettingsRequest;
|
|
102026
102047
|
});
|
|
102027
102048
|
}
|
|
102028
102049
|
|
|
@@ -140295,6 +140316,13 @@ export declare class SrtGroupSettings {
|
|
|
140295
140316
|
});
|
|
140296
140317
|
}
|
|
140297
140318
|
|
|
140319
|
+
export declare class SrtListenerDecryptionRequest {
|
|
140320
|
+
constructor(props: {
|
|
140321
|
+
algorithm?: string;
|
|
140322
|
+
passphraseSecretArn?: string;
|
|
140323
|
+
});
|
|
140324
|
+
}
|
|
140325
|
+
|
|
140298
140326
|
export declare class SrtListenerRouterInputConfiguration {
|
|
140299
140327
|
constructor(props: {
|
|
140300
140328
|
/** The minimum latency in milliseconds for the SRT protocol in listener mode. */
|
|
@@ -140315,9 +140343,19 @@ export declare class SrtListenerRouterOutputConfiguration {
|
|
|
140315
140343
|
});
|
|
140316
140344
|
}
|
|
140317
140345
|
|
|
140346
|
+
export declare class SrtListenerSettingsRequest {
|
|
140347
|
+
constructor(props: {
|
|
140348
|
+
decryption?: MediaLiveInput_SrtListenerDecryptionRequest;
|
|
140349
|
+
minimumLatency?: number;
|
|
140350
|
+
streamId?: string;
|
|
140351
|
+
});
|
|
140352
|
+
}
|
|
140353
|
+
|
|
140318
140354
|
export declare class SrtOutputDestinationSettings {
|
|
140319
140355
|
constructor(props: {
|
|
140356
|
+
connectionMode?: string;
|
|
140320
140357
|
encryptionPassphraseSecretArn?: string;
|
|
140358
|
+
listenerPort?: number;
|
|
140321
140359
|
streamId?: string;
|
|
140322
140360
|
url?: string;
|
|
140323
140361
|
});
|
|
@@ -140336,6 +140374,7 @@ export declare class SrtOutputSettings {
|
|
|
140336
140374
|
export declare class SrtSettingsRequest {
|
|
140337
140375
|
constructor(props: {
|
|
140338
140376
|
srtCallerSources?: MediaLiveInput_SrtCallerSourceRequest[];
|
|
140377
|
+
srtListenerSettings?: MediaLiveInput_SrtListenerSettingsRequest;
|
|
140339
140378
|
});
|
|
140340
140379
|
}
|
|
140341
140380
|
|
package/src/generated/index.ts
CHANGED
|
@@ -8695,6 +8695,8 @@ export const MediaLiveInput_Smpte2110ReceiverGroupSdpSettings = createProperty("
|
|
|
8695
8695
|
export const MediaLiveInput_Smpte2110ReceiverGroupSettings = createProperty("AWS::MediaLive::Input.Smpte2110ReceiverGroupSettings", "aws");
|
|
8696
8696
|
export const MediaLiveInput_SrtCallerDecryptionRequest = createProperty("AWS::MediaLive::Input.SrtCallerDecryptionRequest", "aws");
|
|
8697
8697
|
export const MediaLiveInput_SrtCallerSourceRequest = createProperty("AWS::MediaLive::Input.SrtCallerSourceRequest", "aws");
|
|
8698
|
+
export const MediaLiveInput_SrtListenerDecryptionRequest = createProperty("AWS::MediaLive::Input.SrtListenerDecryptionRequest", "aws");
|
|
8699
|
+
export const MediaLiveInput_SrtListenerSettingsRequest = createProperty("AWS::MediaLive::Input.SrtListenerSettingsRequest", "aws");
|
|
8698
8700
|
export const MediaLiveInput_SrtSettingsRequest = createProperty("AWS::MediaLive::Input.SrtSettingsRequest", "aws");
|
|
8699
8701
|
export const MediaLiveInputRouterOutputConfiguration = createProperty("AWS::MediaConnect::RouterOutput.MediaLiveInputRouterOutputConfiguration", "aws");
|
|
8700
8702
|
export const MediaLiveTransitEncryption = createProperty("AWS::MediaConnect::RouterOutput.MediaLiveTransitEncryption", "aws");
|
|
@@ -12900,8 +12902,10 @@ export const SrtCallerSourceRequest = createProperty("AWS::MediaLive::Input.SrtC
|
|
|
12900
12902
|
export const SrtDecryptionConfiguration = createProperty("AWS::MediaConnect::RouterInput.SrtDecryptionConfiguration", "aws");
|
|
12901
12903
|
export const SrtEncryptionConfiguration = createProperty("AWS::MediaConnect::RouterOutput.SrtEncryptionConfiguration", "aws");
|
|
12902
12904
|
export const SrtGroupSettings = createProperty("AWS::MediaLive::Channel.SrtGroupSettings", "aws");
|
|
12905
|
+
export const SrtListenerDecryptionRequest = createProperty("AWS::MediaLive::Input.SrtListenerDecryptionRequest", "aws");
|
|
12903
12906
|
export const SrtListenerRouterInputConfiguration = createProperty("AWS::MediaConnect::RouterInput.SrtListenerRouterInputConfiguration", "aws");
|
|
12904
12907
|
export const SrtListenerRouterOutputConfiguration = createProperty("AWS::MediaConnect::RouterOutput.SrtListenerRouterOutputConfiguration", "aws");
|
|
12908
|
+
export const SrtListenerSettingsRequest = createProperty("AWS::MediaLive::Input.SrtListenerSettingsRequest", "aws");
|
|
12905
12909
|
export const SrtOutputDestinationSettings = createProperty("AWS::MediaLive::Channel.SrtOutputDestinationSettings", "aws");
|
|
12906
12910
|
export const SrtOutputSettings = createProperty("AWS::MediaLive::Channel.SrtOutputSettings", "aws");
|
|
12907
12911
|
export const SrtSettingsRequest = createProperty("AWS::MediaLive::Input.SrtSettingsRequest", "aws");
|