@intentius/chant-lexicon-aws 0.0.5 → 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 +5 -5
- package/dist/manifest.json +1 -1
- package/dist/meta.json +70 -9
- package/dist/skills/aws-cloudformation.md +1 -1
- package/dist/types/index.d.ts +115 -11
- package/package.json +2 -2
- package/src/codegen/docs.ts +48 -348
- package/src/codegen/generate.ts +1 -1
- package/src/codegen/sam.ts +11 -11
- package/src/generated/index.d.ts +115 -11
- package/src/generated/index.ts +6 -1
- package/src/generated/lexicon-aws.json +70 -9
- package/src/import/roundtrip-fixtures.test.ts +6 -27
- package/src/plugin.ts +19 -48
- package/src/spec/parse.ts +2 -2
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;
|
|
@@ -25833,57 +25834,96 @@ export declare class ReplicationConfiguration {
|
|
|
25833
25834
|
|
|
25834
25835
|
export declare class ReplicationGroup {
|
|
25835
25836
|
constructor(props: {
|
|
25837
|
+
/** A user-created description for the replication group. */
|
|
25836
25838
|
replicationGroupDescription: string;
|
|
25839
|
+
/** A flag that enables encryption at rest when set to true.AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group. */
|
|
25837
25840
|
atRestEncryptionEnabled?: boolean;
|
|
25841
|
+
/** Reserved parameter. The password used to access a password protected server.AuthToken can be specified only on replication groups where TransitEncryptionEnabled is true. For more information. */
|
|
25838
25842
|
authToken?: string;
|
|
25843
|
+
/** Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. AutomaticFailoverEnabled must be enabled for Redis (cluster mode enabled) replication groups. */
|
|
25839
25844
|
automaticFailoverEnabled?: boolean;
|
|
25845
|
+
/** This parameter is currently disabled. */
|
|
25840
25846
|
autoMinorVersionUpgrade?: boolean;
|
|
25847
|
+
/** The compute and memory capacity of the nodes in the node group (shard). */
|
|
25841
25848
|
cacheNodeType?: string;
|
|
25849
|
+
/** The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. */
|
|
25842
25850
|
cacheParameterGroupName?: string;
|
|
25851
|
+
/** A list of cache security group names to associate with this replication group. */
|
|
25843
25852
|
cacheSecurityGroupNames?: string[];
|
|
25853
|
+
/** The name of the cache subnet group to be used for the replication group. */
|
|
25844
25854
|
cacheSubnetGroupName?: string;
|
|
25855
|
+
/** Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. For more information, see Modify cluster mode. */
|
|
25845
25856
|
clusterMode?: string;
|
|
25846
|
-
|
|
25847
|
-
|
|
25857
|
+
/** The configuration details of the replication group. */
|
|
25858
|
+
configurationEndPoint?: ReplicationGroup_Endpoint;
|
|
25859
|
+
/** Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. */
|
|
25848
25860
|
dataTieringEnabled?: boolean;
|
|
25861
|
+
/** The name of the cache engine to be used for the clusters in this replication group. */
|
|
25849
25862
|
engine?: string;
|
|
25863
|
+
/** The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation. */
|
|
25850
25864
|
engineVersion?: string;
|
|
25865
|
+
/** The name of the Global datastore */
|
|
25851
25866
|
globalReplicationGroupId?: string;
|
|
25867
|
+
/** The network type you choose when creating a replication group, either ipv4 | ipv6. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. */
|
|
25852
25868
|
ipDiscovery?: string;
|
|
25869
|
+
/** The ID of the KMS key used to encrypt the disk on the cluster. */
|
|
25853
25870
|
kmsKeyId?: string;
|
|
25871
|
+
/** Specifies the destination, format and type of the logs. */
|
|
25854
25872
|
logDeliveryConfigurations?: ReplicationGroup_LogDeliveryConfigurationRequest[];
|
|
25873
|
+
/** A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ. */
|
|
25855
25874
|
multiAZEnabled?: boolean;
|
|
25875
|
+
/** Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system */
|
|
25856
25876
|
networkType?: string;
|
|
25877
|
+
/** NodeGroupConfiguration is a property of the AWS::ElastiCache::ReplicationGroup resource that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. */
|
|
25857
25878
|
nodeGroupConfiguration?: ReplicationGroup_NodeGroupConfiguration[];
|
|
25879
|
+
/** The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent. */
|
|
25858
25880
|
notificationTopicArn?: string;
|
|
25881
|
+
/** The number of clusters this replication group initially has.This parameter is not used if there is more than one node group (shard). You should use ReplicasPerNodeGroup instead. */
|
|
25859
25882
|
numCacheClusters?: number;
|
|
25883
|
+
/** An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1. */
|
|
25860
25884
|
numNodeGroups?: number;
|
|
25885
|
+
/** The port number on which each member of the replication group accepts connections. */
|
|
25861
25886
|
port?: number;
|
|
25887
|
+
/** A list of EC2 Availability Zones in which the replication group's clusters are created. The order of the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in the first AZ in the list. This parameter is not used if there is more than one node group (shard). You should use NodeGroupConfiguration instead. */
|
|
25862
25888
|
preferredCacheClusterAZs?: string[];
|
|
25889
|
+
/** Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. */
|
|
25863
25890
|
preferredMaintenanceWindow?: string;
|
|
25891
|
+
/** The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available. */
|
|
25864
25892
|
primaryClusterId?: string;
|
|
25865
|
-
|
|
25866
|
-
|
|
25867
|
-
|
|
25868
|
-
|
|
25869
|
-
|
|
25870
|
-
|
|
25871
|
-
readerEndPointAddress?: string;
|
|
25872
|
-
readerEndPointPort?: string;
|
|
25893
|
+
/** The primary endpoint configuration */
|
|
25894
|
+
primaryEndPoint?: ReplicationGroup_Endpoint;
|
|
25895
|
+
readEndPoint?: Record<string, unknown>;
|
|
25896
|
+
/** The endpoint of the reader node in the replication group. */
|
|
25897
|
+
readerEndPoint?: ReplicationGroup_Endpoint;
|
|
25898
|
+
/** An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5. */
|
|
25873
25899
|
replicasPerNodeGroup?: number;
|
|
25900
|
+
/** The replication group identifier. This parameter is stored as a lowercase string. */
|
|
25874
25901
|
replicationGroupId?: string;
|
|
25902
|
+
/** One or more Amazon VPC security groups associated with this replication group. */
|
|
25875
25903
|
securityGroupIds?: string[];
|
|
25904
|
+
/** A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3. */
|
|
25876
25905
|
snapshotArns?: string[];
|
|
25906
|
+
/** The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to restoring while the new replication group is being created. */
|
|
25877
25907
|
snapshotName?: string;
|
|
25908
|
+
/** The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. */
|
|
25878
25909
|
snapshotRetentionLimit?: number;
|
|
25910
|
+
/** The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Redis (cluster mode enabled) replication groups. */
|
|
25879
25911
|
snapshottingClusterId?: string;
|
|
25912
|
+
/** The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). */
|
|
25880
25913
|
snapshotWindow?: string;
|
|
25914
|
+
/** A list of cost allocation tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue. */
|
|
25881
25915
|
tags?: ReplicationGroup_Tag[];
|
|
25916
|
+
/** A flag that enables in-transit encryption when set to true. */
|
|
25882
25917
|
transitEncryptionEnabled?: boolean;
|
|
25918
|
+
/** A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. When setting TransitEncryptionEnabled to true, you can set your TransitEncryptionMode to preferred in the same request, to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Redis OSS clients to use encrypted connections you can modify the value to required to allow encrypted connections only. Setting TransitEncryptionMode to required is a two-step process that requires you to first set the TransitEncryptionMode to preferred, after that you can set TransitEncryptionMode to required. This process will not trigger the replacement of the replication group. */
|
|
25883
25919
|
transitEncryptionMode?: string;
|
|
25920
|
+
/** The ID of user group to associate with the replication group. */
|
|
25884
25921
|
userGroupIds?: string[];
|
|
25885
25922
|
});
|
|
25886
|
-
readonly
|
|
25923
|
+
readonly configurationEndPoint: ReplicationGroup_Endpoint;
|
|
25924
|
+
readonly primaryEndPoint: ReplicationGroup_Endpoint;
|
|
25925
|
+
readonly readEndPoint: Record<string, unknown>;
|
|
25926
|
+
readonly readerEndPoint: ReplicationGroup_Endpoint;
|
|
25887
25927
|
}
|
|
25888
25928
|
|
|
25889
25929
|
export declare class ReplicationInstance {
|
|
@@ -48788,6 +48828,7 @@ export declare class Av1ColorSpaceSettings {
|
|
|
48788
48828
|
export declare class Av1Settings {
|
|
48789
48829
|
constructor(props: {
|
|
48790
48830
|
afdSignaling?: string;
|
|
48831
|
+
bitDepth?: string;
|
|
48791
48832
|
bitrate?: number;
|
|
48792
48833
|
bufSize?: number;
|
|
48793
48834
|
colorSpaceSettings?: MediaLiveChannel_Av1ColorSpaceSettings;
|
|
@@ -100384,6 +100425,7 @@ export declare class MediaLiveChannel_Av1ColorSpaceSettings {
|
|
|
100384
100425
|
export declare class MediaLiveChannel_Av1Settings {
|
|
100385
100426
|
constructor(props: {
|
|
100386
100427
|
afdSignaling?: string;
|
|
100428
|
+
bitDepth?: string;
|
|
100387
100429
|
bitrate?: number;
|
|
100388
100430
|
bufSize?: number;
|
|
100389
100431
|
colorSpaceSettings?: MediaLiveChannel_Av1ColorSpaceSettings;
|
|
@@ -101654,7 +101696,9 @@ export declare class MediaLiveChannel_SrtGroupSettings {
|
|
|
101654
101696
|
|
|
101655
101697
|
export declare class MediaLiveChannel_SrtOutputDestinationSettings {
|
|
101656
101698
|
constructor(props: {
|
|
101699
|
+
connectionMode?: string;
|
|
101657
101700
|
encryptionPassphraseSecretArn?: string;
|
|
101701
|
+
listenerPort?: number;
|
|
101658
101702
|
streamId?: string;
|
|
101659
101703
|
url?: string;
|
|
101660
101704
|
});
|
|
@@ -101981,9 +102025,25 @@ export declare class MediaLiveInput_SrtCallerSourceRequest {
|
|
|
101981
102025
|
});
|
|
101982
102026
|
}
|
|
101983
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
|
+
|
|
101984
102043
|
export declare class MediaLiveInput_SrtSettingsRequest {
|
|
101985
102044
|
constructor(props: {
|
|
101986
102045
|
srtCallerSources?: MediaLiveInput_SrtCallerSourceRequest[];
|
|
102046
|
+
srtListenerSettings?: MediaLiveInput_SrtListenerSettingsRequest;
|
|
101987
102047
|
});
|
|
101988
102048
|
}
|
|
101989
102049
|
|
|
@@ -108460,10 +108520,15 @@ export declare class Nodegroup_UpdateConfig {
|
|
|
108460
108520
|
|
|
108461
108521
|
export declare class NodeGroupConfiguration {
|
|
108462
108522
|
constructor(props: {
|
|
108523
|
+
/** Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to. */
|
|
108463
108524
|
nodeGroupId?: string;
|
|
108525
|
+
/** The Availability Zone where the primary node of this node group (shard) is launched. */
|
|
108464
108526
|
primaryAvailabilityZone?: string;
|
|
108527
|
+
/** A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount or ReplicasPerNodeGroup if not specified. */
|
|
108465
108528
|
replicaAvailabilityZones?: string[];
|
|
108529
|
+
/** The number of read replica nodes in this node group (shard). */
|
|
108466
108530
|
replicaCount?: number;
|
|
108531
|
+
/** A string of comma-separated values where the first set of values are the slot numbers (zero based), and the second set of values are the keyspaces for each slot. The following example specifies three slots (numbered 0, 1, and 2): 0,1,2,0-4999,5000-9999,10000-16,383. */
|
|
108467
108532
|
slots?: string;
|
|
108468
108533
|
});
|
|
108469
108534
|
}
|
|
@@ -129275,6 +129340,7 @@ export declare class ReplicationConfiguration_RepositoryFilter {
|
|
|
129275
129340
|
|
|
129276
129341
|
export declare class ReplicationGroup_CloudWatchLogsDestinationDetails {
|
|
129277
129342
|
constructor(props: {
|
|
129343
|
+
/** The name of the CloudWatch Logs log group. */
|
|
129278
129344
|
logGroup: string;
|
|
129279
129345
|
});
|
|
129280
129346
|
}
|
|
@@ -129286,8 +129352,18 @@ export declare class ReplicationGroup_DestinationDetails {
|
|
|
129286
129352
|
});
|
|
129287
129353
|
}
|
|
129288
129354
|
|
|
129355
|
+
export declare class ReplicationGroup_Endpoint {
|
|
129356
|
+
constructor(props: {
|
|
129357
|
+
/** The DNS hostname of the cache node. */
|
|
129358
|
+
address?: string;
|
|
129359
|
+
/** The port number that the cache engine is listening on. */
|
|
129360
|
+
port?: string;
|
|
129361
|
+
});
|
|
129362
|
+
}
|
|
129363
|
+
|
|
129289
129364
|
export declare class ReplicationGroup_KinesisFirehoseDestinationDetails {
|
|
129290
129365
|
constructor(props: {
|
|
129366
|
+
/** The name of the Kinesis Data Firehose delivery stream. */
|
|
129291
129367
|
deliveryStream: string;
|
|
129292
129368
|
});
|
|
129293
129369
|
}
|
|
@@ -129295,25 +129371,35 @@ export declare class ReplicationGroup_KinesisFirehoseDestinationDetails {
|
|
|
129295
129371
|
export declare class ReplicationGroup_LogDeliveryConfigurationRequest {
|
|
129296
129372
|
constructor(props: {
|
|
129297
129373
|
destinationDetails: ReplicationGroup_DestinationDetails;
|
|
129374
|
+
/** Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type. Valid values are either cloudwatch-logs or kinesis-firehose. */
|
|
129298
129375
|
destinationType: string;
|
|
129376
|
+
/** Valid values are either json or text. */
|
|
129299
129377
|
logFormat: string;
|
|
129378
|
+
/** Valid value is either slow-log, which refers to slow-log or engine-log. */
|
|
129300
129379
|
logType: string;
|
|
129301
129380
|
});
|
|
129302
129381
|
}
|
|
129303
129382
|
|
|
129304
129383
|
export declare class ReplicationGroup_NodeGroupConfiguration {
|
|
129305
129384
|
constructor(props: {
|
|
129385
|
+
/** Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to. */
|
|
129306
129386
|
nodeGroupId?: string;
|
|
129387
|
+
/** The Availability Zone where the primary node of this node group (shard) is launched. */
|
|
129307
129388
|
primaryAvailabilityZone?: string;
|
|
129389
|
+
/** A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount or ReplicasPerNodeGroup if not specified. */
|
|
129308
129390
|
replicaAvailabilityZones?: string[];
|
|
129391
|
+
/** The number of read replica nodes in this node group (shard). */
|
|
129309
129392
|
replicaCount?: number;
|
|
129393
|
+
/** A string of comma-separated values where the first set of values are the slot numbers (zero based), and the second set of values are the keyspaces for each slot. The following example specifies three slots (numbered 0, 1, and 2): 0,1,2,0-4999,5000-9999,10000-16,383. */
|
|
129310
129394
|
slots?: string;
|
|
129311
129395
|
});
|
|
129312
129396
|
}
|
|
129313
129397
|
|
|
129314
129398
|
export declare class ReplicationGroup_Tag {
|
|
129315
129399
|
constructor(props: {
|
|
129400
|
+
/** The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. */
|
|
129316
129401
|
key: string;
|
|
129402
|
+
/** The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. */
|
|
129317
129403
|
value: string;
|
|
129318
129404
|
});
|
|
129319
129405
|
}
|
|
@@ -140230,6 +140316,13 @@ export declare class SrtGroupSettings {
|
|
|
140230
140316
|
});
|
|
140231
140317
|
}
|
|
140232
140318
|
|
|
140319
|
+
export declare class SrtListenerDecryptionRequest {
|
|
140320
|
+
constructor(props: {
|
|
140321
|
+
algorithm?: string;
|
|
140322
|
+
passphraseSecretArn?: string;
|
|
140323
|
+
});
|
|
140324
|
+
}
|
|
140325
|
+
|
|
140233
140326
|
export declare class SrtListenerRouterInputConfiguration {
|
|
140234
140327
|
constructor(props: {
|
|
140235
140328
|
/** The minimum latency in milliseconds for the SRT protocol in listener mode. */
|
|
@@ -140250,9 +140343,19 @@ export declare class SrtListenerRouterOutputConfiguration {
|
|
|
140250
140343
|
});
|
|
140251
140344
|
}
|
|
140252
140345
|
|
|
140346
|
+
export declare class SrtListenerSettingsRequest {
|
|
140347
|
+
constructor(props: {
|
|
140348
|
+
decryption?: MediaLiveInput_SrtListenerDecryptionRequest;
|
|
140349
|
+
minimumLatency?: number;
|
|
140350
|
+
streamId?: string;
|
|
140351
|
+
});
|
|
140352
|
+
}
|
|
140353
|
+
|
|
140253
140354
|
export declare class SrtOutputDestinationSettings {
|
|
140254
140355
|
constructor(props: {
|
|
140356
|
+
connectionMode?: string;
|
|
140255
140357
|
encryptionPassphraseSecretArn?: string;
|
|
140358
|
+
listenerPort?: number;
|
|
140256
140359
|
streamId?: string;
|
|
140257
140360
|
url?: string;
|
|
140258
140361
|
});
|
|
@@ -140271,6 +140374,7 @@ export declare class SrtOutputSettings {
|
|
|
140271
140374
|
export declare class SrtSettingsRequest {
|
|
140272
140375
|
constructor(props: {
|
|
140273
140376
|
srtCallerSources?: MediaLiveInput_SrtCallerSourceRequest[];
|
|
140377
|
+
srtListenerSettings?: MediaLiveInput_SrtListenerSettingsRequest;
|
|
140274
140378
|
});
|
|
140275
140379
|
}
|
|
140276
140380
|
|
package/src/generated/index.ts
CHANGED
|
@@ -1087,7 +1087,7 @@ export const RemediationConfiguration = createResource("AWS::Config::Remediation
|
|
|
1087
1087
|
export const ReplicaKey = createResource("AWS::KMS::ReplicaKey", "aws", {"arn":"Arn","keyId":"KeyId"});
|
|
1088
1088
|
export const ReplicationConfig = createResource("AWS::DMS::ReplicationConfig", "aws", {"replicationConfigArn":"ReplicationConfigArn"});
|
|
1089
1089
|
export const ReplicationConfiguration = createResource("AWS::ECR::ReplicationConfiguration", "aws", {"registryId":"RegistryId"});
|
|
1090
|
-
export const ReplicationGroup = createResource("AWS::ElastiCache::ReplicationGroup", "aws", {"
|
|
1090
|
+
export const ReplicationGroup = createResource("AWS::ElastiCache::ReplicationGroup", "aws", {"configurationEndPoint":"ConfigurationEndPoint","primaryEndPoint":"PrimaryEndPoint","readEndPoint":"ReadEndPoint","readerEndPoint":"ReaderEndPoint"});
|
|
1091
1091
|
export const ReplicationInstance = createResource("AWS::DMS::ReplicationInstance", "aws", {"replicationInstancePublicIpAddresses":"ReplicationInstancePublicIpAddresses","id":"Id","replicationInstancePrivateIpAddresses":"ReplicationInstancePrivateIpAddresses"});
|
|
1092
1092
|
export const ReplicationSet = createResource("AWS::SSMIncidents::ReplicationSet", "aws", {"arn":"Arn"});
|
|
1093
1093
|
export const ReplicationSubnetGroup = createResource("AWS::DMS::ReplicationSubnetGroup", "aws", {"id":"Id"});
|
|
@@ -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");
|
|
@@ -11717,6 +11719,7 @@ export const ReplicationConfiguration_ReplicationRule = createProperty("AWS::ECR
|
|
|
11717
11719
|
export const ReplicationConfiguration_RepositoryFilter = createProperty("AWS::ECR::ReplicationConfiguration.RepositoryFilter", "aws");
|
|
11718
11720
|
export const ReplicationGroup_CloudWatchLogsDestinationDetails = createProperty("AWS::ElastiCache::ReplicationGroup.CloudWatchLogsDestinationDetails", "aws");
|
|
11719
11721
|
export const ReplicationGroup_DestinationDetails = createProperty("AWS::ElastiCache::ReplicationGroup.DestinationDetails", "aws");
|
|
11722
|
+
export const ReplicationGroup_Endpoint = createProperty("AWS::ElastiCache::ReplicationGroup.Endpoint", "aws");
|
|
11720
11723
|
export const ReplicationGroup_KinesisFirehoseDestinationDetails = createProperty("AWS::ElastiCache::ReplicationGroup.KinesisFirehoseDestinationDetails", "aws");
|
|
11721
11724
|
export const ReplicationGroup_LogDeliveryConfigurationRequest = createProperty("AWS::ElastiCache::ReplicationGroup.LogDeliveryConfigurationRequest", "aws");
|
|
11722
11725
|
export const ReplicationGroup_NodeGroupConfiguration = createProperty("AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration", "aws");
|
|
@@ -12899,8 +12902,10 @@ export const SrtCallerSourceRequest = createProperty("AWS::MediaLive::Input.SrtC
|
|
|
12899
12902
|
export const SrtDecryptionConfiguration = createProperty("AWS::MediaConnect::RouterInput.SrtDecryptionConfiguration", "aws");
|
|
12900
12903
|
export const SrtEncryptionConfiguration = createProperty("AWS::MediaConnect::RouterOutput.SrtEncryptionConfiguration", "aws");
|
|
12901
12904
|
export const SrtGroupSettings = createProperty("AWS::MediaLive::Channel.SrtGroupSettings", "aws");
|
|
12905
|
+
export const SrtListenerDecryptionRequest = createProperty("AWS::MediaLive::Input.SrtListenerDecryptionRequest", "aws");
|
|
12902
12906
|
export const SrtListenerRouterInputConfiguration = createProperty("AWS::MediaConnect::RouterInput.SrtListenerRouterInputConfiguration", "aws");
|
|
12903
12907
|
export const SrtListenerRouterOutputConfiguration = createProperty("AWS::MediaConnect::RouterOutput.SrtListenerRouterOutputConfiguration", "aws");
|
|
12908
|
+
export const SrtListenerSettingsRequest = createProperty("AWS::MediaLive::Input.SrtListenerSettingsRequest", "aws");
|
|
12904
12909
|
export const SrtOutputDestinationSettings = createProperty("AWS::MediaLive::Channel.SrtOutputDestinationSettings", "aws");
|
|
12905
12910
|
export const SrtOutputSettings = createProperty("AWS::MediaLive::Channel.SrtOutputSettings", "aws");
|
|
12906
12911
|
export const SrtSettingsRequest = createProperty("AWS::MediaLive::Input.SrtSettingsRequest", "aws");
|
|
@@ -64093,6 +64093,16 @@
|
|
|
64093
64093
|
"kind": "property",
|
|
64094
64094
|
"lexicon": "aws"
|
|
64095
64095
|
},
|
|
64096
|
+
"MediaLiveInput_SrtListenerDecryptionRequest": {
|
|
64097
|
+
"resourceType": "AWS::MediaLive::Input.SrtListenerDecryptionRequest",
|
|
64098
|
+
"kind": "property",
|
|
64099
|
+
"lexicon": "aws"
|
|
64100
|
+
},
|
|
64101
|
+
"MediaLiveInput_SrtListenerSettingsRequest": {
|
|
64102
|
+
"resourceType": "AWS::MediaLive::Input.SrtListenerSettingsRequest",
|
|
64103
|
+
"kind": "property",
|
|
64104
|
+
"lexicon": "aws"
|
|
64105
|
+
},
|
|
64096
64106
|
"MediaLiveInput_SrtSettingsRequest": {
|
|
64097
64107
|
"resourceType": "AWS::MediaLive::Input.SrtSettingsRequest",
|
|
64098
64108
|
"kind": "property",
|
|
@@ -87621,33 +87631,69 @@
|
|
|
87621
87631
|
"kind": "resource",
|
|
87622
87632
|
"lexicon": "aws",
|
|
87623
87633
|
"attrs": {
|
|
87624
|
-
"
|
|
87634
|
+
"configurationEndPoint": "ConfigurationEndPoint",
|
|
87635
|
+
"primaryEndPoint": "PrimaryEndPoint",
|
|
87636
|
+
"readEndPoint": "ReadEndPoint",
|
|
87637
|
+
"readerEndPoint": "ReaderEndPoint"
|
|
87625
87638
|
},
|
|
87626
87639
|
"propertyConstraints": {
|
|
87640
|
+
"NumNodeGroups": {
|
|
87641
|
+
"default": 1
|
|
87642
|
+
},
|
|
87643
|
+
"AutomaticFailoverEnabled": {
|
|
87644
|
+
"default": false
|
|
87645
|
+
},
|
|
87627
87646
|
"ReplicasPerNodeGroup": {
|
|
87628
87647
|
"minimum": 0,
|
|
87629
87648
|
"maximum": 5
|
|
87630
87649
|
},
|
|
87631
|
-
"
|
|
87632
|
-
"
|
|
87650
|
+
"TransitEncryptionEnabled": {
|
|
87651
|
+
"default": false
|
|
87633
87652
|
},
|
|
87634
87653
|
"NumCacheClusters": {
|
|
87635
87654
|
"minimum": 1,
|
|
87636
87655
|
"maximum": 6
|
|
87656
|
+
},
|
|
87657
|
+
"AtRestEncryptionEnabled": {
|
|
87658
|
+
"default": false
|
|
87659
|
+
},
|
|
87660
|
+
"SecurityGroupIds": {
|
|
87661
|
+
"format": "AWS::EC2::SecurityGroup.Ids"
|
|
87662
|
+
},
|
|
87663
|
+
"SnapshotRetentionLimit": {
|
|
87664
|
+
"default": 0
|
|
87637
87665
|
}
|
|
87638
87666
|
},
|
|
87639
87667
|
"createOnly": [
|
|
87668
|
+
"AtRestEncryptionEnabled",
|
|
87669
|
+
"CacheSubnetGroupName",
|
|
87670
|
+
"DataTieringEnabled",
|
|
87671
|
+
"GlobalReplicationGroupId",
|
|
87640
87672
|
"KmsKeyId",
|
|
87673
|
+
"NetworkType",
|
|
87641
87674
|
"Port",
|
|
87675
|
+
"PreferredCacheClusterAZs",
|
|
87676
|
+
"ReplicasPerNodeGroup",
|
|
87677
|
+
"ReplicationGroupId",
|
|
87642
87678
|
"SnapshotArns",
|
|
87643
|
-
"SnapshotName"
|
|
87679
|
+
"SnapshotName"
|
|
87680
|
+
],
|
|
87681
|
+
"writeOnly": [
|
|
87682
|
+
"AuthToken",
|
|
87683
|
+
"CacheParameterGroupName",
|
|
87684
|
+
"CacheSecurityGroupNames",
|
|
87644
87685
|
"CacheSubnetGroupName",
|
|
87645
|
-
"
|
|
87646
|
-
"
|
|
87647
|
-
"
|
|
87648
|
-
"
|
|
87649
|
-
"
|
|
87686
|
+
"EngineVersion",
|
|
87687
|
+
"NotificationTopicArn",
|
|
87688
|
+
"PreferredMaintenanceWindow",
|
|
87689
|
+
"SecurityGroupIds",
|
|
87690
|
+
"SnapshotArns",
|
|
87691
|
+
"SnapshotName",
|
|
87692
|
+
"NodeGroupConfiguration",
|
|
87693
|
+
"NumNodeGroups",
|
|
87650
87694
|
"ReplicasPerNodeGroup",
|
|
87695
|
+
"KmsKeyId",
|
|
87696
|
+
"PrimaryClusterId",
|
|
87651
87697
|
"PreferredCacheClusterAZs"
|
|
87652
87698
|
],
|
|
87653
87699
|
"primaryIdentifier": [
|
|
@@ -87664,6 +87710,11 @@
|
|
|
87664
87710
|
"kind": "property",
|
|
87665
87711
|
"lexicon": "aws"
|
|
87666
87712
|
},
|
|
87713
|
+
"ReplicationGroup_Endpoint": {
|
|
87714
|
+
"resourceType": "AWS::ElastiCache::ReplicationGroup.Endpoint",
|
|
87715
|
+
"kind": "property",
|
|
87716
|
+
"lexicon": "aws"
|
|
87717
|
+
},
|
|
87667
87718
|
"ReplicationGroup_KinesisFirehoseDestinationDetails": {
|
|
87668
87719
|
"resourceType": "AWS::ElastiCache::ReplicationGroup.KinesisFirehoseDestinationDetails",
|
|
87669
87720
|
"kind": "property",
|
|
@@ -99619,6 +99670,11 @@
|
|
|
99619
99670
|
"kind": "property",
|
|
99620
99671
|
"lexicon": "aws"
|
|
99621
99672
|
},
|
|
99673
|
+
"SrtListenerDecryptionRequest": {
|
|
99674
|
+
"resourceType": "AWS::MediaLive::Input.SrtListenerDecryptionRequest",
|
|
99675
|
+
"kind": "property",
|
|
99676
|
+
"lexicon": "aws"
|
|
99677
|
+
},
|
|
99622
99678
|
"SrtListenerRouterInputConfiguration": {
|
|
99623
99679
|
"resourceType": "AWS::MediaConnect::RouterInput.SrtListenerRouterInputConfiguration",
|
|
99624
99680
|
"kind": "property",
|
|
@@ -99629,6 +99685,11 @@
|
|
|
99629
99685
|
"kind": "property",
|
|
99630
99686
|
"lexicon": "aws"
|
|
99631
99687
|
},
|
|
99688
|
+
"SrtListenerSettingsRequest": {
|
|
99689
|
+
"resourceType": "AWS::MediaLive::Input.SrtListenerSettingsRequest",
|
|
99690
|
+
"kind": "property",
|
|
99691
|
+
"lexicon": "aws"
|
|
99692
|
+
},
|
|
99632
99693
|
"SrtOutputDestinationSettings": {
|
|
99633
99694
|
"resourceType": "AWS::MediaLive::Channel.SrtOutputDestinationSettings",
|
|
99634
99695
|
"kind": "property",
|
|
@@ -36,15 +36,13 @@ describe("CF roundtrip fixtures", () => {
|
|
|
36
36
|
// Verify at least one file was generated
|
|
37
37
|
expect(files.length).toBeGreaterThanOrEqual(1);
|
|
38
38
|
|
|
39
|
-
// Verify
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
);
|
|
43
|
-
expect(hasBarrel).toBe(true);
|
|
39
|
+
// Verify main file exists
|
|
40
|
+
const hasMain = files.some((f) => f.path === "main.ts");
|
|
41
|
+
expect(hasMain).toBe(true);
|
|
44
42
|
|
|
45
43
|
// Verify resource count: each resource should be represented in generated output
|
|
46
44
|
const resourceNames = Object.keys(template.Resources ?? {});
|
|
47
|
-
const mainFile = files.find((f) => f.path === "main.ts"
|
|
45
|
+
const mainFile = files.find((f) => f.path === "main.ts");
|
|
48
46
|
expect(mainFile).toBeDefined();
|
|
49
47
|
|
|
50
48
|
for (const name of resourceNames) {
|
|
@@ -81,27 +79,8 @@ describe("parameters.json build roundtrip", () => {
|
|
|
81
79
|
const srcDir = join(dir, "src");
|
|
82
80
|
mkdirSync(srcDir);
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
`import * as core from "@intentius/chant";`,
|
|
87
|
-
`export const $ = core.barrel(import.meta.dir);`,
|
|
88
|
-
].join("\n"));
|
|
89
|
-
|
|
90
|
-
// Rewrite the import to use the barrel
|
|
91
|
-
const rewritten = mainFile.content.replace(
|
|
92
|
-
/import \{[^}]+\} from "@intentius\/chant-lexicon-aws";/,
|
|
93
|
-
`import * as _ from "./_";`,
|
|
94
|
-
);
|
|
95
|
-
// Replace bare symbol references with _.Symbol
|
|
96
|
-
const symbols = extractImportedSymbols(mainFile.content);
|
|
97
|
-
let code = rewritten;
|
|
98
|
-
for (const sym of symbols) {
|
|
99
|
-
code = code.replace(new RegExp(`\\bnew ${sym}\\(`, "g"), `new _.${sym}(`);
|
|
100
|
-
code = code.replace(new RegExp(`(?<!\\.)\\b${sym}\``, "g"), `_.${sym}\``);
|
|
101
|
-
code = code.replace(new RegExp(`(?<!\\.)\\b${sym}\\(`, "g"), `_.${sym}(`);
|
|
102
|
-
code = code.replace(new RegExp(`(?<!\\.)\\b${sym}\\.`, "g"), `_.${sym}.`);
|
|
103
|
-
}
|
|
104
|
-
writeFileSync(join(srcDir, "main.ts"), code);
|
|
82
|
+
// Write generated code as-is (direct imports)
|
|
83
|
+
writeFileSync(join(srcDir, "main.ts"), mainFile.content);
|
|
105
84
|
|
|
106
85
|
// Build and verify
|
|
107
86
|
const result = await build(srcDir, [awsSerializer]);
|