@aws-sdk/client-mediastore 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 (42) hide show
  1. package/dist-cjs/index.js +454 -719
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/MediaStoreClient.js +2 -0
  4. package/dist-es/commands/CreateContainerCommand.js +3 -9
  5. package/dist-es/commands/DeleteContainerCommand.js +3 -9
  6. package/dist-es/commands/DeleteContainerPolicyCommand.js +3 -9
  7. package/dist-es/commands/DeleteCorsPolicyCommand.js +3 -9
  8. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
  9. package/dist-es/commands/DeleteMetricPolicyCommand.js +3 -9
  10. package/dist-es/commands/DescribeContainerCommand.js +3 -9
  11. package/dist-es/commands/GetContainerPolicyCommand.js +3 -9
  12. package/dist-es/commands/GetCorsPolicyCommand.js +3 -9
  13. package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
  14. package/dist-es/commands/GetMetricPolicyCommand.js +3 -9
  15. package/dist-es/commands/ListContainersCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/PutContainerPolicyCommand.js +3 -9
  18. package/dist-es/commands/PutCorsPolicyCommand.js +3 -9
  19. package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -9
  20. package/dist-es/commands/PutMetricPolicyCommand.js +3 -9
  21. package/dist-es/commands/StartAccessLoggingCommand.js +3 -9
  22. package/dist-es/commands/StopAccessLoggingCommand.js +3 -9
  23. package/dist-es/commands/TagResourceCommand.js +3 -9
  24. package/dist-es/commands/UntagResourceCommand.js +3 -9
  25. package/dist-es/runtimeConfig.shared.js +7 -0
  26. package/dist-es/schemas/schemas_0.js +398 -0
  27. package/dist-types/MediaStoreClient.d.ts +10 -1
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +86 -0
  33. package/dist-types/ts3.4/MediaStoreClient.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +91 -0
  39. package/package.json +5 -5
  40. package/dist-es/protocols/Aws_json1_1.js +0 -558
  41. package/dist-types/protocols/Aws_json1_1.d.ts +0 -191
  42. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -257
@@ -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,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.mediastore",
32
+ serviceTarget: "MediaStore_20170901",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "MediaStore",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  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 MediaStoreClient 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_CreateContainerCommand, se_CreateContainerCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateContainer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateContainerCommand 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("MediaStore_20170901", "CreateContainer", {})
17
13
  .n("MediaStoreClient", "CreateContainerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateContainerCommand)
20
- .de(de_CreateContainerCommand)
14
+ .sc(CreateContainer)
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_DeleteContainerCommand, se_DeleteContainerCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteContainer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteContainerCommand 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("MediaStore_20170901", "DeleteContainer", {})
17
13
  .n("MediaStoreClient", "DeleteContainerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteContainerCommand)
20
- .de(de_DeleteContainerCommand)
14
+ .sc(DeleteContainer)
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_DeleteContainerPolicyCommand, se_DeleteContainerPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteContainerPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteContainerPolicyCommand 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("MediaStore_20170901", "DeleteContainerPolicy", {})
17
13
  .n("MediaStoreClient", "DeleteContainerPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteContainerPolicyCommand)
20
- .de(de_DeleteContainerPolicyCommand)
14
+ .sc(DeleteContainerPolicy)
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_DeleteCorsPolicyCommand, se_DeleteCorsPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteCorsPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteCorsPolicyCommand 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("MediaStore_20170901", "DeleteCorsPolicy", {})
17
13
  .n("MediaStoreClient", "DeleteCorsPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteCorsPolicyCommand)
20
- .de(de_DeleteCorsPolicyCommand)
14
+ .sc(DeleteCorsPolicy)
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_DeleteLifecyclePolicyCommand, se_DeleteLifecyclePolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteLifecyclePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteLifecyclePolicyCommand 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("MediaStore_20170901", "DeleteLifecyclePolicy", {})
17
13
  .n("MediaStoreClient", "DeleteLifecyclePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteLifecyclePolicyCommand)
20
- .de(de_DeleteLifecyclePolicyCommand)
14
+ .sc(DeleteLifecyclePolicy)
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_DeleteMetricPolicyCommand, se_DeleteMetricPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteMetricPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteMetricPolicyCommand 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("MediaStore_20170901", "DeleteMetricPolicy", {})
17
13
  .n("MediaStoreClient", "DeleteMetricPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteMetricPolicyCommand)
20
- .de(de_DeleteMetricPolicyCommand)
14
+ .sc(DeleteMetricPolicy)
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_DescribeContainerCommand, se_DescribeContainerCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeContainer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeContainerCommand 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("MediaStore_20170901", "DescribeContainer", {})
17
13
  .n("MediaStoreClient", "DescribeContainerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeContainerCommand)
20
- .de(de_DescribeContainerCommand)
14
+ .sc(DescribeContainer)
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_GetContainerPolicyCommand, se_GetContainerPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { GetContainerPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetContainerPolicyCommand 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("MediaStore_20170901", "GetContainerPolicy", {})
17
13
  .n("MediaStoreClient", "GetContainerPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetContainerPolicyCommand)
20
- .de(de_GetContainerPolicyCommand)
14
+ .sc(GetContainerPolicy)
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_GetCorsPolicyCommand, se_GetCorsPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { GetCorsPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetCorsPolicyCommand 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("MediaStore_20170901", "GetCorsPolicy", {})
17
13
  .n("MediaStoreClient", "GetCorsPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetCorsPolicyCommand)
20
- .de(de_GetCorsPolicyCommand)
14
+ .sc(GetCorsPolicy)
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_GetLifecyclePolicyCommand, se_GetLifecyclePolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { GetLifecyclePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetLifecyclePolicyCommand 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("MediaStore_20170901", "GetLifecyclePolicy", {})
17
13
  .n("MediaStoreClient", "GetLifecyclePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetLifecyclePolicyCommand)
20
- .de(de_GetLifecyclePolicyCommand)
14
+ .sc(GetLifecyclePolicy)
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_GetMetricPolicyCommand, se_GetMetricPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { GetMetricPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetMetricPolicyCommand 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("MediaStore_20170901", "GetMetricPolicy", {})
17
13
  .n("MediaStoreClient", "GetMetricPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetMetricPolicyCommand)
20
- .de(de_GetMetricPolicyCommand)
14
+ .sc(GetMetricPolicy)
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_ListContainersCommand, se_ListContainersCommand } from "../protocols/Aws_json1_1";
4
+ import { ListContainers } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListContainersCommand 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("MediaStore_20170901", "ListContainers", {})
17
13
  .n("MediaStoreClient", "ListContainersCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListContainersCommand)
20
- .de(de_ListContainersCommand)
14
+ .sc(ListContainers)
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_json1_1";
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("MediaStore_20170901", "ListTagsForResource", {})
17
13
  .n("MediaStoreClient", "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_PutContainerPolicyCommand, se_PutContainerPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { PutContainerPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutContainerPolicyCommand 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("MediaStore_20170901", "PutContainerPolicy", {})
17
13
  .n("MediaStoreClient", "PutContainerPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutContainerPolicyCommand)
20
- .de(de_PutContainerPolicyCommand)
14
+ .sc(PutContainerPolicy)
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_PutCorsPolicyCommand, se_PutCorsPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { PutCorsPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutCorsPolicyCommand 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("MediaStore_20170901", "PutCorsPolicy", {})
17
13
  .n("MediaStoreClient", "PutCorsPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutCorsPolicyCommand)
20
- .de(de_PutCorsPolicyCommand)
14
+ .sc(PutCorsPolicy)
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_PutLifecyclePolicyCommand, se_PutLifecyclePolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { PutLifecyclePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutLifecyclePolicyCommand 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("MediaStore_20170901", "PutLifecyclePolicy", {})
17
13
  .n("MediaStoreClient", "PutLifecyclePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutLifecyclePolicyCommand)
20
- .de(de_PutLifecyclePolicyCommand)
14
+ .sc(PutLifecyclePolicy)
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_PutMetricPolicyCommand, se_PutMetricPolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { PutMetricPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutMetricPolicyCommand 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("MediaStore_20170901", "PutMetricPolicy", {})
17
13
  .n("MediaStoreClient", "PutMetricPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutMetricPolicyCommand)
20
- .de(de_PutMetricPolicyCommand)
14
+ .sc(PutMetricPolicy)
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_StartAccessLoggingCommand, se_StartAccessLoggingCommand } from "../protocols/Aws_json1_1";
4
+ import { StartAccessLogging } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartAccessLoggingCommand 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("MediaStore_20170901", "StartAccessLogging", {})
17
13
  .n("MediaStoreClient", "StartAccessLoggingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartAccessLoggingCommand)
20
- .de(de_StartAccessLoggingCommand)
14
+ .sc(StartAccessLogging)
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_StopAccessLoggingCommand, se_StopAccessLoggingCommand } from "../protocols/Aws_json1_1";
4
+ import { StopAccessLogging } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopAccessLoggingCommand 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("MediaStore_20170901", "StopAccessLogging", {})
17
13
  .n("MediaStoreClient", "StopAccessLoggingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopAccessLoggingCommand)
20
- .de(de_StopAccessLoggingCommand)
14
+ .sc(StopAccessLogging)
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_json1_1";
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("MediaStore_20170901", "TagResource", {})
17
13
  .n("MediaStoreClient", "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_json1_1";
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("MediaStore_20170901", "UntagResource", {})
17
13
  .n("MediaStoreClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } 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,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.mediastore",
29
+ serviceTarget: "MediaStore_20170901",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "MediaStore",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,