@aws-sdk/client-opensearch 3.276.0 → 3.277.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 (39) hide show
  1. package/dist-cjs/OpenSearch.js +30 -0
  2. package/dist-cjs/commands/ListScheduledActionsCommand.js +46 -0
  3. package/dist-cjs/commands/UpdateScheduledActionCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/endpoint/ruleset.js +3 -3
  6. package/dist-cjs/models/models_0.js +95 -5
  7. package/dist-cjs/pagination/ListScheduledActionsPaginator.js +36 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +295 -2
  10. package/dist-es/OpenSearch.js +30 -0
  11. package/dist-es/commands/ListScheduledActionsCommand.js +42 -0
  12. package/dist-es/commands/UpdateScheduledActionCommand.js +42 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/endpoint/ruleset.js +3 -3
  15. package/dist-es/models/models_0.js +78 -0
  16. package/dist-es/pagination/ListScheduledActionsPaginator.js +32 -0
  17. package/dist-es/pagination/index.js +1 -0
  18. package/dist-es/protocols/Aws_restJson1.js +289 -1
  19. package/dist-types/OpenSearch.d.ts +20 -0
  20. package/dist-types/OpenSearchClient.d.ts +4 -2
  21. package/dist-types/commands/ListScheduledActionsCommand.d.ts +40 -0
  22. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +40 -0
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  25. package/dist-types/models/models_0.d.ts +389 -15
  26. package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +4 -0
  27. package/dist-types/pagination/index.d.ts +1 -0
  28. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  29. package/dist-types/ts3.4/OpenSearch.d.ts +34 -0
  30. package/dist-types/ts3.4/OpenSearchClient.d.ts +12 -0
  31. package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +41 -0
  32. package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +41 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  35. package/dist-types/ts3.4/models/models_0.d.ts +133 -0
  36. package/dist-types/ts3.4/pagination/ListScheduledActionsPaginator.d.ts +11 -0
  37. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  39. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1UpgradeDomainCommand = exports.serializeAws_restJson1UpdateVpcEndpointCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateDomainConfigCommand = exports.serializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundConnectionCommand = exports.serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.serializeAws_restJson1ListVpcEndpointsCommand = exports.serializeAws_restJson1ListVpcEndpointAccessCommand = exports.serializeAws_restJson1ListVersionsCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListInstanceTypeDetailsCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeVpcEndpointsCommand = exports.serializeAws_restJson1DescribeReservedInstancesCommand = exports.serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundConnectionsCommand = exports.serializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeInboundConnectionsCommand = exports.serializeAws_restJson1DescribeDryRunProgressCommand = exports.serializeAws_restJson1DescribeDomainsCommand = exports.serializeAws_restJson1DescribeDomainConfigCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DescribeDomainCommand = exports.serializeAws_restJson1DeleteVpcEndpointCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundConnectionCommand = exports.serializeAws_restJson1DeleteInboundConnectionCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateVpcEndpointCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundConnectionCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundConnectionCommand = void 0;
4
- exports.deserializeAws_restJson1UpgradeDomainCommand = exports.deserializeAws_restJson1UpdateVpcEndpointCommand = exports.deserializeAws_restJson1UpdatePackageCommand = exports.deserializeAws_restJson1UpdateDomainConfigCommand = exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.deserializeAws_restJson1ListVpcEndpointsCommand = exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = exports.deserializeAws_restJson1ListVersionsCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = exports.deserializeAws_restJson1DescribeReservedInstancesCommand = exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = exports.deserializeAws_restJson1DescribeDryRunProgressCommand = exports.deserializeAws_restJson1DescribeDomainsCommand = exports.deserializeAws_restJson1DescribeDomainConfigCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeleteVpcEndpointCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = exports.deserializeAws_restJson1DeleteInboundConnectionCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateVpcEndpointCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundConnectionCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = exports.deserializeAws_restJson1AcceptInboundConnectionCommand = void 0;
3
+ exports.serializeAws_restJson1UpdateScheduledActionCommand = exports.serializeAws_restJson1UpdatePackageCommand = exports.serializeAws_restJson1UpdateDomainConfigCommand = exports.serializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.serializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.serializeAws_restJson1RemoveTagsCommand = exports.serializeAws_restJson1RejectInboundConnectionCommand = exports.serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.serializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.serializeAws_restJson1ListVpcEndpointsCommand = exports.serializeAws_restJson1ListVpcEndpointAccessCommand = exports.serializeAws_restJson1ListVersionsCommand = exports.serializeAws_restJson1ListTagsCommand = exports.serializeAws_restJson1ListScheduledActionsCommand = exports.serializeAws_restJson1ListPackagesForDomainCommand = exports.serializeAws_restJson1ListInstanceTypeDetailsCommand = exports.serializeAws_restJson1ListDomainsForPackageCommand = exports.serializeAws_restJson1ListDomainNamesCommand = exports.serializeAws_restJson1GetUpgradeStatusCommand = exports.serializeAws_restJson1GetUpgradeHistoryCommand = exports.serializeAws_restJson1GetPackageVersionHistoryCommand = exports.serializeAws_restJson1GetCompatibleVersionsCommand = exports.serializeAws_restJson1DissociatePackageCommand = exports.serializeAws_restJson1DescribeVpcEndpointsCommand = exports.serializeAws_restJson1DescribeReservedInstancesCommand = exports.serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.serializeAws_restJson1DescribePackagesCommand = exports.serializeAws_restJson1DescribeOutboundConnectionsCommand = exports.serializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.serializeAws_restJson1DescribeInboundConnectionsCommand = exports.serializeAws_restJson1DescribeDryRunProgressCommand = exports.serializeAws_restJson1DescribeDomainsCommand = exports.serializeAws_restJson1DescribeDomainConfigCommand = exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = exports.serializeAws_restJson1DescribeDomainCommand = exports.serializeAws_restJson1DeleteVpcEndpointCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteOutboundConnectionCommand = exports.serializeAws_restJson1DeleteInboundConnectionCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateVpcEndpointCommand = exports.serializeAws_restJson1CreatePackageCommand = exports.serializeAws_restJson1CreateOutboundConnectionCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.serializeAws_restJson1AssociatePackageCommand = exports.serializeAws_restJson1AddTagsCommand = exports.serializeAws_restJson1AcceptInboundConnectionCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateDomainConfigCommand = exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1RevokeVpcEndpointAccessCommand = exports.deserializeAws_restJson1RemoveTagsCommand = exports.deserializeAws_restJson1RejectInboundConnectionCommand = exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = exports.deserializeAws_restJson1ListVpcEndpointsForDomainCommand = exports.deserializeAws_restJson1ListVpcEndpointsCommand = exports.deserializeAws_restJson1ListVpcEndpointAccessCommand = exports.deserializeAws_restJson1ListVersionsCommand = exports.deserializeAws_restJson1ListTagsCommand = exports.deserializeAws_restJson1ListScheduledActionsCommand = exports.deserializeAws_restJson1ListPackagesForDomainCommand = exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = exports.deserializeAws_restJson1ListDomainsForPackageCommand = exports.deserializeAws_restJson1ListDomainNamesCommand = exports.deserializeAws_restJson1GetUpgradeStatusCommand = exports.deserializeAws_restJson1GetUpgradeHistoryCommand = exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = exports.deserializeAws_restJson1GetCompatibleVersionsCommand = exports.deserializeAws_restJson1DissociatePackageCommand = exports.deserializeAws_restJson1DescribeVpcEndpointsCommand = exports.deserializeAws_restJson1DescribeReservedInstancesCommand = exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = exports.deserializeAws_restJson1DescribePackagesCommand = exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = exports.deserializeAws_restJson1DescribeDryRunProgressCommand = exports.deserializeAws_restJson1DescribeDomainsCommand = exports.deserializeAws_restJson1DescribeDomainConfigCommand = exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeleteVpcEndpointCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = exports.deserializeAws_restJson1DeleteInboundConnectionCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateVpcEndpointCommand = exports.deserializeAws_restJson1CreatePackageCommand = exports.deserializeAws_restJson1CreateOutboundConnectionCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = exports.deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = exports.deserializeAws_restJson1AssociatePackageCommand = exports.deserializeAws_restJson1AddTagsCommand = exports.deserializeAws_restJson1AcceptInboundConnectionCommand = exports.serializeAws_restJson1UpgradeDomainCommand = exports.serializeAws_restJson1UpdateVpcEndpointCommand = void 0;
5
+ exports.deserializeAws_restJson1UpgradeDomainCommand = exports.deserializeAws_restJson1UpdateVpcEndpointCommand = exports.deserializeAws_restJson1UpdateScheduledActionCommand = exports.deserializeAws_restJson1UpdatePackageCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const models_0_1 = require("../models/models_0");
@@ -149,9 +150,15 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
149
150
  ...(input.NodeToNodeEncryptionOptions != null && {
150
151
  NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
151
152
  }),
153
+ ...(input.OffPeakWindowOptions != null && {
154
+ OffPeakWindowOptions: serializeAws_restJson1OffPeakWindowOptions(input.OffPeakWindowOptions, context),
155
+ }),
152
156
  ...(input.SnapshotOptions != null && {
153
157
  SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
154
158
  }),
159
+ ...(input.SoftwareUpdateOptions != null && {
160
+ SoftwareUpdateOptions: serializeAws_restJson1SoftwareUpdateOptions(input.SoftwareUpdateOptions, context),
161
+ }),
155
162
  ...(input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
156
163
  ...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
157
164
  });
@@ -812,6 +819,29 @@ const serializeAws_restJson1ListPackagesForDomainCommand = async (input, context
812
819
  });
813
820
  };
814
821
  exports.serializeAws_restJson1ListPackagesForDomainCommand = serializeAws_restJson1ListPackagesForDomainCommand;
822
+ const serializeAws_restJson1ListScheduledActionsCommand = async (input, context) => {
823
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
824
+ const headers = {};
825
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
826
+ "/2021-01-01/opensearch/domain/{DomainName}/scheduledActions";
827
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
828
+ const query = map({
829
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
830
+ nextToken: [, input.NextToken],
831
+ });
832
+ let body;
833
+ return new protocol_http_1.HttpRequest({
834
+ protocol,
835
+ hostname,
836
+ port,
837
+ method: "GET",
838
+ headers,
839
+ path: resolvedPath,
840
+ query,
841
+ body,
842
+ });
843
+ };
844
+ exports.serializeAws_restJson1ListScheduledActionsCommand = serializeAws_restJson1ListScheduledActionsCommand;
815
845
  const serializeAws_restJson1ListTagsCommand = async (input, context) => {
816
846
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
817
847
  const headers = {};
@@ -1013,7 +1043,9 @@ const serializeAws_restJson1StartServiceSoftwareUpdateCommand = async (input, co
1013
1043
  "/2021-01-01/opensearch/serviceSoftwareUpdate/start";
1014
1044
  let body;
1015
1045
  body = JSON.stringify({
1046
+ ...(input.DesiredStartTime != null && { DesiredStartTime: input.DesiredStartTime }),
1016
1047
  ...(input.DomainName != null && { DomainName: input.DomainName }),
1048
+ ...(input.ScheduleAt != null && { ScheduleAt: input.ScheduleAt }),
1017
1049
  });
1018
1050
  return new protocol_http_1.HttpRequest({
1019
1051
  protocol,
@@ -1067,9 +1099,15 @@ const serializeAws_restJson1UpdateDomainConfigCommand = async (input, context) =
1067
1099
  ...(input.NodeToNodeEncryptionOptions != null && {
1068
1100
  NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
1069
1101
  }),
1102
+ ...(input.OffPeakWindowOptions != null && {
1103
+ OffPeakWindowOptions: serializeAws_restJson1OffPeakWindowOptions(input.OffPeakWindowOptions, context),
1104
+ }),
1070
1105
  ...(input.SnapshotOptions != null && {
1071
1106
  SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
1072
1107
  }),
1108
+ ...(input.SoftwareUpdateOptions != null && {
1109
+ SoftwareUpdateOptions: serializeAws_restJson1SoftwareUpdateOptions(input.SoftwareUpdateOptions, context),
1110
+ }),
1073
1111
  ...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
1074
1112
  });
1075
1113
  return new protocol_http_1.HttpRequest({
@@ -1109,6 +1147,32 @@ const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
1109
1147
  });
1110
1148
  };
1111
1149
  exports.serializeAws_restJson1UpdatePackageCommand = serializeAws_restJson1UpdatePackageCommand;
1150
+ const serializeAws_restJson1UpdateScheduledActionCommand = async (input, context) => {
1151
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1152
+ const headers = {
1153
+ "content-type": "application/json",
1154
+ };
1155
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1156
+ "/2021-01-01/opensearch/domain/{DomainName}/scheduledAction/update";
1157
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
1158
+ let body;
1159
+ body = JSON.stringify({
1160
+ ...(input.ActionID != null && { ActionID: input.ActionID }),
1161
+ ...(input.ActionType != null && { ActionType: input.ActionType }),
1162
+ ...(input.DesiredStartTime != null && { DesiredStartTime: input.DesiredStartTime }),
1163
+ ...(input.ScheduleAt != null && { ScheduleAt: input.ScheduleAt }),
1164
+ });
1165
+ return new protocol_http_1.HttpRequest({
1166
+ protocol,
1167
+ hostname,
1168
+ port,
1169
+ method: "PUT",
1170
+ headers,
1171
+ path: resolvedPath,
1172
+ body,
1173
+ });
1174
+ };
1175
+ exports.serializeAws_restJson1UpdateScheduledActionCommand = serializeAws_restJson1UpdateScheduledActionCommand;
1112
1176
  const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, context) => {
1113
1177
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1114
1178
  const headers = {
@@ -2814,6 +2878,55 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2814
2878
  });
2815
2879
  }
2816
2880
  };
2881
+ const deserializeAws_restJson1ListScheduledActionsCommand = async (output, context) => {
2882
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2883
+ return deserializeAws_restJson1ListScheduledActionsCommandError(output, context);
2884
+ }
2885
+ const contents = map({
2886
+ $metadata: deserializeMetadata(output),
2887
+ });
2888
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2889
+ if (data.NextToken != null) {
2890
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2891
+ }
2892
+ if (data.ScheduledActions != null) {
2893
+ contents.ScheduledActions = deserializeAws_restJson1ScheduledActionsList(data.ScheduledActions, context);
2894
+ }
2895
+ return contents;
2896
+ };
2897
+ exports.deserializeAws_restJson1ListScheduledActionsCommand = deserializeAws_restJson1ListScheduledActionsCommand;
2898
+ const deserializeAws_restJson1ListScheduledActionsCommandError = async (output, context) => {
2899
+ const parsedOutput = {
2900
+ ...output,
2901
+ body: await parseErrorBody(output.body, context),
2902
+ };
2903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2904
+ switch (errorCode) {
2905
+ case "BaseException":
2906
+ case "com.amazonaws.opensearch#BaseException":
2907
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2908
+ case "InternalException":
2909
+ case "com.amazonaws.opensearch#InternalException":
2910
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2911
+ case "InvalidPaginationTokenException":
2912
+ case "com.amazonaws.opensearch#InvalidPaginationTokenException":
2913
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
2914
+ case "ResourceNotFoundException":
2915
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
2916
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2917
+ case "ValidationException":
2918
+ case "com.amazonaws.opensearch#ValidationException":
2919
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2920
+ default:
2921
+ const parsedBody = parsedOutput.body;
2922
+ (0, smithy_client_1.throwDefaultError)({
2923
+ output,
2924
+ parsedBody,
2925
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
2926
+ errorCode,
2927
+ });
2928
+ }
2929
+ };
2817
2930
  const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2818
2931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2819
2932
  return deserializeAws_restJson1ListTagsCommandError(output, context);
@@ -3354,6 +3467,58 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
3354
3467
  });
3355
3468
  }
3356
3469
  };
3470
+ const deserializeAws_restJson1UpdateScheduledActionCommand = async (output, context) => {
3471
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3472
+ return deserializeAws_restJson1UpdateScheduledActionCommandError(output, context);
3473
+ }
3474
+ const contents = map({
3475
+ $metadata: deserializeMetadata(output),
3476
+ });
3477
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3478
+ if (data.ScheduledAction != null) {
3479
+ contents.ScheduledAction = deserializeAws_restJson1ScheduledAction(data.ScheduledAction, context);
3480
+ }
3481
+ return contents;
3482
+ };
3483
+ exports.deserializeAws_restJson1UpdateScheduledActionCommand = deserializeAws_restJson1UpdateScheduledActionCommand;
3484
+ const deserializeAws_restJson1UpdateScheduledActionCommandError = async (output, context) => {
3485
+ const parsedOutput = {
3486
+ ...output,
3487
+ body: await parseErrorBody(output.body, context),
3488
+ };
3489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3490
+ switch (errorCode) {
3491
+ case "BaseException":
3492
+ case "com.amazonaws.opensearch#BaseException":
3493
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3494
+ case "ConflictException":
3495
+ case "com.amazonaws.opensearch#ConflictException":
3496
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3497
+ case "InternalException":
3498
+ case "com.amazonaws.opensearch#InternalException":
3499
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3500
+ case "LimitExceededException":
3501
+ case "com.amazonaws.opensearch#LimitExceededException":
3502
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3503
+ case "ResourceNotFoundException":
3504
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
3505
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3506
+ case "SlotNotAvailableException":
3507
+ case "com.amazonaws.opensearch#SlotNotAvailableException":
3508
+ throw await deserializeAws_restJson1SlotNotAvailableExceptionResponse(parsedOutput, context);
3509
+ case "ValidationException":
3510
+ case "com.amazonaws.opensearch#ValidationException":
3511
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3512
+ default:
3513
+ const parsedBody = parsedOutput.body;
3514
+ (0, smithy_client_1.throwDefaultError)({
3515
+ output,
3516
+ parsedBody,
3517
+ exceptionCtor: OpenSearchServiceException_1.OpenSearchServiceException,
3518
+ errorCode,
3519
+ });
3520
+ }
3521
+ };
3357
3522
  const deserializeAws_restJson1UpdateVpcEndpointCommand = async (output, context) => {
3358
3523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3359
3524
  return deserializeAws_restJson1UpdateVpcEndpointCommandError(output, context);
@@ -3588,6 +3753,21 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
3588
3753
  });
3589
3754
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3590
3755
  };
3756
+ const deserializeAws_restJson1SlotNotAvailableExceptionResponse = async (parsedOutput, context) => {
3757
+ const contents = map({});
3758
+ const data = parsedOutput.body;
3759
+ if (data.SlotSuggestions != null) {
3760
+ contents.SlotSuggestions = deserializeAws_restJson1SlotList(data.SlotSuggestions, context);
3761
+ }
3762
+ if (data.message != null) {
3763
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3764
+ }
3765
+ const exception = new models_0_1.SlotNotAvailableException({
3766
+ $metadata: deserializeMetadata(parsedOutput),
3767
+ ...contents,
3768
+ });
3769
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3770
+ };
3591
3771
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
3592
3772
  const contents = map({});
3593
3773
  const data = parsedOutput.body;
@@ -3647,6 +3827,7 @@ const serializeAws_restJson1AutoTuneOptions = (input, context) => {
3647
3827
  MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3648
3828
  }),
3649
3829
  ...(input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }),
3830
+ ...(input.UseOffPeakWindow != null && { UseOffPeakWindow: input.UseOffPeakWindow }),
3650
3831
  };
3651
3832
  };
3652
3833
  const serializeAws_restJson1AutoTuneOptionsInput = (input, context) => {
@@ -3655,6 +3836,7 @@ const serializeAws_restJson1AutoTuneOptionsInput = (input, context) => {
3655
3836
  ...(input.MaintenanceSchedules != null && {
3656
3837
  MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3657
3838
  }),
3839
+ ...(input.UseOffPeakWindow != null && { UseOffPeakWindow: input.UseOffPeakWindow }),
3658
3840
  };
3659
3841
  };
3660
3842
  const serializeAws_restJson1AWSDomainInformation = (input, context) => {
@@ -3802,6 +3984,21 @@ const serializeAws_restJson1NodeToNodeEncryptionOptions = (input, context) => {
3802
3984
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3803
3985
  };
3804
3986
  };
3987
+ const serializeAws_restJson1OffPeakWindow = (input, context) => {
3988
+ return {
3989
+ ...(input.WindowStartTime != null && {
3990
+ WindowStartTime: serializeAws_restJson1WindowStartTime(input.WindowStartTime, context),
3991
+ }),
3992
+ };
3993
+ };
3994
+ const serializeAws_restJson1OffPeakWindowOptions = (input, context) => {
3995
+ return {
3996
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3997
+ ...(input.OffPeakWindow != null && {
3998
+ OffPeakWindow: serializeAws_restJson1OffPeakWindow(input.OffPeakWindow, context),
3999
+ }),
4000
+ };
4001
+ };
3805
4002
  const serializeAws_restJson1PackageSource = (input, context) => {
3806
4003
  return {
3807
4004
  ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
@@ -3830,6 +4027,11 @@ const serializeAws_restJson1SnapshotOptions = (input, context) => {
3830
4027
  ...(input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
3831
4028
  };
3832
4029
  };
4030
+ const serializeAws_restJson1SoftwareUpdateOptions = (input, context) => {
4031
+ return {
4032
+ ...(input.AutoSoftwareUpdateEnabled != null && { AutoSoftwareUpdateEnabled: input.AutoSoftwareUpdateEnabled }),
4033
+ };
4034
+ };
3833
4035
  const serializeAws_restJson1StringList = (input, context) => {
3834
4036
  return input
3835
4037
  .filter((e) => e != null)
@@ -3872,6 +4074,12 @@ const serializeAws_restJson1VPCOptions = (input, context) => {
3872
4074
  ...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
3873
4075
  };
3874
4076
  };
4077
+ const serializeAws_restJson1WindowStartTime = (input, context) => {
4078
+ return {
4079
+ ...(input.Hours != null && { Hours: input.Hours }),
4080
+ ...(input.Minutes != null && { Minutes: input.Minutes }),
4081
+ };
4082
+ };
3875
4083
  const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
3876
4084
  return {
3877
4085
  ...(input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
@@ -4000,12 +4208,14 @@ const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
4000
4208
  ? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
4001
4209
  : undefined,
4002
4210
  RollbackOnDisable: (0, smithy_client_1.expectString)(output.RollbackOnDisable),
4211
+ UseOffPeakWindow: (0, smithy_client_1.expectBoolean)(output.UseOffPeakWindow),
4003
4212
  };
4004
4213
  };
4005
4214
  const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
4006
4215
  return {
4007
4216
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4008
4217
  State: (0, smithy_client_1.expectString)(output.State),
4218
+ UseOffPeakWindow: (0, smithy_client_1.expectBoolean)(output.UseOffPeakWindow),
4009
4219
  };
4010
4220
  };
4011
4221
  const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
@@ -4180,9 +4390,15 @@ const deserializeAws_restJson1DomainConfig = (output, context) => {
4180
4390
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
4181
4391
  ? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
4182
4392
  : undefined,
4393
+ OffPeakWindowOptions: output.OffPeakWindowOptions != null
4394
+ ? deserializeAws_restJson1OffPeakWindowOptionsStatus(output.OffPeakWindowOptions, context)
4395
+ : undefined,
4183
4396
  SnapshotOptions: output.SnapshotOptions != null
4184
4397
  ? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
4185
4398
  : undefined,
4399
+ SoftwareUpdateOptions: output.SoftwareUpdateOptions != null
4400
+ ? deserializeAws_restJson1SoftwareUpdateOptionsStatus(output.SoftwareUpdateOptions, context)
4401
+ : undefined,
4186
4402
  VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
4187
4403
  };
4188
4404
  };
@@ -4291,6 +4507,9 @@ const deserializeAws_restJson1DomainStatus = (output, context) => {
4291
4507
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
4292
4508
  ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
4293
4509
  : undefined,
4510
+ OffPeakWindowOptions: output.OffPeakWindowOptions != null
4511
+ ? deserializeAws_restJson1OffPeakWindowOptions(output.OffPeakWindowOptions, context)
4512
+ : undefined,
4294
4513
  Processing: (0, smithy_client_1.expectBoolean)(output.Processing),
4295
4514
  ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
4296
4515
  ? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
@@ -4298,6 +4517,9 @@ const deserializeAws_restJson1DomainStatus = (output, context) => {
4298
4517
  SnapshotOptions: output.SnapshotOptions != null
4299
4518
  ? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
4300
4519
  : undefined,
4520
+ SoftwareUpdateOptions: output.SoftwareUpdateOptions != null
4521
+ ? deserializeAws_restJson1SoftwareUpdateOptions(output.SoftwareUpdateOptions, context)
4522
+ : undefined,
4301
4523
  UpgradeProcessing: (0, smithy_client_1.expectBoolean)(output.UpgradeProcessing),
4302
4524
  VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
4303
4525
  };
@@ -4530,6 +4752,25 @@ const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, conte
4530
4752
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4531
4753
  };
4532
4754
  };
4755
+ const deserializeAws_restJson1OffPeakWindow = (output, context) => {
4756
+ return {
4757
+ WindowStartTime: output.WindowStartTime != null
4758
+ ? deserializeAws_restJson1WindowStartTime(output.WindowStartTime, context)
4759
+ : undefined,
4760
+ };
4761
+ };
4762
+ const deserializeAws_restJson1OffPeakWindowOptions = (output, context) => {
4763
+ return {
4764
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4765
+ OffPeakWindow: output.OffPeakWindow != null ? deserializeAws_restJson1OffPeakWindow(output.OffPeakWindow, context) : undefined,
4766
+ };
4767
+ };
4768
+ const deserializeAws_restJson1OffPeakWindowOptionsStatus = (output, context) => {
4769
+ return {
4770
+ Options: output.Options != null ? deserializeAws_restJson1OffPeakWindowOptions(output.Options, context) : undefined,
4771
+ Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4772
+ };
4773
+ };
4533
4774
  const deserializeAws_restJson1OptionStatus = (output, context) => {
4534
4775
  return {
4535
4776
  CreationDate: output.CreationDate != null
@@ -4709,6 +4950,30 @@ const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
4709
4950
  SubjectKey: (0, smithy_client_1.expectString)(output.SubjectKey),
4710
4951
  };
4711
4952
  };
4953
+ const deserializeAws_restJson1ScheduledAction = (output, context) => {
4954
+ return {
4955
+ Cancellable: (0, smithy_client_1.expectBoolean)(output.Cancellable),
4956
+ Description: (0, smithy_client_1.expectString)(output.Description),
4957
+ Id: (0, smithy_client_1.expectString)(output.Id),
4958
+ Mandatory: (0, smithy_client_1.expectBoolean)(output.Mandatory),
4959
+ ScheduledBy: (0, smithy_client_1.expectString)(output.ScheduledBy),
4960
+ ScheduledTime: (0, smithy_client_1.expectLong)(output.ScheduledTime),
4961
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
4962
+ Status: (0, smithy_client_1.expectString)(output.Status),
4963
+ Type: (0, smithy_client_1.expectString)(output.Type),
4964
+ };
4965
+ };
4966
+ const deserializeAws_restJson1ScheduledActionsList = (output, context) => {
4967
+ const retVal = (output || [])
4968
+ .filter((e) => e != null)
4969
+ .map((entry) => {
4970
+ if (entry === null) {
4971
+ return null;
4972
+ }
4973
+ return deserializeAws_restJson1ScheduledAction(entry, context);
4974
+ });
4975
+ return retVal;
4976
+ };
4712
4977
  const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
4713
4978
  return {
4714
4979
  Action: (0, smithy_client_1.expectString)(output.Action),
@@ -4731,6 +4996,17 @@ const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
4731
4996
  UpdateStatus: (0, smithy_client_1.expectString)(output.UpdateStatus),
4732
4997
  };
4733
4998
  };
4999
+ const deserializeAws_restJson1SlotList = (output, context) => {
5000
+ const retVal = (output || [])
5001
+ .filter((e) => e != null)
5002
+ .map((entry) => {
5003
+ if (entry === null) {
5004
+ return null;
5005
+ }
5006
+ return (0, smithy_client_1.expectLong)(entry);
5007
+ });
5008
+ return retVal;
5009
+ };
4734
5010
  const deserializeAws_restJson1SnapshotOptions = (output, context) => {
4735
5011
  return {
4736
5012
  AutomatedSnapshotStartHour: (0, smithy_client_1.expectInt32)(output.AutomatedSnapshotStartHour),
@@ -4742,6 +5018,17 @@ const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
4742
5018
  Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4743
5019
  };
4744
5020
  };
5021
+ const deserializeAws_restJson1SoftwareUpdateOptions = (output, context) => {
5022
+ return {
5023
+ AutoSoftwareUpdateEnabled: (0, smithy_client_1.expectBoolean)(output.AutoSoftwareUpdateEnabled),
5024
+ };
5025
+ };
5026
+ const deserializeAws_restJson1SoftwareUpdateOptionsStatus = (output, context) => {
5027
+ return {
5028
+ Options: output.Options != null ? deserializeAws_restJson1SoftwareUpdateOptions(output.Options, context) : undefined,
5029
+ Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
5030
+ };
5031
+ };
4745
5032
  const deserializeAws_restJson1StorageType = (output, context) => {
4746
5033
  return {
4747
5034
  StorageSubTypeName: (0, smithy_client_1.expectString)(output.StorageSubTypeName),
@@ -4957,6 +5244,12 @@ const deserializeAws_restJson1VpcEndpointSummaryList = (output, context) => {
4957
5244
  });
4958
5245
  return retVal;
4959
5246
  };
5247
+ const deserializeAws_restJson1WindowStartTime = (output, context) => {
5248
+ return {
5249
+ Hours: (0, smithy_client_1.expectLong)(output.Hours),
5250
+ Minutes: (0, smithy_client_1.expectLong)(output.Minutes),
5251
+ };
5252
+ };
4960
5253
  const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4961
5254
  return {
4962
5255
  AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),
@@ -34,6 +34,7 @@ import { ListDomainNamesCommand, } from "./commands/ListDomainNamesCommand";
34
34
  import { ListDomainsForPackageCommand, } from "./commands/ListDomainsForPackageCommand";
35
35
  import { ListInstanceTypeDetailsCommand, } from "./commands/ListInstanceTypeDetailsCommand";
36
36
  import { ListPackagesForDomainCommand, } from "./commands/ListPackagesForDomainCommand";
37
+ import { ListScheduledActionsCommand, } from "./commands/ListScheduledActionsCommand";
37
38
  import { ListTagsCommand } from "./commands/ListTagsCommand";
38
39
  import { ListVersionsCommand, } from "./commands/ListVersionsCommand";
39
40
  import { ListVpcEndpointAccessCommand, } from "./commands/ListVpcEndpointAccessCommand";
@@ -46,6 +47,7 @@ import { RevokeVpcEndpointAccessCommand, } from "./commands/RevokeVpcEndpointAcc
46
47
  import { StartServiceSoftwareUpdateCommand, } from "./commands/StartServiceSoftwareUpdateCommand";
47
48
  import { UpdateDomainConfigCommand, } from "./commands/UpdateDomainConfigCommand";
48
49
  import { UpdatePackageCommand, } from "./commands/UpdatePackageCommand";
50
+ import { UpdateScheduledActionCommand, } from "./commands/UpdateScheduledActionCommand";
49
51
  import { UpdateVpcEndpointCommand, } from "./commands/UpdateVpcEndpointCommand";
50
52
  import { UpgradeDomainCommand, } from "./commands/UpgradeDomainCommand";
51
53
  import { OpenSearchClient } from "./OpenSearchClient";
@@ -554,6 +556,20 @@ export class OpenSearch extends OpenSearchClient {
554
556
  return this.send(command, optionsOrCb);
555
557
  }
556
558
  }
559
+ listScheduledActions(args, optionsOrCb, cb) {
560
+ const command = new ListScheduledActionsCommand(args);
561
+ if (typeof optionsOrCb === "function") {
562
+ this.send(command, optionsOrCb);
563
+ }
564
+ else if (typeof cb === "function") {
565
+ if (typeof optionsOrCb !== "object")
566
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
567
+ this.send(command, optionsOrCb || {}, cb);
568
+ }
569
+ else {
570
+ return this.send(command, optionsOrCb);
571
+ }
572
+ }
557
573
  listTags(args, optionsOrCb, cb) {
558
574
  const command = new ListTagsCommand(args);
559
575
  if (typeof optionsOrCb === "function") {
@@ -722,6 +738,20 @@ export class OpenSearch extends OpenSearchClient {
722
738
  return this.send(command, optionsOrCb);
723
739
  }
724
740
  }
741
+ updateScheduledAction(args, optionsOrCb, cb) {
742
+ const command = new UpdateScheduledActionCommand(args);
743
+ if (typeof optionsOrCb === "function") {
744
+ this.send(command, optionsOrCb);
745
+ }
746
+ else if (typeof cb === "function") {
747
+ if (typeof optionsOrCb !== "object")
748
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
749
+ this.send(command, optionsOrCb || {}, cb);
750
+ }
751
+ else {
752
+ return this.send(command, optionsOrCb);
753
+ }
754
+ }
725
755
  updateVpcEndpoint(args, optionsOrCb, cb) {
726
756
  const command = new UpdateVpcEndpointCommand(args);
727
757
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListScheduledActionsRequestFilterSensitiveLog, ListScheduledActionsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListScheduledActionsCommand, serializeAws_restJson1ListScheduledActionsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListScheduledActionsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListScheduledActionsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "ListScheduledActionsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListScheduledActionsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListScheduledActionsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListScheduledActionsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListScheduledActionsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateScheduledActionRequestFilterSensitiveLog, UpdateScheduledActionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateScheduledActionCommand, serializeAws_restJson1UpdateScheduledActionCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateScheduledActionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateScheduledActionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OpenSearchClient";
25
+ const commandName = "UpdateScheduledActionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateScheduledActionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateScheduledActionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateScheduledActionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateScheduledActionCommand(output, context);
41
+ }
42
+ }
@@ -34,6 +34,7 @@ export * from "./ListDomainNamesCommand";
34
34
  export * from "./ListDomainsForPackageCommand";
35
35
  export * from "./ListInstanceTypeDetailsCommand";
36
36
  export * from "./ListPackagesForDomainCommand";
37
+ export * from "./ListScheduledActionsCommand";
37
38
  export * from "./ListTagsCommand";
38
39
  export * from "./ListVersionsCommand";
39
40
  export * from "./ListVpcEndpointAccessCommand";
@@ -46,5 +47,6 @@ export * from "./RevokeVpcEndpointAccessCommand";
46
47
  export * from "./StartServiceSoftwareUpdateCommand";
47
48
  export * from "./UpdateDomainConfigCommand";
48
49
  export * from "./UpdatePackageCommand";
50
+ export * from "./UpdateScheduledActionCommand";
49
51
  export * from "./UpdateVpcEndpointCommand";
50
52
  export * from "./UpgradeDomainCommand";