@aws-sdk/client-opensearchserverless 3.220.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/LICENSE +201 -0
- package/README.md +214 -0
- package/dist-cjs/OpenSearchServerless.js +472 -0
- package/dist-cjs/OpenSearchServerlessClient.js +40 -0
- package/dist-cjs/commands/BatchGetCollectionCommand.js +46 -0
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateCollectionCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollectionCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/GetAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListCollectionsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollectionCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/index.js +34 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/OpenSearchServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +445 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListCollectionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2572 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/OpenSearchServerless.js +468 -0
- package/dist-es/OpenSearchServerlessClient.js +36 -0
- package/dist-es/commands/BatchGetCollectionCommand.js +42 -0
- package/dist-es/commands/BatchGetVpcEndpointCommand.js +42 -0
- package/dist-es/commands/CreateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/CreateCollectionCommand.js +42 -0
- package/dist-es/commands/CreateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/CreateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/DeleteAccessPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteCollectionCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityConfigCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
- package/dist-es/commands/GetAccessPolicyCommand.js +42 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +42 -0
- package/dist-es/commands/GetPoliciesStatsCommand.js +42 -0
- package/dist-es/commands/GetSecurityConfigCommand.js +42 -0
- package/dist-es/commands/GetSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/ListAccessPoliciesCommand.js +42 -0
- package/dist-es/commands/ListCollectionsCommand.js +42 -0
- package/dist-es/commands/ListSecurityConfigsCommand.js +42 -0
- package/dist-es/commands/ListSecurityPoliciesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateAccountSettingsCommand.js +42 -0
- package/dist-es/commands/UpdateCollectionCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/index.js +31 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/OpenSearchServerlessServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +348 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListCollectionsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityConfigsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListVpcEndpointsPaginator.js +31 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_json1_0.js +2506 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/OpenSearchServerless.d.ts +276 -0
- package/dist-types/OpenSearchServerlessClient.d.ts +181 -0
- package/dist-types/commands/BatchGetCollectionCommand.d.ts +39 -0
- package/dist-types/commands/BatchGetVpcEndpointCommand.d.ts +39 -0
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +40 -0
- package/dist-types/commands/CreateCollectionCommand.d.ts +38 -0
- package/dist-types/commands/CreateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +42 -0
- package/dist-types/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollectionCommand.d.ts +38 -0
- package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +37 -0
- package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/GetAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +37 -0
- package/dist-types/commands/GetPoliciesStatsCommand.d.ts +38 -0
- package/dist-types/commands/GetSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/GetSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListCollectionsCommand.d.ts +42 -0
- package/dist-types/commands/ListSecurityConfigsCommand.d.ts +39 -0
- package/dist-types/commands/ListSecurityPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListVpcEndpointsCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +31 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/OpenSearchServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1802 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCollectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityConfigsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListVpcEndpointsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +95 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +531 -0
- package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +298 -0
- package/dist-types/ts3.4/commands/BatchGetCollectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/BatchGetVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccessPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPoliciesStatsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSecurityConfigCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSecurityPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSecurityConfigsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/OpenSearchServerlessServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +740 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCollectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityConfigsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVpcEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +377 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +103 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateCollectionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class CreateCollectionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateCollectionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "CreateCollectionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateCollectionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateCollectionResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0CreateCollectionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0CreateCollectionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateCollectionCommand = CreateCollectionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSecurityConfigCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class CreateSecurityConfigCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateSecurityConfigCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "CreateSecurityConfigCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateSecurityConfigRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateSecurityConfigResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0CreateSecurityConfigCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0CreateSecurityConfigCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateSecurityConfigCommand = CreateSecurityConfigCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSecurityPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class CreateSecurityPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateSecurityPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "CreateSecurityPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateSecurityPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateSecurityPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0CreateSecurityPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0CreateSecurityPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateSecurityPolicyCommand = CreateSecurityPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVpcEndpointCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class CreateVpcEndpointCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateVpcEndpointCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "CreateVpcEndpointCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateVpcEndpointRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateVpcEndpointResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0CreateVpcEndpointCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0CreateVpcEndpointCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateVpcEndpointCommand = CreateVpcEndpointCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAccessPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class DeleteAccessPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAccessPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "DeleteAccessPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteAccessPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteAccessPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DeleteAccessPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteAccessPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteAccessPolicyCommand = DeleteAccessPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteCollectionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class DeleteCollectionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteCollectionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "DeleteCollectionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteCollectionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteCollectionResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DeleteCollectionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteCollectionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteCollectionCommand = DeleteCollectionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSecurityConfigCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class DeleteSecurityConfigCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteSecurityConfigCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "DeleteSecurityConfigCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteSecurityConfigRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteSecurityConfigResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DeleteSecurityConfigCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteSecurityConfigCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteSecurityConfigCommand = DeleteSecurityConfigCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSecurityPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class DeleteSecurityPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteSecurityPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "DeleteSecurityPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteSecurityPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteSecurityPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DeleteSecurityPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteSecurityPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteSecurityPolicyCommand = DeleteSecurityPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVpcEndpointCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class DeleteVpcEndpointCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteVpcEndpointCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "DeleteVpcEndpointCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteVpcEndpointRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteVpcEndpointResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DeleteVpcEndpointCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteVpcEndpointCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteVpcEndpointCommand = DeleteVpcEndpointCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAccessPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class GetAccessPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "GetAccessPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetAccessPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetAccessPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetAccessPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetAccessPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetAccessPolicyCommand = GetAccessPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAccountSettingsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class GetAccountSettingsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccountSettingsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "GetAccountSettingsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetAccountSettingsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetAccountSettingsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetAccountSettingsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetAccountSettingsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetAccountSettingsCommand = GetAccountSettingsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPoliciesStatsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class GetPoliciesStatsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetPoliciesStatsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "GetPoliciesStatsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetPoliciesStatsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetPoliciesStatsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetPoliciesStatsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetPoliciesStatsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetPoliciesStatsCommand = GetPoliciesStatsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSecurityConfigCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class GetSecurityConfigCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSecurityConfigCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "GetSecurityConfigCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetSecurityConfigRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetSecurityConfigResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetSecurityConfigCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetSecurityConfigCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetSecurityConfigCommand = GetSecurityConfigCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSecurityPolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class GetSecurityPolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSecurityPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OpenSearchServerlessClient";
|
|
28
|
+
const commandName = "GetSecurityPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetSecurityPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetSecurityPolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetSecurityPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetSecurityPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetSecurityPolicyCommand = GetSecurityPolicyCommand;
|