@aws-sdk/client-osis 3.927.0 → 3.929.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 (43) hide show
  1. package/dist-cjs/index.js +944 -996
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/OSISClient.js +2 -0
  4. package/dist-es/commands/CreatePipelineCommand.js +3 -9
  5. package/dist-es/commands/CreatePipelineEndpointCommand.js +3 -9
  6. package/dist-es/commands/DeletePipelineCommand.js +3 -9
  7. package/dist-es/commands/DeletePipelineEndpointCommand.js +3 -9
  8. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  9. package/dist-es/commands/GetPipelineBlueprintCommand.js +3 -9
  10. package/dist-es/commands/GetPipelineChangeProgressCommand.js +3 -9
  11. package/dist-es/commands/GetPipelineCommand.js +3 -9
  12. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  13. package/dist-es/commands/ListPipelineBlueprintsCommand.js +3 -9
  14. package/dist-es/commands/ListPipelineEndpointConnectionsCommand.js +3 -9
  15. package/dist-es/commands/ListPipelineEndpointsCommand.js +3 -9
  16. package/dist-es/commands/ListPipelinesCommand.js +3 -9
  17. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  18. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  19. package/dist-es/commands/RevokePipelineEndpointConnectionsCommand.js +3 -9
  20. package/dist-es/commands/StartPipelineCommand.js +3 -9
  21. package/dist-es/commands/StopPipelineCommand.js +3 -9
  22. package/dist-es/commands/TagResourceCommand.js +3 -9
  23. package/dist-es/commands/UntagResourceCommand.js +3 -9
  24. package/dist-es/commands/UpdatePipelineCommand.js +3 -9
  25. package/dist-es/commands/ValidatePipelineCommand.js +3 -9
  26. package/dist-es/runtimeConfig.shared.js +2 -0
  27. package/dist-es/schemas/schemas_0.js +885 -0
  28. package/dist-types/OSISClient.d.ts +10 -1
  29. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  30. package/dist-types/runtimeConfig.d.ts +1 -0
  31. package/dist-types/runtimeConfig.native.d.ts +1 -0
  32. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  33. package/dist-types/schemas/schemas_0.d.ts +115 -0
  34. package/dist-types/ts3.4/OSISClient.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +120 -0
  40. package/package.json +5 -5
  41. package/dist-es/protocols/Aws_restJson1.js +0 -824
  42. package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -269
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.osis" }),
28
30
  serviceId: config?.serviceId ?? "OSIS",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class OSISClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreatePipelineCommand, se_CreatePipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { CreatePipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreatePipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "CreatePipeline", {})
17
13
  .n("OSISClient", "CreatePipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreatePipelineCommand)
20
- .de(de_CreatePipelineCommand)
14
+ .sc(CreatePipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreatePipelineEndpointCommand, se_CreatePipelineEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { CreatePipelineEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreatePipelineEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "CreatePipelineEndpoint", {})
17
13
  .n("OSISClient", "CreatePipelineEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreatePipelineEndpointCommand)
20
- .de(de_CreatePipelineEndpointCommand)
14
+ .sc(CreatePipelineEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeletePipelineCommand, se_DeletePipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { DeletePipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeletePipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "DeletePipeline", {})
17
13
  .n("OSISClient", "DeletePipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeletePipelineCommand)
20
- .de(de_DeletePipelineCommand)
14
+ .sc(DeletePipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeletePipelineEndpointCommand, se_DeletePipelineEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { DeletePipelineEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeletePipelineEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "DeletePipelineEndpoint", {})
17
13
  .n("OSISClient", "DeletePipelineEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeletePipelineEndpointCommand)
20
- .de(de_DeletePipelineEndpointCommand)
14
+ .sc(DeletePipelineEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { DeleteResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "DeleteResourcePolicy", {})
17
13
  .n("OSISClient", "DeleteResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteResourcePolicyCommand)
20
- .de(de_DeleteResourcePolicyCommand)
14
+ .sc(DeleteResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetPipelineBlueprintCommand, se_GetPipelineBlueprintCommand } from "../protocols/Aws_restJson1";
4
+ import { GetPipelineBlueprint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPipelineBlueprintCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "GetPipelineBlueprint", {})
17
13
  .n("OSISClient", "GetPipelineBlueprintCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPipelineBlueprintCommand)
20
- .de(de_GetPipelineBlueprintCommand)
14
+ .sc(GetPipelineBlueprint)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetPipelineChangeProgressCommand, se_GetPipelineChangeProgressCommand } from "../protocols/Aws_restJson1";
4
+ import { GetPipelineChangeProgress } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPipelineChangeProgressCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "GetPipelineChangeProgress", {})
17
13
  .n("OSISClient", "GetPipelineChangeProgressCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPipelineChangeProgressCommand)
20
- .de(de_GetPipelineChangeProgressCommand)
14
+ .sc(GetPipelineChangeProgress)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetPipelineCommand, se_GetPipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { GetPipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "GetPipeline", {})
17
13
  .n("OSISClient", "GetPipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPipelineCommand)
20
- .de(de_GetPipelineCommand)
14
+ .sc(GetPipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { GetResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "GetResourcePolicy", {})
17
13
  .n("OSISClient", "GetResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetResourcePolicyCommand)
20
- .de(de_GetResourcePolicyCommand)
14
+ .sc(GetResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPipelineBlueprintsCommand, se_ListPipelineBlueprintsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListPipelineBlueprints } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPipelineBlueprintsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ListPipelineBlueprints", {})
17
13
  .n("OSISClient", "ListPipelineBlueprintsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPipelineBlueprintsCommand)
20
- .de(de_ListPipelineBlueprintsCommand)
14
+ .sc(ListPipelineBlueprints)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPipelineEndpointConnectionsCommand, se_ListPipelineEndpointConnectionsCommand, } from "../protocols/Aws_restJson1";
4
+ import { ListPipelineEndpointConnections } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPipelineEndpointConnectionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ListPipelineEndpointConnections", {})
17
13
  .n("OSISClient", "ListPipelineEndpointConnectionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPipelineEndpointConnectionsCommand)
20
- .de(de_ListPipelineEndpointConnectionsCommand)
14
+ .sc(ListPipelineEndpointConnections)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPipelineEndpointsCommand, se_ListPipelineEndpointsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListPipelineEndpoints } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPipelineEndpointsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ListPipelineEndpoints", {})
17
13
  .n("OSISClient", "ListPipelineEndpointsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPipelineEndpointsCommand)
20
- .de(de_ListPipelineEndpointsCommand)
14
+ .sc(ListPipelineEndpoints)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPipelinesCommand, se_ListPipelinesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListPipelines } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPipelinesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ListPipelines", {})
17
13
  .n("OSISClient", "ListPipelinesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPipelinesCommand)
20
- .de(de_ListPipelinesCommand)
14
+ .sc(ListPipelines)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ListTagsForResource", {})
17
13
  .n("OSISClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { PutResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "PutResourcePolicy", {})
17
13
  .n("OSISClient", "PutResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutResourcePolicyCommand)
20
- .de(de_PutResourcePolicyCommand)
14
+ .sc(PutResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_RevokePipelineEndpointConnectionsCommand, se_RevokePipelineEndpointConnectionsCommand, } from "../protocols/Aws_restJson1";
4
+ import { RevokePipelineEndpointConnections } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class RevokePipelineEndpointConnectionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "RevokePipelineEndpointConnections", {})
17
13
  .n("OSISClient", "RevokePipelineEndpointConnectionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_RevokePipelineEndpointConnectionsCommand)
20
- .de(de_RevokePipelineEndpointConnectionsCommand)
14
+ .sc(RevokePipelineEndpointConnections)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartPipelineCommand, se_StartPipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { StartPipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartPipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "StartPipeline", {})
17
13
  .n("OSISClient", "StartPipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartPipelineCommand)
20
- .de(de_StartPipelineCommand)
14
+ .sc(StartPipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopPipelineCommand, se_StopPipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { StopPipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopPipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "StopPipeline", {})
17
13
  .n("OSISClient", "StopPipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopPipelineCommand)
20
- .de(de_StopPipelineCommand)
14
+ .sc(StopPipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "TagResource", {})
17
13
  .n("OSISClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "UntagResource", {})
17
13
  .n("OSISClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdatePipelineCommand, se_UpdatePipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdatePipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "UpdatePipeline", {})
17
13
  .n("OSISClient", "UpdatePipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdatePipelineCommand)
20
- .de(de_UpdatePipelineCommand)
14
+ .sc(UpdatePipeline)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ValidatePipelineCommand, se_ValidatePipelineCommand } from "../protocols/Aws_restJson1";
4
+ import { ValidatePipeline } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ValidatePipelineCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonOpenSearchIngestionService", "ValidatePipeline", {})
17
13
  .n("OSISClient", "ValidatePipelineCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ValidatePipelineCommand)
20
- .de(de_ValidatePipelineCommand)
14
+ .sc(ValidatePipeline)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.osis" }),
25
27
  serviceId: config?.serviceId ?? "OSIS",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,