@aws-sdk/client-opensearchserverless 3.460.0 → 3.462.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SecurityPolicyType = exports.SecurityConfigType = exports.OcuLimitExceededException = exports.VpcEndpointStatus = exports.ResourceType = exports.LifecyclePolicyType = exports.CollectionType = exports.CollectionStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessPolicyType = void 0;
3
+ exports.SecurityPolicyType = exports.SecurityConfigType = exports.OcuLimitExceededException = exports.VpcEndpointStatus = exports.ResourceType = exports.LifecyclePolicyType = exports.CollectionType = exports.CollectionStatus = exports.StandbyReplicas = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessPolicyType = void 0;
4
4
  const OpenSearchServerlessServiceException_1 = require("./OpenSearchServerlessServiceException");
5
5
  exports.AccessPolicyType = {
6
6
  data: "data",
@@ -74,6 +74,10 @@ class ResourceNotFoundException extends OpenSearchServerlessServiceException_1.O
74
74
  }
75
75
  }
76
76
  exports.ResourceNotFoundException = ResourceNotFoundException;
77
+ exports.StandbyReplicas = {
78
+ DISABLED: "DISABLED",
79
+ ENABLED: "ENABLED",
80
+ };
77
81
  exports.CollectionStatus = {
78
82
  ACTIVE: "ACTIVE",
79
83
  CREATING: "CREATING",
@@ -1801,6 +1801,7 @@ const se_CreateCollectionRequest = (input, context) => {
1801
1801
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1802
1802
  description: [],
1803
1803
  name: [],
1804
+ standbyReplicas: [],
1804
1805
  tags: smithy_client_1._json,
1805
1806
  type: [],
1806
1807
  });
@@ -66,6 +66,10 @@ export class ResourceNotFoundException extends __BaseException {
66
66
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
67
  }
68
68
  }
69
+ export const StandbyReplicas = {
70
+ DISABLED: "DISABLED",
71
+ ENABLED: "ENABLED",
72
+ };
69
73
  export const CollectionStatus = {
70
74
  ACTIVE: "ACTIVE",
71
75
  CREATING: "CREATING",
@@ -1723,6 +1723,7 @@ const se_CreateCollectionRequest = (input, context) => {
1723
1723
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1724
1724
  description: [],
1725
1725
  name: [],
1726
+ standbyReplicas: [],
1726
1727
  tags: _json,
1727
1728
  type: [],
1728
1729
  });
@@ -52,6 +52,7 @@ export interface BatchGetCollectionCommandOutput extends BatchGetCollectionRespo
52
52
  * // description: "STRING_VALUE",
53
53
  * // arn: "STRING_VALUE",
54
54
  * // kmsKeyArn: "STRING_VALUE",
55
+ * // standbyReplicas: "STRING_VALUE",
55
56
  * // createdDate: Number("long"),
56
57
  * // lastModifiedDate: Number("long"),
57
58
  * // collectionEndpoint: "STRING_VALUE",
@@ -41,6 +41,7 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
41
41
  * value: "STRING_VALUE", // required
42
42
  * },
43
43
  * ],
44
+ * standbyReplicas: "STRING_VALUE",
44
45
  * clientToken: "STRING_VALUE",
45
46
  * };
46
47
  * const command = new CreateCollectionCommand(input);
@@ -54,6 +55,7 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
54
55
  * // description: "STRING_VALUE",
55
56
  * // arn: "STRING_VALUE",
56
57
  * // kmsKeyArn: "STRING_VALUE",
58
+ * // standbyReplicas: "STRING_VALUE",
57
59
  * // createdDate: Number("long"),
58
60
  * // lastModifiedDate: Number("long"),
59
61
  * // },
@@ -418,6 +418,24 @@ export interface BatchGetCollectionRequest {
418
418
  */
419
419
  names?: string[];
420
420
  }
421
+ /**
422
+ * @public
423
+ * @enum
424
+ */
425
+ export declare const StandbyReplicas: {
426
+ /**
427
+ * Standby replicas disabled
428
+ */
429
+ readonly DISABLED: "DISABLED";
430
+ /**
431
+ * Standby replicas enabled
432
+ */
433
+ readonly ENABLED: "ENABLED";
434
+ };
435
+ /**
436
+ * @public
437
+ */
438
+ export type StandbyReplicas = (typeof StandbyReplicas)[keyof typeof StandbyReplicas];
421
439
  /**
422
440
  * @public
423
441
  * @enum
@@ -507,6 +525,11 @@ export interface CollectionDetail {
507
525
  * <p>The ARN of the Amazon Web Services KMS key used to encrypt the collection.</p>
508
526
  */
509
527
  kmsKeyArn?: string;
528
+ /**
529
+ * @public
530
+ * <p>Details about an OpenSearch Serverless collection.</p>
531
+ */
532
+ standbyReplicas?: StandbyReplicas;
510
533
  /**
511
534
  * @public
512
535
  * <p>The Epoch time when the collection was created.</p>
@@ -968,6 +991,11 @@ export interface CreateCollectionRequest {
968
991
  * <p>An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.</p>
969
992
  */
970
993
  tags?: Tag[];
994
+ /**
995
+ * @public
996
+ * <p>Indicates whether standby replicas should be used for a collection.</p>
997
+ */
998
+ standbyReplicas?: StandbyReplicas;
971
999
  /**
972
1000
  * @public
973
1001
  * <p>Unique, case-sensitive identifier to ensure idempotency of the request.</p>
@@ -1014,6 +1042,11 @@ export interface CreateCollectionDetail {
1014
1042
  * <p>The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.</p>
1015
1043
  */
1016
1044
  kmsKeyArn?: string;
1045
+ /**
1046
+ * @public
1047
+ * <p>Creates details about an OpenSearch Serverless collection.</p>
1048
+ */
1049
+ standbyReplicas?: StandbyReplicas;
1017
1050
  /**
1018
1051
  * @public
1019
1052
  * <p>The Epoch time when the collection was created.</p>
@@ -118,6 +118,12 @@ export interface BatchGetCollectionRequest {
118
118
  ids?: string[];
119
119
  names?: string[];
120
120
  }
121
+ export declare const StandbyReplicas: {
122
+ readonly DISABLED: "DISABLED";
123
+ readonly ENABLED: "ENABLED";
124
+ };
125
+ export type StandbyReplicas =
126
+ (typeof StandbyReplicas)[keyof typeof StandbyReplicas];
121
127
  export declare const CollectionStatus: {
122
128
  readonly ACTIVE: "ACTIVE";
123
129
  readonly CREATING: "CREATING";
@@ -141,6 +147,7 @@ export interface CollectionDetail {
141
147
  description?: string;
142
148
  arn?: string;
143
149
  kmsKeyArn?: string;
150
+ standbyReplicas?: StandbyReplicas;
144
151
  createdDate?: number;
145
152
  lastModifiedDate?: number;
146
153
  collectionEndpoint?: string;
@@ -254,6 +261,7 @@ export interface CreateCollectionRequest {
254
261
  type?: CollectionType;
255
262
  description?: string;
256
263
  tags?: Tag[];
264
+ standbyReplicas?: StandbyReplicas;
257
265
  clientToken?: string;
258
266
  }
259
267
  export interface CreateCollectionDetail {
@@ -264,6 +272,7 @@ export interface CreateCollectionDetail {
264
272
  description?: string;
265
273
  arn?: string;
266
274
  kmsKeyArn?: string;
275
+ standbyReplicas?: StandbyReplicas;
267
276
  createdDate?: number;
268
277
  lastModifiedDate?: number;
269
278
  }
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.460.0",
4
+ "version": "3.462.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,13 +21,13 @@
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.460.0",
24
+ "@aws-sdk/client-sts": "3.462.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
26
  "@aws-sdk/credential-provider-node": "3.460.0",
27
27
  "@aws-sdk/middleware-host-header": "3.460.0",
28
28
  "@aws-sdk/middleware-logger": "3.460.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.460.0",
30
- "@aws-sdk/middleware-signing": "3.460.0",
30
+ "@aws-sdk/middleware-signing": "3.461.0",
31
31
  "@aws-sdk/middleware-user-agent": "3.460.0",
32
32
  "@aws-sdk/region-config-resolver": "3.451.0",
33
33
  "@aws-sdk/types": "3.460.0",