@aws-sdk/client-opensearchserverless 3.433.0 → 3.436.0

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.
Files changed (59) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/OpenSearchServerless.js +12 -0
  3. package/dist-cjs/commands/BatchGetEffectiveLifecyclePolicyCommand.js +51 -0
  4. package/dist-cjs/commands/BatchGetLifecyclePolicyCommand.js +51 -0
  5. package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +51 -0
  7. package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +51 -0
  8. package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +51 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +3 -3
  11. package/dist-cjs/models/models_0.js +7 -1
  12. package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +28 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_0.js +342 -2
  15. package/dist-cjs/runtimeConfig.js +2 -0
  16. package/dist-cjs/runtimeConfig.shared.js +15 -13
  17. package/dist-es/OpenSearchServerless.js +12 -0
  18. package/dist-es/commands/BatchGetEffectiveLifecyclePolicyCommand.js +47 -0
  19. package/dist-es/commands/BatchGetLifecyclePolicyCommand.js +47 -0
  20. package/dist-es/commands/CreateLifecyclePolicyCommand.js +47 -0
  21. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +47 -0
  22. package/dist-es/commands/ListLifecyclePoliciesCommand.js +47 -0
  23. package/dist-es/commands/UpdateLifecyclePolicyCommand.js +47 -0
  24. package/dist-es/commands/index.js +6 -0
  25. package/dist-es/endpoint/ruleset.js +3 -3
  26. package/dist-es/models/models_0.js +6 -0
  27. package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +24 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_0.js +328 -0
  30. package/dist-es/runtimeConfig.js +2 -0
  31. package/dist-es/runtimeConfig.shared.js +15 -13
  32. package/dist-types/OpenSearchServerless.d.ts +42 -0
  33. package/dist-types/OpenSearchServerlessClient.d.ts +8 -2
  34. package/dist-types/commands/BatchGetEffectiveLifecyclePolicyCommand.d.ts +102 -0
  35. package/dist-types/commands/BatchGetLifecyclePolicyCommand.d.ts +103 -0
  36. package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +101 -0
  37. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +88 -0
  38. package/dist-types/commands/GetPoliciesStatsCommand.d.ts +3 -0
  39. package/dist-types/commands/ListLifecyclePoliciesCommand.d.ts +95 -0
  40. package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +104 -0
  41. package/dist-types/commands/index.d.ts +6 -0
  42. package/dist-types/models/models_0.d.ts +446 -4
  43. package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +1 -0
  45. package/dist-types/protocols/Aws_json1_0.d.ts +54 -0
  46. package/dist-types/ts3.4/OpenSearchServerless.d.ts +102 -0
  47. package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +36 -0
  48. package/dist-types/ts3.4/commands/BatchGetEffectiveLifecyclePolicyCommand.d.ts +42 -0
  49. package/dist-types/ts3.4/commands/BatchGetLifecyclePolicyCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +42 -0
  51. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListLifecyclePoliciesCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +109 -0
  56. package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  58. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +72 -0
  59. package/package.json +4 -3
@@ -156,6 +156,66 @@ export interface BatchGetCollectionResponse {
156
156
  collectionDetails?: CollectionDetail[];
157
157
  collectionErrorDetails?: CollectionErrorDetail[];
158
158
  }
159
+ export declare const LifecyclePolicyType: {
160
+ readonly retention: "retention";
161
+ };
162
+ export type LifecyclePolicyType =
163
+ (typeof LifecyclePolicyType)[keyof typeof LifecyclePolicyType];
164
+ export interface LifecyclePolicyResourceIdentifier {
165
+ type: LifecyclePolicyType | undefined;
166
+ resource: string | undefined;
167
+ }
168
+ export interface BatchGetEffectiveLifecyclePolicyRequest {
169
+ resourceIdentifiers: LifecyclePolicyResourceIdentifier[] | undefined;
170
+ }
171
+ export declare const ResourceType: {
172
+ readonly index: "index";
173
+ };
174
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
175
+ export interface EffectiveLifecyclePolicyDetail {
176
+ type?: LifecyclePolicyType;
177
+ resource?: string;
178
+ policyName?: string;
179
+ resourceType?: ResourceType;
180
+ retentionPeriod?: string;
181
+ noMinRetentionPeriod?: boolean;
182
+ }
183
+ export interface EffectiveLifecyclePolicyErrorDetail {
184
+ type?: LifecyclePolicyType;
185
+ resource?: string;
186
+ errorMessage?: string;
187
+ errorCode?: string;
188
+ }
189
+ export interface BatchGetEffectiveLifecyclePolicyResponse {
190
+ effectiveLifecyclePolicyDetails?: EffectiveLifecyclePolicyDetail[];
191
+ effectiveLifecyclePolicyErrorDetails?: EffectiveLifecyclePolicyErrorDetail[];
192
+ }
193
+ export interface LifecyclePolicyIdentifier {
194
+ type: LifecyclePolicyType | undefined;
195
+ name: string | undefined;
196
+ }
197
+ export interface BatchGetLifecyclePolicyRequest {
198
+ identifiers: LifecyclePolicyIdentifier[] | undefined;
199
+ }
200
+ export interface LifecyclePolicyDetail {
201
+ type?: LifecyclePolicyType;
202
+ name?: string;
203
+ policyVersion?: string;
204
+ description?: string;
205
+ policy?: __DocumentType;
206
+ createdDate?: number;
207
+ lastModifiedDate?: number;
208
+ }
209
+ export interface LifecyclePolicyErrorDetail {
210
+ type?: LifecyclePolicyType;
211
+ name?: string;
212
+ errorMessage?: string;
213
+ errorCode?: string;
214
+ }
215
+ export interface BatchGetLifecyclePolicyResponse {
216
+ lifecyclePolicyDetails?: LifecyclePolicyDetail[];
217
+ lifecyclePolicyErrorDetails?: LifecyclePolicyErrorDetail[];
218
+ }
159
219
  export interface BatchGetVpcEndpointRequest {
160
220
  ids: string[] | undefined;
161
221
  }
@@ -266,6 +326,16 @@ export interface UpdateCollectionDetail {
266
326
  export interface UpdateCollectionResponse {
267
327
  updateCollectionDetail?: UpdateCollectionDetail;
268
328
  }
329
+ export interface CreateLifecyclePolicyRequest {
330
+ type: LifecyclePolicyType | undefined;
331
+ name: string | undefined;
332
+ description?: string;
333
+ policy: string | undefined;
334
+ clientToken?: string;
335
+ }
336
+ export interface CreateLifecyclePolicyResponse {
337
+ lifecyclePolicyDetail?: LifecyclePolicyDetail;
338
+ }
269
339
  export interface SamlConfigOptions {
270
340
  metadata: string | undefined;
271
341
  userAttribute?: string;
@@ -336,6 +406,12 @@ export interface CreateVpcEndpointDetail {
336
406
  export interface CreateVpcEndpointResponse {
337
407
  createVpcEndpointDetail?: CreateVpcEndpointDetail;
338
408
  }
409
+ export interface DeleteLifecyclePolicyRequest {
410
+ type: LifecyclePolicyType | undefined;
411
+ name: string | undefined;
412
+ clientToken?: string;
413
+ }
414
+ export interface DeleteLifecyclePolicyResponse {}
339
415
  export interface DeleteSecurityConfigRequest {
340
416
  id: string | undefined;
341
417
  clientToken?: string;
@@ -364,6 +440,9 @@ export interface GetAccountSettingsResponse {
364
440
  accountSettingsDetail?: AccountSettingsDetail;
365
441
  }
366
442
  export interface GetPoliciesStatsRequest {}
443
+ export interface LifecyclePolicyStats {
444
+ RetentionPolicyCount?: number;
445
+ }
367
446
  export interface SecurityConfigStats {
368
447
  SamlConfigCount?: number;
369
448
  }
@@ -375,6 +454,7 @@ export interface GetPoliciesStatsResponse {
375
454
  AccessPolicyStats?: AccessPolicyStats;
376
455
  SecurityPolicyStats?: SecurityPolicyStats;
377
456
  SecurityConfigStats?: SecurityConfigStats;
457
+ LifecyclePolicyStats?: LifecyclePolicyStats;
378
458
  TotalPolicyCount?: number;
379
459
  }
380
460
  export interface GetSecurityConfigRequest {
@@ -390,6 +470,35 @@ export interface GetSecurityPolicyRequest {
390
470
  export interface GetSecurityPolicyResponse {
391
471
  securityPolicyDetail?: SecurityPolicyDetail;
392
472
  }
473
+ export interface ListLifecyclePoliciesRequest {
474
+ type: LifecyclePolicyType | undefined;
475
+ resources?: string[];
476
+ nextToken?: string;
477
+ maxResults?: number;
478
+ }
479
+ export interface LifecyclePolicySummary {
480
+ type?: LifecyclePolicyType;
481
+ name?: string;
482
+ policyVersion?: string;
483
+ description?: string;
484
+ createdDate?: number;
485
+ lastModifiedDate?: number;
486
+ }
487
+ export interface ListLifecyclePoliciesResponse {
488
+ lifecyclePolicySummaries?: LifecyclePolicySummary[];
489
+ nextToken?: string;
490
+ }
491
+ export interface UpdateLifecyclePolicyRequest {
492
+ type: LifecyclePolicyType | undefined;
493
+ name: string | undefined;
494
+ policyVersion: string | undefined;
495
+ description?: string;
496
+ policy?: string;
497
+ clientToken?: string;
498
+ }
499
+ export interface UpdateLifecyclePolicyResponse {
500
+ lifecyclePolicyDetail?: LifecyclePolicyDetail;
501
+ }
393
502
  export interface ListSecurityConfigsRequest {
394
503
  type: SecurityConfigType | undefined;
395
504
  nextToken?: string;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListLifecyclePoliciesCommandInput,
4
+ ListLifecyclePoliciesCommandOutput,
5
+ } from "../commands/ListLifecyclePoliciesCommand";
6
+ import { OpenSearchServerlessPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListLifecyclePolicies(
8
+ config: OpenSearchServerlessPaginationConfiguration,
9
+ input: ListLifecyclePoliciesCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListLifecyclePoliciesCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAccessPoliciesPaginator";
3
3
  export * from "./ListCollectionsPaginator";
4
+ export * from "./ListLifecyclePoliciesPaginator";
4
5
  export * from "./ListSecurityConfigsPaginator";
5
6
  export * from "./ListSecurityPoliciesPaginator";
6
7
  export * from "./ListVpcEndpointsPaginator";
@@ -7,6 +7,14 @@ import {
7
7
  BatchGetCollectionCommandInput,
8
8
  BatchGetCollectionCommandOutput,
9
9
  } from "../commands/BatchGetCollectionCommand";
10
+ import {
11
+ BatchGetEffectiveLifecyclePolicyCommandInput,
12
+ BatchGetEffectiveLifecyclePolicyCommandOutput,
13
+ } from "../commands/BatchGetEffectiveLifecyclePolicyCommand";
14
+ import {
15
+ BatchGetLifecyclePolicyCommandInput,
16
+ BatchGetLifecyclePolicyCommandOutput,
17
+ } from "../commands/BatchGetLifecyclePolicyCommand";
10
18
  import {
11
19
  BatchGetVpcEndpointCommandInput,
12
20
  BatchGetVpcEndpointCommandOutput,
@@ -19,6 +27,10 @@ import {
19
27
  CreateCollectionCommandInput,
20
28
  CreateCollectionCommandOutput,
21
29
  } from "../commands/CreateCollectionCommand";
30
+ import {
31
+ CreateLifecyclePolicyCommandInput,
32
+ CreateLifecyclePolicyCommandOutput,
33
+ } from "../commands/CreateLifecyclePolicyCommand";
22
34
  import {
23
35
  CreateSecurityConfigCommandInput,
24
36
  CreateSecurityConfigCommandOutput,
@@ -39,6 +51,10 @@ import {
39
51
  DeleteCollectionCommandInput,
40
52
  DeleteCollectionCommandOutput,
41
53
  } from "../commands/DeleteCollectionCommand";
54
+ import {
55
+ DeleteLifecyclePolicyCommandInput,
56
+ DeleteLifecyclePolicyCommandOutput,
57
+ } from "../commands/DeleteLifecyclePolicyCommand";
42
58
  import {
43
59
  DeleteSecurityConfigCommandInput,
44
60
  DeleteSecurityConfigCommandOutput,
@@ -79,6 +95,10 @@ import {
79
95
  ListCollectionsCommandInput,
80
96
  ListCollectionsCommandOutput,
81
97
  } from "../commands/ListCollectionsCommand";
98
+ import {
99
+ ListLifecyclePoliciesCommandInput,
100
+ ListLifecyclePoliciesCommandOutput,
101
+ } from "../commands/ListLifecyclePoliciesCommand";
82
102
  import {
83
103
  ListSecurityConfigsCommandInput,
84
104
  ListSecurityConfigsCommandOutput,
@@ -115,6 +135,10 @@ import {
115
135
  UpdateCollectionCommandInput,
116
136
  UpdateCollectionCommandOutput,
117
137
  } from "../commands/UpdateCollectionCommand";
138
+ import {
139
+ UpdateLifecyclePolicyCommandInput,
140
+ UpdateLifecyclePolicyCommandOutput,
141
+ } from "../commands/UpdateLifecyclePolicyCommand";
118
142
  import {
119
143
  UpdateSecurityConfigCommandInput,
120
144
  UpdateSecurityConfigCommandOutput,
@@ -131,6 +155,14 @@ export declare const se_BatchGetCollectionCommand: (
131
155
  input: BatchGetCollectionCommandInput,
132
156
  context: __SerdeContext
133
157
  ) => Promise<__HttpRequest>;
158
+ export declare const se_BatchGetEffectiveLifecyclePolicyCommand: (
159
+ input: BatchGetEffectiveLifecyclePolicyCommandInput,
160
+ context: __SerdeContext
161
+ ) => Promise<__HttpRequest>;
162
+ export declare const se_BatchGetLifecyclePolicyCommand: (
163
+ input: BatchGetLifecyclePolicyCommandInput,
164
+ context: __SerdeContext
165
+ ) => Promise<__HttpRequest>;
134
166
  export declare const se_BatchGetVpcEndpointCommand: (
135
167
  input: BatchGetVpcEndpointCommandInput,
136
168
  context: __SerdeContext
@@ -143,6 +175,10 @@ export declare const se_CreateCollectionCommand: (
143
175
  input: CreateCollectionCommandInput,
144
176
  context: __SerdeContext
145
177
  ) => Promise<__HttpRequest>;
178
+ export declare const se_CreateLifecyclePolicyCommand: (
179
+ input: CreateLifecyclePolicyCommandInput,
180
+ context: __SerdeContext
181
+ ) => Promise<__HttpRequest>;
146
182
  export declare const se_CreateSecurityConfigCommand: (
147
183
  input: CreateSecurityConfigCommandInput,
148
184
  context: __SerdeContext
@@ -163,6 +199,10 @@ export declare const se_DeleteCollectionCommand: (
163
199
  input: DeleteCollectionCommandInput,
164
200
  context: __SerdeContext
165
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_DeleteLifecyclePolicyCommand: (
203
+ input: DeleteLifecyclePolicyCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
166
206
  export declare const se_DeleteSecurityConfigCommand: (
167
207
  input: DeleteSecurityConfigCommandInput,
168
208
  context: __SerdeContext
@@ -203,6 +243,10 @@ export declare const se_ListCollectionsCommand: (
203
243
  input: ListCollectionsCommandInput,
204
244
  context: __SerdeContext
205
245
  ) => Promise<__HttpRequest>;
246
+ export declare const se_ListLifecyclePoliciesCommand: (
247
+ input: ListLifecyclePoliciesCommandInput,
248
+ context: __SerdeContext
249
+ ) => Promise<__HttpRequest>;
206
250
  export declare const se_ListSecurityConfigsCommand: (
207
251
  input: ListSecurityConfigsCommandInput,
208
252
  context: __SerdeContext
@@ -239,6 +283,10 @@ export declare const se_UpdateCollectionCommand: (
239
283
  input: UpdateCollectionCommandInput,
240
284
  context: __SerdeContext
241
285
  ) => Promise<__HttpRequest>;
286
+ export declare const se_UpdateLifecyclePolicyCommand: (
287
+ input: UpdateLifecyclePolicyCommandInput,
288
+ context: __SerdeContext
289
+ ) => Promise<__HttpRequest>;
242
290
  export declare const se_UpdateSecurityConfigCommand: (
243
291
  input: UpdateSecurityConfigCommandInput,
244
292
  context: __SerdeContext
@@ -255,6 +303,14 @@ export declare const de_BatchGetCollectionCommand: (
255
303
  output: __HttpResponse,
256
304
  context: __SerdeContext
257
305
  ) => Promise<BatchGetCollectionCommandOutput>;
306
+ export declare const de_BatchGetEffectiveLifecyclePolicyCommand: (
307
+ output: __HttpResponse,
308
+ context: __SerdeContext
309
+ ) => Promise<BatchGetEffectiveLifecyclePolicyCommandOutput>;
310
+ export declare const de_BatchGetLifecyclePolicyCommand: (
311
+ output: __HttpResponse,
312
+ context: __SerdeContext
313
+ ) => Promise<BatchGetLifecyclePolicyCommandOutput>;
258
314
  export declare const de_BatchGetVpcEndpointCommand: (
259
315
  output: __HttpResponse,
260
316
  context: __SerdeContext
@@ -267,6 +323,10 @@ export declare const de_CreateCollectionCommand: (
267
323
  output: __HttpResponse,
268
324
  context: __SerdeContext
269
325
  ) => Promise<CreateCollectionCommandOutput>;
326
+ export declare const de_CreateLifecyclePolicyCommand: (
327
+ output: __HttpResponse,
328
+ context: __SerdeContext
329
+ ) => Promise<CreateLifecyclePolicyCommandOutput>;
270
330
  export declare const de_CreateSecurityConfigCommand: (
271
331
  output: __HttpResponse,
272
332
  context: __SerdeContext
@@ -287,6 +347,10 @@ export declare const de_DeleteCollectionCommand: (
287
347
  output: __HttpResponse,
288
348
  context: __SerdeContext
289
349
  ) => Promise<DeleteCollectionCommandOutput>;
350
+ export declare const de_DeleteLifecyclePolicyCommand: (
351
+ output: __HttpResponse,
352
+ context: __SerdeContext
353
+ ) => Promise<DeleteLifecyclePolicyCommandOutput>;
290
354
  export declare const de_DeleteSecurityConfigCommand: (
291
355
  output: __HttpResponse,
292
356
  context: __SerdeContext
@@ -327,6 +391,10 @@ export declare const de_ListCollectionsCommand: (
327
391
  output: __HttpResponse,
328
392
  context: __SerdeContext
329
393
  ) => Promise<ListCollectionsCommandOutput>;
394
+ export declare const de_ListLifecyclePoliciesCommand: (
395
+ output: __HttpResponse,
396
+ context: __SerdeContext
397
+ ) => Promise<ListLifecyclePoliciesCommandOutput>;
330
398
  export declare const de_ListSecurityConfigsCommand: (
331
399
  output: __HttpResponse,
332
400
  context: __SerdeContext
@@ -363,6 +431,10 @@ export declare const de_UpdateCollectionCommand: (
363
431
  output: __HttpResponse,
364
432
  context: __SerdeContext
365
433
  ) => Promise<UpdateCollectionCommandOutput>;
434
+ export declare const de_UpdateLifecyclePolicyCommand: (
435
+ output: __HttpResponse,
436
+ context: __SerdeContext
437
+ ) => Promise<UpdateLifecyclePolicyCommandOutput>;
366
438
  export declare const de_UpdateSecurityConfigCommand: (
367
439
  output: __HttpResponse,
368
440
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearchserverless",
3
3
  "description": "AWS SDK for JavaScript Opensearchserverless Client for Node.js, Browser and React Native",
4
- "version": "3.433.0",
4
+ "version": "3.436.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.433.0",
25
- "@aws-sdk/credential-provider-node": "3.433.0",
24
+ "@aws-sdk/client-sts": "3.436.0",
25
+ "@aws-sdk/core": "3.436.0",
26
+ "@aws-sdk/credential-provider-node": "3.436.0",
26
27
  "@aws-sdk/middleware-host-header": "3.433.0",
27
28
  "@aws-sdk/middleware-logger": "3.433.0",
28
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",