@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
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_BatchGetLifecyclePolicyCommand, se_BatchGetLifecyclePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class BatchGetLifecyclePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetLifecyclePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "OpenSearchServerlessClient";
26
+ const commandName = "BatchGetLifecyclePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "OpenSearchServerless",
35
+ operation: "BatchGetLifecyclePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_BatchGetLifecyclePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_BatchGetLifecyclePolicyCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateLifecyclePolicyCommand, se_CreateLifecyclePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class CreateLifecyclePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateLifecyclePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "OpenSearchServerlessClient";
26
+ const commandName = "CreateLifecyclePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "OpenSearchServerless",
35
+ operation: "CreateLifecyclePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateLifecyclePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateLifecyclePolicyCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteLifecyclePolicyCommand, se_DeleteLifecyclePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeleteLifecyclePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteLifecyclePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "OpenSearchServerlessClient";
26
+ const commandName = "DeleteLifecyclePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "OpenSearchServerless",
35
+ operation: "DeleteLifecyclePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteLifecyclePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteLifecyclePolicyCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListLifecyclePoliciesCommand, se_ListLifecyclePoliciesCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class ListLifecyclePoliciesCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListLifecyclePoliciesCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "OpenSearchServerlessClient";
26
+ const commandName = "ListLifecyclePoliciesCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "OpenSearchServerless",
35
+ operation: "ListLifecyclePolicies",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListLifecyclePoliciesCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListLifecyclePoliciesCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateLifecyclePolicyCommand, se_UpdateLifecyclePolicyCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UpdateLifecyclePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLifecyclePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "OpenSearchServerlessClient";
26
+ const commandName = "UpdateLifecyclePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "OpenSearchServerless",
35
+ operation: "UpdateLifecyclePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdateLifecyclePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateLifecyclePolicyCommand(output, context);
46
+ }
47
+ }
@@ -1,12 +1,16 @@
1
1
  export * from "./BatchGetCollectionCommand";
2
+ export * from "./BatchGetEffectiveLifecyclePolicyCommand";
3
+ export * from "./BatchGetLifecyclePolicyCommand";
2
4
  export * from "./BatchGetVpcEndpointCommand";
3
5
  export * from "./CreateAccessPolicyCommand";
4
6
  export * from "./CreateCollectionCommand";
7
+ export * from "./CreateLifecyclePolicyCommand";
5
8
  export * from "./CreateSecurityConfigCommand";
6
9
  export * from "./CreateSecurityPolicyCommand";
7
10
  export * from "./CreateVpcEndpointCommand";
8
11
  export * from "./DeleteAccessPolicyCommand";
9
12
  export * from "./DeleteCollectionCommand";
13
+ export * from "./DeleteLifecyclePolicyCommand";
10
14
  export * from "./DeleteSecurityConfigCommand";
11
15
  export * from "./DeleteSecurityPolicyCommand";
12
16
  export * from "./DeleteVpcEndpointCommand";
@@ -17,6 +21,7 @@ export * from "./GetSecurityConfigCommand";
17
21
  export * from "./GetSecurityPolicyCommand";
18
22
  export * from "./ListAccessPoliciesCommand";
19
23
  export * from "./ListCollectionsCommand";
24
+ export * from "./ListLifecyclePoliciesCommand";
20
25
  export * from "./ListSecurityConfigsCommand";
21
26
  export * from "./ListSecurityPoliciesCommand";
22
27
  export * from "./ListTagsForResourceCommand";
@@ -26,6 +31,7 @@ export * from "./UntagResourceCommand";
26
31
  export * from "./UpdateAccessPolicyCommand";
27
32
  export * from "./UpdateAccountSettingsCommand";
28
33
  export * from "./UpdateCollectionCommand";
34
+ export * from "./UpdateLifecyclePolicyCommand";
29
35
  export * from "./UpdateSecurityConfigCommand";
30
36
  export * from "./UpdateSecurityPolicyCommand";
31
37
  export * from "./UpdateVpcEndpointCommand";
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -77,6 +77,12 @@ export const CollectionType = {
77
77
  TIMESERIES: "TIMESERIES",
78
78
  VECTORSEARCH: "VECTORSEARCH",
79
79
  };
80
+ export const LifecyclePolicyType = {
81
+ retention: "retention",
82
+ };
83
+ export const ResourceType = {
84
+ index: "index",
85
+ };
80
86
  export const VpcEndpointStatus = {
81
87
  ACTIVE: "ACTIVE",
82
88
  DELETING: "DELETING",
@@ -0,0 +1,24 @@
1
+ import { ListLifecyclePoliciesCommand, } from "../commands/ListLifecyclePoliciesCommand";
2
+ import { OpenSearchServerlessClient } from "../OpenSearchServerlessClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListLifecyclePoliciesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListLifecyclePolicies(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ if (config.client instanceof OpenSearchServerlessClient) {
13
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
+ }
15
+ else {
16
+ throw new Error("Invalid client, expected OpenSearchServerless | OpenSearchServerlessClient");
17
+ }
18
+ yield page;
19
+ const prevToken = token;
20
+ token = page.nextToken;
21
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
+ }
23
+ return undefined;
24
+ }
@@ -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";