@aws-sdk/client-cloudfront 3.183.0 → 3.186.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 (119) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restXml.js +2 -2
  3. package/dist-es/CloudFront.js +401 -394
  4. package/dist-es/CloudFrontClient.js +28 -22
  5. package/dist-es/commands/AssociateAliasCommand.js +29 -22
  6. package/dist-es/commands/CreateCachePolicyCommand.js +28 -21
  7. package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js +28 -21
  8. package/dist-es/commands/CreateDistributionCommand.js +28 -21
  9. package/dist-es/commands/CreateDistributionWithTagsCommand.js +28 -21
  10. package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js +28 -21
  11. package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js +28 -21
  12. package/dist-es/commands/CreateFunctionCommand.js +28 -21
  13. package/dist-es/commands/CreateInvalidationCommand.js +28 -21
  14. package/dist-es/commands/CreateKeyGroupCommand.js +28 -21
  15. package/dist-es/commands/CreateMonitoringSubscriptionCommand.js +28 -21
  16. package/dist-es/commands/CreateOriginAccessControlCommand.js +28 -21
  17. package/dist-es/commands/CreateOriginRequestPolicyCommand.js +28 -21
  18. package/dist-es/commands/CreatePublicKeyCommand.js +28 -21
  19. package/dist-es/commands/CreateRealtimeLogConfigCommand.js +28 -21
  20. package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +28 -21
  21. package/dist-es/commands/CreateStreamingDistributionCommand.js +28 -21
  22. package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +28 -21
  23. package/dist-es/commands/DeleteCachePolicyCommand.js +29 -22
  24. package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +29 -22
  25. package/dist-es/commands/DeleteDistributionCommand.js +29 -22
  26. package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +29 -22
  27. package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +29 -22
  28. package/dist-es/commands/DeleteFunctionCommand.js +29 -22
  29. package/dist-es/commands/DeleteKeyGroupCommand.js +29 -22
  30. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +28 -21
  31. package/dist-es/commands/DeleteOriginAccessControlCommand.js +29 -22
  32. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +29 -22
  33. package/dist-es/commands/DeletePublicKeyCommand.js +29 -22
  34. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +29 -22
  35. package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +29 -22
  36. package/dist-es/commands/DeleteStreamingDistributionCommand.js +29 -22
  37. package/dist-es/commands/DescribeFunctionCommand.js +28 -21
  38. package/dist-es/commands/GetCachePolicyCommand.js +28 -21
  39. package/dist-es/commands/GetCachePolicyConfigCommand.js +28 -21
  40. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +28 -21
  41. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +28 -21
  42. package/dist-es/commands/GetDistributionCommand.js +28 -21
  43. package/dist-es/commands/GetDistributionConfigCommand.js +28 -21
  44. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +28 -21
  45. package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js +28 -21
  46. package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js +28 -21
  47. package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js +28 -21
  48. package/dist-es/commands/GetFunctionCommand.js +28 -21
  49. package/dist-es/commands/GetInvalidationCommand.js +28 -21
  50. package/dist-es/commands/GetKeyGroupCommand.js +28 -21
  51. package/dist-es/commands/GetKeyGroupConfigCommand.js +28 -21
  52. package/dist-es/commands/GetMonitoringSubscriptionCommand.js +28 -21
  53. package/dist-es/commands/GetOriginAccessControlCommand.js +28 -21
  54. package/dist-es/commands/GetOriginAccessControlConfigCommand.js +28 -21
  55. package/dist-es/commands/GetOriginRequestPolicyCommand.js +28 -21
  56. package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js +28 -21
  57. package/dist-es/commands/GetPublicKeyCommand.js +28 -21
  58. package/dist-es/commands/GetPublicKeyConfigCommand.js +28 -21
  59. package/dist-es/commands/GetRealtimeLogConfigCommand.js +28 -21
  60. package/dist-es/commands/GetResponseHeadersPolicyCommand.js +28 -21
  61. package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +28 -21
  62. package/dist-es/commands/GetStreamingDistributionCommand.js +28 -21
  63. package/dist-es/commands/GetStreamingDistributionConfigCommand.js +28 -21
  64. package/dist-es/commands/ListCachePoliciesCommand.js +28 -21
  65. package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +28 -21
  66. package/dist-es/commands/ListConflictingAliasesCommand.js +28 -21
  67. package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js +28 -21
  68. package/dist-es/commands/ListDistributionsByKeyGroupCommand.js +28 -21
  69. package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +28 -21
  70. package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js +28 -21
  71. package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +28 -21
  72. package/dist-es/commands/ListDistributionsByWebACLIdCommand.js +28 -21
  73. package/dist-es/commands/ListDistributionsCommand.js +28 -21
  74. package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js +28 -21
  75. package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js +28 -21
  76. package/dist-es/commands/ListFunctionsCommand.js +28 -21
  77. package/dist-es/commands/ListInvalidationsCommand.js +28 -21
  78. package/dist-es/commands/ListKeyGroupsCommand.js +28 -21
  79. package/dist-es/commands/ListOriginAccessControlsCommand.js +28 -21
  80. package/dist-es/commands/ListOriginRequestPoliciesCommand.js +28 -21
  81. package/dist-es/commands/ListPublicKeysCommand.js +28 -21
  82. package/dist-es/commands/ListRealtimeLogConfigsCommand.js +28 -21
  83. package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +28 -21
  84. package/dist-es/commands/ListStreamingDistributionsCommand.js +28 -21
  85. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  86. package/dist-es/commands/PublishFunctionCommand.js +28 -21
  87. package/dist-es/commands/TagResourceCommand.js +29 -22
  88. package/dist-es/commands/TestFunctionCommand.js +28 -21
  89. package/dist-es/commands/UntagResourceCommand.js +29 -22
  90. package/dist-es/commands/UpdateCachePolicyCommand.js +28 -21
  91. package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +28 -21
  92. package/dist-es/commands/UpdateDistributionCommand.js +28 -21
  93. package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js +28 -21
  94. package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js +28 -21
  95. package/dist-es/commands/UpdateFunctionCommand.js +28 -21
  96. package/dist-es/commands/UpdateKeyGroupCommand.js +28 -21
  97. package/dist-es/commands/UpdateOriginAccessControlCommand.js +28 -21
  98. package/dist-es/commands/UpdateOriginRequestPolicyCommand.js +28 -21
  99. package/dist-es/commands/UpdatePublicKeyCommand.js +28 -21
  100. package/dist-es/commands/UpdateRealtimeLogConfigCommand.js +28 -21
  101. package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +28 -21
  102. package/dist-es/commands/UpdateStreamingDistributionCommand.js +28 -21
  103. package/dist-es/endpoints.js +8 -8
  104. package/dist-es/models/CloudFrontServiceException.js +10 -5
  105. package/dist-es/models/models_0.js +1689 -2003
  106. package/dist-es/models/models_1.js +414 -770
  107. package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +68 -25
  108. package/dist-es/pagination/ListDistributionsPaginator.js +68 -25
  109. package/dist-es/pagination/ListInvalidationsPaginator.js +68 -25
  110. package/dist-es/pagination/ListStreamingDistributionsPaginator.js +68 -25
  111. package/dist-es/protocols/Aws_restXml.js +12767 -9557
  112. package/dist-es/runtimeConfig.browser.js +12 -26
  113. package/dist-es/runtimeConfig.js +12 -30
  114. package/dist-es/runtimeConfig.native.js +5 -8
  115. package/dist-es/runtimeConfig.shared.js +11 -8
  116. package/dist-es/waiters/waitForDistributionDeployed.js +48 -28
  117. package/dist-es/waiters/waitForInvalidationCompleted.js +48 -28
  118. package/dist-es/waiters/waitForStreamingDistributionDeployed.js +48 -28
  119. package/package.json +35 -35
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class CloudFrontClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var CloudFrontClient = (function (_super) {
13
+ __extends(CloudFrontClient, _super);
14
+ function CloudFrontClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ CloudFrontClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return CloudFrontClient;
38
+ }(__Client));
39
+ export { CloudFrontClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateAliasRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restXmlAssociateAliasCommand, serializeAws_restXmlAssociateAliasCommand, } from "../protocols/Aws_restXml";
5
- export class AssociateAliasCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateAliasCommand = (function (_super) {
7
+ __extends(AssociateAliasCommand, _super);
8
+ function AssociateAliasCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "AssociateAliasCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "AssociateAliasCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateAliasRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateAliasCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlAssociateAliasCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateAliasCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlAssociateAliasCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateAliasCommand;
38
+ }($Command));
39
+ export { AssociateAliasCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateCachePolicyRequestFilterSensitiveLog, CreateCachePolicyResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateCachePolicyCommand, serializeAws_restXmlCreateCachePolicyCommand, } from "../protocols/Aws_restXml";
5
- export class CreateCachePolicyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateCachePolicyCommand = (function (_super) {
7
+ __extends(CreateCachePolicyCommand, _super);
8
+ function CreateCachePolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateCachePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateCachePolicyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateCachePolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateCachePolicyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateCachePolicyResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateCachePolicyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateCachePolicyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateCachePolicyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateCachePolicyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateCachePolicyCommand;
38
+ }($Command));
39
+ export { CreateCachePolicyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog, CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand, serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand, } from "../protocols/Aws_restXml";
5
- export class CreateCloudFrontOriginAccessIdentityCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateCloudFrontOriginAccessIdentityCommand = (function (_super) {
7
+ __extends(CreateCloudFrontOriginAccessIdentityCommand, _super);
8
+ function CreateCloudFrontOriginAccessIdentityCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateCloudFrontOriginAccessIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateCloudFrontOriginAccessIdentityCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateCloudFrontOriginAccessIdentityCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateCloudFrontOriginAccessIdentityCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateCloudFrontOriginAccessIdentityCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateCloudFrontOriginAccessIdentityCommand;
38
+ }($Command));
39
+ export { CreateCloudFrontOriginAccessIdentityCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDistributionRequestFilterSensitiveLog, CreateDistributionResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateDistributionCommand, serializeAws_restXmlCreateDistributionCommand, } from "../protocols/Aws_restXml";
5
- export class CreateDistributionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDistributionCommand = (function (_super) {
7
+ __extends(CreateDistributionCommand, _super);
8
+ function CreateDistributionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDistributionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateDistributionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateDistributionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDistributionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDistributionResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDistributionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateDistributionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDistributionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateDistributionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDistributionCommand;
38
+ }($Command));
39
+ export { CreateDistributionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDistributionWithTagsRequestFilterSensitiveLog, CreateDistributionWithTagsResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateDistributionWithTagsCommand, serializeAws_restXmlCreateDistributionWithTagsCommand, } from "../protocols/Aws_restXml";
5
- export class CreateDistributionWithTagsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDistributionWithTagsCommand = (function (_super) {
7
+ __extends(CreateDistributionWithTagsCommand, _super);
8
+ function CreateDistributionWithTagsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDistributionWithTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateDistributionWithTagsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateDistributionWithTagsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDistributionWithTagsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDistributionWithTagsResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDistributionWithTagsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateDistributionWithTagsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDistributionWithTagsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateDistributionWithTagsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDistributionWithTagsCommand;
38
+ }($Command));
39
+ export { CreateDistributionWithTagsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateFieldLevelEncryptionConfigRequestFilterSensitiveLog, CreateFieldLevelEncryptionConfigResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand, serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand, } from "../protocols/Aws_restXml";
5
- export class CreateFieldLevelEncryptionConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFieldLevelEncryptionConfigCommand = (function (_super) {
7
+ __extends(CreateFieldLevelEncryptionConfigCommand, _super);
8
+ function CreateFieldLevelEncryptionConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFieldLevelEncryptionConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateFieldLevelEncryptionConfigCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateFieldLevelEncryptionConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFieldLevelEncryptionConfigRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFieldLevelEncryptionConfigResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFieldLevelEncryptionConfigCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFieldLevelEncryptionConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFieldLevelEncryptionConfigCommand;
38
+ }($Command));
39
+ export { CreateFieldLevelEncryptionConfigCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateFieldLevelEncryptionProfileRequestFilterSensitiveLog, CreateFieldLevelEncryptionProfileResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand, serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand, } from "../protocols/Aws_restXml";
5
- export class CreateFieldLevelEncryptionProfileCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFieldLevelEncryptionProfileCommand = (function (_super) {
7
+ __extends(CreateFieldLevelEncryptionProfileCommand, _super);
8
+ function CreateFieldLevelEncryptionProfileCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFieldLevelEncryptionProfileCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateFieldLevelEncryptionProfileCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateFieldLevelEncryptionProfileCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFieldLevelEncryptionProfileRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFieldLevelEncryptionProfileResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFieldLevelEncryptionProfileCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFieldLevelEncryptionProfileCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFieldLevelEncryptionProfileCommand;
38
+ }($Command));
39
+ export { CreateFieldLevelEncryptionProfileCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateFunctionRequestFilterSensitiveLog, CreateFunctionResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateFunctionCommand, serializeAws_restXmlCreateFunctionCommand, } from "../protocols/Aws_restXml";
5
- export class CreateFunctionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFunctionCommand = (function (_super) {
7
+ __extends(CreateFunctionCommand, _super);
8
+ function CreateFunctionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFunctionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateFunctionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateFunctionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFunctionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFunctionResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFunctionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateFunctionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFunctionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateFunctionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFunctionCommand;
38
+ }($Command));
39
+ export { CreateFunctionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateInvalidationRequestFilterSensitiveLog, CreateInvalidationResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restXmlCreateInvalidationCommand, serializeAws_restXmlCreateInvalidationCommand, } from "../protocols/Aws_restXml";
5
- export class CreateInvalidationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateInvalidationCommand = (function (_super) {
7
+ __extends(CreateInvalidationCommand, _super);
8
+ function CreateInvalidationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateInvalidationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudFrontClient";
15
- const commandName = "CreateInvalidationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateInvalidationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateInvalidationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateInvalidationResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateInvalidationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restXmlCreateInvalidationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateInvalidationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restXmlCreateInvalidationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateInvalidationCommand;
38
+ }($Command));
39
+ export { CreateInvalidationCommand };