@aws-sdk/client-cloudfront 3.36.0 → 3.39.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 (217) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CloudFront.js +0 -6
  3. package/dist-cjs/CloudFrontClient.js +0 -11
  4. package/dist-cjs/commands/AssociateAliasCommand.js +0 -34
  5. package/dist-cjs/commands/CreateCachePolicyCommand.js +0 -44
  6. package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -27
  7. package/dist-cjs/commands/CreateDistributionCommand.js +0 -36
  8. package/dist-cjs/commands/CreateDistributionWithTagsCommand.js +0 -24
  9. package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -24
  10. package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -24
  11. package/dist-cjs/commands/CreateFunctionCommand.js +0 -34
  12. package/dist-cjs/commands/CreateInvalidationCommand.js +0 -24
  13. package/dist-cjs/commands/CreateKeyGroupCommand.js +0 -31
  14. package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js +0 -27
  15. package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js +0 -48
  16. package/dist-cjs/commands/CreatePublicKeyCommand.js +0 -24
  17. package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js +0 -27
  18. package/dist-cjs/commands/CreateStreamingDistributionCommand.js +0 -26
  19. package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +0 -26
  20. package/dist-cjs/commands/DeleteCachePolicyCommand.js +0 -30
  21. package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -24
  22. package/dist-cjs/commands/DeleteDistributionCommand.js +0 -24
  23. package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -24
  24. package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -24
  25. package/dist-cjs/commands/DeleteFunctionCommand.js +0 -30
  26. package/dist-cjs/commands/DeleteKeyGroupCommand.js +0 -30
  27. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +0 -24
  28. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +0 -30
  29. package/dist-cjs/commands/DeletePublicKeyCommand.js +0 -24
  30. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +0 -30
  31. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +0 -71
  32. package/dist-cjs/commands/DescribeFunctionCommand.js +0 -28
  33. package/dist-cjs/commands/GetCachePolicyCommand.js +0 -37
  34. package/dist-cjs/commands/GetCachePolicyConfigCommand.js +0 -29
  35. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -24
  36. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -24
  37. package/dist-cjs/commands/GetDistributionCommand.js +0 -24
  38. package/dist-cjs/commands/GetDistributionConfigCommand.js +0 -24
  39. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +0 -24
  40. package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js +0 -24
  41. package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js +0 -24
  42. package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -24
  43. package/dist-cjs/commands/GetFunctionCommand.js +0 -27
  44. package/dist-cjs/commands/GetInvalidationCommand.js +0 -24
  45. package/dist-cjs/commands/GetKeyGroupCommand.js +0 -29
  46. package/dist-cjs/commands/GetKeyGroupConfigCommand.js +0 -29
  47. package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js +0 -25
  48. package/dist-cjs/commands/GetOriginRequestPolicyCommand.js +0 -37
  49. package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js +0 -30
  50. package/dist-cjs/commands/GetPublicKeyCommand.js +0 -24
  51. package/dist-cjs/commands/GetPublicKeyConfigCommand.js +0 -24
  52. package/dist-cjs/commands/GetRealtimeLogConfigCommand.js +0 -27
  53. package/dist-cjs/commands/GetStreamingDistributionCommand.js +0 -24
  54. package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js +0 -24
  55. package/dist-cjs/commands/ListCachePoliciesCommand.js +0 -31
  56. package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -24
  57. package/dist-cjs/commands/ListConflictingAliasesCommand.js +0 -46
  58. package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js +0 -30
  59. package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js +0 -30
  60. package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -30
  61. package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -33
  62. package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js +0 -24
  63. package/dist-cjs/commands/ListDistributionsCommand.js +0 -24
  64. package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -24
  65. package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -24
  66. package/dist-cjs/commands/ListFunctionsCommand.js +0 -31
  67. package/dist-cjs/commands/ListInvalidationsCommand.js +0 -24
  68. package/dist-cjs/commands/ListKeyGroupsCommand.js +0 -29
  69. package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js +0 -31
  70. package/dist-cjs/commands/ListPublicKeysCommand.js +0 -24
  71. package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js +0 -29
  72. package/dist-cjs/commands/ListStreamingDistributionsCommand.js +0 -24
  73. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  74. package/dist-cjs/commands/PublishFunctionCommand.js +0 -32
  75. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  76. package/dist-cjs/commands/TestFunctionCommand.js +0 -33
  77. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  78. package/dist-cjs/commands/UpdateCachePolicyCommand.js +0 -41
  79. package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -24
  80. package/dist-cjs/commands/UpdateDistributionCommand.js +0 -102
  81. package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -24
  82. package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -24
  83. package/dist-cjs/commands/UpdateFunctionCommand.js +0 -29
  84. package/dist-cjs/commands/UpdateKeyGroupCommand.js +0 -41
  85. package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js +0 -41
  86. package/dist-cjs/commands/UpdatePublicKeyCommand.js +0 -24
  87. package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js +0 -44
  88. package/dist-cjs/commands/UpdateStreamingDistributionCommand.js +0 -24
  89. package/dist-cjs/commands/index.js +88 -0
  90. package/dist-cjs/endpoints.js +6 -1
  91. package/dist-cjs/index.js +5 -95
  92. package/dist-cjs/models/models_0.js +0 -828
  93. package/dist-cjs/models/models_1.js +0 -369
  94. package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -10
  95. package/dist-cjs/pagination/ListDistributionsPaginator.js +0 -10
  96. package/dist-cjs/pagination/ListInvalidationsPaginator.js +0 -10
  97. package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js +0 -10
  98. package/dist-cjs/pagination/index.js +8 -0
  99. package/dist-cjs/protocols/Aws_restXml.js +0 -2
  100. package/dist-cjs/runtimeConfig.browser.js +1 -5
  101. package/dist-cjs/runtimeConfig.js +1 -5
  102. package/dist-cjs/runtimeConfig.native.js +0 -3
  103. package/dist-cjs/runtimeConfig.shared.js +0 -3
  104. package/dist-cjs/waiters/index.js +6 -0
  105. package/dist-cjs/waiters/waitForDistributionDeployed.js +0 -9
  106. package/dist-cjs/waiters/waitForInvalidationCompleted.js +0 -9
  107. package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js +0 -9
  108. package/dist-es/commands/index.js +85 -0
  109. package/dist-es/endpoints.js +6 -1
  110. package/dist-es/index.js +5 -95
  111. package/dist-es/pagination/index.js +5 -0
  112. package/dist-es/waiters/index.js +3 -0
  113. package/dist-types/commands/index.d.ts +85 -0
  114. package/dist-types/index.d.ts +5 -95
  115. package/dist-types/pagination/index.d.ts +5 -0
  116. package/dist-types/ts3.4/CloudFront.d.ts +86 -743
  117. package/dist-types/ts3.4/CloudFrontClient.d.ts +24 -92
  118. package/dist-types/ts3.4/commands/AssociateAliasCommand.d.ts +2 -30
  119. package/dist-types/ts3.4/commands/CreateCachePolicyCommand.d.ts +2 -40
  120. package/dist-types/ts3.4/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +2 -23
  121. package/dist-types/ts3.4/commands/CreateDistributionCommand.d.ts +2 -32
  122. package/dist-types/ts3.4/commands/CreateDistributionWithTagsCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -30
  126. package/dist-types/ts3.4/commands/CreateInvalidationCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/CreateKeyGroupCommand.d.ts +2 -27
  128. package/dist-types/ts3.4/commands/CreateMonitoringSubscriptionCommand.d.ts +2 -23
  129. package/dist-types/ts3.4/commands/CreateOriginRequestPolicyCommand.d.ts +2 -44
  130. package/dist-types/ts3.4/commands/CreatePublicKeyCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/CreateRealtimeLogConfigCommand.d.ts +2 -23
  132. package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +2 -22
  133. package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +2 -22
  134. package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +2 -26
  135. package/dist-types/ts3.4/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/DeleteDistributionCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +2 -20
  139. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -26
  140. package/dist-types/ts3.4/commands/DeleteKeyGroupCommand.d.ts +2 -26
  141. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -20
  142. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +2 -26
  143. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +2 -20
  144. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -26
  145. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +2 -67
  146. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +2 -24
  147. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +2 -33
  148. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +2 -25
  149. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
  150. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +2 -20
  151. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +2 -20
  152. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +2 -20
  153. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +2 -20
  154. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionConfigCommand.d.ts +2 -20
  155. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileCommand.d.ts +2 -20
  156. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +2 -20
  157. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -23
  158. package/dist-types/ts3.4/commands/GetInvalidationCommand.d.ts +2 -20
  159. package/dist-types/ts3.4/commands/GetKeyGroupCommand.d.ts +2 -25
  160. package/dist-types/ts3.4/commands/GetKeyGroupConfigCommand.d.ts +2 -25
  161. package/dist-types/ts3.4/commands/GetMonitoringSubscriptionCommand.d.ts +2 -21
  162. package/dist-types/ts3.4/commands/GetOriginRequestPolicyCommand.d.ts +2 -33
  163. package/dist-types/ts3.4/commands/GetOriginRequestPolicyConfigCommand.d.ts +2 -26
  164. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +2 -20
  165. package/dist-types/ts3.4/commands/GetPublicKeyConfigCommand.d.ts +2 -20
  166. package/dist-types/ts3.4/commands/GetRealtimeLogConfigCommand.d.ts +2 -23
  167. package/dist-types/ts3.4/commands/GetStreamingDistributionCommand.d.ts +2 -20
  168. package/dist-types/ts3.4/commands/GetStreamingDistributionConfigCommand.d.ts +2 -20
  169. package/dist-types/ts3.4/commands/ListCachePoliciesCommand.d.ts +2 -27
  170. package/dist-types/ts3.4/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +2 -20
  171. package/dist-types/ts3.4/commands/ListConflictingAliasesCommand.d.ts +2 -42
  172. package/dist-types/ts3.4/commands/ListDistributionsByCachePolicyIdCommand.d.ts +2 -26
  173. package/dist-types/ts3.4/commands/ListDistributionsByKeyGroupCommand.d.ts +2 -26
  174. package/dist-types/ts3.4/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +2 -26
  175. package/dist-types/ts3.4/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +2 -29
  176. package/dist-types/ts3.4/commands/ListDistributionsByWebACLIdCommand.d.ts +2 -20
  177. package/dist-types/ts3.4/commands/ListDistributionsCommand.d.ts +2 -20
  178. package/dist-types/ts3.4/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +2 -20
  179. package/dist-types/ts3.4/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +2 -20
  180. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -27
  181. package/dist-types/ts3.4/commands/ListInvalidationsCommand.d.ts +2 -20
  182. package/dist-types/ts3.4/commands/ListKeyGroupsCommand.d.ts +2 -25
  183. package/dist-types/ts3.4/commands/ListOriginRequestPoliciesCommand.d.ts +2 -27
  184. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +2 -20
  185. package/dist-types/ts3.4/commands/ListRealtimeLogConfigsCommand.d.ts +2 -25
  186. package/dist-types/ts3.4/commands/ListStreamingDistributionsCommand.d.ts +2 -20
  187. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  188. package/dist-types/ts3.4/commands/PublishFunctionCommand.d.ts +2 -28
  189. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  190. package/dist-types/ts3.4/commands/TestFunctionCommand.d.ts +2 -29
  191. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  192. package/dist-types/ts3.4/commands/UpdateCachePolicyCommand.d.ts +2 -37
  193. package/dist-types/ts3.4/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
  194. package/dist-types/ts3.4/commands/UpdateDistributionCommand.d.ts +2 -98
  195. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +2 -20
  196. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +2 -20
  197. package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +2 -25
  198. package/dist-types/ts3.4/commands/UpdateKeyGroupCommand.d.ts +2 -37
  199. package/dist-types/ts3.4/commands/UpdateOriginRequestPolicyCommand.d.ts +2 -37
  200. package/dist-types/ts3.4/commands/UpdatePublicKeyCommand.d.ts +2 -20
  201. package/dist-types/ts3.4/commands/UpdateRealtimeLogConfigCommand.d.ts +2 -40
  202. package/dist-types/ts3.4/commands/UpdateStreamingDistributionCommand.d.ts +2 -20
  203. package/dist-types/ts3.4/commands/index.d.ts +85 -0
  204. package/dist-types/ts3.4/index.d.ts +5 -95
  205. package/dist-types/ts3.4/models/models_0.d.ts +105 -6590
  206. package/dist-types/ts3.4/models/models_1.d.ts +486 -1713
  207. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  208. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  209. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  210. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  211. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  212. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  213. package/dist-types/ts3.4/waiters/waitForDistributionDeployed.d.ts +2 -9
  214. package/dist-types/ts3.4/waiters/waitForInvalidationCompleted.d.ts +2 -9
  215. package/dist-types/ts3.4/waiters/waitForStreamingDistributionDeployed.d.ts +2 -9
  216. package/dist-types/waiters/index.d.ts +3 -0
  217. package/package.json +34 -34
@@ -5,82 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API,
10
- * perform the following steps.</p>
11
- *
12
- * <p>
13
- * <b>To delete an RTMP distribution using the CloudFront
14
- * API</b>:</p>
15
- * <ol>
16
- * <li>
17
- * <p>Disable the RTMP distribution.</p>
18
- * </li>
19
- * <li>
20
- * <p>Submit a <code>GET Streaming Distribution Config</code> request to get the current
21
- * configuration and the <code>Etag</code> header for the distribution. </p>
22
- * </li>
23
- * <li>
24
- * <p>Update the XML document that was returned in the response to your <code>GET
25
- * Streaming Distribution Config</code> request to change the value of <code>Enabled</code>
26
- * to <code>false</code>.</p>
27
- * </li>
28
- * <li>
29
- * <p>Submit a <code>PUT Streaming Distribution Config</code> request to update the
30
- * configuration for your distribution. In the request body, include the XML document that
31
- * you updated in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the
32
- * value of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
33
- * Streaming Distribution Config</code> request in Step 2.</p>
34
- * </li>
35
- * <li>
36
- * <p>Review the response to the <code>PUT Streaming Distribution Config</code> request
37
- * to confirm that the distribution was successfully disabled.</p>
38
- * </li>
39
- * <li>
40
- * <p>Submit a <code>GET Streaming Distribution Config</code> request to confirm that
41
- * your changes have propagated. When propagation is complete, the value of
42
- * <code>Status</code> is <code>Deployed</code>.</p>
43
- * </li>
44
- * <li>
45
- * <p>Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
46
- * HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront
47
- * returned when you submitted the <code>GET Streaming Distribution Config</code> request in
48
- * Step 2.</p>
49
- * </li>
50
- * <li>
51
- * <p>Review the response to your <code>DELETE Streaming Distribution</code> request to
52
- * confirm that the distribution was successfully deleted.</p>
53
- * </li>
54
- * </ol>
55
- * <p>For information about deleting a distribution using the CloudFront console, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting a Distribution</a> in the
56
- * <i>Amazon CloudFront Developer Guide</i>.</p>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { CloudFrontClient, DeleteStreamingDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
61
- * // const { CloudFrontClient, DeleteStreamingDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
62
- * const client = new CloudFrontClient(config);
63
- * const command = new DeleteStreamingDistributionCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link DeleteStreamingDistributionCommandInput} for command's `input` shape.
68
- * @see {@link DeleteStreamingDistributionCommandOutput} for command's `response` shape.
69
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
8
  class DeleteStreamingDistributionCommand extends smithy_client_1.Command {
73
- // Start section: command_properties
74
- // End section: command_properties
75
9
  constructor(input) {
76
- // Start section: command_constructor
77
10
  super();
78
11
  this.input = input;
79
- // End section: command_constructor
80
12
  }
81
- /**
82
- * @internal
83
- */
84
13
  resolveMiddleware(clientStack, configuration, options) {
85
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
86
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Gets configuration information and metadata about a CloudFront function, but not the function’s
10
- * code. To get a function’s code, use <code>GetFunction</code>.</p>
11
- * <p>To get configuration information and metadata about a function, you must provide the
12
- * function’s name and stage. To get these values, you can use
13
- * <code>ListFunctions</code>.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CloudFrontClient, DescribeFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
18
- * // const { CloudFrontClient, DescribeFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
19
- * const client = new CloudFrontClient(config);
20
- * const command = new DescribeFunctionCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link DescribeFunctionCommandInput} for command's `input` shape.
25
- * @see {@link DescribeFunctionCommandOutput} for command's `response` shape.
26
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class DescribeFunctionCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,48 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Gets a cache policy, including the following metadata:</p>
10
- * <ul>
11
- * <li>
12
- * <p>The policy’s identifier.</p>
13
- * </li>
14
- * <li>
15
- * <p>The date and time when the policy was last modified.</p>
16
- * </li>
17
- * </ul>
18
- * <p>To get a cache policy, you must provide the policy’s identifier. If the cache policy is
19
- * attached to a distribution’s cache behavior, you can get the policy’s identifier using
20
- * <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache policy is
21
- * not attached to a cache behavior, you can get the identifier using
22
- * <code>ListCachePolicies</code>.</p>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { CloudFrontClient, GetCachePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
- * // const { CloudFrontClient, GetCachePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
- * const client = new CloudFrontClient(config);
29
- * const command = new GetCachePolicyCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link GetCachePolicyCommandInput} for command's `input` shape.
34
- * @see {@link GetCachePolicyCommandOutput} for command's `response` shape.
35
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
8
  class GetCachePolicyCommand extends smithy_client_1.Command {
39
- // Start section: command_properties
40
- // End section: command_properties
41
9
  constructor(input) {
42
- // Start section: command_constructor
43
10
  super();
44
11
  this.input = input;
45
- // End section: command_constructor
46
12
  }
47
- /**
48
- * @internal
49
- */
50
13
  resolveMiddleware(clientStack, configuration, options) {
51
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
52
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Gets a cache policy configuration.</p>
10
- * <p>To get a cache policy configuration, you must provide the policy’s identifier. If the cache
11
- * policy is attached to a distribution’s cache behavior, you can get the policy’s
12
- * identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If the
13
- * cache policy is not attached to a cache behavior, you can get the identifier using
14
- * <code>ListCachePolicies</code>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { CloudFrontClient, GetCachePolicyConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
19
- * // const { CloudFrontClient, GetCachePolicyConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
20
- * const client = new CloudFrontClient(config);
21
- * const command = new GetCachePolicyConfigCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link GetCachePolicyConfigCommandInput} for command's `input` shape.
26
- * @see {@link GetCachePolicyConfigCommandOutput} for command's `response` shape.
27
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class GetCachePolicyConfigCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the information about an origin access identity. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetCloudFrontOriginAccessIdentityCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetCloudFrontOriginAccessIdentityCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetCloudFrontOriginAccessIdentityCommandInput} for command's `input` shape.
21
- * @see {@link GetCloudFrontOriginAccessIdentityCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the configuration information about an origin access identity. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetCloudFrontOriginAccessIdentityConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetCloudFrontOriginAccessIdentityConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetCloudFrontOriginAccessIdentityConfigCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetCloudFrontOriginAccessIdentityConfigCommandInput} for command's `input` shape.
21
- * @see {@link GetCloudFrontOriginAccessIdentityConfigCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetCloudFrontOriginAccessIdentityConfigCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the information about a distribution.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetDistributionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetDistributionCommandInput} for command's `input` shape.
21
- * @see {@link GetDistributionCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetDistributionCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the configuration information about a distribution. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetDistributionConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetDistributionConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetDistributionConfigCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetDistributionConfigCommandInput} for command's `input` shape.
21
- * @see {@link GetDistributionConfigCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetDistributionConfigCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the field-level encryption configuration information.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetFieldLevelEncryptionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetFieldLevelEncryptionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetFieldLevelEncryptionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetFieldLevelEncryptionCommandInput} for command's `input` shape.
21
- * @see {@link GetFieldLevelEncryptionCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetFieldLevelEncryptionCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the field-level encryption configuration information.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetFieldLevelEncryptionConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetFieldLevelEncryptionConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetFieldLevelEncryptionConfigCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetFieldLevelEncryptionConfigCommandInput} for command's `input` shape.
21
- * @see {@link GetFieldLevelEncryptionConfigCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetFieldLevelEncryptionConfigCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the field-level encryption profile information.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetFieldLevelEncryptionProfileCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetFieldLevelEncryptionProfileCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetFieldLevelEncryptionProfileCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetFieldLevelEncryptionProfileCommandInput} for command's `input` shape.
21
- * @see {@link GetFieldLevelEncryptionProfileCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetFieldLevelEncryptionProfileCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the field-level encryption profile configuration information.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetFieldLevelEncryptionProfileConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetFieldLevelEncryptionProfileConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetFieldLevelEncryptionProfileConfigCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetFieldLevelEncryptionProfileConfigCommandInput} for command's `input` shape.
21
- * @see {@link GetFieldLevelEncryptionProfileConfigCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetFieldLevelEncryptionProfileConfigCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Gets the code of a CloudFront function. To get configuration information and metadata about
10
- * a function, use <code>DescribeFunction</code>.</p>
11
- * <p>To get a function’s code, you must provide the function’s name and stage. To get these
12
- * values, you can use <code>ListFunctions</code>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudFrontClient, GetFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
17
- * // const { CloudFrontClient, GetFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
18
- * const client = new CloudFrontClient(config);
19
- * const command = new GetFunctionCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link GetFunctionCommandInput} for command's `input` shape.
24
- * @see {@link GetFunctionCommandOutput} for command's `response` shape.
25
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class GetFunctionCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Get the information about an invalidation. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudFrontClient, GetInvalidationCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
14
- * // const { CloudFrontClient, GetInvalidationCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
15
- * const client = new CloudFrontClient(config);
16
- * const command = new GetInvalidationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetInvalidationCommandInput} for command's `input` shape.
21
- * @see {@link GetInvalidationCommandOutput} for command's `response` shape.
22
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetInvalidationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Gets a key group, including the date and time when the key group was last modified.</p>
10
- * <p>To get a key group, you must provide the key group’s identifier. If the key group is
11
- * referenced in a distribution’s cache behavior, you can get the key group’s identifier
12
- * using <code>ListDistributions</code> or <code>GetDistribution</code>. If the key group
13
- * is not referenced in a cache behavior, you can get the identifier using
14
- * <code>ListKeyGroups</code>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { CloudFrontClient, GetKeyGroupCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
19
- * // const { CloudFrontClient, GetKeyGroupCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
20
- * const client = new CloudFrontClient(config);
21
- * const command = new GetKeyGroupCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link GetKeyGroupCommandInput} for command's `input` shape.
26
- * @see {@link GetKeyGroupCommandOutput} for command's `response` shape.
27
- * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class GetKeyGroupCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);