@aws-sdk/client-opensearch 3.245.0 → 3.254.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.
@@ -412,6 +412,28 @@ export const serializeAws_restJson1DescribeDomainsCommand = async (input, contex
412
412
  body,
413
413
  });
414
414
  };
415
+ export const serializeAws_restJson1DescribeDryRunProgressCommand = async (input, context) => {
416
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const headers = {};
418
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
419
+ "/2021-01-01/opensearch/domain/{DomainName}/dryRun";
420
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
421
+ const query = map({
422
+ dryRunId: [, input.DryRunId],
423
+ loadDryRunConfig: [() => input.LoadDryRunConfig !== void 0, () => input.LoadDryRunConfig.toString()],
424
+ });
425
+ let body;
426
+ return new __HttpRequest({
427
+ protocol,
428
+ hostname,
429
+ port,
430
+ method: "GET",
431
+ headers,
432
+ path: resolvedPath,
433
+ query,
434
+ body,
435
+ });
436
+ };
415
437
  export const serializeAws_restJson1DescribeInboundConnectionsCommand = async (input, context) => {
416
438
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
439
  const headers = {
@@ -983,6 +1005,7 @@ export const serializeAws_restJson1UpdateDomainConfigCommand = async (input, con
983
1005
  DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
984
1006
  }),
985
1007
  ...(input.DryRun != null && { DryRun: input.DryRun }),
1008
+ ...(input.DryRunMode != null && { DryRunMode: input.DryRunMode }),
986
1009
  ...(input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
987
1010
  ...(input.EncryptionAtRestOptions != null && {
988
1011
  EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
@@ -1914,6 +1937,57 @@ const deserializeAws_restJson1DescribeDomainsCommandError = async (output, conte
1914
1937
  });
1915
1938
  }
1916
1939
  };
1940
+ export const deserializeAws_restJson1DescribeDryRunProgressCommand = async (output, context) => {
1941
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1942
+ return deserializeAws_restJson1DescribeDryRunProgressCommandError(output, context);
1943
+ }
1944
+ const contents = map({
1945
+ $metadata: deserializeMetadata(output),
1946
+ });
1947
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1948
+ if (data.DryRunConfig != null) {
1949
+ contents.DryRunConfig = deserializeAws_restJson1DomainStatus(data.DryRunConfig, context);
1950
+ }
1951
+ if (data.DryRunProgressStatus != null) {
1952
+ contents.DryRunProgressStatus = deserializeAws_restJson1DryRunProgressStatus(data.DryRunProgressStatus, context);
1953
+ }
1954
+ if (data.DryRunResults != null) {
1955
+ contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
1956
+ }
1957
+ return contents;
1958
+ };
1959
+ const deserializeAws_restJson1DescribeDryRunProgressCommandError = async (output, context) => {
1960
+ const parsedOutput = {
1961
+ ...output,
1962
+ body: await parseErrorBody(output.body, context),
1963
+ };
1964
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1965
+ switch (errorCode) {
1966
+ case "BaseException":
1967
+ case "com.amazonaws.opensearch#BaseException":
1968
+ throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1969
+ case "DisabledOperationException":
1970
+ case "com.amazonaws.opensearch#DisabledOperationException":
1971
+ throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1972
+ case "InternalException":
1973
+ case "com.amazonaws.opensearch#InternalException":
1974
+ throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1975
+ case "ResourceNotFoundException":
1976
+ case "com.amazonaws.opensearch#ResourceNotFoundException":
1977
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1978
+ case "ValidationException":
1979
+ case "com.amazonaws.opensearch#ValidationException":
1980
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1981
+ default:
1982
+ const parsedBody = parsedOutput.body;
1983
+ throwDefaultError({
1984
+ output,
1985
+ parsedBody,
1986
+ exceptionCtor: __BaseException,
1987
+ errorCode,
1988
+ });
1989
+ }
1990
+ };
1917
1991
  export const deserializeAws_restJson1DescribeInboundConnectionsCommand = async (output, context) => {
1918
1992
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1919
1993
  return deserializeAws_restJson1DescribeInboundConnectionsCommandError(output, context);
@@ -3080,6 +3154,9 @@ export const deserializeAws_restJson1UpdateDomainConfigCommand = async (output,
3080
3154
  if (data.DomainConfig != null) {
3081
3155
  contents.DomainConfig = deserializeAws_restJson1DomainConfig(data.DomainConfig, context);
3082
3156
  }
3157
+ if (data.DryRunProgressStatus != null) {
3158
+ contents.DryRunProgressStatus = deserializeAws_restJson1DryRunProgressStatus(data.DryRunProgressStatus, context);
3159
+ }
3083
3160
  if (data.DryRunResults != null) {
3084
3161
  contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
3085
3162
  }
@@ -4120,6 +4197,17 @@ const deserializeAws_restJson1DomainStatusList = (output, context) => {
4120
4197
  });
4121
4198
  return retVal;
4122
4199
  };
4200
+ const deserializeAws_restJson1DryRunProgressStatus = (output, context) => {
4201
+ return {
4202
+ CreationDate: __expectString(output.CreationDate),
4203
+ DryRunId: __expectString(output.DryRunId),
4204
+ DryRunStatus: __expectString(output.DryRunStatus),
4205
+ UpdateDate: __expectString(output.UpdateDate),
4206
+ ValidationFailures: output.ValidationFailures != null
4207
+ ? deserializeAws_restJson1ValidationFailures(output.ValidationFailures, context)
4208
+ : undefined,
4209
+ };
4210
+ };
4123
4211
  const deserializeAws_restJson1DryRunResults = (output, context) => {
4124
4212
  return {
4125
4213
  DeploymentType: __expectString(output.DeploymentType),
@@ -4638,6 +4726,23 @@ const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
4638
4726
  });
4639
4727
  return retVal;
4640
4728
  };
4729
+ const deserializeAws_restJson1ValidationFailure = (output, context) => {
4730
+ return {
4731
+ Code: __expectString(output.Code),
4732
+ Message: __expectString(output.Message),
4733
+ };
4734
+ };
4735
+ const deserializeAws_restJson1ValidationFailures = (output, context) => {
4736
+ const retVal = (output || [])
4737
+ .filter((e) => e != null)
4738
+ .map((entry) => {
4739
+ if (entry === null) {
4740
+ return null;
4741
+ }
4742
+ return deserializeAws_restJson1ValidationFailure(entry, context);
4743
+ });
4744
+ return retVal;
4745
+ };
4641
4746
  const deserializeAws_restJson1VersionList = (output, context) => {
4642
4747
  const retVal = (output || [])
4643
4748
  .filter((e) => e != null)
@@ -18,6 +18,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
18
18
  import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
19
19
  import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
20
20
  import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
21
+ import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
21
22
  import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
22
23
  import { DescribeInstanceTypeLimitsCommandInput, DescribeInstanceTypeLimitsCommandOutput } from "./commands/DescribeInstanceTypeLimitsCommand";
23
24
  import { DescribeOutboundConnectionsCommandInput, DescribeOutboundConnectionsCommandOutput } from "./commands/DescribeOutboundConnectionsCommand";
@@ -72,8 +73,8 @@ export declare class OpenSearch extends OpenSearchClient {
72
73
  acceptInboundConnection(args: AcceptInboundConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptInboundConnectionCommandOutput) => void): void;
73
74
  /**
74
75
  * <p>Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of
75
- * case-sensitive key-value pairs. An domain can have up to 10 tags. For more information, see
76
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service domains</a>.</p>
76
+ * case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see
77
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging Amazon OpenSearch Service domains</a>.</p>
77
78
  */
78
79
  addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
79
80
  addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
@@ -199,6 +200,13 @@ export declare class OpenSearch extends OpenSearchClient {
199
200
  describeDomains(args: DescribeDomainsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainsCommandOutput>;
200
201
  describeDomains(args: DescribeDomainsCommandInput, cb: (err: any, data?: DescribeDomainsCommandOutput) => void): void;
201
202
  describeDomains(args: DescribeDomainsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainsCommandOutput) => void): void;
203
+ /**
204
+ * <p>Describes the progress of a pre-update dry run analysis on an Amazon OpenSearch
205
+ * Service domain. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-configuration-changes#dryrun">Determining whether a change will cause a blue/green deployment</a>.</p>
206
+ */
207
+ describeDryRunProgress(args: DescribeDryRunProgressCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDryRunProgressCommandOutput>;
208
+ describeDryRunProgress(args: DescribeDryRunProgressCommandInput, cb: (err: any, data?: DescribeDryRunProgressCommandOutput) => void): void;
209
+ describeDryRunProgress(args: DescribeDryRunProgressCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDryRunProgressCommandOutput) => void): void;
202
210
  /**
203
211
  * <p>Lists all the inbound cross-cluster search connections for a destination (remote) Amazon
204
212
  * OpenSearch Service domain. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cross-cluster-search.html">Cross-cluster search
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AcceptInboundConnectionCommandInput, AcceptInboundConnectionCommandOutput } from "./commands/AcceptInboundConnectionCommand";
11
11
  import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
12
12
  import { AssociatePackageCommandInput, AssociatePackageCommandOutput } from "./commands/AssociatePackageCommand";
@@ -26,6 +26,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
26
26
  import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
27
27
  import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
28
28
  import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
29
+ import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
29
30
  import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
30
31
  import { DescribeInstanceTypeLimitsCommandInput, DescribeInstanceTypeLimitsCommandOutput } from "./commands/DescribeInstanceTypeLimitsCommand";
31
32
  import { DescribeOutboundConnectionsCommandInput, DescribeOutboundConnectionsCommandOutput } from "./commands/DescribeOutboundConnectionsCommand";
@@ -57,19 +58,19 @@ import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "./command
57
58
  import { UpdateVpcEndpointCommandInput, UpdateVpcEndpointCommandOutput } from "./commands/UpdateVpcEndpointCommand";
58
59
  import { UpgradeDomainCommandInput, UpgradeDomainCommandOutput } from "./commands/UpgradeDomainCommand";
59
60
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
60
- export declare type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainsCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
61
- export declare type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainsCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
61
+ export declare type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainsCommandInput | DescribeDryRunProgressCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
62
+ export declare type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainsCommandOutput | DescribeDryRunProgressCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
62
63
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
63
64
  /**
64
65
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
65
66
  */
66
67
  requestHandler?: __HttpHandler;
67
68
  /**
68
- * A constructor for a class implementing the {@link __Hash} interface
69
+ * A constructor for a class implementing the {@link __Checksum} interface
69
70
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
70
71
  * @internal
71
72
  */
72
- sha256?: __HashConstructor;
73
+ sha256?: __ChecksumConstructor | __HashConstructor;
73
74
  /**
74
75
  * The function that will be used to convert strings into HTTP endpoints.
75
76
  * @internal
@@ -9,8 +9,8 @@ export interface AddTagsCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of
12
- * case-sensitive key-value pairs. An domain can have up to 10 tags. For more information, see
13
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service domains</a>.</p>
12
+ * case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see
13
+ * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging Amazon OpenSearch Service domains</a>.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DescribeDryRunProgressRequest, DescribeDryRunProgressResponse } from "../models/models_0";
5
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
6
+ export interface DescribeDryRunProgressCommandInput extends DescribeDryRunProgressRequest {
7
+ }
8
+ export interface DescribeDryRunProgressCommandOutput extends DescribeDryRunProgressResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Describes the progress of a pre-update dry run analysis on an Amazon OpenSearch
12
+ * Service domain. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-configuration-changes#dryrun">Determining whether a change will cause a blue/green deployment</a>.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OpenSearchClient, DescribeDryRunProgressCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
17
+ * // const { OpenSearchClient, DescribeDryRunProgressCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
18
+ * const client = new OpenSearchClient(config);
19
+ * const command = new DescribeDryRunProgressCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link DescribeDryRunProgressCommandInput} for command's `input` shape.
24
+ * @see {@link DescribeDryRunProgressCommandOutput} for command's `response` shape.
25
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class DescribeDryRunProgressCommand extends $Command<DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput, OpenSearchClientResolvedConfig> {
29
+ readonly input: DescribeDryRunProgressCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: DescribeDryRunProgressCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OpenSearchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -17,6 +17,7 @@ export * from "./DescribeDomainChangeProgressCommand";
17
17
  export * from "./DescribeDomainCommand";
18
18
  export * from "./DescribeDomainConfigCommand";
19
19
  export * from "./DescribeDomainsCommand";
20
+ export * from "./DescribeDryRunProgressCommand";
20
21
  export * from "./DescribeInboundConnectionsCommand";
21
22
  export * from "./DescribeInstanceTypeLimitsCommand";
22
23
  export * from "./DescribeOutboundConnectionsCommand";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -1684,7 +1684,7 @@ export interface CreatePackageResponse {
1684
1684
  }
1685
1685
  export interface CreateVpcEndpointRequest {
1686
1686
  /**
1687
- * <p>The Amazon Resource Name (ARN) of the domain to grant access to.</p>
1687
+ * <p>The Amazon Resource Name (ARN) of the domain to create the endpoint for.</p>
1688
1688
  */
1689
1689
  DomainArn: string | undefined;
1690
1690
  /**
@@ -2379,6 +2379,109 @@ export interface DescribeDomainsResponse {
2379
2379
  */
2380
2380
  DomainStatusList: DomainStatus[] | undefined;
2381
2381
  }
2382
+ export interface DescribeDryRunProgressRequest {
2383
+ /**
2384
+ * <p>The name of the domain.</p>
2385
+ */
2386
+ DomainName: string | undefined;
2387
+ /**
2388
+ * <p>The unique identifier of the dry run.</p>
2389
+ */
2390
+ DryRunId?: string;
2391
+ /**
2392
+ * <p>Whether to include the configuration of the dry run in the response. The configuration
2393
+ * specifies the updates that you're planning to make on the domain.</p>
2394
+ */
2395
+ LoadDryRunConfig?: boolean;
2396
+ }
2397
+ /**
2398
+ * <p>A validation failure that occurred as the result of a pre-update validation check (verbose
2399
+ * dry run) on a domain.</p>
2400
+ */
2401
+ export interface ValidationFailure {
2402
+ /**
2403
+ * <p>The error code of the failure.</p>
2404
+ */
2405
+ Code?: string;
2406
+ /**
2407
+ * <p>A message corresponding to the failure.</p>
2408
+ */
2409
+ Message?: string;
2410
+ }
2411
+ /**
2412
+ * <p>Information about the progress of a pre-upgrade dry run analysis.</p>
2413
+ */
2414
+ export interface DryRunProgressStatus {
2415
+ /**
2416
+ * <p>The unique identifier of the dry run.</p>
2417
+ */
2418
+ DryRunId: string | undefined;
2419
+ /**
2420
+ * <p>The current status of the dry run.</p>
2421
+ */
2422
+ DryRunStatus: string | undefined;
2423
+ /**
2424
+ * <p>The timestamp when the dry run was initiated.</p>
2425
+ */
2426
+ CreationDate: string | undefined;
2427
+ /**
2428
+ * <p>The timestamp when the dry run was last updated.</p>
2429
+ */
2430
+ UpdateDate: string | undefined;
2431
+ /**
2432
+ * <p>Any validation failures that occurred as a result of the dry run.</p>
2433
+ */
2434
+ ValidationFailures?: ValidationFailure[];
2435
+ }
2436
+ /**
2437
+ * <p>Results of a dry run performed in an update domain request.</p>
2438
+ */
2439
+ export interface DryRunResults {
2440
+ /**
2441
+ * <p> Specifies the way in which OpenSearch Service will apply an update. Possible values
2442
+ * are:</p>
2443
+ * <ul>
2444
+ * <li>
2445
+ * <p>
2446
+ * <b>Blue/Green</b> - The update requires a blue/green
2447
+ * deployment.</p>
2448
+ * </li>
2449
+ * <li>
2450
+ * <p>
2451
+ * <b>DynamicUpdate</b> - No blue/green deployment required</p>
2452
+ * </li>
2453
+ * <li>
2454
+ * <p>
2455
+ * <b>Undetermined</b> - The domain is in the middle of an update
2456
+ * and can't predict the deployment type. Try again after the update is complete.</p>
2457
+ * </li>
2458
+ * <li>
2459
+ * <p>
2460
+ * <b>None</b> - The request doesn't include any configuration
2461
+ * changes.</p>
2462
+ * </li>
2463
+ * </ul>
2464
+ */
2465
+ DeploymentType?: string;
2466
+ /**
2467
+ * <p>A message corresponding to the deployment type.</p>
2468
+ */
2469
+ Message?: string;
2470
+ }
2471
+ export interface DescribeDryRunProgressResponse {
2472
+ /**
2473
+ * <p>The current status of the dry run, including any validation errors.</p>
2474
+ */
2475
+ DryRunProgressStatus?: DryRunProgressStatus;
2476
+ /**
2477
+ * <p>Details about the changes you're planning to make on the domain.</p>
2478
+ */
2479
+ DryRunConfig?: DomainStatus;
2480
+ /**
2481
+ * <p>The results of the dry run. </p>
2482
+ */
2483
+ DryRunResults?: DryRunResults;
2484
+ }
2382
2485
  /**
2383
2486
  * <p>A filter used to limit results when describing inbound or outbound cross-cluster
2384
2487
  * connections. You can specify multiple values per filter. A cross-cluster connection must match at
@@ -3565,6 +3668,10 @@ export interface StartServiceSoftwareUpdateResponse {
3565
3668
  */
3566
3669
  ServiceSoftwareOptions?: ServiceSoftwareOptions;
3567
3670
  }
3671
+ export declare enum DryRunMode {
3672
+ Basic = "Basic",
3673
+ Verbose = "Verbose"
3674
+ }
3568
3675
  /**
3569
3676
  * <p>Container for the request parameters to the <code>UpdateDomain</code> operation.</p>
3570
3677
  */
@@ -3664,44 +3771,26 @@ export interface UpdateDomainConfigRequest {
3664
3771
  AutoTuneOptions?: AutoTuneOptions;
3665
3772
  /**
3666
3773
  * <p>This flag, when set to True, specifies whether the <code>UpdateDomain</code> request should
3667
- * return the results of validation check without actually applying the change.</p>
3774
+ * return the results of a dry run analysis without actually applying the change. A dry run
3775
+ * determines what type of deployment the update will cause.</p>
3668
3776
  */
3669
3777
  DryRun?: boolean;
3670
- }
3671
- /**
3672
- * <p>Results of a dry run performed in an update domain request.</p>
3673
- */
3674
- export interface DryRunResults {
3675
3778
  /**
3676
- * <p> Specifies the way in which OpenSearch Service will apply an update. Possible values
3677
- * are:</p>
3779
+ * <p>The type of dry run to perform.</p>
3678
3780
  * <ul>
3679
3781
  * <li>
3680
3782
  * <p>
3681
- * <b>Blue/Green</b> - The update requires a blue/green
3682
- * deployment.</p>
3683
- * </li>
3684
- * <li>
3685
- * <p>
3686
- * <b>DynamicUpdate</b> - No blue/green deployment required</p>
3687
- * </li>
3688
- * <li>
3689
- * <p>
3690
- * <b>Undetermined</b> - The domain is in the middle of an update
3691
- * and can't predict the deployment type. Try again after the update is complete.</p>
3783
+ * <code>Basic</code> only returns the type of deployment (blue/green or dynamic) that the update
3784
+ * will cause.</p>
3692
3785
  * </li>
3693
3786
  * <li>
3694
3787
  * <p>
3695
- * <b>None</b> - The request doesn't include any configuration
3696
- * changes.</p>
3788
+ * <code>Verbose</code> runs an additional check to validate the changes you're making. For
3789
+ * more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-configuration-changes#validation-check">Validating a domain update</a>.</p>
3697
3790
  * </li>
3698
3791
  * </ul>
3699
3792
  */
3700
- DeploymentType?: string;
3701
- /**
3702
- * <p>A message corresponding to the deployment type.</p>
3703
- */
3704
- Message?: string;
3793
+ DryRunMode?: DryRunMode | string;
3705
3794
  }
3706
3795
  /**
3707
3796
  * <p>The results of an <code>UpdateDomain</code> request. Contains the status of the domain being
@@ -3713,9 +3802,13 @@ export interface UpdateDomainConfigResponse {
3713
3802
  */
3714
3803
  DomainConfig: DomainConfig | undefined;
3715
3804
  /**
3716
- * <p>Results of a dry run performed in an update domain request.</p>
3805
+ * <p>Results of the dry run performed in the update domain request.</p>
3717
3806
  */
3718
3807
  DryRunResults?: DryRunResults;
3808
+ /**
3809
+ * <p>The status of the dry run being performed on the domain, if any.</p>
3810
+ */
3811
+ DryRunProgressStatus?: DryRunProgressStatus;
3719
3812
  }
3720
3813
  /**
3721
3814
  * <p>Container for request parameters to the <code>UpdatePackage</code> operation.</p>
@@ -4219,6 +4312,26 @@ export declare const DescribeDomainsRequestFilterSensitiveLog: (obj: DescribeDom
4219
4312
  * @internal
4220
4313
  */
4221
4314
  export declare const DescribeDomainsResponseFilterSensitiveLog: (obj: DescribeDomainsResponse) => any;
4315
+ /**
4316
+ * @internal
4317
+ */
4318
+ export declare const DescribeDryRunProgressRequestFilterSensitiveLog: (obj: DescribeDryRunProgressRequest) => any;
4319
+ /**
4320
+ * @internal
4321
+ */
4322
+ export declare const ValidationFailureFilterSensitiveLog: (obj: ValidationFailure) => any;
4323
+ /**
4324
+ * @internal
4325
+ */
4326
+ export declare const DryRunProgressStatusFilterSensitiveLog: (obj: DryRunProgressStatus) => any;
4327
+ /**
4328
+ * @internal
4329
+ */
4330
+ export declare const DryRunResultsFilterSensitiveLog: (obj: DryRunResults) => any;
4331
+ /**
4332
+ * @internal
4333
+ */
4334
+ export declare const DescribeDryRunProgressResponseFilterSensitiveLog: (obj: DescribeDryRunProgressResponse) => any;
4222
4335
  /**
4223
4336
  * @internal
4224
4337
  */
@@ -4495,10 +4608,6 @@ export declare const StartServiceSoftwareUpdateResponseFilterSensitiveLog: (obj:
4495
4608
  * @internal
4496
4609
  */
4497
4610
  export declare const UpdateDomainConfigRequestFilterSensitiveLog: (obj: UpdateDomainConfigRequest) => any;
4498
- /**
4499
- * @internal
4500
- */
4501
- export declare const DryRunResultsFilterSensitiveLog: (obj: DryRunResults) => any;
4502
4611
  /**
4503
4612
  * @internal
4504
4613
  */
@@ -19,6 +19,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
19
19
  import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "../commands/DescribeDomainCommand";
20
20
  import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "../commands/DescribeDomainConfigCommand";
21
21
  import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "../commands/DescribeDomainsCommand";
22
+ import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "../commands/DescribeDryRunProgressCommand";
22
23
  import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "../commands/DescribeInboundConnectionsCommand";
23
24
  import { DescribeInstanceTypeLimitsCommandInput, DescribeInstanceTypeLimitsCommandOutput } from "../commands/DescribeInstanceTypeLimitsCommand";
24
25
  import { DescribeOutboundConnectionsCommandInput, DescribeOutboundConnectionsCommandOutput } from "../commands/DescribeOutboundConnectionsCommand";
@@ -68,6 +69,7 @@ export declare const serializeAws_restJson1DescribeDomainAutoTunesCommand: (inpu
68
69
  export declare const serializeAws_restJson1DescribeDomainChangeProgressCommand: (input: DescribeDomainChangeProgressCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
70
  export declare const serializeAws_restJson1DescribeDomainConfigCommand: (input: DescribeDomainConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
71
  export declare const serializeAws_restJson1DescribeDomainsCommand: (input: DescribeDomainsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
+ export declare const serializeAws_restJson1DescribeDryRunProgressCommand: (input: DescribeDryRunProgressCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const serializeAws_restJson1DescribeInboundConnectionsCommand: (input: DescribeInboundConnectionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_restJson1DescribeInstanceTypeLimitsCommand: (input: DescribeInstanceTypeLimitsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
75
  export declare const serializeAws_restJson1DescribeOutboundConnectionsCommand: (input: DescribeOutboundConnectionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -117,6 +119,7 @@ export declare const deserializeAws_restJson1DescribeDomainAutoTunesCommand: (ou
117
119
  export declare const deserializeAws_restJson1DescribeDomainChangeProgressCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDomainChangeProgressCommandOutput>;
118
120
  export declare const deserializeAws_restJson1DescribeDomainConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDomainConfigCommandOutput>;
119
121
  export declare const deserializeAws_restJson1DescribeDomainsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDomainsCommandOutput>;
122
+ export declare const deserializeAws_restJson1DescribeDryRunProgressCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDryRunProgressCommandOutput>;
120
123
  export declare const deserializeAws_restJson1DescribeInboundConnectionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeInboundConnectionsCommandOutput>;
121
124
  export declare const deserializeAws_restJson1DescribeInstanceTypeLimitsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeInstanceTypeLimitsCommandOutput>;
122
125
  export declare const deserializeAws_restJson1DescribeOutboundConnectionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeOutboundConnectionsCommandOutput>;
@@ -75,6 +75,10 @@ import {
75
75
  DescribeDomainsCommandInput,
76
76
  DescribeDomainsCommandOutput,
77
77
  } from "./commands/DescribeDomainsCommand";
78
+ import {
79
+ DescribeDryRunProgressCommandInput,
80
+ DescribeDryRunProgressCommandOutput,
81
+ } from "./commands/DescribeDryRunProgressCommand";
78
82
  import {
79
83
  DescribeInboundConnectionsCommandInput,
80
84
  DescribeInboundConnectionsCommandOutput,
@@ -444,6 +448,19 @@ export declare class OpenSearch extends OpenSearchClient {
444
448
  options: __HttpHandlerOptions,
445
449
  cb: (err: any, data?: DescribeDomainsCommandOutput) => void
446
450
  ): void;
451
+ describeDryRunProgress(
452
+ args: DescribeDryRunProgressCommandInput,
453
+ options?: __HttpHandlerOptions
454
+ ): Promise<DescribeDryRunProgressCommandOutput>;
455
+ describeDryRunProgress(
456
+ args: DescribeDryRunProgressCommandInput,
457
+ cb: (err: any, data?: DescribeDryRunProgressCommandOutput) => void
458
+ ): void;
459
+ describeDryRunProgress(
460
+ args: DescribeDryRunProgressCommandInput,
461
+ options: __HttpHandlerOptions,
462
+ cb: (err: any, data?: DescribeDryRunProgressCommandOutput) => void
463
+ ): void;
447
464
  describeInboundConnections(
448
465
  args: DescribeInboundConnectionsCommandInput,
449
466
  options?: __HttpHandlerOptions
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -119,6 +120,10 @@ import {
119
120
  DescribeDomainsCommandInput,
120
121
  DescribeDomainsCommandOutput,
121
122
  } from "./commands/DescribeDomainsCommand";
123
+ import {
124
+ DescribeDryRunProgressCommandInput,
125
+ DescribeDryRunProgressCommandOutput,
126
+ } from "./commands/DescribeDryRunProgressCommand";
122
127
  import {
123
128
  DescribeInboundConnectionsCommandInput,
124
129
  DescribeInboundConnectionsCommandOutput,
@@ -264,6 +269,7 @@ export declare type ServiceInputTypes =
264
269
  | DescribeDomainCommandInput
265
270
  | DescribeDomainConfigCommandInput
266
271
  | DescribeDomainsCommandInput
272
+ | DescribeDryRunProgressCommandInput
267
273
  | DescribeInboundConnectionsCommandInput
268
274
  | DescribeInstanceTypeLimitsCommandInput
269
275
  | DescribeOutboundConnectionsCommandInput
@@ -314,6 +320,7 @@ export declare type ServiceOutputTypes =
314
320
  | DescribeDomainCommandOutput
315
321
  | DescribeDomainConfigCommandOutput
316
322
  | DescribeDomainsCommandOutput
323
+ | DescribeDryRunProgressCommandOutput
317
324
  | DescribeInboundConnectionsCommandOutput
318
325
  | DescribeInstanceTypeLimitsCommandOutput
319
326
  | DescribeOutboundConnectionsCommandOutput
@@ -347,7 +354,7 @@ export declare type ServiceOutputTypes =
347
354
  export interface ClientDefaults
348
355
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
349
356
  requestHandler?: __HttpHandler;
350
- sha256?: __HashConstructor;
357
+ sha256?: __ChecksumConstructor | __HashConstructor;
351
358
  urlParser?: __UrlParser;
352
359
  bodyLengthChecker?: __BodyLengthCalculator;
353
360
  streamCollector?: __StreamCollector;