@aws-sdk/client-opensearchserverless 3.859.0 → 3.862.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.
- package/README.md +32 -0
- package/dist-cjs/index.js +173 -0
- package/dist-es/OpenSearchServerless.js +8 -0
- package/dist-es/commands/CreateIndexCommand.js +22 -0
- package/dist-es/commands/DeleteIndexCommand.js +22 -0
- package/dist-es/commands/GetIndexCommand.js +22 -0
- package/dist-es/commands/UpdateIndexCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +101 -0
- package/dist-types/OpenSearchServerless.d.ts +28 -0
- package/dist-types/OpenSearchServerlessClient.d.ts +6 -2
- package/dist-types/commands/CreateCollectionCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +90 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +83 -0
- package/dist-types/commands/GetIndexCommand.d.ts +85 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +105 -6
- package/dist-types/protocols/Aws_json1_0.d.ts +36 -0
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +68 -0
- package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +24 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +48 -0
- package/package.json +33 -33
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateIndexRequest, UpdateIndexResponse } from "../models/models_0";
|
|
4
|
+
import { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateIndexCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateIndexCommandInput extends UpdateIndexRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateIndexCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateIndexCommandOutput extends UpdateIndexResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateIndexCommand_base: {
|
|
25
|
+
new (input: UpdateIndexCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIndexCommandInput, UpdateIndexCommandOutput, OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateIndexCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIndexCommandInput, UpdateIndexCommandOutput, OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an existing index in an OpenSearch Serverless collection. This operation allows you to modify
|
|
31
|
+
* the index schema, including adding new fields or changing field mappings. You can also
|
|
32
|
+
* enable automatic semantic enrichment ingestion and search. For more information, see
|
|
33
|
+
* <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment">About automatic semantic enrichment</a>.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { OpenSearchServerlessClient, UpdateIndexCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
|
|
38
|
+
* // const { OpenSearchServerlessClient, UpdateIndexCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
|
|
39
|
+
* const client = new OpenSearchServerlessClient(config);
|
|
40
|
+
* const input = { // UpdateIndexRequest
|
|
41
|
+
* id: "STRING_VALUE", // required
|
|
42
|
+
* indexName: "STRING_VALUE", // required
|
|
43
|
+
* indexSchema: "DOCUMENT_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UpdateIndexCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param UpdateIndexCommandInput - {@link UpdateIndexCommandInput}
|
|
52
|
+
* @returns {@link UpdateIndexCommandOutput}
|
|
53
|
+
* @see {@link UpdateIndexCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link UpdateIndexCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>Thrown when accessing or deleting a resource that does not exist.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>Thrown when the HTTP request contains invalid input or is missing required
|
|
65
|
+
* input.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link OpenSearchServerlessServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from OpenSearchServerless service.</p>
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare class UpdateIndexCommand extends UpdateIndexCommand_base {
|
|
74
|
+
/** @internal type navigation helper, not in runtime. */
|
|
75
|
+
protected static __types: {
|
|
76
|
+
api: {
|
|
77
|
+
input: UpdateIndexRequest;
|
|
78
|
+
output: {};
|
|
79
|
+
};
|
|
80
|
+
sdk: {
|
|
81
|
+
input: UpdateIndexCommandInput;
|
|
82
|
+
output: UpdateIndexCommandOutput;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -4,18 +4,21 @@ export * from "./BatchGetLifecyclePolicyCommand";
|
|
|
4
4
|
export * from "./BatchGetVpcEndpointCommand";
|
|
5
5
|
export * from "./CreateAccessPolicyCommand";
|
|
6
6
|
export * from "./CreateCollectionCommand";
|
|
7
|
+
export * from "./CreateIndexCommand";
|
|
7
8
|
export * from "./CreateLifecyclePolicyCommand";
|
|
8
9
|
export * from "./CreateSecurityConfigCommand";
|
|
9
10
|
export * from "./CreateSecurityPolicyCommand";
|
|
10
11
|
export * from "./CreateVpcEndpointCommand";
|
|
11
12
|
export * from "./DeleteAccessPolicyCommand";
|
|
12
13
|
export * from "./DeleteCollectionCommand";
|
|
14
|
+
export * from "./DeleteIndexCommand";
|
|
13
15
|
export * from "./DeleteLifecyclePolicyCommand";
|
|
14
16
|
export * from "./DeleteSecurityConfigCommand";
|
|
15
17
|
export * from "./DeleteSecurityPolicyCommand";
|
|
16
18
|
export * from "./DeleteVpcEndpointCommand";
|
|
17
19
|
export * from "./GetAccessPolicyCommand";
|
|
18
20
|
export * from "./GetAccountSettingsCommand";
|
|
21
|
+
export * from "./GetIndexCommand";
|
|
19
22
|
export * from "./GetPoliciesStatsCommand";
|
|
20
23
|
export * from "./GetSecurityConfigCommand";
|
|
21
24
|
export * from "./GetSecurityPolicyCommand";
|
|
@@ -31,6 +34,7 @@ export * from "./UntagResourceCommand";
|
|
|
31
34
|
export * from "./UpdateAccessPolicyCommand";
|
|
32
35
|
export * from "./UpdateAccountSettingsCommand";
|
|
33
36
|
export * from "./UpdateCollectionCommand";
|
|
37
|
+
export * from "./UpdateIndexCommand";
|
|
34
38
|
export * from "./UpdateLifecyclePolicyCommand";
|
|
35
39
|
export * from "./UpdateSecurityConfigCommand";
|
|
36
40
|
export * from "./UpdateSecurityPolicyCommand";
|
|
@@ -1100,7 +1100,7 @@ export interface CreateCollectionResponse {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
/**
|
|
1102
1102
|
* <p>Thrown when the collection you're attempting to create results in a number of search
|
|
1103
|
-
* or indexing OCUs that exceeds the account limit
|
|
1103
|
+
* or indexing OCUs that exceeds the account limit. </p>
|
|
1104
1104
|
* @public
|
|
1105
1105
|
*/
|
|
1106
1106
|
export declare class OcuLimitExceededException extends __BaseException {
|
|
@@ -1180,7 +1180,7 @@ export interface CollectionFilters {
|
|
|
1180
1180
|
*/
|
|
1181
1181
|
export interface ListCollectionsRequest {
|
|
1182
1182
|
/**
|
|
1183
|
-
* <p>A list of filter names and values that you can use for requests.</p>
|
|
1183
|
+
* <p> A list of filter names and values that you can use for requests.</p>
|
|
1184
1184
|
* @public
|
|
1185
1185
|
*/
|
|
1186
1186
|
collectionFilters?: CollectionFilters | undefined;
|
|
@@ -1383,6 +1383,33 @@ export interface CreateIamIdentityCenterConfigOptions {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
groupAttribute?: IamIdentityCenterGroupAttribute | undefined;
|
|
1385
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* @public
|
|
1388
|
+
*/
|
|
1389
|
+
export interface CreateIndexRequest {
|
|
1390
|
+
/**
|
|
1391
|
+
* <p>The unique identifier of the collection in which to create the index.</p>
|
|
1392
|
+
* @public
|
|
1393
|
+
*/
|
|
1394
|
+
id: string | undefined;
|
|
1395
|
+
/**
|
|
1396
|
+
* <p>The name of the index to create. Index names must be lowercase and can't begin with
|
|
1397
|
+
* underscores (_) or hyphens (-).</p>
|
|
1398
|
+
* @public
|
|
1399
|
+
*/
|
|
1400
|
+
indexName: string | undefined;
|
|
1401
|
+
/**
|
|
1402
|
+
* <p>The JSON schema definition for the index, including field mappings and
|
|
1403
|
+
* settings.</p>
|
|
1404
|
+
* @public
|
|
1405
|
+
*/
|
|
1406
|
+
indexSchema?: __DocumentType | undefined;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* @public
|
|
1410
|
+
*/
|
|
1411
|
+
export interface CreateIndexResponse {
|
|
1412
|
+
}
|
|
1386
1413
|
/**
|
|
1387
1414
|
* @public
|
|
1388
1415
|
*/
|
|
@@ -1813,6 +1840,26 @@ export interface CreateVpcEndpointResponse {
|
|
|
1813
1840
|
*/
|
|
1814
1841
|
createVpcEndpointDetail?: CreateVpcEndpointDetail | undefined;
|
|
1815
1842
|
}
|
|
1843
|
+
/**
|
|
1844
|
+
* @public
|
|
1845
|
+
*/
|
|
1846
|
+
export interface DeleteIndexRequest {
|
|
1847
|
+
/**
|
|
1848
|
+
* <p>The unique identifier of the collection containing the index to delete.</p>
|
|
1849
|
+
* @public
|
|
1850
|
+
*/
|
|
1851
|
+
id: string | undefined;
|
|
1852
|
+
/**
|
|
1853
|
+
* <p>The name of the index to delete.</p>
|
|
1854
|
+
* @public
|
|
1855
|
+
*/
|
|
1856
|
+
indexName: string | undefined;
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* @public
|
|
1860
|
+
*/
|
|
1861
|
+
export interface DeleteIndexResponse {
|
|
1862
|
+
}
|
|
1816
1863
|
/**
|
|
1817
1864
|
* @public
|
|
1818
1865
|
*/
|
|
@@ -1946,6 +1993,32 @@ export interface GetAccountSettingsResponse {
|
|
|
1946
1993
|
*/
|
|
1947
1994
|
accountSettingsDetail?: AccountSettingsDetail | undefined;
|
|
1948
1995
|
}
|
|
1996
|
+
/**
|
|
1997
|
+
* @public
|
|
1998
|
+
*/
|
|
1999
|
+
export interface GetIndexRequest {
|
|
2000
|
+
/**
|
|
2001
|
+
* <p>The unique identifier of the collection containing the index.</p>
|
|
2002
|
+
* @public
|
|
2003
|
+
*/
|
|
2004
|
+
id: string | undefined;
|
|
2005
|
+
/**
|
|
2006
|
+
* <p>The name of the index to retrieve information about.</p>
|
|
2007
|
+
* @public
|
|
2008
|
+
*/
|
|
2009
|
+
indexName: string | undefined;
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* @public
|
|
2013
|
+
*/
|
|
2014
|
+
export interface GetIndexResponse {
|
|
2015
|
+
/**
|
|
2016
|
+
* <p>The JSON schema definition for the index, including field mappings and
|
|
2017
|
+
* settings.</p>
|
|
2018
|
+
* @public
|
|
2019
|
+
*/
|
|
2020
|
+
indexSchema?: __DocumentType | undefined;
|
|
2021
|
+
}
|
|
1949
2022
|
/**
|
|
1950
2023
|
* @public
|
|
1951
2024
|
*/
|
|
@@ -2065,6 +2138,32 @@ export interface GetSecurityPolicyResponse {
|
|
|
2065
2138
|
*/
|
|
2066
2139
|
securityPolicyDetail?: SecurityPolicyDetail | undefined;
|
|
2067
2140
|
}
|
|
2141
|
+
/**
|
|
2142
|
+
* @public
|
|
2143
|
+
*/
|
|
2144
|
+
export interface UpdateIndexRequest {
|
|
2145
|
+
/**
|
|
2146
|
+
* <p>The unique identifier of the collection containing the index to update.</p>
|
|
2147
|
+
* @public
|
|
2148
|
+
*/
|
|
2149
|
+
id: string | undefined;
|
|
2150
|
+
/**
|
|
2151
|
+
* <p>The name of the index to update.</p>
|
|
2152
|
+
* @public
|
|
2153
|
+
*/
|
|
2154
|
+
indexName: string | undefined;
|
|
2155
|
+
/**
|
|
2156
|
+
* <p>The updated JSON schema definition for the index, including field mappings and
|
|
2157
|
+
* settings. </p>
|
|
2158
|
+
* @public
|
|
2159
|
+
*/
|
|
2160
|
+
indexSchema?: __DocumentType | undefined;
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* @public
|
|
2164
|
+
*/
|
|
2165
|
+
export interface UpdateIndexResponse {
|
|
2166
|
+
}
|
|
2068
2167
|
/**
|
|
2069
2168
|
* @public
|
|
2070
2169
|
*/
|
|
@@ -2154,7 +2253,7 @@ export interface ListLifecyclePoliciesResponse {
|
|
|
2154
2253
|
*/
|
|
2155
2254
|
export interface UpdateLifecyclePolicyRequest {
|
|
2156
2255
|
/**
|
|
2157
|
-
* <p>The type of lifecycle policy.</p>
|
|
2256
|
+
* <p> The type of lifecycle policy.</p>
|
|
2158
2257
|
* @public
|
|
2159
2258
|
*/
|
|
2160
2259
|
type: LifecyclePolicyType | undefined;
|
|
@@ -2281,7 +2380,7 @@ export interface ListSecurityPoliciesRequest {
|
|
|
2281
2380
|
*/
|
|
2282
2381
|
type: SecurityPolicyType | undefined;
|
|
2283
2382
|
/**
|
|
2284
|
-
* <p>Resource filters (can be collection or indexes) that policies can apply to
|
|
2383
|
+
* <p>Resource filters (can be collection or indexes) that policies can apply to. </p>
|
|
2285
2384
|
* @public
|
|
2286
2385
|
*/
|
|
2287
2386
|
resource?: string[] | undefined;
|
|
@@ -2401,7 +2500,7 @@ export interface ListVpcEndpointsRequest {
|
|
|
2401
2500
|
* <p>If your initial <code>ListVpcEndpoints</code> operation returns a
|
|
2402
2501
|
* <code>nextToken</code>, you can include the returned <code>nextToken</code> in
|
|
2403
2502
|
* subsequent <code>ListVpcEndpoints</code> operations, which returns results in the next
|
|
2404
|
-
* page
|
|
2503
|
+
* page. </p>
|
|
2405
2504
|
* @public
|
|
2406
2505
|
*/
|
|
2407
2506
|
nextToken?: string | undefined;
|
|
@@ -2520,7 +2619,7 @@ export interface UpdateSecurityConfigRequest {
|
|
|
2520
2619
|
*/
|
|
2521
2620
|
export interface UpdateSecurityConfigResponse {
|
|
2522
2621
|
/**
|
|
2523
|
-
* <p>Details about the updated security configuration
|
|
2622
|
+
* <p>Details about the updated security configuration. </p>
|
|
2524
2623
|
* @public
|
|
2525
2624
|
*/
|
|
2526
2625
|
securityConfigDetail?: SecurityConfigDetail | undefined;
|
|
@@ -6,18 +6,21 @@ import { BatchGetLifecyclePolicyCommandInput, BatchGetLifecyclePolicyCommandOutp
|
|
|
6
6
|
import { BatchGetVpcEndpointCommandInput, BatchGetVpcEndpointCommandOutput } from "../commands/BatchGetVpcEndpointCommand";
|
|
7
7
|
import { CreateAccessPolicyCommandInput, CreateAccessPolicyCommandOutput } from "../commands/CreateAccessPolicyCommand";
|
|
8
8
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "../commands/CreateCollectionCommand";
|
|
9
|
+
import { CreateIndexCommandInput, CreateIndexCommandOutput } from "../commands/CreateIndexCommand";
|
|
9
10
|
import { CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput } from "../commands/CreateLifecyclePolicyCommand";
|
|
10
11
|
import { CreateSecurityConfigCommandInput, CreateSecurityConfigCommandOutput } from "../commands/CreateSecurityConfigCommand";
|
|
11
12
|
import { CreateSecurityPolicyCommandInput, CreateSecurityPolicyCommandOutput } from "../commands/CreateSecurityPolicyCommand";
|
|
12
13
|
import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "../commands/CreateVpcEndpointCommand";
|
|
13
14
|
import { DeleteAccessPolicyCommandInput, DeleteAccessPolicyCommandOutput } from "../commands/DeleteAccessPolicyCommand";
|
|
14
15
|
import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "../commands/DeleteCollectionCommand";
|
|
16
|
+
import { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "../commands/DeleteIndexCommand";
|
|
15
17
|
import { DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput } from "../commands/DeleteLifecyclePolicyCommand";
|
|
16
18
|
import { DeleteSecurityConfigCommandInput, DeleteSecurityConfigCommandOutput } from "../commands/DeleteSecurityConfigCommand";
|
|
17
19
|
import { DeleteSecurityPolicyCommandInput, DeleteSecurityPolicyCommandOutput } from "../commands/DeleteSecurityPolicyCommand";
|
|
18
20
|
import { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } from "../commands/DeleteVpcEndpointCommand";
|
|
19
21
|
import { GetAccessPolicyCommandInput, GetAccessPolicyCommandOutput } from "../commands/GetAccessPolicyCommand";
|
|
20
22
|
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "../commands/GetAccountSettingsCommand";
|
|
23
|
+
import { GetIndexCommandInput, GetIndexCommandOutput } from "../commands/GetIndexCommand";
|
|
21
24
|
import { GetPoliciesStatsCommandInput, GetPoliciesStatsCommandOutput } from "../commands/GetPoliciesStatsCommand";
|
|
22
25
|
import { GetSecurityConfigCommandInput, GetSecurityConfigCommandOutput } from "../commands/GetSecurityConfigCommand";
|
|
23
26
|
import { GetSecurityPolicyCommandInput, GetSecurityPolicyCommandOutput } from "../commands/GetSecurityPolicyCommand";
|
|
@@ -33,6 +36,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
|
|
|
33
36
|
import { UpdateAccessPolicyCommandInput, UpdateAccessPolicyCommandOutput } from "../commands/UpdateAccessPolicyCommand";
|
|
34
37
|
import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "../commands/UpdateAccountSettingsCommand";
|
|
35
38
|
import { UpdateCollectionCommandInput, UpdateCollectionCommandOutput } from "../commands/UpdateCollectionCommand";
|
|
39
|
+
import { UpdateIndexCommandInput, UpdateIndexCommandOutput } from "../commands/UpdateIndexCommand";
|
|
36
40
|
import { UpdateLifecyclePolicyCommandInput, UpdateLifecyclePolicyCommandOutput } from "../commands/UpdateLifecyclePolicyCommand";
|
|
37
41
|
import { UpdateSecurityConfigCommandInput, UpdateSecurityConfigCommandOutput } from "../commands/UpdateSecurityConfigCommand";
|
|
38
42
|
import { UpdateSecurityPolicyCommandInput, UpdateSecurityPolicyCommandOutput } from "../commands/UpdateSecurityPolicyCommand";
|
|
@@ -61,6 +65,10 @@ export declare const se_CreateAccessPolicyCommand: (input: CreateAccessPolicyCom
|
|
|
61
65
|
* serializeAws_json1_0CreateCollectionCommand
|
|
62
66
|
*/
|
|
63
67
|
export declare const se_CreateCollectionCommand: (input: CreateCollectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
+
/**
|
|
69
|
+
* serializeAws_json1_0CreateIndexCommand
|
|
70
|
+
*/
|
|
71
|
+
export declare const se_CreateIndexCommand: (input: CreateIndexCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
72
|
/**
|
|
65
73
|
* serializeAws_json1_0CreateLifecyclePolicyCommand
|
|
66
74
|
*/
|
|
@@ -85,6 +93,10 @@ export declare const se_DeleteAccessPolicyCommand: (input: DeleteAccessPolicyCom
|
|
|
85
93
|
* serializeAws_json1_0DeleteCollectionCommand
|
|
86
94
|
*/
|
|
87
95
|
export declare const se_DeleteCollectionCommand: (input: DeleteCollectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
96
|
+
/**
|
|
97
|
+
* serializeAws_json1_0DeleteIndexCommand
|
|
98
|
+
*/
|
|
99
|
+
export declare const se_DeleteIndexCommand: (input: DeleteIndexCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
88
100
|
/**
|
|
89
101
|
* serializeAws_json1_0DeleteLifecyclePolicyCommand
|
|
90
102
|
*/
|
|
@@ -109,6 +121,10 @@ export declare const se_GetAccessPolicyCommand: (input: GetAccessPolicyCommandIn
|
|
|
109
121
|
* serializeAws_json1_0GetAccountSettingsCommand
|
|
110
122
|
*/
|
|
111
123
|
export declare const se_GetAccountSettingsCommand: (input: GetAccountSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
124
|
+
/**
|
|
125
|
+
* serializeAws_json1_0GetIndexCommand
|
|
126
|
+
*/
|
|
127
|
+
export declare const se_GetIndexCommand: (input: GetIndexCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
112
128
|
/**
|
|
113
129
|
* serializeAws_json1_0GetPoliciesStatsCommand
|
|
114
130
|
*/
|
|
@@ -169,6 +185,10 @@ export declare const se_UpdateAccountSettingsCommand: (input: UpdateAccountSetti
|
|
|
169
185
|
* serializeAws_json1_0UpdateCollectionCommand
|
|
170
186
|
*/
|
|
171
187
|
export declare const se_UpdateCollectionCommand: (input: UpdateCollectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
188
|
+
/**
|
|
189
|
+
* serializeAws_json1_0UpdateIndexCommand
|
|
190
|
+
*/
|
|
191
|
+
export declare const se_UpdateIndexCommand: (input: UpdateIndexCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
172
192
|
/**
|
|
173
193
|
* serializeAws_json1_0UpdateLifecyclePolicyCommand
|
|
174
194
|
*/
|
|
@@ -209,6 +229,10 @@ export declare const de_CreateAccessPolicyCommand: (output: __HttpResponse, cont
|
|
|
209
229
|
* deserializeAws_json1_0CreateCollectionCommand
|
|
210
230
|
*/
|
|
211
231
|
export declare const de_CreateCollectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateCollectionCommandOutput>;
|
|
232
|
+
/**
|
|
233
|
+
* deserializeAws_json1_0CreateIndexCommand
|
|
234
|
+
*/
|
|
235
|
+
export declare const de_CreateIndexCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateIndexCommandOutput>;
|
|
212
236
|
/**
|
|
213
237
|
* deserializeAws_json1_0CreateLifecyclePolicyCommand
|
|
214
238
|
*/
|
|
@@ -233,6 +257,10 @@ export declare const de_DeleteAccessPolicyCommand: (output: __HttpResponse, cont
|
|
|
233
257
|
* deserializeAws_json1_0DeleteCollectionCommand
|
|
234
258
|
*/
|
|
235
259
|
export declare const de_DeleteCollectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteCollectionCommandOutput>;
|
|
260
|
+
/**
|
|
261
|
+
* deserializeAws_json1_0DeleteIndexCommand
|
|
262
|
+
*/
|
|
263
|
+
export declare const de_DeleteIndexCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteIndexCommandOutput>;
|
|
236
264
|
/**
|
|
237
265
|
* deserializeAws_json1_0DeleteLifecyclePolicyCommand
|
|
238
266
|
*/
|
|
@@ -257,6 +285,10 @@ export declare const de_GetAccessPolicyCommand: (output: __HttpResponse, context
|
|
|
257
285
|
* deserializeAws_json1_0GetAccountSettingsCommand
|
|
258
286
|
*/
|
|
259
287
|
export declare const de_GetAccountSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAccountSettingsCommandOutput>;
|
|
288
|
+
/**
|
|
289
|
+
* deserializeAws_json1_0GetIndexCommand
|
|
290
|
+
*/
|
|
291
|
+
export declare const de_GetIndexCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetIndexCommandOutput>;
|
|
260
292
|
/**
|
|
261
293
|
* deserializeAws_json1_0GetPoliciesStatsCommand
|
|
262
294
|
*/
|
|
@@ -317,6 +349,10 @@ export declare const de_UpdateAccountSettingsCommand: (output: __HttpResponse, c
|
|
|
317
349
|
* deserializeAws_json1_0UpdateCollectionCommand
|
|
318
350
|
*/
|
|
319
351
|
export declare const de_UpdateCollectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateCollectionCommandOutput>;
|
|
352
|
+
/**
|
|
353
|
+
* deserializeAws_json1_0UpdateIndexCommand
|
|
354
|
+
*/
|
|
355
|
+
export declare const de_UpdateIndexCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateIndexCommandOutput>;
|
|
320
356
|
/**
|
|
321
357
|
* deserializeAws_json1_0UpdateLifecyclePolicyCommand
|
|
322
358
|
*/
|
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
CreateCollectionCommandInput,
|
|
24
24
|
CreateCollectionCommandOutput,
|
|
25
25
|
} from "./commands/CreateCollectionCommand";
|
|
26
|
+
import {
|
|
27
|
+
CreateIndexCommandInput,
|
|
28
|
+
CreateIndexCommandOutput,
|
|
29
|
+
} from "./commands/CreateIndexCommand";
|
|
26
30
|
import {
|
|
27
31
|
CreateLifecyclePolicyCommandInput,
|
|
28
32
|
CreateLifecyclePolicyCommandOutput,
|
|
@@ -47,6 +51,10 @@ import {
|
|
|
47
51
|
DeleteCollectionCommandInput,
|
|
48
52
|
DeleteCollectionCommandOutput,
|
|
49
53
|
} from "./commands/DeleteCollectionCommand";
|
|
54
|
+
import {
|
|
55
|
+
DeleteIndexCommandInput,
|
|
56
|
+
DeleteIndexCommandOutput,
|
|
57
|
+
} from "./commands/DeleteIndexCommand";
|
|
50
58
|
import {
|
|
51
59
|
DeleteLifecyclePolicyCommandInput,
|
|
52
60
|
DeleteLifecyclePolicyCommandOutput,
|
|
@@ -71,6 +79,10 @@ import {
|
|
|
71
79
|
GetAccountSettingsCommandInput,
|
|
72
80
|
GetAccountSettingsCommandOutput,
|
|
73
81
|
} from "./commands/GetAccountSettingsCommand";
|
|
82
|
+
import {
|
|
83
|
+
GetIndexCommandInput,
|
|
84
|
+
GetIndexCommandOutput,
|
|
85
|
+
} from "./commands/GetIndexCommand";
|
|
74
86
|
import {
|
|
75
87
|
GetPoliciesStatsCommandInput,
|
|
76
88
|
GetPoliciesStatsCommandOutput,
|
|
@@ -131,6 +143,10 @@ import {
|
|
|
131
143
|
UpdateCollectionCommandInput,
|
|
132
144
|
UpdateCollectionCommandOutput,
|
|
133
145
|
} from "./commands/UpdateCollectionCommand";
|
|
146
|
+
import {
|
|
147
|
+
UpdateIndexCommandInput,
|
|
148
|
+
UpdateIndexCommandOutput,
|
|
149
|
+
} from "./commands/UpdateIndexCommand";
|
|
134
150
|
import {
|
|
135
151
|
UpdateLifecyclePolicyCommandInput,
|
|
136
152
|
UpdateLifecyclePolicyCommandOutput,
|
|
@@ -228,6 +244,19 @@ export interface OpenSearchServerless {
|
|
|
228
244
|
options: __HttpHandlerOptions,
|
|
229
245
|
cb: (err: any, data?: CreateCollectionCommandOutput) => void
|
|
230
246
|
): void;
|
|
247
|
+
createIndex(
|
|
248
|
+
args: CreateIndexCommandInput,
|
|
249
|
+
options?: __HttpHandlerOptions
|
|
250
|
+
): Promise<CreateIndexCommandOutput>;
|
|
251
|
+
createIndex(
|
|
252
|
+
args: CreateIndexCommandInput,
|
|
253
|
+
cb: (err: any, data?: CreateIndexCommandOutput) => void
|
|
254
|
+
): void;
|
|
255
|
+
createIndex(
|
|
256
|
+
args: CreateIndexCommandInput,
|
|
257
|
+
options: __HttpHandlerOptions,
|
|
258
|
+
cb: (err: any, data?: CreateIndexCommandOutput) => void
|
|
259
|
+
): void;
|
|
231
260
|
createLifecyclePolicy(
|
|
232
261
|
args: CreateLifecyclePolicyCommandInput,
|
|
233
262
|
options?: __HttpHandlerOptions
|
|
@@ -306,6 +335,19 @@ export interface OpenSearchServerless {
|
|
|
306
335
|
options: __HttpHandlerOptions,
|
|
307
336
|
cb: (err: any, data?: DeleteCollectionCommandOutput) => void
|
|
308
337
|
): void;
|
|
338
|
+
deleteIndex(
|
|
339
|
+
args: DeleteIndexCommandInput,
|
|
340
|
+
options?: __HttpHandlerOptions
|
|
341
|
+
): Promise<DeleteIndexCommandOutput>;
|
|
342
|
+
deleteIndex(
|
|
343
|
+
args: DeleteIndexCommandInput,
|
|
344
|
+
cb: (err: any, data?: DeleteIndexCommandOutput) => void
|
|
345
|
+
): void;
|
|
346
|
+
deleteIndex(
|
|
347
|
+
args: DeleteIndexCommandInput,
|
|
348
|
+
options: __HttpHandlerOptions,
|
|
349
|
+
cb: (err: any, data?: DeleteIndexCommandOutput) => void
|
|
350
|
+
): void;
|
|
309
351
|
deleteLifecyclePolicy(
|
|
310
352
|
args: DeleteLifecyclePolicyCommandInput,
|
|
311
353
|
options?: __HttpHandlerOptions
|
|
@@ -385,6 +427,19 @@ export interface OpenSearchServerless {
|
|
|
385
427
|
options: __HttpHandlerOptions,
|
|
386
428
|
cb: (err: any, data?: GetAccountSettingsCommandOutput) => void
|
|
387
429
|
): void;
|
|
430
|
+
getIndex(
|
|
431
|
+
args: GetIndexCommandInput,
|
|
432
|
+
options?: __HttpHandlerOptions
|
|
433
|
+
): Promise<GetIndexCommandOutput>;
|
|
434
|
+
getIndex(
|
|
435
|
+
args: GetIndexCommandInput,
|
|
436
|
+
cb: (err: any, data?: GetIndexCommandOutput) => void
|
|
437
|
+
): void;
|
|
438
|
+
getIndex(
|
|
439
|
+
args: GetIndexCommandInput,
|
|
440
|
+
options: __HttpHandlerOptions,
|
|
441
|
+
cb: (err: any, data?: GetIndexCommandOutput) => void
|
|
442
|
+
): void;
|
|
388
443
|
getPoliciesStats(): Promise<GetPoliciesStatsCommandOutput>;
|
|
389
444
|
getPoliciesStats(
|
|
390
445
|
args: GetPoliciesStatsCommandInput,
|
|
@@ -584,6 +639,19 @@ export interface OpenSearchServerless {
|
|
|
584
639
|
options: __HttpHandlerOptions,
|
|
585
640
|
cb: (err: any, data?: UpdateCollectionCommandOutput) => void
|
|
586
641
|
): void;
|
|
642
|
+
updateIndex(
|
|
643
|
+
args: UpdateIndexCommandInput,
|
|
644
|
+
options?: __HttpHandlerOptions
|
|
645
|
+
): Promise<UpdateIndexCommandOutput>;
|
|
646
|
+
updateIndex(
|
|
647
|
+
args: UpdateIndexCommandInput,
|
|
648
|
+
cb: (err: any, data?: UpdateIndexCommandOutput) => void
|
|
649
|
+
): void;
|
|
650
|
+
updateIndex(
|
|
651
|
+
args: UpdateIndexCommandInput,
|
|
652
|
+
options: __HttpHandlerOptions,
|
|
653
|
+
cb: (err: any, data?: UpdateIndexCommandOutput) => void
|
|
654
|
+
): void;
|
|
587
655
|
updateLifecyclePolicy(
|
|
588
656
|
args: UpdateLifecyclePolicyCommandInput,
|
|
589
657
|
options?: __HttpHandlerOptions
|
|
@@ -69,6 +69,10 @@ import {
|
|
|
69
69
|
CreateCollectionCommandInput,
|
|
70
70
|
CreateCollectionCommandOutput,
|
|
71
71
|
} from "./commands/CreateCollectionCommand";
|
|
72
|
+
import {
|
|
73
|
+
CreateIndexCommandInput,
|
|
74
|
+
CreateIndexCommandOutput,
|
|
75
|
+
} from "./commands/CreateIndexCommand";
|
|
72
76
|
import {
|
|
73
77
|
CreateLifecyclePolicyCommandInput,
|
|
74
78
|
CreateLifecyclePolicyCommandOutput,
|
|
@@ -93,6 +97,10 @@ import {
|
|
|
93
97
|
DeleteCollectionCommandInput,
|
|
94
98
|
DeleteCollectionCommandOutput,
|
|
95
99
|
} from "./commands/DeleteCollectionCommand";
|
|
100
|
+
import {
|
|
101
|
+
DeleteIndexCommandInput,
|
|
102
|
+
DeleteIndexCommandOutput,
|
|
103
|
+
} from "./commands/DeleteIndexCommand";
|
|
96
104
|
import {
|
|
97
105
|
DeleteLifecyclePolicyCommandInput,
|
|
98
106
|
DeleteLifecyclePolicyCommandOutput,
|
|
@@ -117,6 +125,10 @@ import {
|
|
|
117
125
|
GetAccountSettingsCommandInput,
|
|
118
126
|
GetAccountSettingsCommandOutput,
|
|
119
127
|
} from "./commands/GetAccountSettingsCommand";
|
|
128
|
+
import {
|
|
129
|
+
GetIndexCommandInput,
|
|
130
|
+
GetIndexCommandOutput,
|
|
131
|
+
} from "./commands/GetIndexCommand";
|
|
120
132
|
import {
|
|
121
133
|
GetPoliciesStatsCommandInput,
|
|
122
134
|
GetPoliciesStatsCommandOutput,
|
|
@@ -177,6 +189,10 @@ import {
|
|
|
177
189
|
UpdateCollectionCommandInput,
|
|
178
190
|
UpdateCollectionCommandOutput,
|
|
179
191
|
} from "./commands/UpdateCollectionCommand";
|
|
192
|
+
import {
|
|
193
|
+
UpdateIndexCommandInput,
|
|
194
|
+
UpdateIndexCommandOutput,
|
|
195
|
+
} from "./commands/UpdateIndexCommand";
|
|
180
196
|
import {
|
|
181
197
|
UpdateLifecyclePolicyCommandInput,
|
|
182
198
|
UpdateLifecyclePolicyCommandOutput,
|
|
@@ -207,18 +223,21 @@ export type ServiceInputTypes =
|
|
|
207
223
|
| BatchGetVpcEndpointCommandInput
|
|
208
224
|
| CreateAccessPolicyCommandInput
|
|
209
225
|
| CreateCollectionCommandInput
|
|
226
|
+
| CreateIndexCommandInput
|
|
210
227
|
| CreateLifecyclePolicyCommandInput
|
|
211
228
|
| CreateSecurityConfigCommandInput
|
|
212
229
|
| CreateSecurityPolicyCommandInput
|
|
213
230
|
| CreateVpcEndpointCommandInput
|
|
214
231
|
| DeleteAccessPolicyCommandInput
|
|
215
232
|
| DeleteCollectionCommandInput
|
|
233
|
+
| DeleteIndexCommandInput
|
|
216
234
|
| DeleteLifecyclePolicyCommandInput
|
|
217
235
|
| DeleteSecurityConfigCommandInput
|
|
218
236
|
| DeleteSecurityPolicyCommandInput
|
|
219
237
|
| DeleteVpcEndpointCommandInput
|
|
220
238
|
| GetAccessPolicyCommandInput
|
|
221
239
|
| GetAccountSettingsCommandInput
|
|
240
|
+
| GetIndexCommandInput
|
|
222
241
|
| GetPoliciesStatsCommandInput
|
|
223
242
|
| GetSecurityConfigCommandInput
|
|
224
243
|
| GetSecurityPolicyCommandInput
|
|
@@ -234,6 +253,7 @@ export type ServiceInputTypes =
|
|
|
234
253
|
| UpdateAccessPolicyCommandInput
|
|
235
254
|
| UpdateAccountSettingsCommandInput
|
|
236
255
|
| UpdateCollectionCommandInput
|
|
256
|
+
| UpdateIndexCommandInput
|
|
237
257
|
| UpdateLifecyclePolicyCommandInput
|
|
238
258
|
| UpdateSecurityConfigCommandInput
|
|
239
259
|
| UpdateSecurityPolicyCommandInput
|
|
@@ -245,18 +265,21 @@ export type ServiceOutputTypes =
|
|
|
245
265
|
| BatchGetVpcEndpointCommandOutput
|
|
246
266
|
| CreateAccessPolicyCommandOutput
|
|
247
267
|
| CreateCollectionCommandOutput
|
|
268
|
+
| CreateIndexCommandOutput
|
|
248
269
|
| CreateLifecyclePolicyCommandOutput
|
|
249
270
|
| CreateSecurityConfigCommandOutput
|
|
250
271
|
| CreateSecurityPolicyCommandOutput
|
|
251
272
|
| CreateVpcEndpointCommandOutput
|
|
252
273
|
| DeleteAccessPolicyCommandOutput
|
|
253
274
|
| DeleteCollectionCommandOutput
|
|
275
|
+
| DeleteIndexCommandOutput
|
|
254
276
|
| DeleteLifecyclePolicyCommandOutput
|
|
255
277
|
| DeleteSecurityConfigCommandOutput
|
|
256
278
|
| DeleteSecurityPolicyCommandOutput
|
|
257
279
|
| DeleteVpcEndpointCommandOutput
|
|
258
280
|
| GetAccessPolicyCommandOutput
|
|
259
281
|
| GetAccountSettingsCommandOutput
|
|
282
|
+
| GetIndexCommandOutput
|
|
260
283
|
| GetPoliciesStatsCommandOutput
|
|
261
284
|
| GetSecurityConfigCommandOutput
|
|
262
285
|
| GetSecurityPolicyCommandOutput
|
|
@@ -272,6 +295,7 @@ export type ServiceOutputTypes =
|
|
|
272
295
|
| UpdateAccessPolicyCommandOutput
|
|
273
296
|
| UpdateAccountSettingsCommandOutput
|
|
274
297
|
| UpdateCollectionCommandOutput
|
|
298
|
+
| UpdateIndexCommandOutput
|
|
275
299
|
| UpdateLifecyclePolicyCommandOutput
|
|
276
300
|
| UpdateSecurityConfigCommandOutput
|
|
277
301
|
| UpdateSecurityPolicyCommandOutput
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateIndexRequest, CreateIndexResponse } from "../models/models_0";
|
|
4
|
+
import {
|
|
5
|
+
OpenSearchServerlessClientResolvedConfig,
|
|
6
|
+
ServiceInputTypes,
|
|
7
|
+
ServiceOutputTypes,
|
|
8
|
+
} from "../OpenSearchServerlessClient";
|
|
9
|
+
export { __MetadataBearer };
|
|
10
|
+
export { $Command };
|
|
11
|
+
export interface CreateIndexCommandInput extends CreateIndexRequest {}
|
|
12
|
+
export interface CreateIndexCommandOutput
|
|
13
|
+
extends CreateIndexResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const CreateIndexCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: CreateIndexCommandInput
|
|
18
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
19
|
+
CreateIndexCommandInput,
|
|
20
|
+
CreateIndexCommandOutput,
|
|
21
|
+
OpenSearchServerlessClientResolvedConfig,
|
|
22
|
+
ServiceInputTypes,
|
|
23
|
+
ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
input: CreateIndexCommandInput
|
|
27
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
28
|
+
CreateIndexCommandInput,
|
|
29
|
+
CreateIndexCommandOutput,
|
|
30
|
+
OpenSearchServerlessClientResolvedConfig,
|
|
31
|
+
ServiceInputTypes,
|
|
32
|
+
ServiceOutputTypes
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
|
+
};
|
|
36
|
+
export declare class CreateIndexCommand extends CreateIndexCommand_base {
|
|
37
|
+
protected static __types: {
|
|
38
|
+
api: {
|
|
39
|
+
input: CreateIndexRequest;
|
|
40
|
+
output: {};
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
input: CreateIndexCommandInput;
|
|
44
|
+
output: CreateIndexCommandOutput;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|