@aws-sdk/client-opensearch 3.925.0 → 3.927.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 (85) hide show
  1. package/README.md +20 -4
  2. package/dist-cjs/index.js +88 -0
  3. package/dist-es/OpenSearch.js +4 -0
  4. package/dist-es/commands/GetDefaultApplicationSettingCommand.js +22 -0
  5. package/dist-es/commands/PutDefaultApplicationSettingCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/protocols/Aws_restJson1.js +50 -0
  8. package/dist-types/OpenSearch.d.ts +19 -4
  9. package/dist-types/OpenSearchClient.d.ts +8 -6
  10. package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +1 -2
  11. package/dist-types/commands/AddDataSourceCommand.d.ts +3 -2
  12. package/dist-types/commands/AddDirectQueryDataSourceCommand.d.ts +2 -4
  13. package/dist-types/commands/AddTagsCommand.d.ts +4 -4
  14. package/dist-types/commands/AssociatePackageCommand.d.ts +3 -3
  15. package/dist-types/commands/AssociatePackagesCommand.d.ts +2 -1
  16. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +2 -2
  17. package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +5 -3
  18. package/dist-types/commands/CreateDomainCommand.d.ts +2 -1
  19. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +2 -3
  20. package/dist-types/commands/CreatePackageCommand.d.ts +3 -2
  21. package/dist-types/commands/DeleteDataSourceCommand.d.ts +2 -1
  22. package/dist-types/commands/DeleteDirectQueryDataSourceCommand.d.ts +2 -4
  23. package/dist-types/commands/DeleteDomainCommand.d.ts +2 -2
  24. package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +2 -3
  25. package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +2 -3
  26. package/dist-types/commands/DeletePackageCommand.d.ts +2 -2
  27. package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +3 -3
  28. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeDomainCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeDomainHealthCommand.d.ts +2 -1
  31. package/dist-types/commands/DescribeDomainNodesCommand.d.ts +3 -2
  32. package/dist-types/commands/DescribeDomainsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +2 -3
  35. package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +2 -2
  36. package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +2 -3
  37. package/dist-types/commands/DescribePackagesCommand.d.ts +3 -2
  38. package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +3 -2
  39. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +3 -3
  40. package/dist-types/commands/DissociatePackageCommand.d.ts +5 -4
  41. package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +2 -2
  42. package/dist-types/commands/GetDefaultApplicationSettingCommand.d.ts +86 -0
  43. package/dist-types/commands/GetDirectQueryDataSourceCommand.d.ts +2 -4
  44. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +4 -3
  45. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -2
  46. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
  47. package/dist-types/commands/ListDataSourcesCommand.d.ts +3 -3
  48. package/dist-types/commands/ListDirectQueryDataSourcesCommand.d.ts +2 -4
  49. package/dist-types/commands/ListDomainNamesCommand.d.ts +3 -4
  50. package/dist-types/commands/ListDomainsForPackageCommand.d.ts +2 -2
  51. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +2 -2
  52. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +2 -2
  53. package/dist-types/commands/ListScheduledActionsCommand.d.ts +3 -4
  54. package/dist-types/commands/ListTagsCommand.d.ts +1 -2
  55. package/dist-types/commands/ListVersionsCommand.d.ts +1 -1
  56. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +3 -2
  57. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +2 -2
  58. package/dist-types/commands/PutDefaultApplicationSettingCommand.d.ts +91 -0
  59. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +2 -2
  60. package/dist-types/commands/RemoveTagsCommand.d.ts +2 -2
  61. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +2 -2
  62. package/dist-types/commands/StartDomainMaintenanceCommand.d.ts +3 -2
  63. package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +2 -2
  64. package/dist-types/commands/UpdateDataSourceCommand.d.ts +3 -2
  65. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +2 -4
  66. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdatePackageCommand.d.ts +3 -2
  68. package/dist-types/commands/UpdatePackageScopeCommand.d.ts +2 -1
  69. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +3 -4
  70. package/dist-types/commands/UpgradeDomainCommand.d.ts +2 -2
  71. package/dist-types/commands/index.d.ts +2 -0
  72. package/dist-types/index.d.ts +4 -4
  73. package/dist-types/models/models_0.d.ts +904 -793
  74. package/dist-types/models/models_1.d.ts +257 -183
  75. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  76. package/dist-types/ts3.4/OpenSearch.d.ts +35 -0
  77. package/dist-types/ts3.4/OpenSearchClient.d.ts +12 -0
  78. package/dist-types/ts3.4/commands/GetDefaultApplicationSettingCommand.d.ts +51 -0
  79. package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +4 -2
  80. package/dist-types/ts3.4/commands/PutDefaultApplicationSettingCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +4 -7
  83. package/dist-types/ts3.4/models/models_1.d.ts +15 -1
  84. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  85. package/package.json +5 -5
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { PutDefaultApplicationSettingRequest, PutDefaultApplicationSettingResponse } from "../models/models_1";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutDefaultApplicationSettingCommand}.
14
+ */
15
+ export interface PutDefaultApplicationSettingCommandInput extends PutDefaultApplicationSettingRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutDefaultApplicationSettingCommand}.
21
+ */
22
+ export interface PutDefaultApplicationSettingCommandOutput extends PutDefaultApplicationSettingResponse, __MetadataBearer {
23
+ }
24
+ declare const PutDefaultApplicationSettingCommand_base: {
25
+ new (input: PutDefaultApplicationSettingCommandInput): import("@smithy/smithy-client").CommandImpl<PutDefaultApplicationSettingCommandInput, PutDefaultApplicationSettingCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutDefaultApplicationSettingCommandInput): import("@smithy/smithy-client").CommandImpl<PutDefaultApplicationSettingCommandInput, PutDefaultApplicationSettingCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Sets the default application to the application with the specified ARN.</p>
31
+ * <p> To remove the default application, use the <code>GetDefaultApplicationSetting</code>
32
+ * operation to get the current default and then call the
33
+ * <code>PutDefaultApplicationSetting</code> with the current applications ARN and the
34
+ * <code>setAsDefault</code> parameter set to <code>false</code>.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { OpenSearchClient, PutDefaultApplicationSettingCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
39
+ * // const { OpenSearchClient, PutDefaultApplicationSettingCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
40
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
41
+ * const config = {}; // type is OpenSearchClientConfig
42
+ * const client = new OpenSearchClient(config);
43
+ * const input = { // PutDefaultApplicationSettingRequest
44
+ * applicationArn: "STRING_VALUE", // required
45
+ * setAsDefault: true || false, // required
46
+ * };
47
+ * const command = new PutDefaultApplicationSettingCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // PutDefaultApplicationSettingResponse
50
+ * // applicationArn: "STRING_VALUE",
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param PutDefaultApplicationSettingCommandInput - {@link PutDefaultApplicationSettingCommandInput}
56
+ * @returns {@link PutDefaultApplicationSettingCommandOutput}
57
+ * @see {@link PutDefaultApplicationSettingCommandInput} for command's `input` shape.
58
+ * @see {@link PutDefaultApplicationSettingCommandOutput} for command's `response` shape.
59
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
63
+ *
64
+ * @throws {@link InternalException} (server fault)
65
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
72
+ *
73
+ * @throws {@link OpenSearchServiceException}
74
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class PutDefaultApplicationSettingCommand extends PutDefaultApplicationSettingCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: PutDefaultApplicationSettingRequest;
84
+ output: PutDefaultApplicationSettingResponse;
85
+ };
86
+ sdk: {
87
+ input: PutDefaultApplicationSettingCommandInput;
88
+ output: PutDefaultApplicationSettingCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -27,8 +27,8 @@ declare const RejectInboundConnectionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Allows the remote Amazon OpenSearch Service domain owner to reject an inbound cross-cluster
31
- * connection request.</p>
30
+ * <p>Allows the remote Amazon OpenSearch Service domain owner to reject an inbound
31
+ * cross-cluster connection request.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,8 +27,8 @@ declare const RemoveTagsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Removes the specified set of tags from an Amazon OpenSearch Service domain, data source, or
31
- * application. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service resources</a>.</p>
30
+ * <p>Removes the specified set of tags from an Amazon OpenSearch Service domain, data
31
+ * source, or application. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service resources</a>.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,8 +27,8 @@ declare const RevokeVpcEndpointAccessCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Revokes access to an Amazon OpenSearch Service domain that was provided through an interface
31
- * VPC endpoint.</p>
30
+ * <p>Revokes access to an Amazon OpenSearch Service domain that was provided through an
31
+ * interface VPC endpoint.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,8 +27,9 @@ declare const StartDomainMaintenanceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Starts the node maintenance process on the data node. These processes can include a node reboot, an Opensearch or Elasticsearch process restart,
31
- * or a Dashboard or Kibana restart.</p>
30
+ * <p>Starts the node maintenance process on the data node. These processes can include a
31
+ * node reboot, an Opensearch or Elasticsearch process restart, or a Dashboard or Kibana
32
+ * restart.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -28,8 +28,8 @@ declare const StartServiceSoftwareUpdateCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Schedules a service software update for an Amazon OpenSearch Service domain. For more
31
- * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html">Service software updates in
32
- * Amazon OpenSearch Service</a>.</p>
31
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html">Service
32
+ * software updates in Amazon OpenSearch Service</a>.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -27,8 +27,9 @@ declare const UpdateDataSourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates a direct-query data source. For more information, see
31
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-creating.html">Working with Amazon OpenSearch Service data source integrations with Amazon S3</a>.</p>
30
+ * <p>Updates a direct-query data source. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-creating.html">Working
31
+ * with Amazon OpenSearch Service data source integrations with Amazon
32
+ * S3</a>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -27,10 +27,8 @@ declare const UpdateDirectQueryDataSourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>
31
- * Updates the configuration or properties of an existing
32
- * direct query data source in Amazon OpenSearch Service.
33
- * </p>
30
+ * <p> Updates the configuration or properties of an existing direct query data source in
31
+ * Amazon OpenSearch Service. </p>
34
32
  * @example
35
33
  * Use a bare-bones client and the command you need to make an API call.
36
34
  * ```javascript
@@ -28,7 +28,7 @@ declare const UpdateDomainConfigCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Modifies the cluster configuration of the specified Amazon OpenSearch Service
31
- * domain.</p>
31
+ * domain.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,8 +27,9 @@ declare const UpdatePackageCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates a package for use with Amazon OpenSearch Service domains. For more information, see
31
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages for Amazon OpenSearch Service</a>.</p>
30
+ * <p>Updates a package for use with Amazon OpenSearch Service domains. For more
31
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages
32
+ * for Amazon OpenSearch Service</a>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -27,7 +27,8 @@ declare const UpdatePackageScopeCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the scope of a package. Scope of the package defines users who can view and associate a package.</p>
30
+ * <p>Updates the scope of a package. Scope of the package defines users who can view and
31
+ * associate a package.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -27,10 +27,9 @@ declare const UpdateScheduledActionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Reschedules a planned domain configuration change for a later time. This change can be a
31
- * scheduled <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html">service software
32
- * update</a> or a <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html#auto-tune-types">blue/green
33
- * Auto-Tune enhancement</a>.</p>
30
+ * <p>Reschedules a planned domain configuration change for a later time. This change can be
31
+ * a scheduled <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html">service
32
+ * software update</a> or a <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html#auto-tune-types">blue/green Auto-Tune enhancement</a>.</p>
34
33
  * @example
35
34
  * Use a bare-bones client and the command you need to make an API call.
36
35
  * ```javascript
@@ -27,8 +27,8 @@ declare const UpgradeDomainCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Allows you to either upgrade your Amazon OpenSearch Service domain or perform an upgrade
31
- * eligibility check to a compatible version of OpenSearch or Elasticsearch.</p>
30
+ * <p>Allows you to either upgrade your Amazon OpenSearch Service domain or perform an
31
+ * upgrade eligibility check to a compatible version of OpenSearch or Elasticsearch.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -40,6 +40,7 @@ export * from "./DissociatePackagesCommand";
40
40
  export * from "./GetApplicationCommand";
41
41
  export * from "./GetCompatibleVersionsCommand";
42
42
  export * from "./GetDataSourceCommand";
43
+ export * from "./GetDefaultApplicationSettingCommand";
43
44
  export * from "./GetDirectQueryDataSourceCommand";
44
45
  export * from "./GetDomainMaintenanceStatusCommand";
45
46
  export * from "./GetPackageVersionHistoryCommand";
@@ -60,6 +61,7 @@ export * from "./ListVpcEndpointAccessCommand";
60
61
  export * from "./ListVpcEndpointsCommand";
61
62
  export * from "./ListVpcEndpointsForDomainCommand";
62
63
  export * from "./PurchaseReservedInstanceOfferingCommand";
64
+ export * from "./PutDefaultApplicationSettingCommand";
63
65
  export * from "./RejectInboundConnectionCommand";
64
66
  export * from "./RemoveTagsCommand";
65
67
  export * from "./RevokeVpcEndpointAccessCommand";
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * <p>Use the Amazon OpenSearch Service configuration API to create, configure, and manage
3
- * OpenSearch Service domains. The endpoint for configuration service requests is Region specific:
4
- * es.<i>region</i>.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a
5
- * current list of supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#service-regions">Amazon Web Services service
6
- * endpoints</a>.</p>
3
+ * OpenSearch Service domains. The endpoint for configuration service requests is Region
4
+ * specific: es.<i>region</i>.amazonaws.com. For example,
5
+ * es.us-east-1.amazonaws.com. For a current list of supported Regions and endpoints, see
6
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#service-regions">Amazon Web Services service endpoints</a>.</p>
7
7
  *
8
8
  * @packageDocumentation
9
9
  */