@pulumi/aws 7.52.0 → 7.52.1
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/acm/certificate.d.ts +1 -1
- package/acm/certificate.js +1 -1
- package/acm/certificateValidation.d.ts +2 -2
- package/acm/certificateValidation.js +2 -2
- package/appmesh/getVirtualGateway.d.ts +24 -0
- package/appmesh/getVirtualGateway.d.ts.map +1 -1
- package/appmesh/getVirtualGateway.js +24 -0
- package/appmesh/getVirtualGateway.js.map +1 -1
- package/cloudwatch/logS3TableIntegrationSource.d.ts +1 -1
- package/cloudwatch/logS3TableIntegrationSource.js +1 -1
- package/ebs/getEbsVolumes.d.ts +2 -2
- package/ebs/getEbsVolumes.js +2 -2
- package/ec2/flowLog.d.ts +58 -0
- package/ec2/flowLog.d.ts.map +1 -1
- package/ec2/flowLog.js +58 -0
- package/ec2/flowLog.js.map +1 -1
- package/ec2/getCoipPool.d.ts +22 -0
- package/ec2/getCoipPool.d.ts.map +1 -1
- package/ec2/getCoipPool.js +22 -0
- package/ec2/getCoipPool.js.map +1 -1
- package/ec2/getInstances.d.ts +42 -38
- package/ec2/getInstances.d.ts.map +1 -1
- package/ec2/getInstances.js +42 -38
- package/ec2/getInstances.js.map +1 -1
- package/ec2/getManagedPrefixLists.d.ts +2 -6
- package/ec2/getManagedPrefixLists.d.ts.map +1 -1
- package/ec2/getManagedPrefixLists.js +2 -6
- package/ec2/getManagedPrefixLists.js.map +1 -1
- package/ec2/getNatGateways.d.ts +2 -6
- package/ec2/getNatGateways.d.ts.map +1 -1
- package/ec2/getNatGateways.js +2 -6
- package/ec2/getNatGateways.js.map +1 -1
- package/ec2/getRouteTables.d.ts +38 -34
- package/ec2/getRouteTables.d.ts.map +1 -1
- package/ec2/getRouteTables.js +38 -34
- package/ec2/getRouteTables.js.map +1 -1
- package/ec2/getSubnets.d.ts +2 -2
- package/ec2/getSubnets.js +2 -2
- package/ec2/getVpcEndpoint.d.ts +2 -2
- package/ec2/getVpcEndpoint.js +2 -2
- package/ec2/getVpcEndpointService.d.ts +2 -2
- package/ec2/getVpcEndpointService.js +2 -2
- package/ec2/getVpcPeeringConnection.d.ts +2 -2
- package/ec2/getVpcPeeringConnection.js +2 -2
- package/ec2/getVpcPeeringConnections.d.ts +4 -8
- package/ec2/getVpcPeeringConnections.d.ts.map +1 -1
- package/ec2/getVpcPeeringConnections.js +4 -8
- package/ec2/getVpcPeeringConnections.js.map +1 -1
- package/ec2/getVpcs.d.ts +6 -6
- package/ec2/getVpcs.js +6 -6
- package/ec2/vpcEndpoint.d.ts +1 -1
- package/ec2/vpcEndpoint.js +1 -1
- package/ec2transitgateway/getAttachments.d.ts +2 -6
- package/ec2transitgateway/getAttachments.d.ts.map +1 -1
- package/ec2transitgateway/getAttachments.js +2 -6
- package/ec2transitgateway/getAttachments.js.map +1 -1
- package/ec2transitgateway/getPeeringAttachments.d.ts +2 -6
- package/ec2transitgateway/getPeeringAttachments.d.ts.map +1 -1
- package/ec2transitgateway/getPeeringAttachments.js +2 -6
- package/ec2transitgateway/getPeeringAttachments.js.map +1 -1
- package/ec2transitgateway/getVpcAttachments.d.ts +2 -6
- package/ec2transitgateway/getVpcAttachments.d.ts.map +1 -1
- package/ec2transitgateway/getVpcAttachments.js +2 -6
- package/ec2transitgateway/getVpcAttachments.js.map +1 -1
- package/getAvailabilityZone.d.ts +4 -4
- package/getAvailabilityZone.js +4 -4
- package/getAvailabilityZones.d.ts +2 -2
- package/getAvailabilityZones.js +2 -2
- package/glue/getDataCatalogEncryptionSettings.d.ts +18 -0
- package/glue/getDataCatalogEncryptionSettings.d.ts.map +1 -1
- package/glue/getDataCatalogEncryptionSettings.js +18 -0
- package/glue/getDataCatalogEncryptionSettings.js.map +1 -1
- package/inspector/getRulesPackages.d.ts +2 -2
- package/inspector/getRulesPackages.js +2 -2
- package/iot/roleAlias.d.ts +22 -0
- package/iot/roleAlias.d.ts.map +1 -1
- package/iot/roleAlias.js +22 -0
- package/iot/roleAlias.js.map +1 -1
- package/lambda/getFunction.d.ts +8 -8
- package/lambda/getFunction.js +8 -8
- package/lambda/getFunctionUrl.d.ts +2 -2
- package/lambda/getFunctionUrl.js +2 -2
- package/lambda/getFunctions.d.ts +70 -66
- package/lambda/getFunctions.d.ts.map +1 -1
- package/lambda/getFunctions.js +70 -66
- package/lambda/getFunctions.js.map +1 -1
- package/lambda/getInvocation.d.ts +8 -8
- package/lambda/getInvocation.js +8 -8
- package/lambda/layerVersionPermission.d.ts +5 -5
- package/lambda/layerVersionPermission.js +5 -5
- package/mq/broker.d.ts +2 -2
- package/mq/broker.js +2 -2
- package/mskconnect/connector.d.ts +1 -1
- package/mskconnect/connector.js +1 -1
- package/outposts/getOutpostInstanceType.d.ts +2 -2
- package/outposts/getOutpostInstanceType.js +2 -2
- package/package.json +2 -2
- package/quicksight/templateAlias.d.ts +1 -1
- package/quicksight/templateAlias.js +1 -1
- package/rds/instance.d.ts +5 -5
- package/rds/instance.js +5 -5
- package/secretsmanager/secretRotation.d.ts +1 -1
- package/secretsmanager/secretRotation.js +1 -1
- package/ssm/quicksetupConfigurationManager.d.ts +1 -1
- package/ssm/quicksetupConfigurationManager.js +1 -1
- package/storagegateway/cachesIscsiVolume.d.ts +1 -1
- package/storagegateway/cachesIscsiVolume.js +1 -1
- package/storagegateway/fileSystemAssociation.d.ts +1 -1
- package/storagegateway/fileSystemAssociation.js +1 -1
package/iot/roleAlias.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleAlias.js","sourceRoot":"","sources":["../../iot/roleAlias.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"roleAlias.js","sourceRoot":"","sources":["../../iot/roleAlias.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6BAA6B,CAAC;IAEpE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,EAAE,kBAAkB,CAAC;YACjE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;SAC9C;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA/FL,8BAgGC"}
|
package/lambda/getFunction.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ import * as outputs from "../types/output";
|
|
|
74
74
|
* name: "new-function",
|
|
75
75
|
* role: reference.then(reference => reference.role),
|
|
76
76
|
* handler: reference.then(reference => reference.handler),
|
|
77
|
-
* runtime:
|
|
77
|
+
* runtime: reference.then(reference => reference.runtime),
|
|
78
78
|
* memorySize: reference.then(reference => reference.memorySize),
|
|
79
79
|
* timeout: reference.then(reference => reference.timeout),
|
|
80
80
|
* architectures: reference.then(reference => reference.architectures),
|
|
@@ -114,9 +114,9 @@ import * as outputs from "../types/output";
|
|
|
114
114
|
* functionName: "my-durable-function",
|
|
115
115
|
* });
|
|
116
116
|
* export const durableSettings = {
|
|
117
|
-
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs
|
|
118
|
-
* executionTimeout:
|
|
119
|
-
* retentionPeriod:
|
|
117
|
+
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs.length).then(length => length > 0),
|
|
118
|
+
* executionTimeout: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.executionTimeout : null),
|
|
119
|
+
* retentionPeriod: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.retentionPeriod : null),
|
|
120
120
|
* };
|
|
121
121
|
* ```
|
|
122
122
|
*/
|
|
@@ -380,7 +380,7 @@ export interface GetFunctionResult {
|
|
|
380
380
|
* name: "new-function",
|
|
381
381
|
* role: reference.then(reference => reference.role),
|
|
382
382
|
* handler: reference.then(reference => reference.handler),
|
|
383
|
-
* runtime:
|
|
383
|
+
* runtime: reference.then(reference => reference.runtime),
|
|
384
384
|
* memorySize: reference.then(reference => reference.memorySize),
|
|
385
385
|
* timeout: reference.then(reference => reference.timeout),
|
|
386
386
|
* architectures: reference.then(reference => reference.architectures),
|
|
@@ -420,9 +420,9 @@ export interface GetFunctionResult {
|
|
|
420
420
|
* functionName: "my-durable-function",
|
|
421
421
|
* });
|
|
422
422
|
* export const durableSettings = {
|
|
423
|
-
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs
|
|
424
|
-
* executionTimeout:
|
|
425
|
-
* retentionPeriod:
|
|
423
|
+
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs.length).then(length => length > 0),
|
|
424
|
+
* executionTimeout: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.executionTimeout : null),
|
|
425
|
+
* retentionPeriod: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.retentionPeriod : null),
|
|
426
426
|
* };
|
|
427
427
|
* ```
|
|
428
428
|
*/
|
package/lambda/getFunction.js
CHANGED
|
@@ -102,7 +102,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
102
102
|
* name: "new-function",
|
|
103
103
|
* role: reference.then(reference => reference.role),
|
|
104
104
|
* handler: reference.then(reference => reference.handler),
|
|
105
|
-
* runtime:
|
|
105
|
+
* runtime: reference.then(reference => reference.runtime),
|
|
106
106
|
* memorySize: reference.then(reference => reference.memorySize),
|
|
107
107
|
* timeout: reference.then(reference => reference.timeout),
|
|
108
108
|
* architectures: reference.then(reference => reference.architectures),
|
|
@@ -142,9 +142,9 @@ const utilities = __importStar(require("../utilities"));
|
|
|
142
142
|
* functionName: "my-durable-function",
|
|
143
143
|
* });
|
|
144
144
|
* export const durableSettings = {
|
|
145
|
-
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs
|
|
146
|
-
* executionTimeout:
|
|
147
|
-
* retentionPeriod:
|
|
145
|
+
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs.length).then(length => length > 0),
|
|
146
|
+
* executionTimeout: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.executionTimeout : null),
|
|
147
|
+
* retentionPeriod: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.retentionPeriod : null),
|
|
148
148
|
* };
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
@@ -232,7 +232,7 @@ exports.getFunction = getFunction;
|
|
|
232
232
|
* name: "new-function",
|
|
233
233
|
* role: reference.then(reference => reference.role),
|
|
234
234
|
* handler: reference.then(reference => reference.handler),
|
|
235
|
-
* runtime:
|
|
235
|
+
* runtime: reference.then(reference => reference.runtime),
|
|
236
236
|
* memorySize: reference.then(reference => reference.memorySize),
|
|
237
237
|
* timeout: reference.then(reference => reference.timeout),
|
|
238
238
|
* architectures: reference.then(reference => reference.architectures),
|
|
@@ -272,9 +272,9 @@ exports.getFunction = getFunction;
|
|
|
272
272
|
* functionName: "my-durable-function",
|
|
273
273
|
* });
|
|
274
274
|
* export const durableSettings = {
|
|
275
|
-
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs
|
|
276
|
-
* executionTimeout:
|
|
277
|
-
* retentionPeriod:
|
|
275
|
+
* hasDurableConfig: durableFunction.then(durableFunction => durableFunction.durableConfigs.length).then(length => length > 0),
|
|
276
|
+
* executionTimeout: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.executionTimeout : null),
|
|
277
|
+
* retentionPeriod: Promise.all([durableFunction.then(durableFunction => durableFunction.durableConfigs.length), durableFunction]).then(([length, durableFunction]) => length > 0 ? durableFunction.durableConfigs?.[0]?.retentionPeriod : null),
|
|
278
278
|
* };
|
|
279
279
|
* ```
|
|
280
280
|
*/
|
|
@@ -51,7 +51,7 @@ import * as outputs from "../types/output";
|
|
|
51
51
|
* const example = aws.lambda.getFunctionUrl({
|
|
52
52
|
* functionName: "api_function",
|
|
53
53
|
* });
|
|
54
|
-
* const corsConfig =
|
|
54
|
+
* const corsConfig = Promise.all([example.then(example => example.cors.length), example]).then(([length, example]) => length > 0 ? example.cors?.[0] : null);
|
|
55
55
|
* const allowedOrigins = corsConfig != null ? corsConfig?.allowOrigins : [];
|
|
56
56
|
* export const corsAllowedOrigins = allowedOrigins;
|
|
57
57
|
* ```
|
|
@@ -171,7 +171,7 @@ export interface GetFunctionUrlResult {
|
|
|
171
171
|
* const example = aws.lambda.getFunctionUrl({
|
|
172
172
|
* functionName: "api_function",
|
|
173
173
|
* });
|
|
174
|
-
* const corsConfig =
|
|
174
|
+
* const corsConfig = Promise.all([example.then(example => example.cors.length), example]).then(([length, example]) => length > 0 ? example.cors?.[0] : null);
|
|
175
175
|
* const allowedOrigins = corsConfig != null ? corsConfig?.allowOrigins : [];
|
|
176
176
|
* export const corsAllowedOrigins = allowedOrigins;
|
|
177
177
|
* ```
|
package/lambda/getFunctionUrl.js
CHANGED
|
@@ -79,7 +79,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
79
79
|
* const example = aws.lambda.getFunctionUrl({
|
|
80
80
|
* functionName: "api_function",
|
|
81
81
|
* });
|
|
82
|
-
* const corsConfig =
|
|
82
|
+
* const corsConfig = Promise.all([example.then(example => example.cors.length), example]).then(([length, example]) => length > 0 ? example.cors?.[0] : null);
|
|
83
83
|
* const allowedOrigins = corsConfig != null ? corsConfig?.allowOrigins : [];
|
|
84
84
|
* export const corsAllowedOrigins = allowedOrigins;
|
|
85
85
|
* ```
|
|
@@ -144,7 +144,7 @@ exports.getFunctionUrl = getFunctionUrl;
|
|
|
144
144
|
* const example = aws.lambda.getFunctionUrl({
|
|
145
145
|
* functionName: "api_function",
|
|
146
146
|
* });
|
|
147
|
-
* const corsConfig =
|
|
147
|
+
* const corsConfig = Promise.all([example.then(example => example.cors.length), example]).then(([length, example]) => length > 0 ? example.cors?.[0] : null);
|
|
148
148
|
* const allowedOrigins = corsConfig != null ? corsConfig?.allowOrigins : [];
|
|
149
149
|
* export const corsAllowedOrigins = allowedOrigins;
|
|
150
150
|
* ```
|
package/lambda/getFunctions.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as aws from "@pulumi/aws";
|
|
12
12
|
*
|
|
13
13
|
* const all = aws.lambda.getFunctions({});
|
|
14
|
-
* export const functionCount = all.then(all => all.functionNames
|
|
14
|
+
* export const functionCount = all.then(all => all.functionNames.length);
|
|
15
15
|
* export const allFunctionNames = all.then(all => all.functionNames);
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
@@ -21,32 +21,34 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
22
22
|
* import * as aws from "@pulumi/aws";
|
|
23
23
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
24
|
+
* export = async () => {
|
|
25
|
+
* // Get all Lambda functions
|
|
26
|
+
* const all = await aws.lambda.getFunctions({});
|
|
27
|
+
* // Create CloudWatch alarms for all functions
|
|
28
|
+
* const lambdaErrors: aws.cloudwatch.MetricAlarm[] = [];
|
|
29
|
+
* all.functionNames.length.apply(rangeBody => {
|
|
30
|
+
* for (let range = 0; range < rangeBody; range++) {
|
|
31
|
+
* lambdaErrors.push(new aws.cloudwatch.MetricAlarm(`lambda_errors-${range}`, {
|
|
32
|
+
* name: `${all.functionNames[range]}-errors`,
|
|
33
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
34
|
+
* evaluationPeriods: 2,
|
|
35
|
+
* metricName: "Errors",
|
|
36
|
+
* namespace: "AWS/Lambda",
|
|
37
|
+
* period: 300,
|
|
38
|
+
* statistic: "Sum",
|
|
39
|
+
* threshold: 5,
|
|
40
|
+
* alarmDescription: "This metric monitors lambda errors",
|
|
41
|
+
* dimensions: {
|
|
42
|
+
* FunctionName: all.functionNames[range],
|
|
43
|
+
* },
|
|
44
|
+
* tags: {
|
|
45
|
+
* Environment: "monitoring",
|
|
46
|
+
* Purpose: "lambda-error-tracking",
|
|
47
|
+
* },
|
|
48
|
+
* }));
|
|
49
|
+
* }
|
|
50
|
+
* });
|
|
51
|
+
* }
|
|
50
52
|
* ```
|
|
51
53
|
*
|
|
52
54
|
* ### Filter Functions by Name Pattern
|
|
@@ -100,16 +102,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
100
102
|
* export = async () => {
|
|
101
103
|
* const all = await aws.lambda.getFunctions({});
|
|
102
104
|
* // Get detailed information for each function
|
|
103
|
-
* const details = .map(__index => (await aws.lambda.getFunction({
|
|
105
|
+
* const details = Array.from({length: all.functionNames.length}, (_, i) => i).apply(range => range.map(__index => (await aws.lambda.getFunction({
|
|
104
106
|
* functionName: all.functionNames[__index],
|
|
105
|
-
* })));
|
|
107
|
+
* }))));
|
|
106
108
|
* const functionInventory = .map(([i, name]) => ({
|
|
107
109
|
* name: name,
|
|
108
110
|
* arn: all.functionArns[i],
|
|
109
|
-
* runtime: details
|
|
110
|
-
* memorySize: details
|
|
111
|
-
* timeout: details
|
|
112
|
-
* handler: details
|
|
111
|
+
* runtime: details[i].runtime,
|
|
112
|
+
* memorySize: details[i].memorySize,
|
|
113
|
+
* timeout: details[i].timeout,
|
|
114
|
+
* handler: details[i].handler,
|
|
113
115
|
* }));
|
|
114
116
|
* return {
|
|
115
117
|
* functionInventory: functionInventory,
|
|
@@ -157,7 +159,7 @@ export interface GetFunctionsResult {
|
|
|
157
159
|
* import * as aws from "@pulumi/aws";
|
|
158
160
|
*
|
|
159
161
|
* const all = aws.lambda.getFunctions({});
|
|
160
|
-
* export const functionCount = all.then(all => all.functionNames
|
|
162
|
+
* export const functionCount = all.then(all => all.functionNames.length);
|
|
161
163
|
* export const allFunctionNames = all.then(all => all.functionNames);
|
|
162
164
|
* ```
|
|
163
165
|
*
|
|
@@ -167,32 +169,34 @@ export interface GetFunctionsResult {
|
|
|
167
169
|
* import * as pulumi from "@pulumi/pulumi";
|
|
168
170
|
* import * as aws from "@pulumi/aws";
|
|
169
171
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
172
|
+
* export = async () => {
|
|
173
|
+
* // Get all Lambda functions
|
|
174
|
+
* const all = await aws.lambda.getFunctions({});
|
|
175
|
+
* // Create CloudWatch alarms for all functions
|
|
176
|
+
* const lambdaErrors: aws.cloudwatch.MetricAlarm[] = [];
|
|
177
|
+
* all.functionNames.length.apply(rangeBody => {
|
|
178
|
+
* for (let range = 0; range < rangeBody; range++) {
|
|
179
|
+
* lambdaErrors.push(new aws.cloudwatch.MetricAlarm(`lambda_errors-${range}`, {
|
|
180
|
+
* name: `${all.functionNames[range]}-errors`,
|
|
181
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
182
|
+
* evaluationPeriods: 2,
|
|
183
|
+
* metricName: "Errors",
|
|
184
|
+
* namespace: "AWS/Lambda",
|
|
185
|
+
* period: 300,
|
|
186
|
+
* statistic: "Sum",
|
|
187
|
+
* threshold: 5,
|
|
188
|
+
* alarmDescription: "This metric monitors lambda errors",
|
|
189
|
+
* dimensions: {
|
|
190
|
+
* FunctionName: all.functionNames[range],
|
|
191
|
+
* },
|
|
192
|
+
* tags: {
|
|
193
|
+
* Environment: "monitoring",
|
|
194
|
+
* Purpose: "lambda-error-tracking",
|
|
195
|
+
* },
|
|
196
|
+
* }));
|
|
197
|
+
* }
|
|
198
|
+
* });
|
|
199
|
+
* }
|
|
196
200
|
* ```
|
|
197
201
|
*
|
|
198
202
|
* ### Filter Functions by Name Pattern
|
|
@@ -246,16 +250,16 @@ export interface GetFunctionsResult {
|
|
|
246
250
|
* export = async () => {
|
|
247
251
|
* const all = await aws.lambda.getFunctions({});
|
|
248
252
|
* // Get detailed information for each function
|
|
249
|
-
* const details = .map(__index => (await aws.lambda.getFunction({
|
|
253
|
+
* const details = Array.from({length: all.functionNames.length}, (_, i) => i).apply(range => range.map(__index => (await aws.lambda.getFunction({
|
|
250
254
|
* functionName: all.functionNames[__index],
|
|
251
|
-
* })));
|
|
255
|
+
* }))));
|
|
252
256
|
* const functionInventory = .map(([i, name]) => ({
|
|
253
257
|
* name: name,
|
|
254
258
|
* arn: all.functionArns[i],
|
|
255
|
-
* runtime: details
|
|
256
|
-
* memorySize: details
|
|
257
|
-
* timeout: details
|
|
258
|
-
* handler: details
|
|
259
|
+
* runtime: details[i].runtime,
|
|
260
|
+
* memorySize: details[i].memorySize,
|
|
261
|
+
* timeout: details[i].timeout,
|
|
262
|
+
* handler: details[i].handler,
|
|
259
263
|
* }));
|
|
260
264
|
* return {
|
|
261
265
|
* functionInventory: functionInventory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFunctions.d.ts","sourceRoot":"","sources":["../../lambda/getFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"getFunctions.d.ts","sourceRoot":"","sources":["../../lambda/getFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AACH,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAM9G;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAMtI;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C"}
|
package/lambda/getFunctions.js
CHANGED
|
@@ -40,7 +40,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
40
40
|
* import * as aws from "@pulumi/aws";
|
|
41
41
|
*
|
|
42
42
|
* const all = aws.lambda.getFunctions({});
|
|
43
|
-
* export const functionCount = all.then(all => all.functionNames
|
|
43
|
+
* export const functionCount = all.then(all => all.functionNames.length);
|
|
44
44
|
* export const allFunctionNames = all.then(all => all.functionNames);
|
|
45
45
|
* ```
|
|
46
46
|
*
|
|
@@ -50,32 +50,34 @@ const utilities = __importStar(require("../utilities"));
|
|
|
50
50
|
* import * as pulumi from "@pulumi/pulumi";
|
|
51
51
|
* import * as aws from "@pulumi/aws";
|
|
52
52
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
53
|
+
* export = async () => {
|
|
54
|
+
* // Get all Lambda functions
|
|
55
|
+
* const all = await aws.lambda.getFunctions({});
|
|
56
|
+
* // Create CloudWatch alarms for all functions
|
|
57
|
+
* const lambdaErrors: aws.cloudwatch.MetricAlarm[] = [];
|
|
58
|
+
* all.functionNames.length.apply(rangeBody => {
|
|
59
|
+
* for (let range = 0; range < rangeBody; range++) {
|
|
60
|
+
* lambdaErrors.push(new aws.cloudwatch.MetricAlarm(`lambda_errors-${range}`, {
|
|
61
|
+
* name: `${all.functionNames[range]}-errors`,
|
|
62
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
63
|
+
* evaluationPeriods: 2,
|
|
64
|
+
* metricName: "Errors",
|
|
65
|
+
* namespace: "AWS/Lambda",
|
|
66
|
+
* period: 300,
|
|
67
|
+
* statistic: "Sum",
|
|
68
|
+
* threshold: 5,
|
|
69
|
+
* alarmDescription: "This metric monitors lambda errors",
|
|
70
|
+
* dimensions: {
|
|
71
|
+
* FunctionName: all.functionNames[range],
|
|
72
|
+
* },
|
|
73
|
+
* tags: {
|
|
74
|
+
* Environment: "monitoring",
|
|
75
|
+
* Purpose: "lambda-error-tracking",
|
|
76
|
+
* },
|
|
77
|
+
* }));
|
|
78
|
+
* }
|
|
79
|
+
* });
|
|
80
|
+
* }
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
81
83
|
* ### Filter Functions by Name Pattern
|
|
@@ -129,16 +131,16 @@ const utilities = __importStar(require("../utilities"));
|
|
|
129
131
|
* export = async () => {
|
|
130
132
|
* const all = await aws.lambda.getFunctions({});
|
|
131
133
|
* // Get detailed information for each function
|
|
132
|
-
* const details = .map(__index => (await aws.lambda.getFunction({
|
|
134
|
+
* const details = Array.from({length: all.functionNames.length}, (_, i) => i).apply(range => range.map(__index => (await aws.lambda.getFunction({
|
|
133
135
|
* functionName: all.functionNames[__index],
|
|
134
|
-
* })));
|
|
136
|
+
* }))));
|
|
135
137
|
* const functionInventory = .map(([i, name]) => ({
|
|
136
138
|
* name: name,
|
|
137
139
|
* arn: all.functionArns[i],
|
|
138
|
-
* runtime: details
|
|
139
|
-
* memorySize: details
|
|
140
|
-
* timeout: details
|
|
141
|
-
* handler: details
|
|
140
|
+
* runtime: details[i].runtime,
|
|
141
|
+
* memorySize: details[i].memorySize,
|
|
142
|
+
* timeout: details[i].timeout,
|
|
143
|
+
* handler: details[i].handler,
|
|
142
144
|
* }));
|
|
143
145
|
* return {
|
|
144
146
|
* functionInventory: functionInventory,
|
|
@@ -166,7 +168,7 @@ exports.getFunctions = getFunctions;
|
|
|
166
168
|
* import * as aws from "@pulumi/aws";
|
|
167
169
|
*
|
|
168
170
|
* const all = aws.lambda.getFunctions({});
|
|
169
|
-
* export const functionCount = all.then(all => all.functionNames
|
|
171
|
+
* export const functionCount = all.then(all => all.functionNames.length);
|
|
170
172
|
* export const allFunctionNames = all.then(all => all.functionNames);
|
|
171
173
|
* ```
|
|
172
174
|
*
|
|
@@ -176,32 +178,34 @@ exports.getFunctions = getFunctions;
|
|
|
176
178
|
* import * as pulumi from "@pulumi/pulumi";
|
|
177
179
|
* import * as aws from "@pulumi/aws";
|
|
178
180
|
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
181
|
+
* export = async () => {
|
|
182
|
+
* // Get all Lambda functions
|
|
183
|
+
* const all = await aws.lambda.getFunctions({});
|
|
184
|
+
* // Create CloudWatch alarms for all functions
|
|
185
|
+
* const lambdaErrors: aws.cloudwatch.MetricAlarm[] = [];
|
|
186
|
+
* all.functionNames.length.apply(rangeBody => {
|
|
187
|
+
* for (let range = 0; range < rangeBody; range++) {
|
|
188
|
+
* lambdaErrors.push(new aws.cloudwatch.MetricAlarm(`lambda_errors-${range}`, {
|
|
189
|
+
* name: `${all.functionNames[range]}-errors`,
|
|
190
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
191
|
+
* evaluationPeriods: 2,
|
|
192
|
+
* metricName: "Errors",
|
|
193
|
+
* namespace: "AWS/Lambda",
|
|
194
|
+
* period: 300,
|
|
195
|
+
* statistic: "Sum",
|
|
196
|
+
* threshold: 5,
|
|
197
|
+
* alarmDescription: "This metric monitors lambda errors",
|
|
198
|
+
* dimensions: {
|
|
199
|
+
* FunctionName: all.functionNames[range],
|
|
200
|
+
* },
|
|
201
|
+
* tags: {
|
|
202
|
+
* Environment: "monitoring",
|
|
203
|
+
* Purpose: "lambda-error-tracking",
|
|
204
|
+
* },
|
|
205
|
+
* }));
|
|
206
|
+
* }
|
|
207
|
+
* });
|
|
208
|
+
* }
|
|
205
209
|
* ```
|
|
206
210
|
*
|
|
207
211
|
* ### Filter Functions by Name Pattern
|
|
@@ -255,16 +259,16 @@ exports.getFunctions = getFunctions;
|
|
|
255
259
|
* export = async () => {
|
|
256
260
|
* const all = await aws.lambda.getFunctions({});
|
|
257
261
|
* // Get detailed information for each function
|
|
258
|
-
* const details = .map(__index => (await aws.lambda.getFunction({
|
|
262
|
+
* const details = Array.from({length: all.functionNames.length}, (_, i) => i).apply(range => range.map(__index => (await aws.lambda.getFunction({
|
|
259
263
|
* functionName: all.functionNames[__index],
|
|
260
|
-
* })));
|
|
264
|
+
* }))));
|
|
261
265
|
* const functionInventory = .map(([i, name]) => ({
|
|
262
266
|
* name: name,
|
|
263
267
|
* arn: all.functionArns[i],
|
|
264
|
-
* runtime: details
|
|
265
|
-
* memorySize: details
|
|
266
|
-
* timeout: details
|
|
267
|
-
* handler: details
|
|
268
|
+
* runtime: details[i].runtime,
|
|
269
|
+
* memorySize: details[i].memorySize,
|
|
270
|
+
* timeout: details[i].timeout,
|
|
271
|
+
* handler: details[i].handler,
|
|
268
272
|
* }));
|
|
269
273
|
* return {
|
|
270
274
|
* functionInventory: functionInventory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFunctions.js","sourceRoot":"","sources":["../../lambda/getFunctions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getFunctions.js","sourceRoot":"","sources":["../../lambda/getFunctions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AA8BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuHG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAAiC;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC"}
|
|
@@ -51,11 +51,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
51
51
|
* })).then(invoke => invoke.result);
|
|
52
52
|
* // Use dynamic configuration
|
|
53
53
|
* const example = new aws.elasticache.Cluster("example", {
|
|
54
|
-
* clusterId: config?.cache?.clusterId,
|
|
55
|
-
* engine: config?.cache?.engine,
|
|
56
|
-
* nodeType: config?.cache?.nodeType,
|
|
54
|
+
* clusterId: String(config?.cache?.clusterId),
|
|
55
|
+
* engine: String(config?.cache?.engine),
|
|
56
|
+
* nodeType: String(config?.cache?.nodeType),
|
|
57
57
|
* numCacheNodes: Number(config?.cache?.nodes),
|
|
58
|
-
* parameterGroupName: config?.cache?.parameterGroup,
|
|
58
|
+
* parameterGroupName: String(config?.cache?.parameterGroup),
|
|
59
59
|
* tags: config?.tags,
|
|
60
60
|
* });
|
|
61
61
|
* ```
|
|
@@ -158,11 +158,11 @@ export interface GetInvocationResult {
|
|
|
158
158
|
* })).then(invoke => invoke.result);
|
|
159
159
|
* // Use dynamic configuration
|
|
160
160
|
* const example = new aws.elasticache.Cluster("example", {
|
|
161
|
-
* clusterId: config?.cache?.clusterId,
|
|
162
|
-
* engine: config?.cache?.engine,
|
|
163
|
-
* nodeType: config?.cache?.nodeType,
|
|
161
|
+
* clusterId: String(config?.cache?.clusterId),
|
|
162
|
+
* engine: String(config?.cache?.engine),
|
|
163
|
+
* nodeType: String(config?.cache?.nodeType),
|
|
164
164
|
* numCacheNodes: Number(config?.cache?.nodes),
|
|
165
|
-
* parameterGroupName: config?.cache?.parameterGroup,
|
|
165
|
+
* parameterGroupName: String(config?.cache?.parameterGroup),
|
|
166
166
|
* tags: config?.tags,
|
|
167
167
|
* });
|
|
168
168
|
* ```
|
package/lambda/getInvocation.js
CHANGED
|
@@ -80,11 +80,11 @@ const utilities = __importStar(require("../utilities"));
|
|
|
80
80
|
* })).then(invoke => invoke.result);
|
|
81
81
|
* // Use dynamic configuration
|
|
82
82
|
* const example = new aws.elasticache.Cluster("example", {
|
|
83
|
-
* clusterId: config?.cache?.clusterId,
|
|
84
|
-
* engine: config?.cache?.engine,
|
|
85
|
-
* nodeType: config?.cache?.nodeType,
|
|
83
|
+
* clusterId: String(config?.cache?.clusterId),
|
|
84
|
+
* engine: String(config?.cache?.engine),
|
|
85
|
+
* nodeType: String(config?.cache?.nodeType),
|
|
86
86
|
* numCacheNodes: Number(config?.cache?.nodes),
|
|
87
|
-
* parameterGroupName: config?.cache?.parameterGroup,
|
|
87
|
+
* parameterGroupName: String(config?.cache?.parameterGroup),
|
|
88
88
|
* tags: config?.tags,
|
|
89
89
|
* });
|
|
90
90
|
* ```
|
|
@@ -152,11 +152,11 @@ exports.getInvocation = getInvocation;
|
|
|
152
152
|
* })).then(invoke => invoke.result);
|
|
153
153
|
* // Use dynamic configuration
|
|
154
154
|
* const example = new aws.elasticache.Cluster("example", {
|
|
155
|
-
* clusterId: config?.cache?.clusterId,
|
|
156
|
-
* engine: config?.cache?.engine,
|
|
157
|
-
* nodeType: config?.cache?.nodeType,
|
|
155
|
+
* clusterId: String(config?.cache?.clusterId),
|
|
156
|
+
* engine: String(config?.cache?.engine),
|
|
157
|
+
* nodeType: String(config?.cache?.nodeType),
|
|
158
158
|
* numCacheNodes: Number(config?.cache?.nodes),
|
|
159
|
-
* parameterGroupName: config?.cache?.parameterGroup,
|
|
159
|
+
* parameterGroupName: String(config?.cache?.parameterGroup),
|
|
160
160
|
* tags: config?.tags,
|
|
161
161
|
* });
|
|
162
162
|
* ```
|