stacktape 3.1.2 → 3.2.0-beta.11
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/bin/stacktape.js +63 -38
- package/index.d.ts +27 -1
- package/index.js +445 -459
- package/package.json +1 -1
- package/sdk.d.ts +247 -8
- package/sdk.js +11267 -12327
- package/types.d.ts +284 -5
package/types.d.ts
CHANGED
|
@@ -84,6 +84,21 @@ import type {
|
|
|
84
84
|
LambdaEfsMountProps,
|
|
85
85
|
CognitoAuthorizerProperties,
|
|
86
86
|
LambdaAuthorizerProperties,
|
|
87
|
+
ApplicationLoadBalancerCustomTriggerProps,
|
|
88
|
+
ApplicationLoadBalancerErrorRateTriggerProps,
|
|
89
|
+
ApplicationLoadBalancerUnhealthyTargetsTriggerProps,
|
|
90
|
+
HttpApiGatewayErrorRateTriggerProps,
|
|
91
|
+
HttpApiGatewayLatencyTriggerProps,
|
|
92
|
+
RelationalDatabaseReadLatencyTriggerProps,
|
|
93
|
+
RelationalDatabaseWriteLatencyTriggerProps,
|
|
94
|
+
RelationalDatabaseCPUUtilizationTriggerProps,
|
|
95
|
+
RelationalDatabaseFreeStorageTriggerProps,
|
|
96
|
+
RelationalDatabaseFreeMemoryTriggerProps,
|
|
97
|
+
RelationalDatabaseConnectionCountTriggerProps,
|
|
98
|
+
SqsQueueReceivedMessagesCountTriggerProps,
|
|
99
|
+
SqsQueueNotEmptyTrigger,
|
|
100
|
+
LambdaErrorRateTriggerProps,
|
|
101
|
+
LambdaDurationTriggerProps,
|
|
87
102
|
CustomResourceDefinitionProps,
|
|
88
103
|
CustomResourceInstanceProps,
|
|
89
104
|
DeploymentScriptProps,
|
|
@@ -98,6 +113,7 @@ declare const getTransformsSymbol: unique symbol;
|
|
|
98
113
|
declare const setResourceNameSymbol: unique symbol;
|
|
99
114
|
declare const resourceParamRefSymbol: unique symbol;
|
|
100
115
|
declare const baseTypePropertiesSymbol: unique symbol;
|
|
116
|
+
declare const alarmSymbol: unique symbol;
|
|
101
117
|
/**
|
|
102
118
|
* A reference to a resource parameter that will be resolved at runtime.
|
|
103
119
|
* Stores a reference to the resource for lazy name resolution.
|
|
@@ -105,6 +121,25 @@ declare const baseTypePropertiesSymbol: unique symbol;
|
|
|
105
121
|
/**
|
|
106
122
|
* Base class for type/properties structures (engines, packaging, events, etc.)
|
|
107
123
|
*/
|
|
124
|
+
/**
|
|
125
|
+
* Base class for type-only structures (no properties field, just type discriminator)
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
* Defines a CloudWatch alarm that monitors a metric and triggers notifications when thresholds are breached.
|
|
129
|
+
*
|
|
130
|
+
* Alarms can be attached to resources like Lambda functions, databases, load balancers, SQS queues, and HTTP API Gateways.
|
|
131
|
+
* When the alarm condition is met (e.g., error rate exceeds 5%), notifications are sent to configured targets (Slack, email, MS Teams).
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* new Alarm({
|
|
136
|
+
* trigger: new LambdaErrorRateTrigger({ thresholdPercent: 5 }),
|
|
137
|
+
* evaluation: { period: 60, evaluationPeriods: 3, breachedPeriods: 2 },
|
|
138
|
+
* notificationTargets: [{ slack: { url: $Secret('slack-webhook-url') } }],
|
|
139
|
+
* description: 'Lambda error rate exceeded 5%'
|
|
140
|
+
* })
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
108
143
|
/**
|
|
109
144
|
* Base resource class that provides common functionality
|
|
110
145
|
*/
|
|
@@ -131,6 +166,10 @@ declare const getPropertiesSymbol: unique symbol;
|
|
|
131
166
|
|
|
132
167
|
declare const getOverridesSymbol: unique symbol;
|
|
133
168
|
|
|
169
|
+
/**
|
|
170
|
+
* A reference to a resource parameter that will be resolved at runtime.
|
|
171
|
+
* Stores a reference to the resource for lazy name resolution.
|
|
172
|
+
*/
|
|
134
173
|
export declare class ResourceParamReference {
|
|
135
174
|
private __resource;
|
|
136
175
|
private __param;
|
|
@@ -141,6 +180,22 @@ export declare class ResourceParamReference {
|
|
|
141
180
|
valueOf(): string;
|
|
142
181
|
}
|
|
143
182
|
|
|
183
|
+
/**
|
|
184
|
+
* A reference to a resource parameter that will be resolved at runtime.
|
|
185
|
+
* Stores a reference to the resource for lazy name resolution.
|
|
186
|
+
*/
|
|
187
|
+
export declare class ResourceParamReference {
|
|
188
|
+
private __resource;
|
|
189
|
+
private __param;
|
|
190
|
+
readonly [resourceParamRefSymbol] = true;
|
|
191
|
+
constructor(resource: BaseResource, param: string);
|
|
192
|
+
toString(): string;
|
|
193
|
+
toJSON(): string;
|
|
194
|
+
valueOf(): string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Base class for type/properties structures (engines, packaging, events, etc.)
|
|
198
|
+
*/
|
|
144
199
|
export declare class BaseTypeProperties {
|
|
145
200
|
readonly type: string;
|
|
146
201
|
readonly properties: any;
|
|
@@ -148,6 +203,78 @@ export declare class BaseTypeProperties {
|
|
|
148
203
|
constructor(type: string, properties: any);
|
|
149
204
|
}
|
|
150
205
|
|
|
206
|
+
/**
|
|
207
|
+
* A reference to a resource parameter that will be resolved at runtime.
|
|
208
|
+
* Stores a reference to the resource for lazy name resolution.
|
|
209
|
+
*/
|
|
210
|
+
export declare class ResourceParamReference {
|
|
211
|
+
private __resource;
|
|
212
|
+
private __param;
|
|
213
|
+
readonly [resourceParamRefSymbol] = true;
|
|
214
|
+
constructor(resource: BaseResource, param: string);
|
|
215
|
+
toString(): string;
|
|
216
|
+
toJSON(): string;
|
|
217
|
+
valueOf(): string;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Base class for type/properties structures (engines, packaging, events, etc.)
|
|
221
|
+
*/
|
|
222
|
+
export declare class BaseTypeProperties {
|
|
223
|
+
readonly type: string;
|
|
224
|
+
readonly properties: any;
|
|
225
|
+
readonly [baseTypePropertiesSymbol] = true;
|
|
226
|
+
constructor(type: string, properties: any);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Base class for type-only structures (no properties field, just type discriminator)
|
|
230
|
+
*/
|
|
231
|
+
export declare class BaseTypeOnly {
|
|
232
|
+
readonly type: string;
|
|
233
|
+
readonly [baseTypePropertiesSymbol] = true;
|
|
234
|
+
constructor(type: string);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Base class for type-only structures (no properties field, just type discriminator)
|
|
239
|
+
*/
|
|
240
|
+
export declare class BaseTypeOnly {
|
|
241
|
+
readonly type: string;
|
|
242
|
+
readonly [baseTypePropertiesSymbol] = true;
|
|
243
|
+
constructor(type: string);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Defines a CloudWatch alarm that monitors a metric and triggers notifications when thresholds are breached.
|
|
247
|
+
*
|
|
248
|
+
* Alarms can be attached to resources like Lambda functions, databases, load balancers, SQS queues, and HTTP API Gateways.
|
|
249
|
+
* When the alarm condition is met (e.g., error rate exceeds 5%), notifications are sent to configured targets (Slack, email, MS Teams).
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```ts
|
|
253
|
+
* new Alarm({
|
|
254
|
+
* trigger: new LambdaErrorRateTrigger({ thresholdPercent: 5 }),
|
|
255
|
+
* evaluation: { period: 60, evaluationPeriods: 3, breachedPeriods: 2 },
|
|
256
|
+
* notificationTargets: [{ slack: { url: $Secret('slack-webhook-url') } }],
|
|
257
|
+
* description: 'Lambda error rate exceeded 5%'
|
|
258
|
+
* })
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
export declare class Alarm {
|
|
262
|
+
readonly [alarmSymbol] = true;
|
|
263
|
+
readonly trigger: any;
|
|
264
|
+
readonly evaluation?: any;
|
|
265
|
+
readonly notificationTargets?: any[];
|
|
266
|
+
readonly description?: string;
|
|
267
|
+
constructor(props: {
|
|
268
|
+
trigger: any;
|
|
269
|
+
evaluation?: any;
|
|
270
|
+
notificationTargets?: any[];
|
|
271
|
+
description?: string;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Base resource class that provides common functionality
|
|
277
|
+
*/
|
|
151
278
|
export declare class BaseResource {
|
|
152
279
|
private readonly _type;
|
|
153
280
|
private _properties;
|
|
@@ -219,7 +346,7 @@ export type GetConfigParams = {
|
|
|
219
346
|
type WebServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | GlobalAwsServiceConstant;
|
|
220
347
|
type PrivateServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
|
|
221
348
|
type WorkerServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
|
|
222
|
-
type MultiContainerWorkloadConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
|
|
349
|
+
type MultiContainerWorkloadConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | LambdaFunction | GlobalAwsServiceConstant;
|
|
223
350
|
type LambdaFunctionConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | WebService | GlobalAwsServiceConstant;
|
|
224
351
|
type BatchJobConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
|
|
225
352
|
type StateMachineConnectTo = Function | BatchJob | GlobalAwsServiceConstant;
|
|
@@ -239,6 +366,18 @@ export type ContainerWithObjectEnv = Omit<import('./sdk').ContainerWorkloadConta
|
|
|
239
366
|
environment?: { [envVarName: string]: string | number | boolean };
|
|
240
367
|
};
|
|
241
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Batch job container configuration with object-style environment variables.
|
|
371
|
+
* Environment is specified as { KEY: 'value' } for better developer experience.
|
|
372
|
+
*/
|
|
373
|
+
export type BatchJobContainerWithObjectEnv = Omit<import('./sdk').BatchJobContainer, 'environment'> & {
|
|
374
|
+
/**
|
|
375
|
+
* Environment variables to inject into the batch job container.
|
|
376
|
+
* Specified as key-value pairs: { PORT: '3000', NODE_ENV: 'production' }
|
|
377
|
+
*/
|
|
378
|
+
environment?: { [envVarName: string]: string | number | boolean };
|
|
379
|
+
};
|
|
380
|
+
|
|
242
381
|
// Augmented props types with connectTo, environment, overrides, and transforms
|
|
243
382
|
|
|
244
383
|
export type WebServiceProps = Omit<SdkWebServiceProps, 'connectTo' | 'environment'> & {
|
|
@@ -366,7 +505,7 @@ export type LambdaFunctionProps = Omit<SdkLambdaFunctionProps, 'connectTo' | 'en
|
|
|
366
505
|
transforms?: LambdaFunctionTransforms;
|
|
367
506
|
};
|
|
368
507
|
|
|
369
|
-
export type BatchJobProps = Omit<SdkBatchJobProps, 'connectTo' | 'environment'> & {
|
|
508
|
+
export type BatchJobProps = Omit<SdkBatchJobProps, 'connectTo' | 'environment' | 'container'> & {
|
|
370
509
|
/**
|
|
371
510
|
* List of resources or AWS services to which this resource receives permissions.
|
|
372
511
|
* Automatically grants necessary IAM permissions for accessing the connected resources.
|
|
@@ -377,6 +516,10 @@ export type BatchJobProps = Omit<SdkBatchJobProps, 'connectTo' | 'environment'>
|
|
|
377
516
|
* You can reference resource parameters using directive syntax: $ResourceParam('resourceName', 'paramName')
|
|
378
517
|
*/
|
|
379
518
|
environment?: { [envVarName: string]: string | number | boolean };
|
|
519
|
+
/**
|
|
520
|
+
* Container configuration for the batch job.
|
|
521
|
+
*/
|
|
522
|
+
container: BatchJobContainerWithObjectEnv;
|
|
380
523
|
/**
|
|
381
524
|
* Override properties of underlying CloudFormation resources.
|
|
382
525
|
* Allows fine-grained control over the generated infrastructure.
|
|
@@ -507,7 +650,13 @@ export type BucketPropsWithOverrides = BucketProps & {
|
|
|
507
650
|
transforms?: BucketTransforms;
|
|
508
651
|
};
|
|
509
652
|
|
|
510
|
-
export type HostingBucketPropsWithOverrides = HostingBucketProps & {
|
|
653
|
+
export type HostingBucketPropsWithOverrides = Omit<HostingBucketProps, 'injectEnvironment'> & {
|
|
654
|
+
/**
|
|
655
|
+
* Injects referenced parameters into all HTML files in the uploadDirectoryPath.
|
|
656
|
+
* These parameters can be accessed by any JavaScript script using window.STP_INJECTED_ENV.VARIABLE_NAME.
|
|
657
|
+
* This is useful for automatically referencing parameters that are only known after deployment, such as the URL of an API Gateway.
|
|
658
|
+
*/
|
|
659
|
+
injectEnvironment?: { [envVarName: string]: string | number | boolean };
|
|
511
660
|
/**
|
|
512
661
|
* Override properties of underlying CloudFormation resources.
|
|
513
662
|
* Allows fine-grained control over the generated infrastructure.
|
|
@@ -1806,6 +1955,12 @@ export declare class SqsQueue extends BaseResource {
|
|
|
1806
1955
|
*/
|
|
1807
1956
|
constructor(properties: SqsQueuePropsWithOverrides);
|
|
1808
1957
|
constructor(name: string, properties: SqsQueuePropsWithOverrides);
|
|
1958
|
+
/** Queue ARN */
|
|
1959
|
+
readonly arn: string;
|
|
1960
|
+
/** Queue URL */
|
|
1961
|
+
readonly url: string;
|
|
1962
|
+
/** Queue name */
|
|
1963
|
+
readonly name: string;
|
|
1809
1964
|
}
|
|
1810
1965
|
export declare class SnsTopic extends BaseResource {
|
|
1811
1966
|
/**
|
|
@@ -1817,6 +1972,10 @@ export declare class SnsTopic extends BaseResource {
|
|
|
1817
1972
|
*/
|
|
1818
1973
|
constructor(properties: SnsTopicPropsWithOverrides);
|
|
1819
1974
|
constructor(name: string, properties: SnsTopicPropsWithOverrides);
|
|
1975
|
+
/** Topic ARN */
|
|
1976
|
+
readonly arn: string;
|
|
1977
|
+
/** Topic name */
|
|
1978
|
+
readonly name: string;
|
|
1820
1979
|
}
|
|
1821
1980
|
export declare class WebAppFirewall extends BaseResource {
|
|
1822
1981
|
/**
|
|
@@ -2145,7 +2304,7 @@ export declare class StacktapeLambdaBuildpackPackaging extends BaseTypePropertie
|
|
|
2145
2304
|
*
|
|
2146
2305
|
* **Supported languages:** JavaScript, TypeScript, Python, Java, and Go.
|
|
2147
2306
|
*
|
|
2148
|
-
* For JS/TS, your code is bundled into a single file
|
|
2307
|
+
* For JS/TS, your code is bundled into a single file. Source maps are automatically generated.
|
|
2149
2308
|
* Packages are cached based on a checksum, so unchanged code is not re-packaged.
|
|
2150
2309
|
*/
|
|
2151
2310
|
constructor(properties: StpBuildpackLambdaPackagingProps);
|
|
@@ -2238,7 +2397,7 @@ export declare class StacktapeImageBuildpackPackaging extends BaseTypeProperties
|
|
|
2238
2397
|
*
|
|
2239
2398
|
* **Supported languages:** JavaScript, TypeScript, Python, Java, and Go.
|
|
2240
2399
|
*
|
|
2241
|
-
* For JS/TS, your code is bundled into a single file
|
|
2400
|
+
* For JS/TS, your code is bundled into a single file with source maps.
|
|
2242
2401
|
* The resulting image is uploaded to a managed ECR repository.
|
|
2243
2402
|
*/
|
|
2244
2403
|
constructor(properties: StpBuildpackCwImagePackagingProps);
|
|
@@ -2642,6 +2801,126 @@ export declare class LambdaAuthorizer extends BaseTypeProperties {
|
|
|
2642
2801
|
readonly type: 'lambda';
|
|
2643
2802
|
}
|
|
2644
2803
|
|
|
2804
|
+
export declare class ApplicationLoadBalancerCustomTrigger extends BaseTypeProperties {
|
|
2805
|
+
/**
|
|
2806
|
+
* Triggers an alarm based on any Application Load Balancer CloudWatch metric (e.g., connection counts, request counts, target response times).
|
|
2807
|
+
*/
|
|
2808
|
+
constructor(properties: ApplicationLoadBalancerCustomTriggerProps);
|
|
2809
|
+
readonly type: 'application-load-balancer-custom';
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
export declare class ApplicationLoadBalancerErrorRateTrigger extends BaseTypeProperties {
|
|
2813
|
+
/**
|
|
2814
|
+
* Triggers an alarm when the Application Load Balancer error rate (percentage of 4xx/5xx responses) exceeds the threshold.
|
|
2815
|
+
*/
|
|
2816
|
+
constructor(properties: ApplicationLoadBalancerErrorRateTriggerProps);
|
|
2817
|
+
readonly type: 'application-load-balancer-error-rate';
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
export declare class ApplicationLoadBalancerUnhealthyTargetsTrigger extends BaseTypeProperties {
|
|
2821
|
+
/**
|
|
2822
|
+
* Triggers an alarm when the percentage of unhealthy targets behind the Application Load Balancer exceeds the threshold.
|
|
2823
|
+
*/
|
|
2824
|
+
constructor(properties: ApplicationLoadBalancerUnhealthyTargetsTriggerProps);
|
|
2825
|
+
readonly type: 'application-load-balancer-unhealthy-targets';
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
export declare class HttpApiGatewayErrorRateTrigger extends BaseTypeProperties {
|
|
2829
|
+
/**
|
|
2830
|
+
* Triggers an alarm when the HTTP API Gateway error rate (percentage of 4xx/5xx responses) exceeds the threshold.
|
|
2831
|
+
*/
|
|
2832
|
+
constructor(properties: HttpApiGatewayErrorRateTriggerProps);
|
|
2833
|
+
readonly type: 'http-api-gateway-error-rate';
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
export declare class HttpApiGatewayLatencyTrigger extends BaseTypeProperties {
|
|
2837
|
+
/**
|
|
2838
|
+
* Triggers an alarm when HTTP API Gateway latency exceeds the threshold. Latency is measured from request receipt to response sent.
|
|
2839
|
+
*/
|
|
2840
|
+
constructor(properties: HttpApiGatewayLatencyTriggerProps);
|
|
2841
|
+
readonly type: 'http-api-gateway-latency';
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
export declare class RelationalDatabaseReadLatencyTrigger extends BaseTypeProperties {
|
|
2845
|
+
/**
|
|
2846
|
+
* Triggers an alarm when database read latency (average time for read I/O operations) exceeds the threshold.
|
|
2847
|
+
*/
|
|
2848
|
+
constructor(properties: RelationalDatabaseReadLatencyTriggerProps);
|
|
2849
|
+
readonly type: 'database-read-latency';
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
export declare class RelationalDatabaseWriteLatencyTrigger extends BaseTypeProperties {
|
|
2853
|
+
/**
|
|
2854
|
+
* Triggers an alarm when database write latency (average time for write I/O operations) exceeds the threshold.
|
|
2855
|
+
*/
|
|
2856
|
+
constructor(properties: RelationalDatabaseWriteLatencyTriggerProps);
|
|
2857
|
+
readonly type: 'database-write-latency';
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
export declare class RelationalDatabaseCPUUtilizationTrigger extends BaseTypeProperties {
|
|
2861
|
+
/**
|
|
2862
|
+
* Triggers an alarm when database CPU utilization exceeds the threshold percentage.
|
|
2863
|
+
*/
|
|
2864
|
+
constructor(properties: RelationalDatabaseCPUUtilizationTriggerProps);
|
|
2865
|
+
readonly type: 'database-cpu-utilization';
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
export declare class RelationalDatabaseFreeStorageTrigger extends BaseTypeProperties {
|
|
2869
|
+
/**
|
|
2870
|
+
* Triggers an alarm when available database storage falls below the threshold (in MB).
|
|
2871
|
+
*/
|
|
2872
|
+
constructor(properties: RelationalDatabaseFreeStorageTriggerProps);
|
|
2873
|
+
readonly type: 'database-free-storage';
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
export declare class RelationalDatabaseFreeMemoryTrigger extends BaseTypeProperties {
|
|
2877
|
+
/**
|
|
2878
|
+
* Triggers an alarm when available database memory falls below the threshold (in MB).
|
|
2879
|
+
*/
|
|
2880
|
+
constructor(properties: RelationalDatabaseFreeMemoryTriggerProps);
|
|
2881
|
+
readonly type: 'database-free-memory';
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
export declare class RelationalDatabaseConnectionCountTrigger extends BaseTypeProperties {
|
|
2885
|
+
/**
|
|
2886
|
+
* Triggers an alarm when the number of database connections exceeds the threshold.
|
|
2887
|
+
*/
|
|
2888
|
+
constructor(properties: RelationalDatabaseConnectionCountTriggerProps);
|
|
2889
|
+
readonly type: 'database-connection-count';
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
export declare class SqsQueueReceivedMessagesCountTrigger extends BaseTypeProperties {
|
|
2893
|
+
/**
|
|
2894
|
+
* Triggers an alarm when the number of messages received from an SQS queue crosses the threshold.
|
|
2895
|
+
*/
|
|
2896
|
+
constructor(properties: SqsQueueReceivedMessagesCountTriggerProps);
|
|
2897
|
+
readonly type: 'sqs-queue-received-messages-count';
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
export declare class SqsQueueNotEmptyTrigger extends BaseTypeOnly {
|
|
2901
|
+
/**
|
|
2902
|
+
* Triggers an alarm if the SQS queue is not empty. Useful for monitoring dead-letter queues.
|
|
2903
|
+
*/
|
|
2904
|
+
constructor();
|
|
2905
|
+
readonly type: 'sqs-queue-not-empty';
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
export declare class LambdaErrorRateTrigger extends BaseTypeProperties {
|
|
2909
|
+
/**
|
|
2910
|
+
* Triggers an alarm when the Lambda function error rate (percentage of failed invocations) exceeds the threshold.
|
|
2911
|
+
*/
|
|
2912
|
+
constructor(properties: LambdaErrorRateTriggerProps);
|
|
2913
|
+
readonly type: 'lambda-error-rate';
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
export declare class LambdaDurationTrigger extends BaseTypeProperties {
|
|
2917
|
+
/**
|
|
2918
|
+
* Triggers an alarm when Lambda function execution duration exceeds the threshold (in milliseconds).
|
|
2919
|
+
*/
|
|
2920
|
+
constructor(properties: LambdaDurationTriggerProps);
|
|
2921
|
+
readonly type: 'lambda-duration';
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2645
2924
|
export declare class CustomResourceDefinition extends BaseTypeProperties {
|
|
2646
2925
|
/**
|
|
2647
2926
|
* #### Custom resource definition
|