@pulumi/aws 7.45.0 → 7.46.0-alpha.1789046493
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/accountaccess/application.d.ts +4 -2
- package/accountaccess/application.d.ts.map +1 -1
- package/accountaccess/application.js +4 -2
- package/accountaccess/application.js.map +1 -1
- package/accountaccess/entitlement.d.ts +208 -0
- package/accountaccess/entitlement.d.ts.map +1 -0
- package/accountaccess/entitlement.js +203 -0
- package/accountaccess/entitlement.js.map +1 -0
- package/accountaccess/getApplication.d.ts +129 -0
- package/accountaccess/getApplication.d.ts.map +1 -0
- package/accountaccess/getApplication.js +107 -0
- package/accountaccess/getApplication.js.map +1 -0
- package/accountaccess/getEntitlements.d.ts +138 -0
- package/accountaccess/getEntitlements.d.ts.map +1 -0
- package/accountaccess/getEntitlements.js +131 -0
- package/accountaccess/getEntitlements.js.map +1 -0
- package/accountaccess/index.d.ts +9 -0
- package/accountaccess/index.d.ts.map +1 -1
- package/accountaccess/index.js +12 -1
- package/accountaccess/index.js.map +1 -1
- package/agentregistry/getRegistry.d.ts +134 -0
- package/agentregistry/getRegistry.d.ts.map +1 -0
- package/agentregistry/getRegistry.js +101 -0
- package/agentregistry/getRegistry.js.map +1 -0
- package/agentregistry/index.d.ts +7 -0
- package/agentregistry/index.d.ts.map +1 -0
- package/agentregistry/index.js +48 -0
- package/agentregistry/index.js.map +1 -0
- package/agentregistry/registry.d.ts +261 -0
- package/agentregistry/registry.d.ts.map +1 -0
- package/agentregistry/registry.js +200 -0
- package/agentregistry/registry.js.map +1 -0
- package/appconfig/hostedConfigurationVersion.d.ts +12 -0
- package/appconfig/hostedConfigurationVersion.d.ts.map +1 -1
- package/appconfig/hostedConfigurationVersion.js +2 -0
- package/appconfig/hostedConfigurationVersion.js.map +1 -1
- package/bedrock/agentcoreHarness.d.ts +9 -9
- package/bedrock/agentcoreHarness.d.ts.map +1 -1
- package/bedrock/agentcoreHarness.js +3 -0
- package/bedrock/agentcoreHarness.js.map +1 -1
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts +16 -2
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts.map +1 -1
- package/bedrock/agentcoreOauth2CredentialProvider.js +15 -2
- package/bedrock/agentcoreOauth2CredentialProvider.js.map +1 -1
- package/bedrock/agentcoreRegistry.d.ts +96 -10
- package/bedrock/agentcoreRegistry.d.ts.map +1 -1
- package/bedrock/agentcoreRegistry.js +42 -7
- package/bedrock/agentcoreRegistry.js.map +1 -1
- package/bedrockmodel/index.d.ts +3 -0
- package/bedrockmodel/index.d.ts.map +1 -1
- package/bedrockmodel/index.js +6 -1
- package/bedrockmodel/index.js.map +1 -1
- package/bedrockmodel/invocationJob.d.ts +282 -0
- package/bedrockmodel/invocationJob.d.ts.map +1 -0
- package/bedrockmodel/invocationJob.js +171 -0
- package/bedrockmodel/invocationJob.js.map +1 -0
- package/cloudwatch/metricAlarm.d.ts +35 -0
- package/cloudwatch/metricAlarm.d.ts.map +1 -1
- package/cloudwatch/metricAlarm.js +25 -0
- package/cloudwatch/metricAlarm.js.map +1 -1
- package/dms/dataProvider.d.ts +224 -0
- package/dms/dataProvider.d.ts.map +1 -0
- package/dms/dataProvider.js +157 -0
- package/dms/dataProvider.js.map +1 -0
- package/dms/index.d.ts +6 -0
- package/dms/index.d.ts.map +1 -1
- package/dms/index.js +11 -1
- package/dms/index.js.map +1 -1
- package/dms/instanceProfile.d.ts +231 -0
- package/dms/instanceProfile.d.ts.map +1 -0
- package/dms/instanceProfile.js +142 -0
- package/dms/instanceProfile.js.map +1 -0
- package/fis/index.d.ts +3 -0
- package/fis/index.d.ts.map +1 -1
- package/fis/index.js +6 -1
- package/fis/index.js.map +1 -1
- package/fis/safetyLeverState.d.ts +114 -0
- package/fis/safetyLeverState.d.ts.map +1 -0
- package/fis/safetyLeverState.js +112 -0
- package/fis/safetyLeverState.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/lambda/alias.d.ts +14 -2
- package/lambda/alias.d.ts.map +1 -1
- package/lambda/alias.js +14 -2
- package/lambda/alias.js.map +1 -1
- package/msk/replicator.d.ts +123 -3
- package/msk/replicator.d.ts.map +1 -1
- package/msk/replicator.js +120 -0
- package/msk/replicator.js.map +1 -1
- package/package.json +2 -2
- package/rds/cluster.d.ts +15 -3
- package/rds/cluster.d.ts.map +1 -1
- package/rds/cluster.js +2 -0
- package/rds/cluster.js.map +1 -1
- package/rds/clusterInstance.d.ts +21 -9
- package/rds/clusterInstance.d.ts.map +1 -1
- package/rds/clusterInstance.js +2 -0
- package/rds/clusterInstance.js.map +1 -1
- package/rds/getEvents.d.ts +160 -0
- package/rds/getEvents.d.ts.map +1 -0
- package/rds/getEvents.js +123 -0
- package/rds/getEvents.js.map +1 -0
- package/rds/index.d.ts +3 -0
- package/rds/index.d.ts.map +1 -1
- package/rds/index.js +5 -2
- package/rds/index.js.map +1 -1
- package/rds/instance.d.ts +12 -0
- package/rds/instance.d.ts.map +1 -1
- package/rds/instance.js +2 -0
- package/rds/instance.js.map +1 -1
- package/types/input.d.ts +1002 -14
- package/types/input.d.ts.map +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1164 -14
- package/types/output.d.ts.map +1 -1
- package/types/output.js.map +1 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages an Amazon Bedrock model invocation job. A model invocation job runs a foundation model, or a model accessed through an inference profile, against multiple prompts read from Amazon S3, and writes the results back to Amazon S3.
|
|
6
|
+
*
|
|
7
|
+
* > Amazon Bedrock does not support permanently deleting a model invocation job. Destroying this resource stops the job (if it hasn't already reached a terminal state) using the [StopModelInvocationJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopModelInvocationJob.html) API, then removes it from Terraform state. Set `skipDestroy` to leave the job in its current state instead.
|
|
8
|
+
*
|
|
9
|
+
* > This resource does not support `tags`. Amazon Bedrock does not allow retrieving tags for a batch inference job that has already finished running, which would cause errors when importing or listing existing jobs.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.bedrockmodel.InvocationJob("example", {
|
|
20
|
+
* inputDataConfig: {
|
|
21
|
+
* s3InputDataConfig: {
|
|
22
|
+
* s3Uri: `s3://${exampleAwsS3Bucket.id}/input/`,
|
|
23
|
+
* },
|
|
24
|
+
* },
|
|
25
|
+
* outputDataConfig: {
|
|
26
|
+
* s3OutputDataConfig: {
|
|
27
|
+
* s3Uri: `s3://${exampleAwsS3Bucket.id}/output/`,
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* jobName: "example-job",
|
|
31
|
+
* modelId: "us.amazon.nova-2-lite-v1:0",
|
|
32
|
+
* roleArn: exampleAwsIamRole.arn,
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* ### Identity Schema
|
|
39
|
+
*
|
|
40
|
+
* #### Required
|
|
41
|
+
*
|
|
42
|
+
* - `jobArn` (String) ARN of the batch inference job.
|
|
43
|
+
*
|
|
44
|
+
* Using `pulumi import`, import Bedrock Model Invocation Job using the `jobArn`. For example:
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import aws:bedrockmodel/invocationJob:InvocationJob example arn:aws:bedrock:us-west-2:123456789012:model-invocation-job/abcdefgh1234
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class InvocationJob extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing InvocationJob resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InvocationJobState, opts?: pulumi.CustomResourceOptions): InvocationJob;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of InvocationJob. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is InvocationJob;
|
|
66
|
+
/**
|
|
67
|
+
* Time at which the batch inference job ended.
|
|
68
|
+
*/
|
|
69
|
+
readonly endTime: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Number of records that failed to process in the batch inference job.
|
|
72
|
+
*/
|
|
73
|
+
readonly errorRecordCount: pulumi.Output<number>;
|
|
74
|
+
/**
|
|
75
|
+
* Location of the input data for the batch inference job. See `inputDataConfig` Block below.
|
|
76
|
+
*/
|
|
77
|
+
readonly inputDataConfig: pulumi.Output<outputs.bedrockmodel.InvocationJobInputDataConfig>;
|
|
78
|
+
/**
|
|
79
|
+
* ARN of the batch inference job.
|
|
80
|
+
*/
|
|
81
|
+
readonly jobArn: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Time at which the batch inference job times or timed out.
|
|
84
|
+
*/
|
|
85
|
+
readonly jobExpirationTime: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Name for the batch inference job.
|
|
88
|
+
*/
|
|
89
|
+
readonly jobName: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Identifier of the foundation model, or inference profile, to use for the batch inference job.
|
|
92
|
+
*/
|
|
93
|
+
readonly modelId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Invocation endpoint used for the batch inference job.
|
|
96
|
+
*/
|
|
97
|
+
readonly modelInvocationType: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Location where the results of the batch inference job are stored. See `outputDataConfig` Block below.
|
|
100
|
+
*/
|
|
101
|
+
readonly outputDataConfig: pulumi.Output<outputs.bedrockmodel.InvocationJobOutputDataConfig>;
|
|
102
|
+
/**
|
|
103
|
+
* Number of records that have been processed in the batch inference job.
|
|
104
|
+
*/
|
|
105
|
+
readonly processedRecordCount: pulumi.Output<number>;
|
|
106
|
+
/**
|
|
107
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
108
|
+
*/
|
|
109
|
+
readonly region: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html).
|
|
112
|
+
*
|
|
113
|
+
* The following arguments are optional:
|
|
114
|
+
*/
|
|
115
|
+
readonly roleArn: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it.
|
|
118
|
+
*/
|
|
119
|
+
readonly skipDestroy: pulumi.Output<boolean | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Status of the batch inference job.
|
|
122
|
+
*/
|
|
123
|
+
readonly status: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Time at which the batch inference job was submitted.
|
|
126
|
+
*/
|
|
127
|
+
readonly submitTime: pulumi.Output<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Number of records that were successfully processed in the batch inference job.
|
|
130
|
+
*/
|
|
131
|
+
readonly successRecordCount: pulumi.Output<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Number of hours after which to force the batch inference job to time out.
|
|
134
|
+
*/
|
|
135
|
+
readonly timeoutDurationInHours: pulumi.Output<number>;
|
|
136
|
+
readonly timeouts: pulumi.Output<outputs.bedrockmodel.InvocationJobTimeouts | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* Total number of records in the batch inference job.
|
|
139
|
+
*/
|
|
140
|
+
readonly totalRecordCount: pulumi.Output<number>;
|
|
141
|
+
/**
|
|
142
|
+
* VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below.
|
|
143
|
+
*/
|
|
144
|
+
readonly vpcConfig: pulumi.Output<outputs.bedrockmodel.InvocationJobVpcConfig | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Create a InvocationJob resource with the given unique name, arguments, and options.
|
|
147
|
+
*
|
|
148
|
+
* @param name The _unique_ name of the resource.
|
|
149
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
150
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
151
|
+
*/
|
|
152
|
+
constructor(name: string, args: InvocationJobArgs, opts?: pulumi.CustomResourceOptions);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Input properties used for looking up and filtering InvocationJob resources.
|
|
156
|
+
*/
|
|
157
|
+
export interface InvocationJobState {
|
|
158
|
+
/**
|
|
159
|
+
* Time at which the batch inference job ended.
|
|
160
|
+
*/
|
|
161
|
+
endTime?: pulumi.Input<string | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Number of records that failed to process in the batch inference job.
|
|
164
|
+
*/
|
|
165
|
+
errorRecordCount?: pulumi.Input<number | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Location of the input data for the batch inference job. See `inputDataConfig` Block below.
|
|
168
|
+
*/
|
|
169
|
+
inputDataConfig?: pulumi.Input<inputs.bedrockmodel.InvocationJobInputDataConfig | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* ARN of the batch inference job.
|
|
172
|
+
*/
|
|
173
|
+
jobArn?: pulumi.Input<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Time at which the batch inference job times or timed out.
|
|
176
|
+
*/
|
|
177
|
+
jobExpirationTime?: pulumi.Input<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Name for the batch inference job.
|
|
180
|
+
*/
|
|
181
|
+
jobName?: pulumi.Input<string | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Identifier of the foundation model, or inference profile, to use for the batch inference job.
|
|
184
|
+
*/
|
|
185
|
+
modelId?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Invocation endpoint used for the batch inference job.
|
|
188
|
+
*/
|
|
189
|
+
modelInvocationType?: pulumi.Input<string | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* Location where the results of the batch inference job are stored. See `outputDataConfig` Block below.
|
|
192
|
+
*/
|
|
193
|
+
outputDataConfig?: pulumi.Input<inputs.bedrockmodel.InvocationJobOutputDataConfig | undefined>;
|
|
194
|
+
/**
|
|
195
|
+
* Number of records that have been processed in the batch inference job.
|
|
196
|
+
*/
|
|
197
|
+
processedRecordCount?: pulumi.Input<number | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
200
|
+
*/
|
|
201
|
+
region?: pulumi.Input<string | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html).
|
|
204
|
+
*
|
|
205
|
+
* The following arguments are optional:
|
|
206
|
+
*/
|
|
207
|
+
roleArn?: pulumi.Input<string | undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it.
|
|
210
|
+
*/
|
|
211
|
+
skipDestroy?: pulumi.Input<boolean | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* Status of the batch inference job.
|
|
214
|
+
*/
|
|
215
|
+
status?: pulumi.Input<string | undefined>;
|
|
216
|
+
/**
|
|
217
|
+
* Time at which the batch inference job was submitted.
|
|
218
|
+
*/
|
|
219
|
+
submitTime?: pulumi.Input<string | undefined>;
|
|
220
|
+
/**
|
|
221
|
+
* Number of records that were successfully processed in the batch inference job.
|
|
222
|
+
*/
|
|
223
|
+
successRecordCount?: pulumi.Input<number | undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* Number of hours after which to force the batch inference job to time out.
|
|
226
|
+
*/
|
|
227
|
+
timeoutDurationInHours?: pulumi.Input<number | undefined>;
|
|
228
|
+
timeouts?: pulumi.Input<inputs.bedrockmodel.InvocationJobTimeouts | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* Total number of records in the batch inference job.
|
|
231
|
+
*/
|
|
232
|
+
totalRecordCount?: pulumi.Input<number | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below.
|
|
235
|
+
*/
|
|
236
|
+
vpcConfig?: pulumi.Input<inputs.bedrockmodel.InvocationJobVpcConfig | undefined>;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The set of arguments for constructing a InvocationJob resource.
|
|
240
|
+
*/
|
|
241
|
+
export interface InvocationJobArgs {
|
|
242
|
+
/**
|
|
243
|
+
* Location of the input data for the batch inference job. See `inputDataConfig` Block below.
|
|
244
|
+
*/
|
|
245
|
+
inputDataConfig: pulumi.Input<inputs.bedrockmodel.InvocationJobInputDataConfig>;
|
|
246
|
+
/**
|
|
247
|
+
* Name for the batch inference job.
|
|
248
|
+
*/
|
|
249
|
+
jobName: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* Identifier of the foundation model, or inference profile, to use for the batch inference job.
|
|
252
|
+
*/
|
|
253
|
+
modelId: pulumi.Input<string>;
|
|
254
|
+
/**
|
|
255
|
+
* Location where the results of the batch inference job are stored. See `outputDataConfig` Block below.
|
|
256
|
+
*/
|
|
257
|
+
outputDataConfig: pulumi.Input<inputs.bedrockmodel.InvocationJobOutputDataConfig>;
|
|
258
|
+
/**
|
|
259
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
260
|
+
*/
|
|
261
|
+
region?: pulumi.Input<string | undefined>;
|
|
262
|
+
/**
|
|
263
|
+
* ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html).
|
|
264
|
+
*
|
|
265
|
+
* The following arguments are optional:
|
|
266
|
+
*/
|
|
267
|
+
roleArn: pulumi.Input<string>;
|
|
268
|
+
/**
|
|
269
|
+
* Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it.
|
|
270
|
+
*/
|
|
271
|
+
skipDestroy?: pulumi.Input<boolean | undefined>;
|
|
272
|
+
/**
|
|
273
|
+
* Number of hours after which to force the batch inference job to time out.
|
|
274
|
+
*/
|
|
275
|
+
timeoutDurationInHours?: pulumi.Input<number | undefined>;
|
|
276
|
+
timeouts?: pulumi.Input<inputs.bedrockmodel.InvocationJobTimeouts | undefined>;
|
|
277
|
+
/**
|
|
278
|
+
* VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below.
|
|
279
|
+
*/
|
|
280
|
+
vpcConfig?: pulumi.Input<inputs.bedrockmodel.InvocationJobVpcConfig | undefined>;
|
|
281
|
+
}
|
|
282
|
+
//# sourceMappingURL=invocationJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invocationJob.d.ts","sourceRoot":"","sources":["../../bedrockmodel/invocationJob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB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AAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;IAC/E;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;CACpF"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.InvocationJob = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manages an Amazon Bedrock model invocation job. A model invocation job runs a foundation model, or a model accessed through an inference profile, against multiple prompts read from Amazon S3, and writes the results back to Amazon S3.
|
|
33
|
+
*
|
|
34
|
+
* > Amazon Bedrock does not support permanently deleting a model invocation job. Destroying this resource stops the job (if it hasn't already reached a terminal state) using the [StopModelInvocationJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopModelInvocationJob.html) API, then removes it from Terraform state. Set `skipDestroy` to leave the job in its current state instead.
|
|
35
|
+
*
|
|
36
|
+
* > This resource does not support `tags`. Amazon Bedrock does not allow retrieving tags for a batch inference job that has already finished running, which would cause errors when importing or listing existing jobs.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ### Basic Usage
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as aws from "@pulumi/aws";
|
|
45
|
+
*
|
|
46
|
+
* const example = new aws.bedrockmodel.InvocationJob("example", {
|
|
47
|
+
* inputDataConfig: {
|
|
48
|
+
* s3InputDataConfig: {
|
|
49
|
+
* s3Uri: `s3://${exampleAwsS3Bucket.id}/input/`,
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* outputDataConfig: {
|
|
53
|
+
* s3OutputDataConfig: {
|
|
54
|
+
* s3Uri: `s3://${exampleAwsS3Bucket.id}/output/`,
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* jobName: "example-job",
|
|
58
|
+
* modelId: "us.amazon.nova-2-lite-v1:0",
|
|
59
|
+
* roleArn: exampleAwsIamRole.arn,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ## Import
|
|
64
|
+
*
|
|
65
|
+
* ### Identity Schema
|
|
66
|
+
*
|
|
67
|
+
* #### Required
|
|
68
|
+
*
|
|
69
|
+
* - `jobArn` (String) ARN of the batch inference job.
|
|
70
|
+
*
|
|
71
|
+
* Using `pulumi import`, import Bedrock Model Invocation Job using the `jobArn`. For example:
|
|
72
|
+
*
|
|
73
|
+
* ```sh
|
|
74
|
+
* $ pulumi import aws:bedrockmodel/invocationJob:InvocationJob example arn:aws:bedrock:us-west-2:123456789012:model-invocation-job/abcdefgh1234
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
class InvocationJob extends pulumi.CustomResource {
|
|
78
|
+
/**
|
|
79
|
+
* Get an existing InvocationJob resource's state with the given name, ID, and optional extra
|
|
80
|
+
* properties used to qualify the lookup.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resulting resource.
|
|
83
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
+
* @param state Any extra arguments used during the lookup.
|
|
85
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
+
*/
|
|
87
|
+
static get(name, id, state, opts) {
|
|
88
|
+
return new InvocationJob(name, state, { ...opts, id: id });
|
|
89
|
+
}
|
|
90
|
+
/** @internal */
|
|
91
|
+
static __pulumiType = 'aws:bedrockmodel/invocationJob:InvocationJob';
|
|
92
|
+
/**
|
|
93
|
+
* Returns true if the given object is an instance of InvocationJob. This is designed to work even
|
|
94
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
95
|
+
*/
|
|
96
|
+
static isInstance(obj) {
|
|
97
|
+
if (obj === undefined || obj === null) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
return obj['__pulumiType'] === InvocationJob.__pulumiType;
|
|
101
|
+
}
|
|
102
|
+
constructor(name, argsOrState, opts) {
|
|
103
|
+
let resourceInputs = {};
|
|
104
|
+
opts = opts || {};
|
|
105
|
+
if (opts.id) {
|
|
106
|
+
const state = argsOrState;
|
|
107
|
+
resourceInputs["endTime"] = state?.endTime;
|
|
108
|
+
resourceInputs["errorRecordCount"] = state?.errorRecordCount;
|
|
109
|
+
resourceInputs["inputDataConfig"] = state?.inputDataConfig;
|
|
110
|
+
resourceInputs["jobArn"] = state?.jobArn;
|
|
111
|
+
resourceInputs["jobExpirationTime"] = state?.jobExpirationTime;
|
|
112
|
+
resourceInputs["jobName"] = state?.jobName;
|
|
113
|
+
resourceInputs["modelId"] = state?.modelId;
|
|
114
|
+
resourceInputs["modelInvocationType"] = state?.modelInvocationType;
|
|
115
|
+
resourceInputs["outputDataConfig"] = state?.outputDataConfig;
|
|
116
|
+
resourceInputs["processedRecordCount"] = state?.processedRecordCount;
|
|
117
|
+
resourceInputs["region"] = state?.region;
|
|
118
|
+
resourceInputs["roleArn"] = state?.roleArn;
|
|
119
|
+
resourceInputs["skipDestroy"] = state?.skipDestroy;
|
|
120
|
+
resourceInputs["status"] = state?.status;
|
|
121
|
+
resourceInputs["submitTime"] = state?.submitTime;
|
|
122
|
+
resourceInputs["successRecordCount"] = state?.successRecordCount;
|
|
123
|
+
resourceInputs["timeoutDurationInHours"] = state?.timeoutDurationInHours;
|
|
124
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
125
|
+
resourceInputs["totalRecordCount"] = state?.totalRecordCount;
|
|
126
|
+
resourceInputs["vpcConfig"] = state?.vpcConfig;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
const args = argsOrState;
|
|
130
|
+
if (args?.inputDataConfig === undefined && !opts.urn) {
|
|
131
|
+
throw new Error("Missing required property 'inputDataConfig'");
|
|
132
|
+
}
|
|
133
|
+
if (args?.jobName === undefined && !opts.urn) {
|
|
134
|
+
throw new Error("Missing required property 'jobName'");
|
|
135
|
+
}
|
|
136
|
+
if (args?.modelId === undefined && !opts.urn) {
|
|
137
|
+
throw new Error("Missing required property 'modelId'");
|
|
138
|
+
}
|
|
139
|
+
if (args?.outputDataConfig === undefined && !opts.urn) {
|
|
140
|
+
throw new Error("Missing required property 'outputDataConfig'");
|
|
141
|
+
}
|
|
142
|
+
if (args?.roleArn === undefined && !opts.urn) {
|
|
143
|
+
throw new Error("Missing required property 'roleArn'");
|
|
144
|
+
}
|
|
145
|
+
resourceInputs["inputDataConfig"] = args?.inputDataConfig;
|
|
146
|
+
resourceInputs["jobName"] = args?.jobName;
|
|
147
|
+
resourceInputs["modelId"] = args?.modelId;
|
|
148
|
+
resourceInputs["outputDataConfig"] = args?.outputDataConfig;
|
|
149
|
+
resourceInputs["region"] = args?.region;
|
|
150
|
+
resourceInputs["roleArn"] = args?.roleArn;
|
|
151
|
+
resourceInputs["skipDestroy"] = args?.skipDestroy;
|
|
152
|
+
resourceInputs["timeoutDurationInHours"] = args?.timeoutDurationInHours;
|
|
153
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
154
|
+
resourceInputs["vpcConfig"] = args?.vpcConfig;
|
|
155
|
+
resourceInputs["endTime"] = undefined /*out*/;
|
|
156
|
+
resourceInputs["errorRecordCount"] = undefined /*out*/;
|
|
157
|
+
resourceInputs["jobArn"] = undefined /*out*/;
|
|
158
|
+
resourceInputs["jobExpirationTime"] = undefined /*out*/;
|
|
159
|
+
resourceInputs["modelInvocationType"] = undefined /*out*/;
|
|
160
|
+
resourceInputs["processedRecordCount"] = undefined /*out*/;
|
|
161
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
162
|
+
resourceInputs["submitTime"] = undefined /*out*/;
|
|
163
|
+
resourceInputs["successRecordCount"] = undefined /*out*/;
|
|
164
|
+
resourceInputs["totalRecordCount"] = undefined /*out*/;
|
|
165
|
+
}
|
|
166
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
167
|
+
super(InvocationJob.__pulumiType, name, resourceInputs, opts);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.InvocationJob = InvocationJob;
|
|
171
|
+
//# sourceMappingURL=inv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;YAC9C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1D,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AArLL,sCAsLC"}
|
|
@@ -220,6 +220,29 @@ import { Topic } from "../sns";
|
|
|
220
220
|
* });
|
|
221
221
|
* ```
|
|
222
222
|
*
|
|
223
|
+
* ### With a Warm-Up Period
|
|
224
|
+
*
|
|
225
|
+
* ```typescript
|
|
226
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
227
|
+
* import * as aws from "@pulumi/aws";
|
|
228
|
+
*
|
|
229
|
+
* const example = new aws.cloudwatch.MetricAlarm("example", {
|
|
230
|
+
* warmUpConfiguration: {
|
|
231
|
+
* warmUpPeriodDurationInMinutes: 30,
|
|
232
|
+
* },
|
|
233
|
+
* name: "example-service-errors",
|
|
234
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
235
|
+
* evaluationPeriods: 3,
|
|
236
|
+
* metricName: "Errors",
|
|
237
|
+
* namespace: "ExampleApp",
|
|
238
|
+
* period: 60,
|
|
239
|
+
* statistic: "Sum",
|
|
240
|
+
* threshold: 0,
|
|
241
|
+
* treatMissingData: "breaching",
|
|
242
|
+
* alarmActions: [exampleAwsSnsTopic.arn],
|
|
243
|
+
* });
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
223
246
|
* > **NOTE:** You cannot create a metric alarm consisting of both `statistic` and `extendedStatistic` parameters.
|
|
224
247
|
* You must choose one or the other.
|
|
225
248
|
*
|
|
@@ -384,6 +407,10 @@ export declare class MetricAlarm extends pulumi.CustomResource {
|
|
|
384
407
|
* The unit for the alarm's associated metric.
|
|
385
408
|
*/
|
|
386
409
|
readonly unit: pulumi.Output<string | undefined>;
|
|
410
|
+
/**
|
|
411
|
+
* Warm-up period that delays alarm evaluation after the alarm is created. During the warm-up period the alarm stays in `INSUFFICIENT_DATA` and does not perform alarm actions. See `warmUpConfiguration` below.
|
|
412
|
+
*/
|
|
413
|
+
readonly warmUpConfiguration: pulumi.Output<outputs.cloudwatch.MetricAlarmWarmUpConfiguration | undefined>;
|
|
387
414
|
/**
|
|
388
415
|
* Create a MetricAlarm resource with the given unique name, arguments, and options.
|
|
389
416
|
*
|
|
@@ -523,6 +550,10 @@ export interface MetricAlarmState {
|
|
|
523
550
|
* The unit for the alarm's associated metric.
|
|
524
551
|
*/
|
|
525
552
|
unit?: pulumi.Input<string | undefined>;
|
|
553
|
+
/**
|
|
554
|
+
* Warm-up period that delays alarm evaluation after the alarm is created. During the warm-up period the alarm stays in `INSUFFICIENT_DATA` and does not perform alarm actions. See `warmUpConfiguration` below.
|
|
555
|
+
*/
|
|
556
|
+
warmUpConfiguration?: pulumi.Input<inputs.cloudwatch.MetricAlarmWarmUpConfiguration | undefined>;
|
|
526
557
|
}
|
|
527
558
|
/**
|
|
528
559
|
* The set of arguments for constructing a MetricAlarm resource.
|
|
@@ -644,5 +675,9 @@ export interface MetricAlarmArgs {
|
|
|
644
675
|
* The unit for the alarm's associated metric.
|
|
645
676
|
*/
|
|
646
677
|
unit?: pulumi.Input<string | undefined>;
|
|
678
|
+
/**
|
|
679
|
+
* Warm-up period that delays alarm evaluation after the alarm is created. During the warm-up period the alarm stays in `INSUFFICIENT_DATA` and does not perform alarm actions. See `warmUpConfiguration` below.
|
|
680
|
+
*/
|
|
681
|
+
warmUpConfiguration?: pulumi.Input<inputs.cloudwatch.MetricAlarmWarmUpConfiguration | undefined>;
|
|
647
682
|
}
|
|
648
683
|
//# sourceMappingURL=metricAlarm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricAlarm.d.ts","sourceRoot":"","sources":["../../cloudwatch/metricAlarm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAI3C,OAAO,EAAC,KAAK,EAAC,MAAM,QAAQ,CAAC;AAE7B
|
|
1
|
+
{"version":3,"file":"metricAlarm.d.ts","sourceRoot":"","sources":["../../cloudwatch/metricAlarm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAI3C,OAAO,EAAC,KAAK,EAAC,MAAM,QAAQ,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;CACpG"}
|
|
@@ -246,6 +246,29 @@ const utilities = __importStar(require("../utilities"));
|
|
|
246
246
|
* });
|
|
247
247
|
* ```
|
|
248
248
|
*
|
|
249
|
+
* ### With a Warm-Up Period
|
|
250
|
+
*
|
|
251
|
+
* ```typescript
|
|
252
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
253
|
+
* import * as aws from "@pulumi/aws";
|
|
254
|
+
*
|
|
255
|
+
* const example = new aws.cloudwatch.MetricAlarm("example", {
|
|
256
|
+
* warmUpConfiguration: {
|
|
257
|
+
* warmUpPeriodDurationInMinutes: 30,
|
|
258
|
+
* },
|
|
259
|
+
* name: "example-service-errors",
|
|
260
|
+
* comparisonOperator: "GreaterThanThreshold",
|
|
261
|
+
* evaluationPeriods: 3,
|
|
262
|
+
* metricName: "Errors",
|
|
263
|
+
* namespace: "ExampleApp",
|
|
264
|
+
* period: 60,
|
|
265
|
+
* statistic: "Sum",
|
|
266
|
+
* threshold: 0,
|
|
267
|
+
* treatMissingData: "breaching",
|
|
268
|
+
* alarmActions: [exampleAwsSnsTopic.arn],
|
|
269
|
+
* });
|
|
270
|
+
* ```
|
|
271
|
+
*
|
|
249
272
|
* > **NOTE:** You cannot create a metric alarm consisting of both `statistic` and `extendedStatistic` parameters.
|
|
250
273
|
* You must choose one or the other.
|
|
251
274
|
*
|
|
@@ -325,6 +348,7 @@ class MetricAlarm extends pulumi.CustomResource {
|
|
|
325
348
|
resourceInputs["thresholdMetricId"] = state?.thresholdMetricId;
|
|
326
349
|
resourceInputs["treatMissingData"] = state?.treatMissingData;
|
|
327
350
|
resourceInputs["unit"] = state?.unit;
|
|
351
|
+
resourceInputs["warmUpConfiguration"] = state?.warmUpConfiguration;
|
|
328
352
|
}
|
|
329
353
|
else {
|
|
330
354
|
const args = argsOrState;
|
|
@@ -353,6 +377,7 @@ class MetricAlarm extends pulumi.CustomResource {
|
|
|
353
377
|
resourceInputs["thresholdMetricId"] = args?.thresholdMetricId;
|
|
354
378
|
resourceInputs["treatMissingData"] = args?.treatMissingData;
|
|
355
379
|
resourceInputs["unit"] = args?.unit;
|
|
380
|
+
resourceInputs["warmUpConfiguration"] = args?.warmUpConfiguration;
|
|
356
381
|
resourceInputs["arn"] = undefined /*out*/;
|
|
357
382
|
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
358
383
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricAlarm.js","sourceRoot":"","sources":["../../cloudwatch/metricAlarm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAI1C
|
|
1
|
+
{"version":3,"file":"metricAlarm.js","sourceRoot":"","sources":["../../cloudwatch/metricAlarm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAI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