@aws-sdk/client-opensearch 3.1164.0 → 3.1165.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 (30) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +151 -14
  3. package/dist-es/OpenSearch.js +2 -0
  4. package/dist-es/commands/UpdateCloneCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +28 -0
  7. package/dist-es/schemas/schemas_0.js +97 -13
  8. package/dist-types/OpenSearch.d.ts +7 -0
  9. package/dist-types/OpenSearchClient.d.ts +3 -2
  10. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +11 -0
  11. package/dist-types/commands/ListInsightsCommand.d.ts +2 -1
  12. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +1 -2
  13. package/dist-types/commands/UpdateCloneCommand.d.ts +117 -0
  14. package/dist-types/commands/UpgradeDomainCommand.d.ts +18 -0
  15. package/dist-types/commands/index.d.ts +1 -0
  16. package/dist-types/models/enums.d.ts +84 -0
  17. package/dist-types/models/models_0.d.ts +59 -109
  18. package/dist-types/models/models_1.d.ts +313 -2
  19. package/dist-types/schemas/schemas_0.d.ts +13 -0
  20. package/dist-types/ts3.4/OpenSearch.d.ts +14 -0
  21. package/dist-types/ts3.4/OpenSearchClient.d.ts +3 -0
  22. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +2 -1
  23. package/dist-types/ts3.4/commands/ListInstanceTypeDetailsCommand.d.ts +4 -2
  24. package/dist-types/ts3.4/commands/UpdateCloneCommand.d.ts +38 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/enums.d.ts +37 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +15 -22
  28. package/dist-types/ts3.4/models/models_1.d.ts +95 -1
  29. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  30. package/package.json +8 -8
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdateCloneRequest, UpdateCloneResponse } from "../models/models_1";
3
+ export { __MetadataBearer };
4
+ export interface UpdateCloneCommandInput extends UpdateCloneRequest {}
5
+ export interface UpdateCloneCommandOutput extends UpdateCloneResponse, __MetadataBearer {}
6
+ declare const UpdateCloneCommand_base: {
7
+ new (
8
+ input: UpdateCloneCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ UpdateCloneCommandInput,
11
+ UpdateCloneCommandOutput,
12
+ import("..").OpenSearchClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: UpdateCloneCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ UpdateCloneCommandInput,
20
+ UpdateCloneCommandOutput,
21
+ import("..").OpenSearchClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class UpdateCloneCommand extends UpdateCloneCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: UpdateCloneRequest;
31
+ output: UpdateCloneResponse;
32
+ };
33
+ sdk: {
34
+ input: UpdateCloneCommandInput;
35
+ output: UpdateCloneCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -91,6 +91,7 @@ export * from "./StartMigrationCommand";
91
91
  export * from "./StartServiceSoftwareUpdateCommand";
92
92
  export * from "./SwitchoverReplicationCommand";
93
93
  export * from "./UpdateApplicationCommand";
94
+ export * from "./UpdateCloneCommand";
94
95
  export * from "./UpdateDataSourceCommand";
95
96
  export * from "./UpdateDirectQueryDataSourceCommand";
96
97
  export * from "./UpdateDomainConfigCommand";
@@ -441,6 +441,12 @@ export declare const AutoTuneType: {
441
441
  readonly SCHEDULED_ACTION: "SCHEDULED_ACTION";
442
442
  };
443
443
  export type AutoTuneType = (typeof AutoTuneType)[keyof typeof AutoTuneType];
444
+ export declare const ClonedBlueGreenScheduledActionType: {
445
+ readonly AUTOMATIC_CUTOVER_TO_PRIMARY: "AutomaticCutoverToPrimaryCluster";
446
+ readonly DELETE_PRIMARY_CLUSTER: "DeletePrimaryCluster";
447
+ };
448
+ export type ClonedBlueGreenScheduledActionType =
449
+ (typeof ClonedBlueGreenScheduledActionType)[keyof typeof ClonedBlueGreenScheduledActionType];
444
450
  export declare const OverallChangeStatus: {
445
451
  readonly COMPLETED: "COMPLETED";
446
452
  readonly FAILED: "FAILED";
@@ -634,6 +640,32 @@ export declare const ScheduleAt: {
634
640
  readonly TIMESTAMP: "TIMESTAMP";
635
641
  };
636
642
  export type ScheduleAt = (typeof ScheduleAt)[keyof typeof ScheduleAt];
643
+ export declare const CutoverTarget: {
644
+ readonly CLONED_CLUSTER: "ClonedCluster";
645
+ readonly PRIMARY_CLUSTER: "PrimaryCluster";
646
+ };
647
+ export type CutoverTarget = (typeof CutoverTarget)[keyof typeof CutoverTarget];
648
+ export declare const RetentionAction: {
649
+ readonly DELETE_PRIMARY_CLUSTER: "DeletePrimaryCluster";
650
+ readonly ROLLBACK_TO_PRIMARY_CLUSTER: "RollbackToPrimaryCluster";
651
+ };
652
+ export type RetentionAction = (typeof RetentionAction)[keyof typeof RetentionAction];
653
+ export declare const TrafficStrategy: {
654
+ readonly SHIFT_READ_TRAFFIC_PERCENT: "ShiftReadTrafficPercent";
655
+ };
656
+ export type TrafficStrategy = (typeof TrafficStrategy)[keyof typeof TrafficStrategy];
657
+ export declare const CutoverStatus: {
658
+ readonly COMPLETED: "Completed";
659
+ readonly FAILED: "Failed";
660
+ readonly IN_PROGRESS: "InProgress";
661
+ };
662
+ export type CutoverStatus = (typeof CutoverStatus)[keyof typeof CutoverStatus];
663
+ export declare const TrafficSplitStatus: {
664
+ readonly COMPLETED: "Completed";
665
+ readonly FAILED: "Failed";
666
+ readonly IN_PROGRESS: "InProgress";
667
+ };
668
+ export type TrafficSplitStatus = (typeof TrafficSplitStatus)[keyof typeof TrafficSplitStatus];
637
669
  export declare const DryRunMode: {
638
670
  readonly Basic: "Basic";
639
671
  readonly Verbose: "Verbose";
@@ -646,3 +678,8 @@ export declare const PackageScopeOperationEnum: {
646
678
  };
647
679
  export type PackageScopeOperationEnum =
648
680
  (typeof PackageScopeOperationEnum)[keyof typeof PackageScopeOperationEnum];
681
+ export declare const DeploymentStrategyOverride: {
682
+ readonly CLONED_BLUE_GREEN: "ClonedBlueGreen";
683
+ };
684
+ export type DeploymentStrategyOverride =
685
+ (typeof DeploymentStrategyOverride)[keyof typeof DeploymentStrategyOverride];
@@ -8,6 +8,7 @@ import {
8
8
  AWSServicePrincipal,
9
9
  CapabilityFailureReason,
10
10
  CapabilityStatus,
11
+ ClonedBlueGreenScheduledActionType,
11
12
  ConfigChangeStatus,
12
13
  ConnectionMode,
13
14
  DataSourceAttachmentStatus,
@@ -959,6 +960,19 @@ export interface ChangeProgressStage {
959
960
  Description?: string | undefined;
960
961
  LastUpdated?: Date | undefined;
961
962
  }
963
+ export interface ClonedBlueGreenScheduledAction {
964
+ Action?: ClonedBlueGreenScheduledActionType | undefined;
965
+ ScheduledTime?: Date | undefined;
966
+ }
967
+ export interface TrafficPercents {
968
+ PrimaryReadTrafficPercent: number | undefined;
969
+ CloneReadTrafficPercent: number | undefined;
970
+ }
971
+ export interface ClonedBlueGreenUpgradeDetails {
972
+ TrafficSplit?: TrafficPercents | undefined;
973
+ ScheduledAction?: ClonedBlueGreenScheduledAction | undefined;
974
+ RetentionInHours?: number | undefined;
975
+ }
962
976
  export interface ValidationFailure {
963
977
  Code?: string | undefined;
964
978
  Message?: string | undefined;
@@ -975,6 +989,7 @@ export interface ChangeProgressStatusDetails {
975
989
  LastUpdatedTime?: Date | undefined;
976
990
  ConfigChangeStatus?: ConfigChangeStatus | undefined;
977
991
  InitiatedBy?: InitiatedBy | undefined;
992
+ ClonedBlueGreenUpgradeDetails?: ClonedBlueGreenUpgradeDetails | undefined;
978
993
  ValidationFailures?: ValidationFailure[] | undefined;
979
994
  AcceptedWarnings?: string[] | undefined;
980
995
  }
@@ -1666,25 +1681,3 @@ export interface Insight {
1666
1681
  UpdateTime?: Date | undefined;
1667
1682
  IsExperimental?: boolean | undefined;
1668
1683
  }
1669
- export interface ListInsightsResponse {
1670
- Insights?: Insight[] | undefined;
1671
- NextToken?: string | undefined;
1672
- }
1673
- export interface ListInstanceTypeDetailsRequest {
1674
- EngineVersion: string | undefined;
1675
- DomainName?: string | undefined;
1676
- MaxResults?: number | undefined;
1677
- NextToken?: string | undefined;
1678
- RetrieveAZs?: boolean | undefined;
1679
- InstanceType?: string | undefined;
1680
- }
1681
- export interface InstanceTypeDetails {
1682
- InstanceType?: OpenSearchPartitionInstanceType | undefined;
1683
- EncryptionEnabled?: boolean | undefined;
1684
- CognitoEnabled?: boolean | undefined;
1685
- AppLogsEnabled?: boolean | undefined;
1686
- AdvancedSecurityEnabled?: boolean | undefined;
1687
- WarmEnabled?: boolean | undefined;
1688
- InstanceRole?: string[] | undefined;
1689
- AvailabilityZones?: string[] | undefined;
1690
- }
@@ -5,7 +5,10 @@ import {
5
5
  ActionType,
6
6
  AWSServicePrincipal,
7
7
  CapabilityStatus,
8
+ CutoverStatus,
9
+ CutoverTarget,
8
10
  DataSourceStatus,
11
+ DeploymentStrategyOverride,
9
12
  DomainUseCase,
10
13
  DryRunMode,
11
14
  EngineMode,
@@ -13,10 +16,14 @@ import {
13
16
  IPAddressType,
14
17
  LogType,
15
18
  MaintenanceType,
19
+ OpenSearchPartitionInstanceType,
16
20
  PackageScopeOperationEnum,
17
21
  ReplicationStatus,
22
+ RetentionAction,
18
23
  ScheduleAt,
19
24
  ScheduledBy,
25
+ TrafficSplitStatus,
26
+ TrafficStrategy,
20
27
  } from "./enums";
21
28
  import {
22
29
  AdvancedSecurityOptionsInput,
@@ -44,7 +51,7 @@ import {
44
51
  IamIdentityCenterOptionsInput,
45
52
  IdentityCenterOptionsInput,
46
53
  InboundConnection,
47
- InstanceTypeDetails,
54
+ Insight,
48
55
  LogPublishingOption,
49
56
  MigrationError,
50
57
  MigrationSource,
@@ -59,10 +66,33 @@ import {
59
66
  SnapshotOptions,
60
67
  SoftwareUpdateOptions,
61
68
  Tag,
69
+ TrafficPercents,
62
70
  VpcEndpoint,
63
71
  VpcEndpointSummary,
64
72
  VPCOptions,
65
73
  } from "./models_0";
74
+ export interface ListInsightsResponse {
75
+ Insights?: Insight[] | undefined;
76
+ NextToken?: string | undefined;
77
+ }
78
+ export interface ListInstanceTypeDetailsRequest {
79
+ EngineVersion: string | undefined;
80
+ DomainName?: string | undefined;
81
+ MaxResults?: number | undefined;
82
+ NextToken?: string | undefined;
83
+ RetrieveAZs?: boolean | undefined;
84
+ InstanceType?: string | undefined;
85
+ }
86
+ export interface InstanceTypeDetails {
87
+ InstanceType?: OpenSearchPartitionInstanceType | undefined;
88
+ EncryptionEnabled?: boolean | undefined;
89
+ CognitoEnabled?: boolean | undefined;
90
+ AppLogsEnabled?: boolean | undefined;
91
+ AdvancedSecurityEnabled?: boolean | undefined;
92
+ WarmEnabled?: boolean | undefined;
93
+ InstanceRole?: string[] | undefined;
94
+ AvailabilityZones?: string[] | undefined;
95
+ }
66
96
  export interface ListInstanceTypeDetailsResponse {
67
97
  InstanceTypeDetails?: InstanceTypeDetails[] | undefined;
68
98
  NextToken?: string | undefined;
@@ -322,6 +352,61 @@ export interface UpdateApplicationResponse {
322
352
  createdAt?: Date | undefined;
323
353
  lastUpdatedAt?: Date | undefined;
324
354
  }
355
+ export interface CutoverRequestOptions {
356
+ Target: CutoverTarget | undefined;
357
+ }
358
+ export type RetentionOptions =
359
+ | RetentionOptions.RetentionActionMember
360
+ | RetentionOptions.RetentionInHoursMember
361
+ | RetentionOptions.$UnknownMember;
362
+ export declare namespace RetentionOptions {
363
+ interface RetentionInHoursMember {
364
+ RetentionInHours: number;
365
+ RetentionAction?: never;
366
+ $unknown?: never;
367
+ }
368
+ interface RetentionActionMember {
369
+ RetentionInHours?: never;
370
+ RetentionAction: RetentionAction;
371
+ $unknown?: never;
372
+ }
373
+ interface $UnknownMember {
374
+ RetentionInHours?: never;
375
+ RetentionAction?: never;
376
+ $unknown: [string, any];
377
+ }
378
+ interface Visitor<T> {
379
+ RetentionInHours: (value: number) => T;
380
+ RetentionAction: (value: RetentionAction) => T;
381
+ _: (name: string, value: any) => T;
382
+ }
383
+ }
384
+ export interface TrafficSplitRequestOptions {
385
+ Strategy: TrafficStrategy | undefined;
386
+ CloneReadTrafficPercent: number | undefined;
387
+ }
388
+ export interface UpdateCloneRequest {
389
+ DomainName: string | undefined;
390
+ TrafficSplitOptions?: TrafficSplitRequestOptions | undefined;
391
+ CutoverOptions?: CutoverRequestOptions | undefined;
392
+ RetentionOptions?: RetentionOptions | undefined;
393
+ }
394
+ export interface CutoverOptions {
395
+ Target: CutoverTarget | undefined;
396
+ Status: CutoverStatus | undefined;
397
+ }
398
+ export interface TrafficSplitOptions {
399
+ Current: TrafficPercents | undefined;
400
+ Target: TrafficPercents | undefined;
401
+ Status: TrafficSplitStatus | undefined;
402
+ }
403
+ export interface UpdateCloneResponse {
404
+ DomainName: string | undefined;
405
+ ChangeId: string | undefined;
406
+ CutoverOptions?: CutoverOptions | undefined;
407
+ TrafficSplitOptions?: TrafficSplitOptions | undefined;
408
+ RetentionOptions?: RetentionOptions | undefined;
409
+ }
325
410
  export interface UpdateDataSourceRequest {
326
411
  DomainName: string | undefined;
327
412
  Name: string | undefined;
@@ -421,11 +506,19 @@ export interface UpdateVpcEndpointRequest {
421
506
  export interface UpdateVpcEndpointResponse {
422
507
  VpcEndpoint: VpcEndpoint | undefined;
423
508
  }
509
+ export interface ClonedBlueGreenOptions {
510
+ RetentionOptions?: RetentionOptions | undefined;
511
+ }
512
+ export interface DeploymentStrategyOverrideOptions {
513
+ DeploymentStrategy: DeploymentStrategyOverride | undefined;
514
+ ClonedBlueGreenOptions?: ClonedBlueGreenOptions | undefined;
515
+ }
424
516
  export interface UpgradeDomainRequest {
425
517
  DomainName: string | undefined;
426
518
  TargetVersion: string | undefined;
427
519
  PerformCheckOnly?: boolean | undefined;
428
520
  AdvancedOptions?: Record<string, string> | undefined;
521
+ DeploymentStrategyOptions?: DeploymentStrategyOverrideOptions | undefined;
429
522
  }
430
523
  export interface UpgradeDomainResponse {
431
524
  UpgradeId?: string | undefined;
@@ -433,5 +526,6 @@ export interface UpgradeDomainResponse {
433
526
  TargetVersion?: string | undefined;
434
527
  PerformCheckOnly?: boolean | undefined;
435
528
  AdvancedOptions?: Record<string, string> | undefined;
529
+ DeploymentStrategyOptions?: DeploymentStrategyOverrideOptions | undefined;
436
530
  ChangeProgressDetails?: ChangeProgressDetails | undefined;
437
531
  }
@@ -75,6 +75,9 @@ export declare var CategoryDiffResult$: StaticStructureSchema;
75
75
  export declare var ChangeProgressDetails$: StaticStructureSchema;
76
76
  export declare var ChangeProgressStage$: StaticStructureSchema;
77
77
  export declare var ChangeProgressStatusDetails$: StaticStructureSchema;
78
+ export declare var ClonedBlueGreenOptions$: StaticStructureSchema;
79
+ export declare var ClonedBlueGreenScheduledAction$: StaticStructureSchema;
80
+ export declare var ClonedBlueGreenUpgradeDetails$: StaticStructureSchema;
78
81
  export declare var CloudWatchDirectQueryDataSource$: StaticStructureSchema;
79
82
  export declare var ClusterConfig$: StaticStructureSchema;
80
83
  export declare var ClusterConfigStatus$: StaticStructureSchema;
@@ -98,6 +101,8 @@ export declare var CreatePackageResponse$: StaticStructureSchema;
98
101
  export declare var CreateVpcEndpointRequest$: StaticStructureSchema;
99
102
  export declare var CreateVpcEndpointResponse$: StaticStructureSchema;
100
103
  export declare var CrossClusterSearchConnectionProperties$: StaticStructureSchema;
104
+ export declare var CutoverOptions$: StaticStructureSchema;
105
+ export declare var CutoverRequestOptions$: StaticStructureSchema;
101
106
  export declare var DataSource$: StaticStructureSchema;
102
107
  export declare var DataSourceAttachmentSummary$: StaticStructureSchema;
103
108
  export declare var DataSourceDetails$: StaticStructureSchema;
@@ -120,6 +125,7 @@ export declare var DeleteVpcEndpointRequest$: StaticStructureSchema;
120
125
  export declare var DeleteVpcEndpointResponse$: StaticStructureSchema;
121
126
  export declare var DeploymentStrategyOptions$: StaticStructureSchema;
122
127
  export declare var DeploymentStrategyOptionsStatus$: StaticStructureSchema;
128
+ export declare var DeploymentStrategyOverrideOptions$: StaticStructureSchema;
123
129
  export declare var DeregisterCapabilityRequest$: StaticStructureSchema;
124
130
  export declare var DeregisterCapabilityResponse$: StaticStructureSchema;
125
131
  export declare var DescribeDataSourceAttachmentRequest$: StaticStructureSchema;
@@ -352,8 +358,13 @@ export declare var StorageTypeLimit$: StaticStructureSchema;
352
358
  export declare var SwitchoverReplicationRequest$: StaticStructureSchema;
353
359
  export declare var SwitchoverReplicationResponse$: StaticStructureSchema;
354
360
  export declare var Tag$: StaticStructureSchema;
361
+ export declare var TrafficPercents$: StaticStructureSchema;
362
+ export declare var TrafficSplitOptions$: StaticStructureSchema;
363
+ export declare var TrafficSplitRequestOptions$: StaticStructureSchema;
355
364
  export declare var UpdateApplicationRequest$: StaticStructureSchema;
356
365
  export declare var UpdateApplicationResponse$: StaticStructureSchema;
366
+ export declare var UpdateCloneRequest$: StaticStructureSchema;
367
+ export declare var UpdateCloneResponse$: StaticStructureSchema;
357
368
  export declare var UpdateDataSourceRequest$: StaticStructureSchema;
358
369
  export declare var UpdateDataSourceResponse$: StaticStructureSchema;
359
370
  export declare var UpdateDirectQueryDataSourceRequest$: StaticStructureSchema;
@@ -391,6 +402,7 @@ export declare var CapabilityBaseResponseConfig$: StaticUnionSchema;
391
402
  export declare var CapabilityExtendedResponseConfig$: StaticUnionSchema;
392
403
  export declare var DataSourceType$: StaticUnionSchema;
393
404
  export declare var DirectQueryDataSourceType$: StaticUnionSchema;
405
+ export declare var RetentionOptions$: StaticUnionSchema;
394
406
  export declare var AcceptInboundConnection$: StaticOperationSchema;
395
407
  export declare var AddDataSource$: StaticOperationSchema;
396
408
  export declare var AddDirectQueryDataSource$: StaticOperationSchema;
@@ -484,6 +496,7 @@ export declare var StartMigration$: StaticOperationSchema;
484
496
  export declare var StartServiceSoftwareUpdate$: StaticOperationSchema;
485
497
  export declare var SwitchoverReplication$: StaticOperationSchema;
486
498
  export declare var UpdateApplication$: StaticOperationSchema;
499
+ export declare var UpdateClone$: StaticOperationSchema;
487
500
  export declare var UpdateDataSource$: StaticOperationSchema;
488
501
  export declare var UpdateDirectQueryDataSource$: StaticOperationSchema;
489
502
  export declare var UpdateDomainConfig$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearch",
3
- "version": "3.1164.0",
3
+ "version": "3.1165.0",
4
4
  "description": "AWS SDK for JavaScript Opensearch Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-opensearch",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.980.1",
50
- "@aws-sdk/credential-provider-node": "^3.972.94",
51
- "@aws-sdk/types": "^3.975.0",
52
- "@smithy/core": "^3.38.0",
53
- "@smithy/fetch-http-handler": "^5.8.0",
54
- "@smithy/node-http-handler": "^4.14.0",
55
- "@smithy/types": "^4.19.0",
49
+ "@aws-sdk/core": "^3.980.2",
50
+ "@aws-sdk/credential-provider-node": "^3.972.95",
51
+ "@aws-sdk/types": "^3.975.1",
52
+ "@smithy/core": "^3.39.0",
53
+ "@smithy/fetch-http-handler": "^5.8.1",
54
+ "@smithy/node-http-handler": "^4.14.2",
55
+ "@smithy/types": "^4.20.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {