@aws-sdk/client-cloudfront 3.35.0 → 3.36.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 (531) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/CloudFront.js +0 -1
  3. package/dist-cjs/CloudFrontClient.js +0 -1
  4. package/dist-cjs/commands/AssociateAliasCommand.js +0 -1
  5. package/dist-cjs/commands/CreateCachePolicyCommand.js +0 -1
  6. package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -1
  7. package/dist-cjs/commands/CreateDistributionCommand.js +0 -1
  8. package/dist-cjs/commands/CreateDistributionWithTagsCommand.js +0 -1
  9. package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -1
  10. package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -1
  11. package/dist-cjs/commands/CreateFunctionCommand.js +0 -1
  12. package/dist-cjs/commands/CreateInvalidationCommand.js +0 -1
  13. package/dist-cjs/commands/CreateKeyGroupCommand.js +0 -1
  14. package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js +0 -1
  15. package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js +0 -1
  16. package/dist-cjs/commands/CreatePublicKeyCommand.js +0 -1
  17. package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js +0 -1
  18. package/dist-cjs/commands/CreateStreamingDistributionCommand.js +0 -1
  19. package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +0 -1
  20. package/dist-cjs/commands/DeleteCachePolicyCommand.js +0 -1
  21. package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -1
  22. package/dist-cjs/commands/DeleteDistributionCommand.js +0 -1
  23. package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -1
  24. package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -1
  25. package/dist-cjs/commands/DeleteFunctionCommand.js +0 -1
  26. package/dist-cjs/commands/DeleteKeyGroupCommand.js +0 -1
  27. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +0 -1
  28. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +0 -1
  29. package/dist-cjs/commands/DeletePublicKeyCommand.js +0 -1
  30. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +0 -1
  31. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +0 -1
  32. package/dist-cjs/commands/DescribeFunctionCommand.js +0 -1
  33. package/dist-cjs/commands/GetCachePolicyCommand.js +0 -1
  34. package/dist-cjs/commands/GetCachePolicyConfigCommand.js +0 -1
  35. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -1
  36. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -1
  37. package/dist-cjs/commands/GetDistributionCommand.js +0 -1
  38. package/dist-cjs/commands/GetDistributionConfigCommand.js +0 -1
  39. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +0 -1
  40. package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js +0 -1
  41. package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js +0 -1
  42. package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -1
  43. package/dist-cjs/commands/GetFunctionCommand.js +0 -1
  44. package/dist-cjs/commands/GetInvalidationCommand.js +0 -1
  45. package/dist-cjs/commands/GetKeyGroupCommand.js +0 -1
  46. package/dist-cjs/commands/GetKeyGroupConfigCommand.js +0 -1
  47. package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js +0 -1
  48. package/dist-cjs/commands/GetOriginRequestPolicyCommand.js +0 -1
  49. package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js +0 -1
  50. package/dist-cjs/commands/GetPublicKeyCommand.js +0 -1
  51. package/dist-cjs/commands/GetPublicKeyConfigCommand.js +0 -1
  52. package/dist-cjs/commands/GetRealtimeLogConfigCommand.js +0 -1
  53. package/dist-cjs/commands/GetStreamingDistributionCommand.js +0 -1
  54. package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js +0 -1
  55. package/dist-cjs/commands/ListCachePoliciesCommand.js +0 -1
  56. package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -1
  57. package/dist-cjs/commands/ListConflictingAliasesCommand.js +0 -1
  58. package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js +0 -1
  59. package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js +0 -1
  60. package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -1
  61. package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -1
  62. package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js +0 -1
  63. package/dist-cjs/commands/ListDistributionsCommand.js +0 -1
  64. package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -1
  65. package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -1
  66. package/dist-cjs/commands/ListFunctionsCommand.js +0 -1
  67. package/dist-cjs/commands/ListInvalidationsCommand.js +0 -1
  68. package/dist-cjs/commands/ListKeyGroupsCommand.js +0 -1
  69. package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js +0 -1
  70. package/dist-cjs/commands/ListPublicKeysCommand.js +0 -1
  71. package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js +0 -1
  72. package/dist-cjs/commands/ListStreamingDistributionsCommand.js +0 -1
  73. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  74. package/dist-cjs/commands/PublishFunctionCommand.js +0 -1
  75. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  76. package/dist-cjs/commands/TestFunctionCommand.js +0 -1
  77. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  78. package/dist-cjs/commands/UpdateCachePolicyCommand.js +0 -1
  79. package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -1
  80. package/dist-cjs/commands/UpdateDistributionCommand.js +0 -1
  81. package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -1
  82. package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -1
  83. package/dist-cjs/commands/UpdateFunctionCommand.js +0 -1
  84. package/dist-cjs/commands/UpdateKeyGroupCommand.js +0 -1
  85. package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js +0 -1
  86. package/dist-cjs/commands/UpdatePublicKeyCommand.js +0 -1
  87. package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js +0 -1
  88. package/dist-cjs/commands/UpdateStreamingDistributionCommand.js +0 -1
  89. package/dist-cjs/endpoints.js +0 -1
  90. package/dist-cjs/index.js +0 -1
  91. package/dist-cjs/models/index.js +0 -1
  92. package/dist-cjs/models/models_0.js +0 -1
  93. package/dist-cjs/models/models_1.js +0 -1
  94. package/dist-cjs/pagination/Interfaces.js +0 -1
  95. package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -1
  96. package/dist-cjs/pagination/ListDistributionsPaginator.js +0 -1
  97. package/dist-cjs/pagination/ListInvalidationsPaginator.js +0 -1
  98. package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js +0 -1
  99. package/dist-cjs/protocols/Aws_restXml.js +0 -1
  100. package/dist-cjs/runtimeConfig.browser.js +2 -3
  101. package/dist-cjs/runtimeConfig.js +3 -4
  102. package/dist-cjs/runtimeConfig.native.js +0 -1
  103. package/dist-cjs/runtimeConfig.shared.js +0 -1
  104. package/dist-cjs/waiters/waitForDistributionDeployed.js +0 -1
  105. package/dist-cjs/waiters/waitForInvalidationCompleted.js +0 -1
  106. package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js +0 -1
  107. package/dist-es/CloudFront.js +0 -1
  108. package/dist-es/CloudFrontClient.js +0 -1
  109. package/dist-es/commands/AssociateAliasCommand.js +0 -1
  110. package/dist-es/commands/CreateCachePolicyCommand.js +0 -1
  111. package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -1
  112. package/dist-es/commands/CreateDistributionCommand.js +0 -1
  113. package/dist-es/commands/CreateDistributionWithTagsCommand.js +0 -1
  114. package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -1
  115. package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -1
  116. package/dist-es/commands/CreateFunctionCommand.js +0 -1
  117. package/dist-es/commands/CreateInvalidationCommand.js +0 -1
  118. package/dist-es/commands/CreateKeyGroupCommand.js +0 -1
  119. package/dist-es/commands/CreateMonitoringSubscriptionCommand.js +0 -1
  120. package/dist-es/commands/CreateOriginRequestPolicyCommand.js +0 -1
  121. package/dist-es/commands/CreatePublicKeyCommand.js +0 -1
  122. package/dist-es/commands/CreateRealtimeLogConfigCommand.js +0 -1
  123. package/dist-es/commands/CreateStreamingDistributionCommand.js +0 -1
  124. package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +0 -1
  125. package/dist-es/commands/DeleteCachePolicyCommand.js +0 -1
  126. package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -1
  127. package/dist-es/commands/DeleteDistributionCommand.js +0 -1
  128. package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -1
  129. package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -1
  130. package/dist-es/commands/DeleteFunctionCommand.js +0 -1
  131. package/dist-es/commands/DeleteKeyGroupCommand.js +0 -1
  132. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +0 -1
  133. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +0 -1
  134. package/dist-es/commands/DeletePublicKeyCommand.js +0 -1
  135. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +0 -1
  136. package/dist-es/commands/DeleteStreamingDistributionCommand.js +0 -1
  137. package/dist-es/commands/DescribeFunctionCommand.js +0 -1
  138. package/dist-es/commands/GetCachePolicyCommand.js +0 -1
  139. package/dist-es/commands/GetCachePolicyConfigCommand.js +0 -1
  140. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -1
  141. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -1
  142. package/dist-es/commands/GetDistributionCommand.js +0 -1
  143. package/dist-es/commands/GetDistributionConfigCommand.js +0 -1
  144. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +0 -1
  145. package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js +0 -1
  146. package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js +0 -1
  147. package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -1
  148. package/dist-es/commands/GetFunctionCommand.js +0 -1
  149. package/dist-es/commands/GetInvalidationCommand.js +0 -1
  150. package/dist-es/commands/GetKeyGroupCommand.js +0 -1
  151. package/dist-es/commands/GetKeyGroupConfigCommand.js +0 -1
  152. package/dist-es/commands/GetMonitoringSubscriptionCommand.js +0 -1
  153. package/dist-es/commands/GetOriginRequestPolicyCommand.js +0 -1
  154. package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js +0 -1
  155. package/dist-es/commands/GetPublicKeyCommand.js +0 -1
  156. package/dist-es/commands/GetPublicKeyConfigCommand.js +0 -1
  157. package/dist-es/commands/GetRealtimeLogConfigCommand.js +0 -1
  158. package/dist-es/commands/GetStreamingDistributionCommand.js +0 -1
  159. package/dist-es/commands/GetStreamingDistributionConfigCommand.js +0 -1
  160. package/dist-es/commands/ListCachePoliciesCommand.js +0 -1
  161. package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -1
  162. package/dist-es/commands/ListConflictingAliasesCommand.js +0 -1
  163. package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js +0 -1
  164. package/dist-es/commands/ListDistributionsByKeyGroupCommand.js +0 -1
  165. package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -1
  166. package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -1
  167. package/dist-es/commands/ListDistributionsByWebACLIdCommand.js +0 -1
  168. package/dist-es/commands/ListDistributionsCommand.js +0 -1
  169. package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -1
  170. package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -1
  171. package/dist-es/commands/ListFunctionsCommand.js +0 -1
  172. package/dist-es/commands/ListInvalidationsCommand.js +0 -1
  173. package/dist-es/commands/ListKeyGroupsCommand.js +0 -1
  174. package/dist-es/commands/ListOriginRequestPoliciesCommand.js +0 -1
  175. package/dist-es/commands/ListPublicKeysCommand.js +0 -1
  176. package/dist-es/commands/ListRealtimeLogConfigsCommand.js +0 -1
  177. package/dist-es/commands/ListStreamingDistributionsCommand.js +0 -1
  178. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  179. package/dist-es/commands/PublishFunctionCommand.js +0 -1
  180. package/dist-es/commands/TagResourceCommand.js +0 -1
  181. package/dist-es/commands/TestFunctionCommand.js +0 -1
  182. package/dist-es/commands/UntagResourceCommand.js +0 -1
  183. package/dist-es/commands/UpdateCachePolicyCommand.js +0 -1
  184. package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -1
  185. package/dist-es/commands/UpdateDistributionCommand.js +0 -1
  186. package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -1
  187. package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -1
  188. package/dist-es/commands/UpdateFunctionCommand.js +0 -1
  189. package/dist-es/commands/UpdateKeyGroupCommand.js +0 -1
  190. package/dist-es/commands/UpdateOriginRequestPolicyCommand.js +0 -1
  191. package/dist-es/commands/UpdatePublicKeyCommand.js +0 -1
  192. package/dist-es/commands/UpdateRealtimeLogConfigCommand.js +0 -1
  193. package/dist-es/commands/UpdateStreamingDistributionCommand.js +0 -1
  194. package/dist-es/endpoints.js +0 -1
  195. package/dist-es/index.js +0 -1
  196. package/dist-es/models/index.js +0 -1
  197. package/dist-es/models/models_0.js +0 -1
  198. package/dist-es/models/models_1.js +0 -1
  199. package/dist-es/pagination/Interfaces.js +0 -1
  200. package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -1
  201. package/dist-es/pagination/ListDistributionsPaginator.js +0 -1
  202. package/dist-es/pagination/ListInvalidationsPaginator.js +0 -1
  203. package/dist-es/pagination/ListStreamingDistributionsPaginator.js +0 -1
  204. package/dist-es/protocols/Aws_restXml.js +0 -1
  205. package/dist-es/runtimeConfig.browser.js +1 -2
  206. package/dist-es/runtimeConfig.js +2 -3
  207. package/dist-es/runtimeConfig.native.js +0 -1
  208. package/dist-es/runtimeConfig.shared.js +0 -1
  209. package/dist-es/waiters/waitForDistributionDeployed.js +0 -1
  210. package/dist-es/waiters/waitForInvalidationCompleted.js +0 -1
  211. package/dist-es/waiters/waitForStreamingDistributionDeployed.js +0 -1
  212. package/package.json +35 -32
  213. package/dist-cjs/CloudFront.js.map +0 -1
  214. package/dist-cjs/CloudFrontClient.js.map +0 -1
  215. package/dist-cjs/commands/AssociateAliasCommand.js.map +0 -1
  216. package/dist-cjs/commands/CreateCachePolicyCommand.js.map +0 -1
  217. package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  218. package/dist-cjs/commands/CreateDistributionCommand.js.map +0 -1
  219. package/dist-cjs/commands/CreateDistributionWithTagsCommand.js.map +0 -1
  220. package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js.map +0 -1
  221. package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js.map +0 -1
  222. package/dist-cjs/commands/CreateFunctionCommand.js.map +0 -1
  223. package/dist-cjs/commands/CreateInvalidationCommand.js.map +0 -1
  224. package/dist-cjs/commands/CreateKeyGroupCommand.js.map +0 -1
  225. package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js.map +0 -1
  226. package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js.map +0 -1
  227. package/dist-cjs/commands/CreatePublicKeyCommand.js.map +0 -1
  228. package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js.map +0 -1
  229. package/dist-cjs/commands/CreateStreamingDistributionCommand.js.map +0 -1
  230. package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js.map +0 -1
  231. package/dist-cjs/commands/DeleteCachePolicyCommand.js.map +0 -1
  232. package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  233. package/dist-cjs/commands/DeleteDistributionCommand.js.map +0 -1
  234. package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js.map +0 -1
  235. package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js.map +0 -1
  236. package/dist-cjs/commands/DeleteFunctionCommand.js.map +0 -1
  237. package/dist-cjs/commands/DeleteKeyGroupCommand.js.map +0 -1
  238. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js.map +0 -1
  239. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js.map +0 -1
  240. package/dist-cjs/commands/DeletePublicKeyCommand.js.map +0 -1
  241. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js.map +0 -1
  242. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js.map +0 -1
  243. package/dist-cjs/commands/DescribeFunctionCommand.js.map +0 -1
  244. package/dist-cjs/commands/GetCachePolicyCommand.js.map +0 -1
  245. package/dist-cjs/commands/GetCachePolicyConfigCommand.js.map +0 -1
  246. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  247. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js.map +0 -1
  248. package/dist-cjs/commands/GetDistributionCommand.js.map +0 -1
  249. package/dist-cjs/commands/GetDistributionConfigCommand.js.map +0 -1
  250. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js.map +0 -1
  251. package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js.map +0 -1
  252. package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js.map +0 -1
  253. package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js.map +0 -1
  254. package/dist-cjs/commands/GetFunctionCommand.js.map +0 -1
  255. package/dist-cjs/commands/GetInvalidationCommand.js.map +0 -1
  256. package/dist-cjs/commands/GetKeyGroupCommand.js.map +0 -1
  257. package/dist-cjs/commands/GetKeyGroupConfigCommand.js.map +0 -1
  258. package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js.map +0 -1
  259. package/dist-cjs/commands/GetOriginRequestPolicyCommand.js.map +0 -1
  260. package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js.map +0 -1
  261. package/dist-cjs/commands/GetPublicKeyCommand.js.map +0 -1
  262. package/dist-cjs/commands/GetPublicKeyConfigCommand.js.map +0 -1
  263. package/dist-cjs/commands/GetRealtimeLogConfigCommand.js.map +0 -1
  264. package/dist-cjs/commands/GetStreamingDistributionCommand.js.map +0 -1
  265. package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js.map +0 -1
  266. package/dist-cjs/commands/ListCachePoliciesCommand.js.map +0 -1
  267. package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js.map +0 -1
  268. package/dist-cjs/commands/ListConflictingAliasesCommand.js.map +0 -1
  269. package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js.map +0 -1
  270. package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js.map +0 -1
  271. package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js.map +0 -1
  272. package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js.map +0 -1
  273. package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js.map +0 -1
  274. package/dist-cjs/commands/ListDistributionsCommand.js.map +0 -1
  275. package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js.map +0 -1
  276. package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js.map +0 -1
  277. package/dist-cjs/commands/ListFunctionsCommand.js.map +0 -1
  278. package/dist-cjs/commands/ListInvalidationsCommand.js.map +0 -1
  279. package/dist-cjs/commands/ListKeyGroupsCommand.js.map +0 -1
  280. package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js.map +0 -1
  281. package/dist-cjs/commands/ListPublicKeysCommand.js.map +0 -1
  282. package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js.map +0 -1
  283. package/dist-cjs/commands/ListStreamingDistributionsCommand.js.map +0 -1
  284. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  285. package/dist-cjs/commands/PublishFunctionCommand.js.map +0 -1
  286. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  287. package/dist-cjs/commands/TestFunctionCommand.js.map +0 -1
  288. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  289. package/dist-cjs/commands/UpdateCachePolicyCommand.js.map +0 -1
  290. package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  291. package/dist-cjs/commands/UpdateDistributionCommand.js.map +0 -1
  292. package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js.map +0 -1
  293. package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js.map +0 -1
  294. package/dist-cjs/commands/UpdateFunctionCommand.js.map +0 -1
  295. package/dist-cjs/commands/UpdateKeyGroupCommand.js.map +0 -1
  296. package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js.map +0 -1
  297. package/dist-cjs/commands/UpdatePublicKeyCommand.js.map +0 -1
  298. package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js.map +0 -1
  299. package/dist-cjs/commands/UpdateStreamingDistributionCommand.js.map +0 -1
  300. package/dist-cjs/endpoints.js.map +0 -1
  301. package/dist-cjs/index.js.map +0 -1
  302. package/dist-cjs/models/index.js.map +0 -1
  303. package/dist-cjs/models/models_0.js.map +0 -1
  304. package/dist-cjs/models/models_1.js.map +0 -1
  305. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  306. package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js.map +0 -1
  307. package/dist-cjs/pagination/ListDistributionsPaginator.js.map +0 -1
  308. package/dist-cjs/pagination/ListInvalidationsPaginator.js.map +0 -1
  309. package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js.map +0 -1
  310. package/dist-cjs/protocols/Aws_restXml.js.map +0 -1
  311. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  312. package/dist-cjs/runtimeConfig.js.map +0 -1
  313. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  314. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  315. package/dist-cjs/waiters/waitForDistributionDeployed.js.map +0 -1
  316. package/dist-cjs/waiters/waitForInvalidationCompleted.js.map +0 -1
  317. package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js.map +0 -1
  318. package/dist-es/CloudFront.js.map +0 -1
  319. package/dist-es/CloudFrontClient.js.map +0 -1
  320. package/dist-es/commands/AssociateAliasCommand.js.map +0 -1
  321. package/dist-es/commands/CreateCachePolicyCommand.js.map +0 -1
  322. package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  323. package/dist-es/commands/CreateDistributionCommand.js.map +0 -1
  324. package/dist-es/commands/CreateDistributionWithTagsCommand.js.map +0 -1
  325. package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js.map +0 -1
  326. package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js.map +0 -1
  327. package/dist-es/commands/CreateFunctionCommand.js.map +0 -1
  328. package/dist-es/commands/CreateInvalidationCommand.js.map +0 -1
  329. package/dist-es/commands/CreateKeyGroupCommand.js.map +0 -1
  330. package/dist-es/commands/CreateMonitoringSubscriptionCommand.js.map +0 -1
  331. package/dist-es/commands/CreateOriginRequestPolicyCommand.js.map +0 -1
  332. package/dist-es/commands/CreatePublicKeyCommand.js.map +0 -1
  333. package/dist-es/commands/CreateRealtimeLogConfigCommand.js.map +0 -1
  334. package/dist-es/commands/CreateStreamingDistributionCommand.js.map +0 -1
  335. package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js.map +0 -1
  336. package/dist-es/commands/DeleteCachePolicyCommand.js.map +0 -1
  337. package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  338. package/dist-es/commands/DeleteDistributionCommand.js.map +0 -1
  339. package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js.map +0 -1
  340. package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js.map +0 -1
  341. package/dist-es/commands/DeleteFunctionCommand.js.map +0 -1
  342. package/dist-es/commands/DeleteKeyGroupCommand.js.map +0 -1
  343. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js.map +0 -1
  344. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js.map +0 -1
  345. package/dist-es/commands/DeletePublicKeyCommand.js.map +0 -1
  346. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js.map +0 -1
  347. package/dist-es/commands/DeleteStreamingDistributionCommand.js.map +0 -1
  348. package/dist-es/commands/DescribeFunctionCommand.js.map +0 -1
  349. package/dist-es/commands/GetCachePolicyCommand.js.map +0 -1
  350. package/dist-es/commands/GetCachePolicyConfigCommand.js.map +0 -1
  351. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  352. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js.map +0 -1
  353. package/dist-es/commands/GetDistributionCommand.js.map +0 -1
  354. package/dist-es/commands/GetDistributionConfigCommand.js.map +0 -1
  355. package/dist-es/commands/GetFieldLevelEncryptionCommand.js.map +0 -1
  356. package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js.map +0 -1
  357. package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js.map +0 -1
  358. package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js.map +0 -1
  359. package/dist-es/commands/GetFunctionCommand.js.map +0 -1
  360. package/dist-es/commands/GetInvalidationCommand.js.map +0 -1
  361. package/dist-es/commands/GetKeyGroupCommand.js.map +0 -1
  362. package/dist-es/commands/GetKeyGroupConfigCommand.js.map +0 -1
  363. package/dist-es/commands/GetMonitoringSubscriptionCommand.js.map +0 -1
  364. package/dist-es/commands/GetOriginRequestPolicyCommand.js.map +0 -1
  365. package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js.map +0 -1
  366. package/dist-es/commands/GetPublicKeyCommand.js.map +0 -1
  367. package/dist-es/commands/GetPublicKeyConfigCommand.js.map +0 -1
  368. package/dist-es/commands/GetRealtimeLogConfigCommand.js.map +0 -1
  369. package/dist-es/commands/GetStreamingDistributionCommand.js.map +0 -1
  370. package/dist-es/commands/GetStreamingDistributionConfigCommand.js.map +0 -1
  371. package/dist-es/commands/ListCachePoliciesCommand.js.map +0 -1
  372. package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js.map +0 -1
  373. package/dist-es/commands/ListConflictingAliasesCommand.js.map +0 -1
  374. package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js.map +0 -1
  375. package/dist-es/commands/ListDistributionsByKeyGroupCommand.js.map +0 -1
  376. package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js.map +0 -1
  377. package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js.map +0 -1
  378. package/dist-es/commands/ListDistributionsByWebACLIdCommand.js.map +0 -1
  379. package/dist-es/commands/ListDistributionsCommand.js.map +0 -1
  380. package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js.map +0 -1
  381. package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js.map +0 -1
  382. package/dist-es/commands/ListFunctionsCommand.js.map +0 -1
  383. package/dist-es/commands/ListInvalidationsCommand.js.map +0 -1
  384. package/dist-es/commands/ListKeyGroupsCommand.js.map +0 -1
  385. package/dist-es/commands/ListOriginRequestPoliciesCommand.js.map +0 -1
  386. package/dist-es/commands/ListPublicKeysCommand.js.map +0 -1
  387. package/dist-es/commands/ListRealtimeLogConfigsCommand.js.map +0 -1
  388. package/dist-es/commands/ListStreamingDistributionsCommand.js.map +0 -1
  389. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  390. package/dist-es/commands/PublishFunctionCommand.js.map +0 -1
  391. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  392. package/dist-es/commands/TestFunctionCommand.js.map +0 -1
  393. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  394. package/dist-es/commands/UpdateCachePolicyCommand.js.map +0 -1
  395. package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js.map +0 -1
  396. package/dist-es/commands/UpdateDistributionCommand.js.map +0 -1
  397. package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js.map +0 -1
  398. package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js.map +0 -1
  399. package/dist-es/commands/UpdateFunctionCommand.js.map +0 -1
  400. package/dist-es/commands/UpdateKeyGroupCommand.js.map +0 -1
  401. package/dist-es/commands/UpdateOriginRequestPolicyCommand.js.map +0 -1
  402. package/dist-es/commands/UpdatePublicKeyCommand.js.map +0 -1
  403. package/dist-es/commands/UpdateRealtimeLogConfigCommand.js.map +0 -1
  404. package/dist-es/commands/UpdateStreamingDistributionCommand.js.map +0 -1
  405. package/dist-es/endpoints.js.map +0 -1
  406. package/dist-es/index.js.map +0 -1
  407. package/dist-es/models/index.js.map +0 -1
  408. package/dist-es/models/models_0.js.map +0 -1
  409. package/dist-es/models/models_1.js.map +0 -1
  410. package/dist-es/pagination/Interfaces.js.map +0 -1
  411. package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js.map +0 -1
  412. package/dist-es/pagination/ListDistributionsPaginator.js.map +0 -1
  413. package/dist-es/pagination/ListInvalidationsPaginator.js.map +0 -1
  414. package/dist-es/pagination/ListStreamingDistributionsPaginator.js.map +0 -1
  415. package/dist-es/protocols/Aws_restXml.js.map +0 -1
  416. package/dist-es/runtimeConfig.browser.js.map +0 -1
  417. package/dist-es/runtimeConfig.js.map +0 -1
  418. package/dist-es/runtimeConfig.native.js.map +0 -1
  419. package/dist-es/runtimeConfig.shared.js.map +0 -1
  420. package/dist-es/waiters/waitForDistributionDeployed.js.map +0 -1
  421. package/dist-es/waiters/waitForInvalidationCompleted.js.map +0 -1
  422. package/dist-es/waiters/waitForStreamingDistributionDeployed.js.map +0 -1
  423. package/jest.config.js +0 -4
  424. package/src/CloudFront.ts +0 -3606
  425. package/src/CloudFrontClient.ts +0 -641
  426. package/src/commands/AssociateAliasCommand.ts +0 -105
  427. package/src/commands/CreateCachePolicyCommand.ts +0 -115
  428. package/src/commands/CreateCloudFrontOriginAccessIdentityCommand.ts +0 -109
  429. package/src/commands/CreateDistributionCommand.ts +0 -107
  430. package/src/commands/CreateDistributionWithTagsCommand.ts +0 -98
  431. package/src/commands/CreateFieldLevelEncryptionConfigCommand.ts +0 -103
  432. package/src/commands/CreateFieldLevelEncryptionProfileCommand.ts +0 -103
  433. package/src/commands/CreateFunctionCommand.ts +0 -105
  434. package/src/commands/CreateInvalidationCommand.ts +0 -95
  435. package/src/commands/CreateKeyGroupCommand.ts +0 -102
  436. package/src/commands/CreateMonitoringSubscriptionCommand.ts +0 -103
  437. package/src/commands/CreateOriginRequestPolicyCommand.ts +0 -122
  438. package/src/commands/CreatePublicKeyCommand.ts +0 -95
  439. package/src/commands/CreateRealtimeLogConfigCommand.ts +0 -98
  440. package/src/commands/CreateStreamingDistributionCommand.ts +0 -100
  441. package/src/commands/CreateStreamingDistributionWithTagsCommand.ts +0 -108
  442. package/src/commands/DeleteCachePolicyCommand.ts +0 -101
  443. package/src/commands/DeleteCloudFrontOriginAccessIdentityCommand.ts +0 -101
  444. package/src/commands/DeleteDistributionCommand.ts +0 -95
  445. package/src/commands/DeleteFieldLevelEncryptionConfigCommand.ts +0 -101
  446. package/src/commands/DeleteFieldLevelEncryptionProfileCommand.ts +0 -101
  447. package/src/commands/DeleteFunctionCommand.ts +0 -101
  448. package/src/commands/DeleteKeyGroupCommand.ts +0 -101
  449. package/src/commands/DeleteMonitoringSubscriptionCommand.ts +0 -100
  450. package/src/commands/DeleteOriginRequestPolicyCommand.ts +0 -104
  451. package/src/commands/DeletePublicKeyCommand.ts +0 -95
  452. package/src/commands/DeleteRealtimeLogConfigCommand.ts +0 -101
  453. package/src/commands/DeleteStreamingDistributionCommand.ts +0 -145
  454. package/src/commands/DescribeFunctionCommand.ts +0 -99
  455. package/src/commands/GetCachePolicyCommand.ts +0 -108
  456. package/src/commands/GetCachePolicyConfigCommand.ts +0 -100
  457. package/src/commands/GetCloudFrontOriginAccessIdentityCommand.ts +0 -103
  458. package/src/commands/GetCloudFrontOriginAccessIdentityConfigCommand.ts +0 -110
  459. package/src/commands/GetDistributionCommand.ts +0 -95
  460. package/src/commands/GetDistributionConfigCommand.ts +0 -95
  461. package/src/commands/GetFieldLevelEncryptionCommand.ts +0 -95
  462. package/src/commands/GetFieldLevelEncryptionConfigCommand.ts +0 -100
  463. package/src/commands/GetFieldLevelEncryptionProfileCommand.ts +0 -103
  464. package/src/commands/GetFieldLevelEncryptionProfileConfigCommand.ts +0 -106
  465. package/src/commands/GetFunctionCommand.ts +0 -98
  466. package/src/commands/GetInvalidationCommand.ts +0 -95
  467. package/src/commands/GetKeyGroupCommand.ts +0 -100
  468. package/src/commands/GetKeyGroupConfigCommand.ts +0 -100
  469. package/src/commands/GetMonitoringSubscriptionCommand.ts +0 -99
  470. package/src/commands/GetOriginRequestPolicyCommand.ts +0 -108
  471. package/src/commands/GetOriginRequestPolicyConfigCommand.ts +0 -106
  472. package/src/commands/GetPublicKeyCommand.ts +0 -95
  473. package/src/commands/GetPublicKeyConfigCommand.ts +0 -95
  474. package/src/commands/GetRealtimeLogConfigCommand.ts +0 -98
  475. package/src/commands/GetStreamingDistributionCommand.ts +0 -95
  476. package/src/commands/GetStreamingDistributionConfigCommand.ts +0 -103
  477. package/src/commands/ListCachePoliciesCommand.ts +0 -102
  478. package/src/commands/ListCloudFrontOriginAccessIdentitiesCommand.ts +0 -106
  479. package/src/commands/ListConflictingAliasesCommand.ts +0 -117
  480. package/src/commands/ListDistributionsByCachePolicyIdCommand.ts +0 -109
  481. package/src/commands/ListDistributionsByKeyGroupCommand.ts +0 -104
  482. package/src/commands/ListDistributionsByOriginRequestPolicyIdCommand.ts +0 -116
  483. package/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts +0 -115
  484. package/src/commands/ListDistributionsByWebACLIdCommand.ts +0 -98
  485. package/src/commands/ListDistributionsCommand.ts +0 -95
  486. package/src/commands/ListFieldLevelEncryptionConfigsCommand.ts +0 -103
  487. package/src/commands/ListFieldLevelEncryptionProfilesCommand.ts +0 -103
  488. package/src/commands/ListFunctionsCommand.ts +0 -102
  489. package/src/commands/ListInvalidationsCommand.ts +0 -95
  490. package/src/commands/ListKeyGroupsCommand.ts +0 -100
  491. package/src/commands/ListOriginRequestPoliciesCommand.ts +0 -105
  492. package/src/commands/ListPublicKeysCommand.ts +0 -95
  493. package/src/commands/ListRealtimeLogConfigsCommand.ts +0 -100
  494. package/src/commands/ListStreamingDistributionsCommand.ts +0 -98
  495. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  496. package/src/commands/PublishFunctionCommand.ts +0 -103
  497. package/src/commands/TagResourceCommand.ts +0 -95
  498. package/src/commands/TestFunctionCommand.ts +0 -104
  499. package/src/commands/UntagResourceCommand.ts +0 -95
  500. package/src/commands/UpdateCachePolicyCommand.ts +0 -112
  501. package/src/commands/UpdateCloudFrontOriginAccessIdentityCommand.ts +0 -106
  502. package/src/commands/UpdateDistributionCommand.ts +0 -173
  503. package/src/commands/UpdateFieldLevelEncryptionConfigCommand.ts +0 -103
  504. package/src/commands/UpdateFieldLevelEncryptionProfileCommand.ts +0 -103
  505. package/src/commands/UpdateFunctionCommand.ts +0 -100
  506. package/src/commands/UpdateKeyGroupCommand.ts +0 -112
  507. package/src/commands/UpdateOriginRequestPolicyCommand.ts +0 -115
  508. package/src/commands/UpdatePublicKeyCommand.ts +0 -95
  509. package/src/commands/UpdateRealtimeLogConfigCommand.ts +0 -115
  510. package/src/commands/UpdateStreamingDistributionCommand.ts +0 -98
  511. package/src/endpoints.ts +0 -67
  512. package/src/index.ts +0 -96
  513. package/src/models/index.ts +0 -2
  514. package/src/models/models_0.ts +0 -8233
  515. package/src/models/models_1.ts +0 -3383
  516. package/src/pagination/Interfaces.ts +0 -8
  517. package/src/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.ts +0 -59
  518. package/src/pagination/ListDistributionsPaginator.ts +0 -59
  519. package/src/pagination/ListInvalidationsPaginator.ts +0 -59
  520. package/src/pagination/ListStreamingDistributionsPaginator.ts +0 -59
  521. package/src/protocols/Aws_restXml.ts +0 -19061
  522. package/src/runtimeConfig.browser.ts +0 -41
  523. package/src/runtimeConfig.native.ts +0 -17
  524. package/src/runtimeConfig.shared.ts +0 -17
  525. package/src/runtimeConfig.ts +0 -46
  526. package/src/waiters/waitForDistributionDeployed.ts +0 -47
  527. package/src/waiters/waitForInvalidationCompleted.ts +0 -47
  528. package/src/waiters/waitForStreamingDistributionDeployed.ts +0 -53
  529. package/tsconfig.es.json +0 -10
  530. package/tsconfig.json +0 -33
  531. package/tsconfig.types.json +0 -9
package/src/CloudFront.ts DELETED
@@ -1,3606 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import { CloudFrontClient } from "./CloudFrontClient";
4
- import {
5
- AssociateAliasCommand,
6
- AssociateAliasCommandInput,
7
- AssociateAliasCommandOutput,
8
- } from "./commands/AssociateAliasCommand";
9
- import {
10
- CreateCachePolicyCommand,
11
- CreateCachePolicyCommandInput,
12
- CreateCachePolicyCommandOutput,
13
- } from "./commands/CreateCachePolicyCommand";
14
- import {
15
- CreateCloudFrontOriginAccessIdentityCommand,
16
- CreateCloudFrontOriginAccessIdentityCommandInput,
17
- CreateCloudFrontOriginAccessIdentityCommandOutput,
18
- } from "./commands/CreateCloudFrontOriginAccessIdentityCommand";
19
- import {
20
- CreateDistributionCommand,
21
- CreateDistributionCommandInput,
22
- CreateDistributionCommandOutput,
23
- } from "./commands/CreateDistributionCommand";
24
- import {
25
- CreateDistributionWithTagsCommand,
26
- CreateDistributionWithTagsCommandInput,
27
- CreateDistributionWithTagsCommandOutput,
28
- } from "./commands/CreateDistributionWithTagsCommand";
29
- import {
30
- CreateFieldLevelEncryptionConfigCommand,
31
- CreateFieldLevelEncryptionConfigCommandInput,
32
- CreateFieldLevelEncryptionConfigCommandOutput,
33
- } from "./commands/CreateFieldLevelEncryptionConfigCommand";
34
- import {
35
- CreateFieldLevelEncryptionProfileCommand,
36
- CreateFieldLevelEncryptionProfileCommandInput,
37
- CreateFieldLevelEncryptionProfileCommandOutput,
38
- } from "./commands/CreateFieldLevelEncryptionProfileCommand";
39
- import {
40
- CreateFunctionCommand,
41
- CreateFunctionCommandInput,
42
- CreateFunctionCommandOutput,
43
- } from "./commands/CreateFunctionCommand";
44
- import {
45
- CreateInvalidationCommand,
46
- CreateInvalidationCommandInput,
47
- CreateInvalidationCommandOutput,
48
- } from "./commands/CreateInvalidationCommand";
49
- import {
50
- CreateKeyGroupCommand,
51
- CreateKeyGroupCommandInput,
52
- CreateKeyGroupCommandOutput,
53
- } from "./commands/CreateKeyGroupCommand";
54
- import {
55
- CreateMonitoringSubscriptionCommand,
56
- CreateMonitoringSubscriptionCommandInput,
57
- CreateMonitoringSubscriptionCommandOutput,
58
- } from "./commands/CreateMonitoringSubscriptionCommand";
59
- import {
60
- CreateOriginRequestPolicyCommand,
61
- CreateOriginRequestPolicyCommandInput,
62
- CreateOriginRequestPolicyCommandOutput,
63
- } from "./commands/CreateOriginRequestPolicyCommand";
64
- import {
65
- CreatePublicKeyCommand,
66
- CreatePublicKeyCommandInput,
67
- CreatePublicKeyCommandOutput,
68
- } from "./commands/CreatePublicKeyCommand";
69
- import {
70
- CreateRealtimeLogConfigCommand,
71
- CreateRealtimeLogConfigCommandInput,
72
- CreateRealtimeLogConfigCommandOutput,
73
- } from "./commands/CreateRealtimeLogConfigCommand";
74
- import {
75
- CreateStreamingDistributionCommand,
76
- CreateStreamingDistributionCommandInput,
77
- CreateStreamingDistributionCommandOutput,
78
- } from "./commands/CreateStreamingDistributionCommand";
79
- import {
80
- CreateStreamingDistributionWithTagsCommand,
81
- CreateStreamingDistributionWithTagsCommandInput,
82
- CreateStreamingDistributionWithTagsCommandOutput,
83
- } from "./commands/CreateStreamingDistributionWithTagsCommand";
84
- import {
85
- DeleteCachePolicyCommand,
86
- DeleteCachePolicyCommandInput,
87
- DeleteCachePolicyCommandOutput,
88
- } from "./commands/DeleteCachePolicyCommand";
89
- import {
90
- DeleteCloudFrontOriginAccessIdentityCommand,
91
- DeleteCloudFrontOriginAccessIdentityCommandInput,
92
- DeleteCloudFrontOriginAccessIdentityCommandOutput,
93
- } from "./commands/DeleteCloudFrontOriginAccessIdentityCommand";
94
- import {
95
- DeleteDistributionCommand,
96
- DeleteDistributionCommandInput,
97
- DeleteDistributionCommandOutput,
98
- } from "./commands/DeleteDistributionCommand";
99
- import {
100
- DeleteFieldLevelEncryptionConfigCommand,
101
- DeleteFieldLevelEncryptionConfigCommandInput,
102
- DeleteFieldLevelEncryptionConfigCommandOutput,
103
- } from "./commands/DeleteFieldLevelEncryptionConfigCommand";
104
- import {
105
- DeleteFieldLevelEncryptionProfileCommand,
106
- DeleteFieldLevelEncryptionProfileCommandInput,
107
- DeleteFieldLevelEncryptionProfileCommandOutput,
108
- } from "./commands/DeleteFieldLevelEncryptionProfileCommand";
109
- import {
110
- DeleteFunctionCommand,
111
- DeleteFunctionCommandInput,
112
- DeleteFunctionCommandOutput,
113
- } from "./commands/DeleteFunctionCommand";
114
- import {
115
- DeleteKeyGroupCommand,
116
- DeleteKeyGroupCommandInput,
117
- DeleteKeyGroupCommandOutput,
118
- } from "./commands/DeleteKeyGroupCommand";
119
- import {
120
- DeleteMonitoringSubscriptionCommand,
121
- DeleteMonitoringSubscriptionCommandInput,
122
- DeleteMonitoringSubscriptionCommandOutput,
123
- } from "./commands/DeleteMonitoringSubscriptionCommand";
124
- import {
125
- DeleteOriginRequestPolicyCommand,
126
- DeleteOriginRequestPolicyCommandInput,
127
- DeleteOriginRequestPolicyCommandOutput,
128
- } from "./commands/DeleteOriginRequestPolicyCommand";
129
- import {
130
- DeletePublicKeyCommand,
131
- DeletePublicKeyCommandInput,
132
- DeletePublicKeyCommandOutput,
133
- } from "./commands/DeletePublicKeyCommand";
134
- import {
135
- DeleteRealtimeLogConfigCommand,
136
- DeleteRealtimeLogConfigCommandInput,
137
- DeleteRealtimeLogConfigCommandOutput,
138
- } from "./commands/DeleteRealtimeLogConfigCommand";
139
- import {
140
- DeleteStreamingDistributionCommand,
141
- DeleteStreamingDistributionCommandInput,
142
- DeleteStreamingDistributionCommandOutput,
143
- } from "./commands/DeleteStreamingDistributionCommand";
144
- import {
145
- DescribeFunctionCommand,
146
- DescribeFunctionCommandInput,
147
- DescribeFunctionCommandOutput,
148
- } from "./commands/DescribeFunctionCommand";
149
- import {
150
- GetCachePolicyCommand,
151
- GetCachePolicyCommandInput,
152
- GetCachePolicyCommandOutput,
153
- } from "./commands/GetCachePolicyCommand";
154
- import {
155
- GetCachePolicyConfigCommand,
156
- GetCachePolicyConfigCommandInput,
157
- GetCachePolicyConfigCommandOutput,
158
- } from "./commands/GetCachePolicyConfigCommand";
159
- import {
160
- GetCloudFrontOriginAccessIdentityCommand,
161
- GetCloudFrontOriginAccessIdentityCommandInput,
162
- GetCloudFrontOriginAccessIdentityCommandOutput,
163
- } from "./commands/GetCloudFrontOriginAccessIdentityCommand";
164
- import {
165
- GetCloudFrontOriginAccessIdentityConfigCommand,
166
- GetCloudFrontOriginAccessIdentityConfigCommandInput,
167
- GetCloudFrontOriginAccessIdentityConfigCommandOutput,
168
- } from "./commands/GetCloudFrontOriginAccessIdentityConfigCommand";
169
- import {
170
- GetDistributionCommand,
171
- GetDistributionCommandInput,
172
- GetDistributionCommandOutput,
173
- } from "./commands/GetDistributionCommand";
174
- import {
175
- GetDistributionConfigCommand,
176
- GetDistributionConfigCommandInput,
177
- GetDistributionConfigCommandOutput,
178
- } from "./commands/GetDistributionConfigCommand";
179
- import {
180
- GetFieldLevelEncryptionCommand,
181
- GetFieldLevelEncryptionCommandInput,
182
- GetFieldLevelEncryptionCommandOutput,
183
- } from "./commands/GetFieldLevelEncryptionCommand";
184
- import {
185
- GetFieldLevelEncryptionConfigCommand,
186
- GetFieldLevelEncryptionConfigCommandInput,
187
- GetFieldLevelEncryptionConfigCommandOutput,
188
- } from "./commands/GetFieldLevelEncryptionConfigCommand";
189
- import {
190
- GetFieldLevelEncryptionProfileCommand,
191
- GetFieldLevelEncryptionProfileCommandInput,
192
- GetFieldLevelEncryptionProfileCommandOutput,
193
- } from "./commands/GetFieldLevelEncryptionProfileCommand";
194
- import {
195
- GetFieldLevelEncryptionProfileConfigCommand,
196
- GetFieldLevelEncryptionProfileConfigCommandInput,
197
- GetFieldLevelEncryptionProfileConfigCommandOutput,
198
- } from "./commands/GetFieldLevelEncryptionProfileConfigCommand";
199
- import { GetFunctionCommand, GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand";
200
- import {
201
- GetInvalidationCommand,
202
- GetInvalidationCommandInput,
203
- GetInvalidationCommandOutput,
204
- } from "./commands/GetInvalidationCommand";
205
- import { GetKeyGroupCommand, GetKeyGroupCommandInput, GetKeyGroupCommandOutput } from "./commands/GetKeyGroupCommand";
206
- import {
207
- GetKeyGroupConfigCommand,
208
- GetKeyGroupConfigCommandInput,
209
- GetKeyGroupConfigCommandOutput,
210
- } from "./commands/GetKeyGroupConfigCommand";
211
- import {
212
- GetMonitoringSubscriptionCommand,
213
- GetMonitoringSubscriptionCommandInput,
214
- GetMonitoringSubscriptionCommandOutput,
215
- } from "./commands/GetMonitoringSubscriptionCommand";
216
- import {
217
- GetOriginRequestPolicyCommand,
218
- GetOriginRequestPolicyCommandInput,
219
- GetOriginRequestPolicyCommandOutput,
220
- } from "./commands/GetOriginRequestPolicyCommand";
221
- import {
222
- GetOriginRequestPolicyConfigCommand,
223
- GetOriginRequestPolicyConfigCommandInput,
224
- GetOriginRequestPolicyConfigCommandOutput,
225
- } from "./commands/GetOriginRequestPolicyConfigCommand";
226
- import {
227
- GetPublicKeyCommand,
228
- GetPublicKeyCommandInput,
229
- GetPublicKeyCommandOutput,
230
- } from "./commands/GetPublicKeyCommand";
231
- import {
232
- GetPublicKeyConfigCommand,
233
- GetPublicKeyConfigCommandInput,
234
- GetPublicKeyConfigCommandOutput,
235
- } from "./commands/GetPublicKeyConfigCommand";
236
- import {
237
- GetRealtimeLogConfigCommand,
238
- GetRealtimeLogConfigCommandInput,
239
- GetRealtimeLogConfigCommandOutput,
240
- } from "./commands/GetRealtimeLogConfigCommand";
241
- import {
242
- GetStreamingDistributionCommand,
243
- GetStreamingDistributionCommandInput,
244
- GetStreamingDistributionCommandOutput,
245
- } from "./commands/GetStreamingDistributionCommand";
246
- import {
247
- GetStreamingDistributionConfigCommand,
248
- GetStreamingDistributionConfigCommandInput,
249
- GetStreamingDistributionConfigCommandOutput,
250
- } from "./commands/GetStreamingDistributionConfigCommand";
251
- import {
252
- ListCachePoliciesCommand,
253
- ListCachePoliciesCommandInput,
254
- ListCachePoliciesCommandOutput,
255
- } from "./commands/ListCachePoliciesCommand";
256
- import {
257
- ListCloudFrontOriginAccessIdentitiesCommand,
258
- ListCloudFrontOriginAccessIdentitiesCommandInput,
259
- ListCloudFrontOriginAccessIdentitiesCommandOutput,
260
- } from "./commands/ListCloudFrontOriginAccessIdentitiesCommand";
261
- import {
262
- ListConflictingAliasesCommand,
263
- ListConflictingAliasesCommandInput,
264
- ListConflictingAliasesCommandOutput,
265
- } from "./commands/ListConflictingAliasesCommand";
266
- import {
267
- ListDistributionsByCachePolicyIdCommand,
268
- ListDistributionsByCachePolicyIdCommandInput,
269
- ListDistributionsByCachePolicyIdCommandOutput,
270
- } from "./commands/ListDistributionsByCachePolicyIdCommand";
271
- import {
272
- ListDistributionsByKeyGroupCommand,
273
- ListDistributionsByKeyGroupCommandInput,
274
- ListDistributionsByKeyGroupCommandOutput,
275
- } from "./commands/ListDistributionsByKeyGroupCommand";
276
- import {
277
- ListDistributionsByOriginRequestPolicyIdCommand,
278
- ListDistributionsByOriginRequestPolicyIdCommandInput,
279
- ListDistributionsByOriginRequestPolicyIdCommandOutput,
280
- } from "./commands/ListDistributionsByOriginRequestPolicyIdCommand";
281
- import {
282
- ListDistributionsByRealtimeLogConfigCommand,
283
- ListDistributionsByRealtimeLogConfigCommandInput,
284
- ListDistributionsByRealtimeLogConfigCommandOutput,
285
- } from "./commands/ListDistributionsByRealtimeLogConfigCommand";
286
- import {
287
- ListDistributionsByWebACLIdCommand,
288
- ListDistributionsByWebACLIdCommandInput,
289
- ListDistributionsByWebACLIdCommandOutput,
290
- } from "./commands/ListDistributionsByWebACLIdCommand";
291
- import {
292
- ListDistributionsCommand,
293
- ListDistributionsCommandInput,
294
- ListDistributionsCommandOutput,
295
- } from "./commands/ListDistributionsCommand";
296
- import {
297
- ListFieldLevelEncryptionConfigsCommand,
298
- ListFieldLevelEncryptionConfigsCommandInput,
299
- ListFieldLevelEncryptionConfigsCommandOutput,
300
- } from "./commands/ListFieldLevelEncryptionConfigsCommand";
301
- import {
302
- ListFieldLevelEncryptionProfilesCommand,
303
- ListFieldLevelEncryptionProfilesCommandInput,
304
- ListFieldLevelEncryptionProfilesCommandOutput,
305
- } from "./commands/ListFieldLevelEncryptionProfilesCommand";
306
- import {
307
- ListFunctionsCommand,
308
- ListFunctionsCommandInput,
309
- ListFunctionsCommandOutput,
310
- } from "./commands/ListFunctionsCommand";
311
- import {
312
- ListInvalidationsCommand,
313
- ListInvalidationsCommandInput,
314
- ListInvalidationsCommandOutput,
315
- } from "./commands/ListInvalidationsCommand";
316
- import {
317
- ListKeyGroupsCommand,
318
- ListKeyGroupsCommandInput,
319
- ListKeyGroupsCommandOutput,
320
- } from "./commands/ListKeyGroupsCommand";
321
- import {
322
- ListOriginRequestPoliciesCommand,
323
- ListOriginRequestPoliciesCommandInput,
324
- ListOriginRequestPoliciesCommandOutput,
325
- } from "./commands/ListOriginRequestPoliciesCommand";
326
- import {
327
- ListPublicKeysCommand,
328
- ListPublicKeysCommandInput,
329
- ListPublicKeysCommandOutput,
330
- } from "./commands/ListPublicKeysCommand";
331
- import {
332
- ListRealtimeLogConfigsCommand,
333
- ListRealtimeLogConfigsCommandInput,
334
- ListRealtimeLogConfigsCommandOutput,
335
- } from "./commands/ListRealtimeLogConfigsCommand";
336
- import {
337
- ListStreamingDistributionsCommand,
338
- ListStreamingDistributionsCommandInput,
339
- ListStreamingDistributionsCommandOutput,
340
- } from "./commands/ListStreamingDistributionsCommand";
341
- import {
342
- ListTagsForResourceCommand,
343
- ListTagsForResourceCommandInput,
344
- ListTagsForResourceCommandOutput,
345
- } from "./commands/ListTagsForResourceCommand";
346
- import {
347
- PublishFunctionCommand,
348
- PublishFunctionCommandInput,
349
- PublishFunctionCommandOutput,
350
- } from "./commands/PublishFunctionCommand";
351
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
352
- import {
353
- TestFunctionCommand,
354
- TestFunctionCommandInput,
355
- TestFunctionCommandOutput,
356
- } from "./commands/TestFunctionCommand";
357
- import {
358
- UntagResourceCommand,
359
- UntagResourceCommandInput,
360
- UntagResourceCommandOutput,
361
- } from "./commands/UntagResourceCommand";
362
- import {
363
- UpdateCachePolicyCommand,
364
- UpdateCachePolicyCommandInput,
365
- UpdateCachePolicyCommandOutput,
366
- } from "./commands/UpdateCachePolicyCommand";
367
- import {
368
- UpdateCloudFrontOriginAccessIdentityCommand,
369
- UpdateCloudFrontOriginAccessIdentityCommandInput,
370
- UpdateCloudFrontOriginAccessIdentityCommandOutput,
371
- } from "./commands/UpdateCloudFrontOriginAccessIdentityCommand";
372
- import {
373
- UpdateDistributionCommand,
374
- UpdateDistributionCommandInput,
375
- UpdateDistributionCommandOutput,
376
- } from "./commands/UpdateDistributionCommand";
377
- import {
378
- UpdateFieldLevelEncryptionConfigCommand,
379
- UpdateFieldLevelEncryptionConfigCommandInput,
380
- UpdateFieldLevelEncryptionConfigCommandOutput,
381
- } from "./commands/UpdateFieldLevelEncryptionConfigCommand";
382
- import {
383
- UpdateFieldLevelEncryptionProfileCommand,
384
- UpdateFieldLevelEncryptionProfileCommandInput,
385
- UpdateFieldLevelEncryptionProfileCommandOutput,
386
- } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
387
- import {
388
- UpdateFunctionCommand,
389
- UpdateFunctionCommandInput,
390
- UpdateFunctionCommandOutput,
391
- } from "./commands/UpdateFunctionCommand";
392
- import {
393
- UpdateKeyGroupCommand,
394
- UpdateKeyGroupCommandInput,
395
- UpdateKeyGroupCommandOutput,
396
- } from "./commands/UpdateKeyGroupCommand";
397
- import {
398
- UpdateOriginRequestPolicyCommand,
399
- UpdateOriginRequestPolicyCommandInput,
400
- UpdateOriginRequestPolicyCommandOutput,
401
- } from "./commands/UpdateOriginRequestPolicyCommand";
402
- import {
403
- UpdatePublicKeyCommand,
404
- UpdatePublicKeyCommandInput,
405
- UpdatePublicKeyCommandOutput,
406
- } from "./commands/UpdatePublicKeyCommand";
407
- import {
408
- UpdateRealtimeLogConfigCommand,
409
- UpdateRealtimeLogConfigCommandInput,
410
- UpdateRealtimeLogConfigCommandOutput,
411
- } from "./commands/UpdateRealtimeLogConfigCommand";
412
- import {
413
- UpdateStreamingDistributionCommand,
414
- UpdateStreamingDistributionCommandInput,
415
- UpdateStreamingDistributionCommandOutput,
416
- } from "./commands/UpdateStreamingDistributionCommand";
417
-
418
- /**
419
- * <fullname>Amazon CloudFront</fullname>
420
- * <p>This is the <i>Amazon CloudFront API Reference</i>. This guide
421
- * is for developers who need detailed information about
422
- * CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the <i>Amazon CloudFront Developer Guide</i>.</p>
423
- */
424
- export class CloudFront extends CloudFrontClient {
425
- /**
426
- * <p>Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront
427
- * distribution.</p>
428
- * <p>With this operation you can move an alias that’s already in use on a CloudFront distribution
429
- * to a different distribution in one step. This prevents the downtime that could occur if
430
- * you first remove the alias from one distribution and then separately add the alias to
431
- * another distribution.</p>
432
- * <p>To use this operation to associate an alias with a distribution, you provide the alias
433
- * and the ID of the target distribution for the alias. For more information, including how
434
- * to set up the target distribution, prerequisites that you must complete, and other
435
- * restrictions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving an alternate domain name to a different distribution</a>
436
- * in the <i>Amazon CloudFront Developer Guide</i>.</p>
437
- */
438
- public associateAlias(
439
- args: AssociateAliasCommandInput,
440
- options?: __HttpHandlerOptions
441
- ): Promise<AssociateAliasCommandOutput>;
442
- public associateAlias(
443
- args: AssociateAliasCommandInput,
444
- cb: (err: any, data?: AssociateAliasCommandOutput) => void
445
- ): void;
446
- public associateAlias(
447
- args: AssociateAliasCommandInput,
448
- options: __HttpHandlerOptions,
449
- cb: (err: any, data?: AssociateAliasCommandOutput) => void
450
- ): void;
451
- public associateAlias(
452
- args: AssociateAliasCommandInput,
453
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateAliasCommandOutput) => void),
454
- cb?: (err: any, data?: AssociateAliasCommandOutput) => void
455
- ): Promise<AssociateAliasCommandOutput> | void {
456
- const command = new AssociateAliasCommand(args);
457
- if (typeof optionsOrCb === "function") {
458
- this.send(command, optionsOrCb);
459
- } else if (typeof cb === "function") {
460
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
461
- this.send(command, optionsOrCb || {}, cb);
462
- } else {
463
- return this.send(command, optionsOrCb);
464
- }
465
- }
466
-
467
- /**
468
- * <p>Creates a cache policy.</p>
469
- * <p>After you create a cache policy, you can attach it to one or more cache behaviors. When it’s
470
- * attached to a cache behavior, the cache policy determines the following:</p>
471
- * <ul>
472
- * <li>
473
- * <p>The values that CloudFront includes in the <i>cache key</i>. These values can
474
- * include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to
475
- * find an object in its cache that it can return to the viewer.</p>
476
- * </li>
477
- * <li>
478
- * <p>The default, minimum, and maximum time to live (TTL) values that you want objects to stay
479
- * in the CloudFront cache.</p>
480
- * </li>
481
- * </ul>
482
- * <p>The headers, cookies, and query strings that are included in the cache key are automatically
483
- * included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t
484
- * find an object in its cache that matches the request’s cache key. If you want to send
485
- * values to the origin but <i>not</i> include them in the cache key, use
486
- * <code>OriginRequestPolicy</code>.</p>
487
- * <p>For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling the cache key</a> in the
488
- * <i>Amazon CloudFront Developer Guide</i>.</p>
489
- */
490
- public createCachePolicy(
491
- args: CreateCachePolicyCommandInput,
492
- options?: __HttpHandlerOptions
493
- ): Promise<CreateCachePolicyCommandOutput>;
494
- public createCachePolicy(
495
- args: CreateCachePolicyCommandInput,
496
- cb: (err: any, data?: CreateCachePolicyCommandOutput) => void
497
- ): void;
498
- public createCachePolicy(
499
- args: CreateCachePolicyCommandInput,
500
- options: __HttpHandlerOptions,
501
- cb: (err: any, data?: CreateCachePolicyCommandOutput) => void
502
- ): void;
503
- public createCachePolicy(
504
- args: CreateCachePolicyCommandInput,
505
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCachePolicyCommandOutput) => void),
506
- cb?: (err: any, data?: CreateCachePolicyCommandOutput) => void
507
- ): Promise<CreateCachePolicyCommandOutput> | void {
508
- const command = new CreateCachePolicyCommand(args);
509
- if (typeof optionsOrCb === "function") {
510
- this.send(command, optionsOrCb);
511
- } else if (typeof cb === "function") {
512
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
513
- this.send(command, optionsOrCb || {}, cb);
514
- } else {
515
- return this.send(command, optionsOrCb);
516
- }
517
- }
518
-
519
- /**
520
- * <p>Creates a new origin access identity. If you're using Amazon S3 for your origin, you can
521
- * use an origin access identity to require users to access your content using a CloudFront URL instead
522
- * of the Amazon S3 URL. For more information about how to use origin access identities, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private Content through CloudFront</a> in the
523
- * <i>Amazon CloudFront Developer Guide</i>.</p>
524
- */
525
- public createCloudFrontOriginAccessIdentity(
526
- args: CreateCloudFrontOriginAccessIdentityCommandInput,
527
- options?: __HttpHandlerOptions
528
- ): Promise<CreateCloudFrontOriginAccessIdentityCommandOutput>;
529
- public createCloudFrontOriginAccessIdentity(
530
- args: CreateCloudFrontOriginAccessIdentityCommandInput,
531
- cb: (err: any, data?: CreateCloudFrontOriginAccessIdentityCommandOutput) => void
532
- ): void;
533
- public createCloudFrontOriginAccessIdentity(
534
- args: CreateCloudFrontOriginAccessIdentityCommandInput,
535
- options: __HttpHandlerOptions,
536
- cb: (err: any, data?: CreateCloudFrontOriginAccessIdentityCommandOutput) => void
537
- ): void;
538
- public createCloudFrontOriginAccessIdentity(
539
- args: CreateCloudFrontOriginAccessIdentityCommandInput,
540
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCloudFrontOriginAccessIdentityCommandOutput) => void),
541
- cb?: (err: any, data?: CreateCloudFrontOriginAccessIdentityCommandOutput) => void
542
- ): Promise<CreateCloudFrontOriginAccessIdentityCommandOutput> | void {
543
- const command = new CreateCloudFrontOriginAccessIdentityCommand(args);
544
- if (typeof optionsOrCb === "function") {
545
- this.send(command, optionsOrCb);
546
- } else if (typeof cb === "function") {
547
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
548
- this.send(command, optionsOrCb || {}, cb);
549
- } else {
550
- return this.send(command, optionsOrCb);
551
- }
552
- }
553
-
554
- /**
555
- * <p>Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you
556
- * want content to be delivered from, and the details about how to track and manage content delivery. Send a <code>POST</code> request to the
557
- * <code>/<i>CloudFront API version</i>/distribution</code>/<code>distribution ID</code> resource.</p>
558
- * <important>
559
- * <p>When you update a distribution, there are more required fields than when you create a distribution.
560
- * When you update your distribution by using
561
- * <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html">UpdateDistribution</a>,
562
- * follow the steps included
563
- * in the documentation to get the current configuration
564
- * and then make your updates. This helps to make sure that you include all of the required fields. To view a summary,
565
- * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html">Required
566
- * Fields for Create Distribution and Update Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
567
- * </important>
568
- */
569
- public createDistribution(
570
- args: CreateDistributionCommandInput,
571
- options?: __HttpHandlerOptions
572
- ): Promise<CreateDistributionCommandOutput>;
573
- public createDistribution(
574
- args: CreateDistributionCommandInput,
575
- cb: (err: any, data?: CreateDistributionCommandOutput) => void
576
- ): void;
577
- public createDistribution(
578
- args: CreateDistributionCommandInput,
579
- options: __HttpHandlerOptions,
580
- cb: (err: any, data?: CreateDistributionCommandOutput) => void
581
- ): void;
582
- public createDistribution(
583
- args: CreateDistributionCommandInput,
584
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDistributionCommandOutput) => void),
585
- cb?: (err: any, data?: CreateDistributionCommandOutput) => void
586
- ): Promise<CreateDistributionCommandOutput> | void {
587
- const command = new CreateDistributionCommand(args);
588
- if (typeof optionsOrCb === "function") {
589
- this.send(command, optionsOrCb);
590
- } else if (typeof cb === "function") {
591
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
- this.send(command, optionsOrCb || {}, cb);
593
- } else {
594
- return this.send(command, optionsOrCb);
595
- }
596
- }
597
-
598
- /**
599
- * <p>Create a new distribution with tags.</p>
600
- */
601
- public createDistributionWithTags(
602
- args: CreateDistributionWithTagsCommandInput,
603
- options?: __HttpHandlerOptions
604
- ): Promise<CreateDistributionWithTagsCommandOutput>;
605
- public createDistributionWithTags(
606
- args: CreateDistributionWithTagsCommandInput,
607
- cb: (err: any, data?: CreateDistributionWithTagsCommandOutput) => void
608
- ): void;
609
- public createDistributionWithTags(
610
- args: CreateDistributionWithTagsCommandInput,
611
- options: __HttpHandlerOptions,
612
- cb: (err: any, data?: CreateDistributionWithTagsCommandOutput) => void
613
- ): void;
614
- public createDistributionWithTags(
615
- args: CreateDistributionWithTagsCommandInput,
616
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDistributionWithTagsCommandOutput) => void),
617
- cb?: (err: any, data?: CreateDistributionWithTagsCommandOutput) => void
618
- ): Promise<CreateDistributionWithTagsCommandOutput> | void {
619
- const command = new CreateDistributionWithTagsCommand(args);
620
- if (typeof optionsOrCb === "function") {
621
- this.send(command, optionsOrCb);
622
- } else if (typeof cb === "function") {
623
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
624
- this.send(command, optionsOrCb || {}, cb);
625
- } else {
626
- return this.send(command, optionsOrCb);
627
- }
628
- }
629
-
630
- /**
631
- * <p>Create a new field-level encryption configuration.</p>
632
- */
633
- public createFieldLevelEncryptionConfig(
634
- args: CreateFieldLevelEncryptionConfigCommandInput,
635
- options?: __HttpHandlerOptions
636
- ): Promise<CreateFieldLevelEncryptionConfigCommandOutput>;
637
- public createFieldLevelEncryptionConfig(
638
- args: CreateFieldLevelEncryptionConfigCommandInput,
639
- cb: (err: any, data?: CreateFieldLevelEncryptionConfigCommandOutput) => void
640
- ): void;
641
- public createFieldLevelEncryptionConfig(
642
- args: CreateFieldLevelEncryptionConfigCommandInput,
643
- options: __HttpHandlerOptions,
644
- cb: (err: any, data?: CreateFieldLevelEncryptionConfigCommandOutput) => void
645
- ): void;
646
- public createFieldLevelEncryptionConfig(
647
- args: CreateFieldLevelEncryptionConfigCommandInput,
648
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateFieldLevelEncryptionConfigCommandOutput) => void),
649
- cb?: (err: any, data?: CreateFieldLevelEncryptionConfigCommandOutput) => void
650
- ): Promise<CreateFieldLevelEncryptionConfigCommandOutput> | void {
651
- const command = new CreateFieldLevelEncryptionConfigCommand(args);
652
- if (typeof optionsOrCb === "function") {
653
- this.send(command, optionsOrCb);
654
- } else if (typeof cb === "function") {
655
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
656
- this.send(command, optionsOrCb || {}, cb);
657
- } else {
658
- return this.send(command, optionsOrCb);
659
- }
660
- }
661
-
662
- /**
663
- * <p>Create a field-level encryption profile.</p>
664
- */
665
- public createFieldLevelEncryptionProfile(
666
- args: CreateFieldLevelEncryptionProfileCommandInput,
667
- options?: __HttpHandlerOptions
668
- ): Promise<CreateFieldLevelEncryptionProfileCommandOutput>;
669
- public createFieldLevelEncryptionProfile(
670
- args: CreateFieldLevelEncryptionProfileCommandInput,
671
- cb: (err: any, data?: CreateFieldLevelEncryptionProfileCommandOutput) => void
672
- ): void;
673
- public createFieldLevelEncryptionProfile(
674
- args: CreateFieldLevelEncryptionProfileCommandInput,
675
- options: __HttpHandlerOptions,
676
- cb: (err: any, data?: CreateFieldLevelEncryptionProfileCommandOutput) => void
677
- ): void;
678
- public createFieldLevelEncryptionProfile(
679
- args: CreateFieldLevelEncryptionProfileCommandInput,
680
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateFieldLevelEncryptionProfileCommandOutput) => void),
681
- cb?: (err: any, data?: CreateFieldLevelEncryptionProfileCommandOutput) => void
682
- ): Promise<CreateFieldLevelEncryptionProfileCommandOutput> | void {
683
- const command = new CreateFieldLevelEncryptionProfileCommand(args);
684
- if (typeof optionsOrCb === "function") {
685
- this.send(command, optionsOrCb);
686
- } else if (typeof cb === "function") {
687
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
688
- this.send(command, optionsOrCb || {}, cb);
689
- } else {
690
- return this.send(command, optionsOrCb);
691
- }
692
- }
693
-
694
- /**
695
- * <p>Creates a CloudFront function.</p>
696
- * <p>To create a function, you provide the function code and some configuration information
697
- * about the function. The response contains an Amazon Resource Name (ARN) that uniquely
698
- * identifies the function.</p>
699
- * <p>When you create a function, it’s in the <code>DEVELOPMENT</code> stage. In this stage, you
700
- * can test the function with <code>TestFunction</code>, and update it with
701
- * <code>UpdateFunction</code>.</p>
702
- * <p>When you’re ready to use your function with a CloudFront distribution, use
703
- * <code>PublishFunction</code> to copy the function from the <code>DEVELOPMENT</code>
704
- * stage to <code>LIVE</code>. When it’s live, you can attach the function to a
705
- * distribution’s cache behavior, using the function’s ARN.</p>
706
- */
707
- public createFunction(
708
- args: CreateFunctionCommandInput,
709
- options?: __HttpHandlerOptions
710
- ): Promise<CreateFunctionCommandOutput>;
711
- public createFunction(
712
- args: CreateFunctionCommandInput,
713
- cb: (err: any, data?: CreateFunctionCommandOutput) => void
714
- ): void;
715
- public createFunction(
716
- args: CreateFunctionCommandInput,
717
- options: __HttpHandlerOptions,
718
- cb: (err: any, data?: CreateFunctionCommandOutput) => void
719
- ): void;
720
- public createFunction(
721
- args: CreateFunctionCommandInput,
722
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateFunctionCommandOutput) => void),
723
- cb?: (err: any, data?: CreateFunctionCommandOutput) => void
724
- ): Promise<CreateFunctionCommandOutput> | void {
725
- const command = new CreateFunctionCommand(args);
726
- if (typeof optionsOrCb === "function") {
727
- this.send(command, optionsOrCb);
728
- } else if (typeof cb === "function") {
729
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
730
- this.send(command, optionsOrCb || {}, cb);
731
- } else {
732
- return this.send(command, optionsOrCb);
733
- }
734
- }
735
-
736
- /**
737
- * <p>Create a new invalidation. </p>
738
- */
739
- public createInvalidation(
740
- args: CreateInvalidationCommandInput,
741
- options?: __HttpHandlerOptions
742
- ): Promise<CreateInvalidationCommandOutput>;
743
- public createInvalidation(
744
- args: CreateInvalidationCommandInput,
745
- cb: (err: any, data?: CreateInvalidationCommandOutput) => void
746
- ): void;
747
- public createInvalidation(
748
- args: CreateInvalidationCommandInput,
749
- options: __HttpHandlerOptions,
750
- cb: (err: any, data?: CreateInvalidationCommandOutput) => void
751
- ): void;
752
- public createInvalidation(
753
- args: CreateInvalidationCommandInput,
754
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateInvalidationCommandOutput) => void),
755
- cb?: (err: any, data?: CreateInvalidationCommandOutput) => void
756
- ): Promise<CreateInvalidationCommandOutput> | void {
757
- const command = new CreateInvalidationCommand(args);
758
- if (typeof optionsOrCb === "function") {
759
- this.send(command, optionsOrCb);
760
- } else if (typeof cb === "function") {
761
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
762
- this.send(command, optionsOrCb || {}, cb);
763
- } else {
764
- return this.send(command, optionsOrCb);
765
- }
766
- }
767
-
768
- /**
769
- * <p>Creates a key group that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront signed URLs and signed cookies</a>.</p>
770
- * <p>To create a key group, you must specify at least one public key for the key group. After you
771
- * create a key group, you can reference it from one or more cache behaviors. When you
772
- * reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies
773
- * for all requests that match the cache behavior. The URLs or cookies must be signed with
774
- * a private key whose corresponding public key is in the key group. The signed URL or
775
- * cookie contains information about which public key CloudFront should use to verify the
776
- * signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving private content</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
777
- */
778
- public createKeyGroup(
779
- args: CreateKeyGroupCommandInput,
780
- options?: __HttpHandlerOptions
781
- ): Promise<CreateKeyGroupCommandOutput>;
782
- public createKeyGroup(
783
- args: CreateKeyGroupCommandInput,
784
- cb: (err: any, data?: CreateKeyGroupCommandOutput) => void
785
- ): void;
786
- public createKeyGroup(
787
- args: CreateKeyGroupCommandInput,
788
- options: __HttpHandlerOptions,
789
- cb: (err: any, data?: CreateKeyGroupCommandOutput) => void
790
- ): void;
791
- public createKeyGroup(
792
- args: CreateKeyGroupCommandInput,
793
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateKeyGroupCommandOutput) => void),
794
- cb?: (err: any, data?: CreateKeyGroupCommandOutput) => void
795
- ): Promise<CreateKeyGroupCommandOutput> | void {
796
- const command = new CreateKeyGroupCommand(args);
797
- if (typeof optionsOrCb === "function") {
798
- this.send(command, optionsOrCb);
799
- } else if (typeof cb === "function") {
800
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
801
- this.send(command, optionsOrCb || {}, cb);
802
- } else {
803
- return this.send(command, optionsOrCb);
804
- }
805
- }
806
-
807
- /**
808
- * <p>Enables additional CloudWatch metrics for the specified CloudFront distribution. The
809
- * additional metrics incur an additional cost.</p>
810
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional">Viewing additional CloudFront distribution metrics</a> in the
811
- * <i>Amazon CloudFront Developer Guide</i>.</p>
812
- */
813
- public createMonitoringSubscription(
814
- args: CreateMonitoringSubscriptionCommandInput,
815
- options?: __HttpHandlerOptions
816
- ): Promise<CreateMonitoringSubscriptionCommandOutput>;
817
- public createMonitoringSubscription(
818
- args: CreateMonitoringSubscriptionCommandInput,
819
- cb: (err: any, data?: CreateMonitoringSubscriptionCommandOutput) => void
820
- ): void;
821
- public createMonitoringSubscription(
822
- args: CreateMonitoringSubscriptionCommandInput,
823
- options: __HttpHandlerOptions,
824
- cb: (err: any, data?: CreateMonitoringSubscriptionCommandOutput) => void
825
- ): void;
826
- public createMonitoringSubscription(
827
- args: CreateMonitoringSubscriptionCommandInput,
828
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateMonitoringSubscriptionCommandOutput) => void),
829
- cb?: (err: any, data?: CreateMonitoringSubscriptionCommandOutput) => void
830
- ): Promise<CreateMonitoringSubscriptionCommandOutput> | void {
831
- const command = new CreateMonitoringSubscriptionCommand(args);
832
- if (typeof optionsOrCb === "function") {
833
- this.send(command, optionsOrCb);
834
- } else if (typeof cb === "function") {
835
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
836
- this.send(command, optionsOrCb || {}, cb);
837
- } else {
838
- return this.send(command, optionsOrCb);
839
- }
840
- }
841
-
842
- /**
843
- * <p>Creates an origin request policy.</p>
844
- * <p>After you create an origin request policy, you can attach it to one or more cache behaviors.
845
- * When it’s attached to a cache behavior, the origin request policy determines the values
846
- * that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends
847
- * to the origin includes the following:</p>
848
- * <ul>
849
- * <li>
850
- * <p>The request body and the URL path (without the domain name) from the viewer
851
- * request.</p>
852
- * </li>
853
- * <li>
854
- * <p>The headers that CloudFront automatically includes in every origin request, including
855
- * <code>Host</code>, <code>User-Agent</code>, and <code>X-Amz-Cf-Id</code>.</p>
856
- * </li>
857
- * <li>
858
- * <p>All HTTP headers, cookies, and URL query strings that are specified in the cache policy or
859
- * the origin request policy. These can include items from the viewer request and,
860
- * in the case of headers, additional ones that are added by CloudFront.</p>
861
- * </li>
862
- * </ul>
863
- * <p>CloudFront sends a request when it can’t find a valid object in its cache that matches the
864
- * request. If you want to send values to the origin and also include them in the cache
865
- * key, use <code>CachePolicy</code>.</p>
866
- * <p>For more information about origin request policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html">Controlling origin requests</a> in the
867
- * <i>Amazon CloudFront Developer Guide</i>.</p>
868
- */
869
- public createOriginRequestPolicy(
870
- args: CreateOriginRequestPolicyCommandInput,
871
- options?: __HttpHandlerOptions
872
- ): Promise<CreateOriginRequestPolicyCommandOutput>;
873
- public createOriginRequestPolicy(
874
- args: CreateOriginRequestPolicyCommandInput,
875
- cb: (err: any, data?: CreateOriginRequestPolicyCommandOutput) => void
876
- ): void;
877
- public createOriginRequestPolicy(
878
- args: CreateOriginRequestPolicyCommandInput,
879
- options: __HttpHandlerOptions,
880
- cb: (err: any, data?: CreateOriginRequestPolicyCommandOutput) => void
881
- ): void;
882
- public createOriginRequestPolicy(
883
- args: CreateOriginRequestPolicyCommandInput,
884
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateOriginRequestPolicyCommandOutput) => void),
885
- cb?: (err: any, data?: CreateOriginRequestPolicyCommandOutput) => void
886
- ): Promise<CreateOriginRequestPolicyCommandOutput> | void {
887
- const command = new CreateOriginRequestPolicyCommand(args);
888
- if (typeof optionsOrCb === "function") {
889
- this.send(command, optionsOrCb);
890
- } else if (typeof cb === "function") {
891
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
892
- this.send(command, optionsOrCb || {}, cb);
893
- } else {
894
- return this.send(command, optionsOrCb);
895
- }
896
- }
897
-
898
- /**
899
- * <p>Uploads a public key to CloudFront that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level encryption</a>.</p>
900
- */
901
- public createPublicKey(
902
- args: CreatePublicKeyCommandInput,
903
- options?: __HttpHandlerOptions
904
- ): Promise<CreatePublicKeyCommandOutput>;
905
- public createPublicKey(
906
- args: CreatePublicKeyCommandInput,
907
- cb: (err: any, data?: CreatePublicKeyCommandOutput) => void
908
- ): void;
909
- public createPublicKey(
910
- args: CreatePublicKeyCommandInput,
911
- options: __HttpHandlerOptions,
912
- cb: (err: any, data?: CreatePublicKeyCommandOutput) => void
913
- ): void;
914
- public createPublicKey(
915
- args: CreatePublicKeyCommandInput,
916
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreatePublicKeyCommandOutput) => void),
917
- cb?: (err: any, data?: CreatePublicKeyCommandOutput) => void
918
- ): Promise<CreatePublicKeyCommandOutput> | void {
919
- const command = new CreatePublicKeyCommand(args);
920
- if (typeof optionsOrCb === "function") {
921
- this.send(command, optionsOrCb);
922
- } else if (typeof cb === "function") {
923
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
924
- this.send(command, optionsOrCb || {}, cb);
925
- } else {
926
- return this.send(command, optionsOrCb);
927
- }
928
- }
929
-
930
- /**
931
- * <p>Creates a real-time log configuration.</p>
932
- * <p>After you create a real-time log configuration, you can attach it to one or more cache
933
- * behaviors to send real-time log data to the specified Amazon Kinesis data stream.</p>
934
- * <p>For more information about real-time log configurations, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time logs</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
935
- */
936
- public createRealtimeLogConfig(
937
- args: CreateRealtimeLogConfigCommandInput,
938
- options?: __HttpHandlerOptions
939
- ): Promise<CreateRealtimeLogConfigCommandOutput>;
940
- public createRealtimeLogConfig(
941
- args: CreateRealtimeLogConfigCommandInput,
942
- cb: (err: any, data?: CreateRealtimeLogConfigCommandOutput) => void
943
- ): void;
944
- public createRealtimeLogConfig(
945
- args: CreateRealtimeLogConfigCommandInput,
946
- options: __HttpHandlerOptions,
947
- cb: (err: any, data?: CreateRealtimeLogConfigCommandOutput) => void
948
- ): void;
949
- public createRealtimeLogConfig(
950
- args: CreateRealtimeLogConfigCommandInput,
951
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRealtimeLogConfigCommandOutput) => void),
952
- cb?: (err: any, data?: CreateRealtimeLogConfigCommandOutput) => void
953
- ): Promise<CreateRealtimeLogConfigCommandOutput> | void {
954
- const command = new CreateRealtimeLogConfigCommand(args);
955
- if (typeof optionsOrCb === "function") {
956
- this.send(command, optionsOrCb);
957
- } else if (typeof cb === "function") {
958
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
959
- this.send(command, optionsOrCb || {}, cb);
960
- } else {
961
- return this.send(command, optionsOrCb);
962
- }
963
- }
964
-
965
- /**
966
- * <p>This API is deprecated.
967
- * Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020.
968
- * For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read the announcement</a> on the Amazon CloudFront discussion forum.</p>
969
- */
970
- public createStreamingDistribution(
971
- args: CreateStreamingDistributionCommandInput,
972
- options?: __HttpHandlerOptions
973
- ): Promise<CreateStreamingDistributionCommandOutput>;
974
- public createStreamingDistribution(
975
- args: CreateStreamingDistributionCommandInput,
976
- cb: (err: any, data?: CreateStreamingDistributionCommandOutput) => void
977
- ): void;
978
- public createStreamingDistribution(
979
- args: CreateStreamingDistributionCommandInput,
980
- options: __HttpHandlerOptions,
981
- cb: (err: any, data?: CreateStreamingDistributionCommandOutput) => void
982
- ): void;
983
- public createStreamingDistribution(
984
- args: CreateStreamingDistributionCommandInput,
985
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateStreamingDistributionCommandOutput) => void),
986
- cb?: (err: any, data?: CreateStreamingDistributionCommandOutput) => void
987
- ): Promise<CreateStreamingDistributionCommandOutput> | void {
988
- const command = new CreateStreamingDistributionCommand(args);
989
- if (typeof optionsOrCb === "function") {
990
- this.send(command, optionsOrCb);
991
- } else if (typeof cb === "function") {
992
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
993
- this.send(command, optionsOrCb || {}, cb);
994
- } else {
995
- return this.send(command, optionsOrCb);
996
- }
997
- }
998
-
999
- /**
1000
- * <p>This API is deprecated.
1001
- * Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020.
1002
- * For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read the announcement</a> on the Amazon CloudFront discussion forum.</p>
1003
- */
1004
- public createStreamingDistributionWithTags(
1005
- args: CreateStreamingDistributionWithTagsCommandInput,
1006
- options?: __HttpHandlerOptions
1007
- ): Promise<CreateStreamingDistributionWithTagsCommandOutput>;
1008
- public createStreamingDistributionWithTags(
1009
- args: CreateStreamingDistributionWithTagsCommandInput,
1010
- cb: (err: any, data?: CreateStreamingDistributionWithTagsCommandOutput) => void
1011
- ): void;
1012
- public createStreamingDistributionWithTags(
1013
- args: CreateStreamingDistributionWithTagsCommandInput,
1014
- options: __HttpHandlerOptions,
1015
- cb: (err: any, data?: CreateStreamingDistributionWithTagsCommandOutput) => void
1016
- ): void;
1017
- public createStreamingDistributionWithTags(
1018
- args: CreateStreamingDistributionWithTagsCommandInput,
1019
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateStreamingDistributionWithTagsCommandOutput) => void),
1020
- cb?: (err: any, data?: CreateStreamingDistributionWithTagsCommandOutput) => void
1021
- ): Promise<CreateStreamingDistributionWithTagsCommandOutput> | void {
1022
- const command = new CreateStreamingDistributionWithTagsCommand(args);
1023
- if (typeof optionsOrCb === "function") {
1024
- this.send(command, optionsOrCb);
1025
- } else if (typeof cb === "function") {
1026
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1027
- this.send(command, optionsOrCb || {}, cb);
1028
- } else {
1029
- return this.send(command, optionsOrCb);
1030
- }
1031
- }
1032
-
1033
- /**
1034
- * <p>Deletes a cache policy.</p>
1035
- * <p>You cannot delete a cache policy if it’s attached to a cache behavior. First update your
1036
- * distributions to remove the cache policy from all cache behaviors, then delete the cache
1037
- * policy.</p>
1038
- * <p>To delete a cache policy, you must provide the policy’s identifier and version. To get these
1039
- * values, you can use <code>ListCachePolicies</code> or
1040
- * <code>GetCachePolicy</code>.</p>
1041
- */
1042
- public deleteCachePolicy(
1043
- args: DeleteCachePolicyCommandInput,
1044
- options?: __HttpHandlerOptions
1045
- ): Promise<DeleteCachePolicyCommandOutput>;
1046
- public deleteCachePolicy(
1047
- args: DeleteCachePolicyCommandInput,
1048
- cb: (err: any, data?: DeleteCachePolicyCommandOutput) => void
1049
- ): void;
1050
- public deleteCachePolicy(
1051
- args: DeleteCachePolicyCommandInput,
1052
- options: __HttpHandlerOptions,
1053
- cb: (err: any, data?: DeleteCachePolicyCommandOutput) => void
1054
- ): void;
1055
- public deleteCachePolicy(
1056
- args: DeleteCachePolicyCommandInput,
1057
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteCachePolicyCommandOutput) => void),
1058
- cb?: (err: any, data?: DeleteCachePolicyCommandOutput) => void
1059
- ): Promise<DeleteCachePolicyCommandOutput> | void {
1060
- const command = new DeleteCachePolicyCommand(args);
1061
- if (typeof optionsOrCb === "function") {
1062
- this.send(command, optionsOrCb);
1063
- } else if (typeof cb === "function") {
1064
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1065
- this.send(command, optionsOrCb || {}, cb);
1066
- } else {
1067
- return this.send(command, optionsOrCb);
1068
- }
1069
- }
1070
-
1071
- /**
1072
- * <p>Delete an origin access identity. </p>
1073
- */
1074
- public deleteCloudFrontOriginAccessIdentity(
1075
- args: DeleteCloudFrontOriginAccessIdentityCommandInput,
1076
- options?: __HttpHandlerOptions
1077
- ): Promise<DeleteCloudFrontOriginAccessIdentityCommandOutput>;
1078
- public deleteCloudFrontOriginAccessIdentity(
1079
- args: DeleteCloudFrontOriginAccessIdentityCommandInput,
1080
- cb: (err: any, data?: DeleteCloudFrontOriginAccessIdentityCommandOutput) => void
1081
- ): void;
1082
- public deleteCloudFrontOriginAccessIdentity(
1083
- args: DeleteCloudFrontOriginAccessIdentityCommandInput,
1084
- options: __HttpHandlerOptions,
1085
- cb: (err: any, data?: DeleteCloudFrontOriginAccessIdentityCommandOutput) => void
1086
- ): void;
1087
- public deleteCloudFrontOriginAccessIdentity(
1088
- args: DeleteCloudFrontOriginAccessIdentityCommandInput,
1089
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteCloudFrontOriginAccessIdentityCommandOutput) => void),
1090
- cb?: (err: any, data?: DeleteCloudFrontOriginAccessIdentityCommandOutput) => void
1091
- ): Promise<DeleteCloudFrontOriginAccessIdentityCommandOutput> | void {
1092
- const command = new DeleteCloudFrontOriginAccessIdentityCommand(args);
1093
- if (typeof optionsOrCb === "function") {
1094
- this.send(command, optionsOrCb);
1095
- } else if (typeof cb === "function") {
1096
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1097
- this.send(command, optionsOrCb || {}, cb);
1098
- } else {
1099
- return this.send(command, optionsOrCb);
1100
- }
1101
- }
1102
-
1103
- /**
1104
- * <p>Delete a distribution. </p>
1105
- */
1106
- public deleteDistribution(
1107
- args: DeleteDistributionCommandInput,
1108
- options?: __HttpHandlerOptions
1109
- ): Promise<DeleteDistributionCommandOutput>;
1110
- public deleteDistribution(
1111
- args: DeleteDistributionCommandInput,
1112
- cb: (err: any, data?: DeleteDistributionCommandOutput) => void
1113
- ): void;
1114
- public deleteDistribution(
1115
- args: DeleteDistributionCommandInput,
1116
- options: __HttpHandlerOptions,
1117
- cb: (err: any, data?: DeleteDistributionCommandOutput) => void
1118
- ): void;
1119
- public deleteDistribution(
1120
- args: DeleteDistributionCommandInput,
1121
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDistributionCommandOutput) => void),
1122
- cb?: (err: any, data?: DeleteDistributionCommandOutput) => void
1123
- ): Promise<DeleteDistributionCommandOutput> | void {
1124
- const command = new DeleteDistributionCommand(args);
1125
- if (typeof optionsOrCb === "function") {
1126
- this.send(command, optionsOrCb);
1127
- } else if (typeof cb === "function") {
1128
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1129
- this.send(command, optionsOrCb || {}, cb);
1130
- } else {
1131
- return this.send(command, optionsOrCb);
1132
- }
1133
- }
1134
-
1135
- /**
1136
- * <p>Remove a field-level encryption configuration.</p>
1137
- */
1138
- public deleteFieldLevelEncryptionConfig(
1139
- args: DeleteFieldLevelEncryptionConfigCommandInput,
1140
- options?: __HttpHandlerOptions
1141
- ): Promise<DeleteFieldLevelEncryptionConfigCommandOutput>;
1142
- public deleteFieldLevelEncryptionConfig(
1143
- args: DeleteFieldLevelEncryptionConfigCommandInput,
1144
- cb: (err: any, data?: DeleteFieldLevelEncryptionConfigCommandOutput) => void
1145
- ): void;
1146
- public deleteFieldLevelEncryptionConfig(
1147
- args: DeleteFieldLevelEncryptionConfigCommandInput,
1148
- options: __HttpHandlerOptions,
1149
- cb: (err: any, data?: DeleteFieldLevelEncryptionConfigCommandOutput) => void
1150
- ): void;
1151
- public deleteFieldLevelEncryptionConfig(
1152
- args: DeleteFieldLevelEncryptionConfigCommandInput,
1153
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFieldLevelEncryptionConfigCommandOutput) => void),
1154
- cb?: (err: any, data?: DeleteFieldLevelEncryptionConfigCommandOutput) => void
1155
- ): Promise<DeleteFieldLevelEncryptionConfigCommandOutput> | void {
1156
- const command = new DeleteFieldLevelEncryptionConfigCommand(args);
1157
- if (typeof optionsOrCb === "function") {
1158
- this.send(command, optionsOrCb);
1159
- } else if (typeof cb === "function") {
1160
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1161
- this.send(command, optionsOrCb || {}, cb);
1162
- } else {
1163
- return this.send(command, optionsOrCb);
1164
- }
1165
- }
1166
-
1167
- /**
1168
- * <p>Remove a field-level encryption profile.</p>
1169
- */
1170
- public deleteFieldLevelEncryptionProfile(
1171
- args: DeleteFieldLevelEncryptionProfileCommandInput,
1172
- options?: __HttpHandlerOptions
1173
- ): Promise<DeleteFieldLevelEncryptionProfileCommandOutput>;
1174
- public deleteFieldLevelEncryptionProfile(
1175
- args: DeleteFieldLevelEncryptionProfileCommandInput,
1176
- cb: (err: any, data?: DeleteFieldLevelEncryptionProfileCommandOutput) => void
1177
- ): void;
1178
- public deleteFieldLevelEncryptionProfile(
1179
- args: DeleteFieldLevelEncryptionProfileCommandInput,
1180
- options: __HttpHandlerOptions,
1181
- cb: (err: any, data?: DeleteFieldLevelEncryptionProfileCommandOutput) => void
1182
- ): void;
1183
- public deleteFieldLevelEncryptionProfile(
1184
- args: DeleteFieldLevelEncryptionProfileCommandInput,
1185
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFieldLevelEncryptionProfileCommandOutput) => void),
1186
- cb?: (err: any, data?: DeleteFieldLevelEncryptionProfileCommandOutput) => void
1187
- ): Promise<DeleteFieldLevelEncryptionProfileCommandOutput> | void {
1188
- const command = new DeleteFieldLevelEncryptionProfileCommand(args);
1189
- if (typeof optionsOrCb === "function") {
1190
- this.send(command, optionsOrCb);
1191
- } else if (typeof cb === "function") {
1192
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1193
- this.send(command, optionsOrCb || {}, cb);
1194
- } else {
1195
- return this.send(command, optionsOrCb);
1196
- }
1197
- }
1198
-
1199
- /**
1200
- * <p>Deletes a CloudFront function.</p>
1201
- * <p>You cannot delete a function if it’s associated with a cache behavior. First, update your
1202
- * distributions to remove the function association from all cache behaviors, then delete
1203
- * the function.</p>
1204
- * <p>To delete a function, you must provide the function’s name and version
1205
- * (<code>ETag</code> value). To get these values, you can use <code>ListFunctions</code>
1206
- * and <code>DescribeFunction</code>.</p>
1207
- */
1208
- public deleteFunction(
1209
- args: DeleteFunctionCommandInput,
1210
- options?: __HttpHandlerOptions
1211
- ): Promise<DeleteFunctionCommandOutput>;
1212
- public deleteFunction(
1213
- args: DeleteFunctionCommandInput,
1214
- cb: (err: any, data?: DeleteFunctionCommandOutput) => void
1215
- ): void;
1216
- public deleteFunction(
1217
- args: DeleteFunctionCommandInput,
1218
- options: __HttpHandlerOptions,
1219
- cb: (err: any, data?: DeleteFunctionCommandOutput) => void
1220
- ): void;
1221
- public deleteFunction(
1222
- args: DeleteFunctionCommandInput,
1223
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFunctionCommandOutput) => void),
1224
- cb?: (err: any, data?: DeleteFunctionCommandOutput) => void
1225
- ): Promise<DeleteFunctionCommandOutput> | void {
1226
- const command = new DeleteFunctionCommand(args);
1227
- if (typeof optionsOrCb === "function") {
1228
- this.send(command, optionsOrCb);
1229
- } else if (typeof cb === "function") {
1230
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1231
- this.send(command, optionsOrCb || {}, cb);
1232
- } else {
1233
- return this.send(command, optionsOrCb);
1234
- }
1235
- }
1236
-
1237
- /**
1238
- * <p>Deletes a key group.</p>
1239
- * <p>You cannot delete a key group that is referenced in a cache behavior. First update
1240
- * your distributions to remove the key group from all cache behaviors, then delete the key
1241
- * group.</p>
1242
- * <p>To delete a key group, you must provide the key group’s identifier and version. To get
1243
- * these values, use <code>ListKeyGroups</code> followed by <code>GetKeyGroup</code> or
1244
- * <code>GetKeyGroupConfig</code>.</p>
1245
- */
1246
- public deleteKeyGroup(
1247
- args: DeleteKeyGroupCommandInput,
1248
- options?: __HttpHandlerOptions
1249
- ): Promise<DeleteKeyGroupCommandOutput>;
1250
- public deleteKeyGroup(
1251
- args: DeleteKeyGroupCommandInput,
1252
- cb: (err: any, data?: DeleteKeyGroupCommandOutput) => void
1253
- ): void;
1254
- public deleteKeyGroup(
1255
- args: DeleteKeyGroupCommandInput,
1256
- options: __HttpHandlerOptions,
1257
- cb: (err: any, data?: DeleteKeyGroupCommandOutput) => void
1258
- ): void;
1259
- public deleteKeyGroup(
1260
- args: DeleteKeyGroupCommandInput,
1261
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteKeyGroupCommandOutput) => void),
1262
- cb?: (err: any, data?: DeleteKeyGroupCommandOutput) => void
1263
- ): Promise<DeleteKeyGroupCommandOutput> | void {
1264
- const command = new DeleteKeyGroupCommand(args);
1265
- if (typeof optionsOrCb === "function") {
1266
- this.send(command, optionsOrCb);
1267
- } else if (typeof cb === "function") {
1268
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1269
- this.send(command, optionsOrCb || {}, cb);
1270
- } else {
1271
- return this.send(command, optionsOrCb);
1272
- }
1273
- }
1274
-
1275
- /**
1276
- * <p>Disables additional CloudWatch metrics for the specified CloudFront distribution.</p>
1277
- */
1278
- public deleteMonitoringSubscription(
1279
- args: DeleteMonitoringSubscriptionCommandInput,
1280
- options?: __HttpHandlerOptions
1281
- ): Promise<DeleteMonitoringSubscriptionCommandOutput>;
1282
- public deleteMonitoringSubscription(
1283
- args: DeleteMonitoringSubscriptionCommandInput,
1284
- cb: (err: any, data?: DeleteMonitoringSubscriptionCommandOutput) => void
1285
- ): void;
1286
- public deleteMonitoringSubscription(
1287
- args: DeleteMonitoringSubscriptionCommandInput,
1288
- options: __HttpHandlerOptions,
1289
- cb: (err: any, data?: DeleteMonitoringSubscriptionCommandOutput) => void
1290
- ): void;
1291
- public deleteMonitoringSubscription(
1292
- args: DeleteMonitoringSubscriptionCommandInput,
1293
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMonitoringSubscriptionCommandOutput) => void),
1294
- cb?: (err: any, data?: DeleteMonitoringSubscriptionCommandOutput) => void
1295
- ): Promise<DeleteMonitoringSubscriptionCommandOutput> | void {
1296
- const command = new DeleteMonitoringSubscriptionCommand(args);
1297
- if (typeof optionsOrCb === "function") {
1298
- this.send(command, optionsOrCb);
1299
- } else if (typeof cb === "function") {
1300
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1301
- this.send(command, optionsOrCb || {}, cb);
1302
- } else {
1303
- return this.send(command, optionsOrCb);
1304
- }
1305
- }
1306
-
1307
- /**
1308
- * <p>Deletes an origin request policy.</p>
1309
- * <p>You cannot delete an origin request policy if it’s attached to any cache behaviors. First
1310
- * update your distributions to remove the origin request policy from all cache behaviors,
1311
- * then delete the origin request policy.</p>
1312
- * <p>To delete an origin request policy, you must provide the policy’s identifier and version. To
1313
- * get the identifier, you can use <code>ListOriginRequestPolicies</code> or
1314
- * <code>GetOriginRequestPolicy</code>.</p>
1315
- */
1316
- public deleteOriginRequestPolicy(
1317
- args: DeleteOriginRequestPolicyCommandInput,
1318
- options?: __HttpHandlerOptions
1319
- ): Promise<DeleteOriginRequestPolicyCommandOutput>;
1320
- public deleteOriginRequestPolicy(
1321
- args: DeleteOriginRequestPolicyCommandInput,
1322
- cb: (err: any, data?: DeleteOriginRequestPolicyCommandOutput) => void
1323
- ): void;
1324
- public deleteOriginRequestPolicy(
1325
- args: DeleteOriginRequestPolicyCommandInput,
1326
- options: __HttpHandlerOptions,
1327
- cb: (err: any, data?: DeleteOriginRequestPolicyCommandOutput) => void
1328
- ): void;
1329
- public deleteOriginRequestPolicy(
1330
- args: DeleteOriginRequestPolicyCommandInput,
1331
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteOriginRequestPolicyCommandOutput) => void),
1332
- cb?: (err: any, data?: DeleteOriginRequestPolicyCommandOutput) => void
1333
- ): Promise<DeleteOriginRequestPolicyCommandOutput> | void {
1334
- const command = new DeleteOriginRequestPolicyCommand(args);
1335
- if (typeof optionsOrCb === "function") {
1336
- this.send(command, optionsOrCb);
1337
- } else if (typeof cb === "function") {
1338
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1339
- this.send(command, optionsOrCb || {}, cb);
1340
- } else {
1341
- return this.send(command, optionsOrCb);
1342
- }
1343
- }
1344
-
1345
- /**
1346
- * <p>Remove a public key you previously added to CloudFront.</p>
1347
- */
1348
- public deletePublicKey(
1349
- args: DeletePublicKeyCommandInput,
1350
- options?: __HttpHandlerOptions
1351
- ): Promise<DeletePublicKeyCommandOutput>;
1352
- public deletePublicKey(
1353
- args: DeletePublicKeyCommandInput,
1354
- cb: (err: any, data?: DeletePublicKeyCommandOutput) => void
1355
- ): void;
1356
- public deletePublicKey(
1357
- args: DeletePublicKeyCommandInput,
1358
- options: __HttpHandlerOptions,
1359
- cb: (err: any, data?: DeletePublicKeyCommandOutput) => void
1360
- ): void;
1361
- public deletePublicKey(
1362
- args: DeletePublicKeyCommandInput,
1363
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePublicKeyCommandOutput) => void),
1364
- cb?: (err: any, data?: DeletePublicKeyCommandOutput) => void
1365
- ): Promise<DeletePublicKeyCommandOutput> | void {
1366
- const command = new DeletePublicKeyCommand(args);
1367
- if (typeof optionsOrCb === "function") {
1368
- this.send(command, optionsOrCb);
1369
- } else if (typeof cb === "function") {
1370
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1371
- this.send(command, optionsOrCb || {}, cb);
1372
- } else {
1373
- return this.send(command, optionsOrCb);
1374
- }
1375
- }
1376
-
1377
- /**
1378
- * <p>Deletes a real-time log configuration.</p>
1379
- * <p>You cannot delete a real-time log configuration if it’s attached to a cache behavior.
1380
- * First update your distributions to remove the real-time log configuration from all cache
1381
- * behaviors, then delete the real-time log configuration.</p>
1382
- * <p>To delete a real-time log configuration, you can provide the configuration’s name or its
1383
- * Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront
1384
- * uses the name to identify the real-time log configuration to delete.</p>
1385
- */
1386
- public deleteRealtimeLogConfig(
1387
- args: DeleteRealtimeLogConfigCommandInput,
1388
- options?: __HttpHandlerOptions
1389
- ): Promise<DeleteRealtimeLogConfigCommandOutput>;
1390
- public deleteRealtimeLogConfig(
1391
- args: DeleteRealtimeLogConfigCommandInput,
1392
- cb: (err: any, data?: DeleteRealtimeLogConfigCommandOutput) => void
1393
- ): void;
1394
- public deleteRealtimeLogConfig(
1395
- args: DeleteRealtimeLogConfigCommandInput,
1396
- options: __HttpHandlerOptions,
1397
- cb: (err: any, data?: DeleteRealtimeLogConfigCommandOutput) => void
1398
- ): void;
1399
- public deleteRealtimeLogConfig(
1400
- args: DeleteRealtimeLogConfigCommandInput,
1401
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRealtimeLogConfigCommandOutput) => void),
1402
- cb?: (err: any, data?: DeleteRealtimeLogConfigCommandOutput) => void
1403
- ): Promise<DeleteRealtimeLogConfigCommandOutput> | void {
1404
- const command = new DeleteRealtimeLogConfigCommand(args);
1405
- if (typeof optionsOrCb === "function") {
1406
- this.send(command, optionsOrCb);
1407
- } else if (typeof cb === "function") {
1408
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1409
- this.send(command, optionsOrCb || {}, cb);
1410
- } else {
1411
- return this.send(command, optionsOrCb);
1412
- }
1413
- }
1414
-
1415
- /**
1416
- * <p>Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API,
1417
- * perform the following steps.</p>
1418
- *
1419
- * <p>
1420
- * <b>To delete an RTMP distribution using the CloudFront
1421
- * API</b>:</p>
1422
- * <ol>
1423
- * <li>
1424
- * <p>Disable the RTMP distribution.</p>
1425
- * </li>
1426
- * <li>
1427
- * <p>Submit a <code>GET Streaming Distribution Config</code> request to get the current
1428
- * configuration and the <code>Etag</code> header for the distribution. </p>
1429
- * </li>
1430
- * <li>
1431
- * <p>Update the XML document that was returned in the response to your <code>GET
1432
- * Streaming Distribution Config</code> request to change the value of <code>Enabled</code>
1433
- * to <code>false</code>.</p>
1434
- * </li>
1435
- * <li>
1436
- * <p>Submit a <code>PUT Streaming Distribution Config</code> request to update the
1437
- * configuration for your distribution. In the request body, include the XML document that
1438
- * you updated in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the
1439
- * value of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
1440
- * Streaming Distribution Config</code> request in Step 2.</p>
1441
- * </li>
1442
- * <li>
1443
- * <p>Review the response to the <code>PUT Streaming Distribution Config</code> request
1444
- * to confirm that the distribution was successfully disabled.</p>
1445
- * </li>
1446
- * <li>
1447
- * <p>Submit a <code>GET Streaming Distribution Config</code> request to confirm that
1448
- * your changes have propagated. When propagation is complete, the value of
1449
- * <code>Status</code> is <code>Deployed</code>.</p>
1450
- * </li>
1451
- * <li>
1452
- * <p>Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
1453
- * HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront
1454
- * returned when you submitted the <code>GET Streaming Distribution Config</code> request in
1455
- * Step 2.</p>
1456
- * </li>
1457
- * <li>
1458
- * <p>Review the response to your <code>DELETE Streaming Distribution</code> request to
1459
- * confirm that the distribution was successfully deleted.</p>
1460
- * </li>
1461
- * </ol>
1462
- * <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
1463
- * <i>Amazon CloudFront Developer Guide</i>.</p>
1464
- */
1465
- public deleteStreamingDistribution(
1466
- args: DeleteStreamingDistributionCommandInput,
1467
- options?: __HttpHandlerOptions
1468
- ): Promise<DeleteStreamingDistributionCommandOutput>;
1469
- public deleteStreamingDistribution(
1470
- args: DeleteStreamingDistributionCommandInput,
1471
- cb: (err: any, data?: DeleteStreamingDistributionCommandOutput) => void
1472
- ): void;
1473
- public deleteStreamingDistribution(
1474
- args: DeleteStreamingDistributionCommandInput,
1475
- options: __HttpHandlerOptions,
1476
- cb: (err: any, data?: DeleteStreamingDistributionCommandOutput) => void
1477
- ): void;
1478
- public deleteStreamingDistribution(
1479
- args: DeleteStreamingDistributionCommandInput,
1480
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteStreamingDistributionCommandOutput) => void),
1481
- cb?: (err: any, data?: DeleteStreamingDistributionCommandOutput) => void
1482
- ): Promise<DeleteStreamingDistributionCommandOutput> | void {
1483
- const command = new DeleteStreamingDistributionCommand(args);
1484
- if (typeof optionsOrCb === "function") {
1485
- this.send(command, optionsOrCb);
1486
- } else if (typeof cb === "function") {
1487
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1488
- this.send(command, optionsOrCb || {}, cb);
1489
- } else {
1490
- return this.send(command, optionsOrCb);
1491
- }
1492
- }
1493
-
1494
- /**
1495
- * <p>Gets configuration information and metadata about a CloudFront function, but not the function’s
1496
- * code. To get a function’s code, use <code>GetFunction</code>.</p>
1497
- * <p>To get configuration information and metadata about a function, you must provide the
1498
- * function’s name and stage. To get these values, you can use
1499
- * <code>ListFunctions</code>.</p>
1500
- */
1501
- public describeFunction(
1502
- args: DescribeFunctionCommandInput,
1503
- options?: __HttpHandlerOptions
1504
- ): Promise<DescribeFunctionCommandOutput>;
1505
- public describeFunction(
1506
- args: DescribeFunctionCommandInput,
1507
- cb: (err: any, data?: DescribeFunctionCommandOutput) => void
1508
- ): void;
1509
- public describeFunction(
1510
- args: DescribeFunctionCommandInput,
1511
- options: __HttpHandlerOptions,
1512
- cb: (err: any, data?: DescribeFunctionCommandOutput) => void
1513
- ): void;
1514
- public describeFunction(
1515
- args: DescribeFunctionCommandInput,
1516
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFunctionCommandOutput) => void),
1517
- cb?: (err: any, data?: DescribeFunctionCommandOutput) => void
1518
- ): Promise<DescribeFunctionCommandOutput> | void {
1519
- const command = new DescribeFunctionCommand(args);
1520
- if (typeof optionsOrCb === "function") {
1521
- this.send(command, optionsOrCb);
1522
- } else if (typeof cb === "function") {
1523
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1524
- this.send(command, optionsOrCb || {}, cb);
1525
- } else {
1526
- return this.send(command, optionsOrCb);
1527
- }
1528
- }
1529
-
1530
- /**
1531
- * <p>Gets a cache policy, including the following metadata:</p>
1532
- * <ul>
1533
- * <li>
1534
- * <p>The policy’s identifier.</p>
1535
- * </li>
1536
- * <li>
1537
- * <p>The date and time when the policy was last modified.</p>
1538
- * </li>
1539
- * </ul>
1540
- * <p>To get a cache policy, you must provide the policy’s identifier. If the cache policy is
1541
- * attached to a distribution’s cache behavior, you can get the policy’s identifier using
1542
- * <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache policy is
1543
- * not attached to a cache behavior, you can get the identifier using
1544
- * <code>ListCachePolicies</code>.</p>
1545
- */
1546
- public getCachePolicy(
1547
- args: GetCachePolicyCommandInput,
1548
- options?: __HttpHandlerOptions
1549
- ): Promise<GetCachePolicyCommandOutput>;
1550
- public getCachePolicy(
1551
- args: GetCachePolicyCommandInput,
1552
- cb: (err: any, data?: GetCachePolicyCommandOutput) => void
1553
- ): void;
1554
- public getCachePolicy(
1555
- args: GetCachePolicyCommandInput,
1556
- options: __HttpHandlerOptions,
1557
- cb: (err: any, data?: GetCachePolicyCommandOutput) => void
1558
- ): void;
1559
- public getCachePolicy(
1560
- args: GetCachePolicyCommandInput,
1561
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCachePolicyCommandOutput) => void),
1562
- cb?: (err: any, data?: GetCachePolicyCommandOutput) => void
1563
- ): Promise<GetCachePolicyCommandOutput> | void {
1564
- const command = new GetCachePolicyCommand(args);
1565
- if (typeof optionsOrCb === "function") {
1566
- this.send(command, optionsOrCb);
1567
- } else if (typeof cb === "function") {
1568
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1569
- this.send(command, optionsOrCb || {}, cb);
1570
- } else {
1571
- return this.send(command, optionsOrCb);
1572
- }
1573
- }
1574
-
1575
- /**
1576
- * <p>Gets a cache policy configuration.</p>
1577
- * <p>To get a cache policy configuration, you must provide the policy’s identifier. If the cache
1578
- * policy is attached to a distribution’s cache behavior, you can get the policy’s
1579
- * identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If the
1580
- * cache policy is not attached to a cache behavior, you can get the identifier using
1581
- * <code>ListCachePolicies</code>.</p>
1582
- */
1583
- public getCachePolicyConfig(
1584
- args: GetCachePolicyConfigCommandInput,
1585
- options?: __HttpHandlerOptions
1586
- ): Promise<GetCachePolicyConfigCommandOutput>;
1587
- public getCachePolicyConfig(
1588
- args: GetCachePolicyConfigCommandInput,
1589
- cb: (err: any, data?: GetCachePolicyConfigCommandOutput) => void
1590
- ): void;
1591
- public getCachePolicyConfig(
1592
- args: GetCachePolicyConfigCommandInput,
1593
- options: __HttpHandlerOptions,
1594
- cb: (err: any, data?: GetCachePolicyConfigCommandOutput) => void
1595
- ): void;
1596
- public getCachePolicyConfig(
1597
- args: GetCachePolicyConfigCommandInput,
1598
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCachePolicyConfigCommandOutput) => void),
1599
- cb?: (err: any, data?: GetCachePolicyConfigCommandOutput) => void
1600
- ): Promise<GetCachePolicyConfigCommandOutput> | void {
1601
- const command = new GetCachePolicyConfigCommand(args);
1602
- if (typeof optionsOrCb === "function") {
1603
- this.send(command, optionsOrCb);
1604
- } else if (typeof cb === "function") {
1605
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1606
- this.send(command, optionsOrCb || {}, cb);
1607
- } else {
1608
- return this.send(command, optionsOrCb);
1609
- }
1610
- }
1611
-
1612
- /**
1613
- * <p>Get the information about an origin access identity. </p>
1614
- */
1615
- public getCloudFrontOriginAccessIdentity(
1616
- args: GetCloudFrontOriginAccessIdentityCommandInput,
1617
- options?: __HttpHandlerOptions
1618
- ): Promise<GetCloudFrontOriginAccessIdentityCommandOutput>;
1619
- public getCloudFrontOriginAccessIdentity(
1620
- args: GetCloudFrontOriginAccessIdentityCommandInput,
1621
- cb: (err: any, data?: GetCloudFrontOriginAccessIdentityCommandOutput) => void
1622
- ): void;
1623
- public getCloudFrontOriginAccessIdentity(
1624
- args: GetCloudFrontOriginAccessIdentityCommandInput,
1625
- options: __HttpHandlerOptions,
1626
- cb: (err: any, data?: GetCloudFrontOriginAccessIdentityCommandOutput) => void
1627
- ): void;
1628
- public getCloudFrontOriginAccessIdentity(
1629
- args: GetCloudFrontOriginAccessIdentityCommandInput,
1630
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCloudFrontOriginAccessIdentityCommandOutput) => void),
1631
- cb?: (err: any, data?: GetCloudFrontOriginAccessIdentityCommandOutput) => void
1632
- ): Promise<GetCloudFrontOriginAccessIdentityCommandOutput> | void {
1633
- const command = new GetCloudFrontOriginAccessIdentityCommand(args);
1634
- if (typeof optionsOrCb === "function") {
1635
- this.send(command, optionsOrCb);
1636
- } else if (typeof cb === "function") {
1637
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1638
- this.send(command, optionsOrCb || {}, cb);
1639
- } else {
1640
- return this.send(command, optionsOrCb);
1641
- }
1642
- }
1643
-
1644
- /**
1645
- * <p>Get the configuration information about an origin access identity. </p>
1646
- */
1647
- public getCloudFrontOriginAccessIdentityConfig(
1648
- args: GetCloudFrontOriginAccessIdentityConfigCommandInput,
1649
- options?: __HttpHandlerOptions
1650
- ): Promise<GetCloudFrontOriginAccessIdentityConfigCommandOutput>;
1651
- public getCloudFrontOriginAccessIdentityConfig(
1652
- args: GetCloudFrontOriginAccessIdentityConfigCommandInput,
1653
- cb: (err: any, data?: GetCloudFrontOriginAccessIdentityConfigCommandOutput) => void
1654
- ): void;
1655
- public getCloudFrontOriginAccessIdentityConfig(
1656
- args: GetCloudFrontOriginAccessIdentityConfigCommandInput,
1657
- options: __HttpHandlerOptions,
1658
- cb: (err: any, data?: GetCloudFrontOriginAccessIdentityConfigCommandOutput) => void
1659
- ): void;
1660
- public getCloudFrontOriginAccessIdentityConfig(
1661
- args: GetCloudFrontOriginAccessIdentityConfigCommandInput,
1662
- optionsOrCb?:
1663
- | __HttpHandlerOptions
1664
- | ((err: any, data?: GetCloudFrontOriginAccessIdentityConfigCommandOutput) => void),
1665
- cb?: (err: any, data?: GetCloudFrontOriginAccessIdentityConfigCommandOutput) => void
1666
- ): Promise<GetCloudFrontOriginAccessIdentityConfigCommandOutput> | void {
1667
- const command = new GetCloudFrontOriginAccessIdentityConfigCommand(args);
1668
- if (typeof optionsOrCb === "function") {
1669
- this.send(command, optionsOrCb);
1670
- } else if (typeof cb === "function") {
1671
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1672
- this.send(command, optionsOrCb || {}, cb);
1673
- } else {
1674
- return this.send(command, optionsOrCb);
1675
- }
1676
- }
1677
-
1678
- /**
1679
- * <p>Get the information about a distribution.</p>
1680
- */
1681
- public getDistribution(
1682
- args: GetDistributionCommandInput,
1683
- options?: __HttpHandlerOptions
1684
- ): Promise<GetDistributionCommandOutput>;
1685
- public getDistribution(
1686
- args: GetDistributionCommandInput,
1687
- cb: (err: any, data?: GetDistributionCommandOutput) => void
1688
- ): void;
1689
- public getDistribution(
1690
- args: GetDistributionCommandInput,
1691
- options: __HttpHandlerOptions,
1692
- cb: (err: any, data?: GetDistributionCommandOutput) => void
1693
- ): void;
1694
- public getDistribution(
1695
- args: GetDistributionCommandInput,
1696
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDistributionCommandOutput) => void),
1697
- cb?: (err: any, data?: GetDistributionCommandOutput) => void
1698
- ): Promise<GetDistributionCommandOutput> | void {
1699
- const command = new GetDistributionCommand(args);
1700
- if (typeof optionsOrCb === "function") {
1701
- this.send(command, optionsOrCb);
1702
- } else if (typeof cb === "function") {
1703
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1704
- this.send(command, optionsOrCb || {}, cb);
1705
- } else {
1706
- return this.send(command, optionsOrCb);
1707
- }
1708
- }
1709
-
1710
- /**
1711
- * <p>Get the configuration information about a distribution. </p>
1712
- */
1713
- public getDistributionConfig(
1714
- args: GetDistributionConfigCommandInput,
1715
- options?: __HttpHandlerOptions
1716
- ): Promise<GetDistributionConfigCommandOutput>;
1717
- public getDistributionConfig(
1718
- args: GetDistributionConfigCommandInput,
1719
- cb: (err: any, data?: GetDistributionConfigCommandOutput) => void
1720
- ): void;
1721
- public getDistributionConfig(
1722
- args: GetDistributionConfigCommandInput,
1723
- options: __HttpHandlerOptions,
1724
- cb: (err: any, data?: GetDistributionConfigCommandOutput) => void
1725
- ): void;
1726
- public getDistributionConfig(
1727
- args: GetDistributionConfigCommandInput,
1728
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDistributionConfigCommandOutput) => void),
1729
- cb?: (err: any, data?: GetDistributionConfigCommandOutput) => void
1730
- ): Promise<GetDistributionConfigCommandOutput> | void {
1731
- const command = new GetDistributionConfigCommand(args);
1732
- if (typeof optionsOrCb === "function") {
1733
- this.send(command, optionsOrCb);
1734
- } else if (typeof cb === "function") {
1735
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1736
- this.send(command, optionsOrCb || {}, cb);
1737
- } else {
1738
- return this.send(command, optionsOrCb);
1739
- }
1740
- }
1741
-
1742
- /**
1743
- * <p>Get the field-level encryption configuration information.</p>
1744
- */
1745
- public getFieldLevelEncryption(
1746
- args: GetFieldLevelEncryptionCommandInput,
1747
- options?: __HttpHandlerOptions
1748
- ): Promise<GetFieldLevelEncryptionCommandOutput>;
1749
- public getFieldLevelEncryption(
1750
- args: GetFieldLevelEncryptionCommandInput,
1751
- cb: (err: any, data?: GetFieldLevelEncryptionCommandOutput) => void
1752
- ): void;
1753
- public getFieldLevelEncryption(
1754
- args: GetFieldLevelEncryptionCommandInput,
1755
- options: __HttpHandlerOptions,
1756
- cb: (err: any, data?: GetFieldLevelEncryptionCommandOutput) => void
1757
- ): void;
1758
- public getFieldLevelEncryption(
1759
- args: GetFieldLevelEncryptionCommandInput,
1760
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFieldLevelEncryptionCommandOutput) => void),
1761
- cb?: (err: any, data?: GetFieldLevelEncryptionCommandOutput) => void
1762
- ): Promise<GetFieldLevelEncryptionCommandOutput> | void {
1763
- const command = new GetFieldLevelEncryptionCommand(args);
1764
- if (typeof optionsOrCb === "function") {
1765
- this.send(command, optionsOrCb);
1766
- } else if (typeof cb === "function") {
1767
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1768
- this.send(command, optionsOrCb || {}, cb);
1769
- } else {
1770
- return this.send(command, optionsOrCb);
1771
- }
1772
- }
1773
-
1774
- /**
1775
- * <p>Get the field-level encryption configuration information.</p>
1776
- */
1777
- public getFieldLevelEncryptionConfig(
1778
- args: GetFieldLevelEncryptionConfigCommandInput,
1779
- options?: __HttpHandlerOptions
1780
- ): Promise<GetFieldLevelEncryptionConfigCommandOutput>;
1781
- public getFieldLevelEncryptionConfig(
1782
- args: GetFieldLevelEncryptionConfigCommandInput,
1783
- cb: (err: any, data?: GetFieldLevelEncryptionConfigCommandOutput) => void
1784
- ): void;
1785
- public getFieldLevelEncryptionConfig(
1786
- args: GetFieldLevelEncryptionConfigCommandInput,
1787
- options: __HttpHandlerOptions,
1788
- cb: (err: any, data?: GetFieldLevelEncryptionConfigCommandOutput) => void
1789
- ): void;
1790
- public getFieldLevelEncryptionConfig(
1791
- args: GetFieldLevelEncryptionConfigCommandInput,
1792
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFieldLevelEncryptionConfigCommandOutput) => void),
1793
- cb?: (err: any, data?: GetFieldLevelEncryptionConfigCommandOutput) => void
1794
- ): Promise<GetFieldLevelEncryptionConfigCommandOutput> | void {
1795
- const command = new GetFieldLevelEncryptionConfigCommand(args);
1796
- if (typeof optionsOrCb === "function") {
1797
- this.send(command, optionsOrCb);
1798
- } else if (typeof cb === "function") {
1799
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1800
- this.send(command, optionsOrCb || {}, cb);
1801
- } else {
1802
- return this.send(command, optionsOrCb);
1803
- }
1804
- }
1805
-
1806
- /**
1807
- * <p>Get the field-level encryption profile information.</p>
1808
- */
1809
- public getFieldLevelEncryptionProfile(
1810
- args: GetFieldLevelEncryptionProfileCommandInput,
1811
- options?: __HttpHandlerOptions
1812
- ): Promise<GetFieldLevelEncryptionProfileCommandOutput>;
1813
- public getFieldLevelEncryptionProfile(
1814
- args: GetFieldLevelEncryptionProfileCommandInput,
1815
- cb: (err: any, data?: GetFieldLevelEncryptionProfileCommandOutput) => void
1816
- ): void;
1817
- public getFieldLevelEncryptionProfile(
1818
- args: GetFieldLevelEncryptionProfileCommandInput,
1819
- options: __HttpHandlerOptions,
1820
- cb: (err: any, data?: GetFieldLevelEncryptionProfileCommandOutput) => void
1821
- ): void;
1822
- public getFieldLevelEncryptionProfile(
1823
- args: GetFieldLevelEncryptionProfileCommandInput,
1824
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFieldLevelEncryptionProfileCommandOutput) => void),
1825
- cb?: (err: any, data?: GetFieldLevelEncryptionProfileCommandOutput) => void
1826
- ): Promise<GetFieldLevelEncryptionProfileCommandOutput> | void {
1827
- const command = new GetFieldLevelEncryptionProfileCommand(args);
1828
- if (typeof optionsOrCb === "function") {
1829
- this.send(command, optionsOrCb);
1830
- } else if (typeof cb === "function") {
1831
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1832
- this.send(command, optionsOrCb || {}, cb);
1833
- } else {
1834
- return this.send(command, optionsOrCb);
1835
- }
1836
- }
1837
-
1838
- /**
1839
- * <p>Get the field-level encryption profile configuration information.</p>
1840
- */
1841
- public getFieldLevelEncryptionProfileConfig(
1842
- args: GetFieldLevelEncryptionProfileConfigCommandInput,
1843
- options?: __HttpHandlerOptions
1844
- ): Promise<GetFieldLevelEncryptionProfileConfigCommandOutput>;
1845
- public getFieldLevelEncryptionProfileConfig(
1846
- args: GetFieldLevelEncryptionProfileConfigCommandInput,
1847
- cb: (err: any, data?: GetFieldLevelEncryptionProfileConfigCommandOutput) => void
1848
- ): void;
1849
- public getFieldLevelEncryptionProfileConfig(
1850
- args: GetFieldLevelEncryptionProfileConfigCommandInput,
1851
- options: __HttpHandlerOptions,
1852
- cb: (err: any, data?: GetFieldLevelEncryptionProfileConfigCommandOutput) => void
1853
- ): void;
1854
- public getFieldLevelEncryptionProfileConfig(
1855
- args: GetFieldLevelEncryptionProfileConfigCommandInput,
1856
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFieldLevelEncryptionProfileConfigCommandOutput) => void),
1857
- cb?: (err: any, data?: GetFieldLevelEncryptionProfileConfigCommandOutput) => void
1858
- ): Promise<GetFieldLevelEncryptionProfileConfigCommandOutput> | void {
1859
- const command = new GetFieldLevelEncryptionProfileConfigCommand(args);
1860
- if (typeof optionsOrCb === "function") {
1861
- this.send(command, optionsOrCb);
1862
- } else if (typeof cb === "function") {
1863
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1864
- this.send(command, optionsOrCb || {}, cb);
1865
- } else {
1866
- return this.send(command, optionsOrCb);
1867
- }
1868
- }
1869
-
1870
- /**
1871
- * <p>Gets the code of a CloudFront function. To get configuration information and metadata about
1872
- * a function, use <code>DescribeFunction</code>.</p>
1873
- * <p>To get a function’s code, you must provide the function’s name and stage. To get these
1874
- * values, you can use <code>ListFunctions</code>.</p>
1875
- */
1876
- public getFunction(args: GetFunctionCommandInput, options?: __HttpHandlerOptions): Promise<GetFunctionCommandOutput>;
1877
- public getFunction(args: GetFunctionCommandInput, cb: (err: any, data?: GetFunctionCommandOutput) => void): void;
1878
- public getFunction(
1879
- args: GetFunctionCommandInput,
1880
- options: __HttpHandlerOptions,
1881
- cb: (err: any, data?: GetFunctionCommandOutput) => void
1882
- ): void;
1883
- public getFunction(
1884
- args: GetFunctionCommandInput,
1885
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionCommandOutput) => void),
1886
- cb?: (err: any, data?: GetFunctionCommandOutput) => void
1887
- ): Promise<GetFunctionCommandOutput> | void {
1888
- const command = new GetFunctionCommand(args);
1889
- if (typeof optionsOrCb === "function") {
1890
- this.send(command, optionsOrCb);
1891
- } else if (typeof cb === "function") {
1892
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1893
- this.send(command, optionsOrCb || {}, cb);
1894
- } else {
1895
- return this.send(command, optionsOrCb);
1896
- }
1897
- }
1898
-
1899
- /**
1900
- * <p>Get the information about an invalidation. </p>
1901
- */
1902
- public getInvalidation(
1903
- args: GetInvalidationCommandInput,
1904
- options?: __HttpHandlerOptions
1905
- ): Promise<GetInvalidationCommandOutput>;
1906
- public getInvalidation(
1907
- args: GetInvalidationCommandInput,
1908
- cb: (err: any, data?: GetInvalidationCommandOutput) => void
1909
- ): void;
1910
- public getInvalidation(
1911
- args: GetInvalidationCommandInput,
1912
- options: __HttpHandlerOptions,
1913
- cb: (err: any, data?: GetInvalidationCommandOutput) => void
1914
- ): void;
1915
- public getInvalidation(
1916
- args: GetInvalidationCommandInput,
1917
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInvalidationCommandOutput) => void),
1918
- cb?: (err: any, data?: GetInvalidationCommandOutput) => void
1919
- ): Promise<GetInvalidationCommandOutput> | void {
1920
- const command = new GetInvalidationCommand(args);
1921
- if (typeof optionsOrCb === "function") {
1922
- this.send(command, optionsOrCb);
1923
- } else if (typeof cb === "function") {
1924
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1925
- this.send(command, optionsOrCb || {}, cb);
1926
- } else {
1927
- return this.send(command, optionsOrCb);
1928
- }
1929
- }
1930
-
1931
- /**
1932
- * <p>Gets a key group, including the date and time when the key group was last modified.</p>
1933
- * <p>To get a key group, you must provide the key group’s identifier. If the key group is
1934
- * referenced in a distribution’s cache behavior, you can get the key group’s identifier
1935
- * using <code>ListDistributions</code> or <code>GetDistribution</code>. If the key group
1936
- * is not referenced in a cache behavior, you can get the identifier using
1937
- * <code>ListKeyGroups</code>.</p>
1938
- */
1939
- public getKeyGroup(args: GetKeyGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetKeyGroupCommandOutput>;
1940
- public getKeyGroup(args: GetKeyGroupCommandInput, cb: (err: any, data?: GetKeyGroupCommandOutput) => void): void;
1941
- public getKeyGroup(
1942
- args: GetKeyGroupCommandInput,
1943
- options: __HttpHandlerOptions,
1944
- cb: (err: any, data?: GetKeyGroupCommandOutput) => void
1945
- ): void;
1946
- public getKeyGroup(
1947
- args: GetKeyGroupCommandInput,
1948
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetKeyGroupCommandOutput) => void),
1949
- cb?: (err: any, data?: GetKeyGroupCommandOutput) => void
1950
- ): Promise<GetKeyGroupCommandOutput> | void {
1951
- const command = new GetKeyGroupCommand(args);
1952
- if (typeof optionsOrCb === "function") {
1953
- this.send(command, optionsOrCb);
1954
- } else if (typeof cb === "function") {
1955
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1956
- this.send(command, optionsOrCb || {}, cb);
1957
- } else {
1958
- return this.send(command, optionsOrCb);
1959
- }
1960
- }
1961
-
1962
- /**
1963
- * <p>Gets a key group configuration.</p>
1964
- * <p>To get a key group configuration, you must provide the key group’s identifier. If the
1965
- * key group is referenced in a distribution’s cache behavior, you can get the key group’s
1966
- * identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If the
1967
- * key group is not referenced in a cache behavior, you can get the identifier using
1968
- * <code>ListKeyGroups</code>.</p>
1969
- */
1970
- public getKeyGroupConfig(
1971
- args: GetKeyGroupConfigCommandInput,
1972
- options?: __HttpHandlerOptions
1973
- ): Promise<GetKeyGroupConfigCommandOutput>;
1974
- public getKeyGroupConfig(
1975
- args: GetKeyGroupConfigCommandInput,
1976
- cb: (err: any, data?: GetKeyGroupConfigCommandOutput) => void
1977
- ): void;
1978
- public getKeyGroupConfig(
1979
- args: GetKeyGroupConfigCommandInput,
1980
- options: __HttpHandlerOptions,
1981
- cb: (err: any, data?: GetKeyGroupConfigCommandOutput) => void
1982
- ): void;
1983
- public getKeyGroupConfig(
1984
- args: GetKeyGroupConfigCommandInput,
1985
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetKeyGroupConfigCommandOutput) => void),
1986
- cb?: (err: any, data?: GetKeyGroupConfigCommandOutput) => void
1987
- ): Promise<GetKeyGroupConfigCommandOutput> | void {
1988
- const command = new GetKeyGroupConfigCommand(args);
1989
- if (typeof optionsOrCb === "function") {
1990
- this.send(command, optionsOrCb);
1991
- } else if (typeof cb === "function") {
1992
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1993
- this.send(command, optionsOrCb || {}, cb);
1994
- } else {
1995
- return this.send(command, optionsOrCb);
1996
- }
1997
- }
1998
-
1999
- /**
2000
- * <p>Gets information about whether additional CloudWatch metrics are enabled for the specified
2001
- * CloudFront distribution.</p>
2002
- */
2003
- public getMonitoringSubscription(
2004
- args: GetMonitoringSubscriptionCommandInput,
2005
- options?: __HttpHandlerOptions
2006
- ): Promise<GetMonitoringSubscriptionCommandOutput>;
2007
- public getMonitoringSubscription(
2008
- args: GetMonitoringSubscriptionCommandInput,
2009
- cb: (err: any, data?: GetMonitoringSubscriptionCommandOutput) => void
2010
- ): void;
2011
- public getMonitoringSubscription(
2012
- args: GetMonitoringSubscriptionCommandInput,
2013
- options: __HttpHandlerOptions,
2014
- cb: (err: any, data?: GetMonitoringSubscriptionCommandOutput) => void
2015
- ): void;
2016
- public getMonitoringSubscription(
2017
- args: GetMonitoringSubscriptionCommandInput,
2018
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMonitoringSubscriptionCommandOutput) => void),
2019
- cb?: (err: any, data?: GetMonitoringSubscriptionCommandOutput) => void
2020
- ): Promise<GetMonitoringSubscriptionCommandOutput> | void {
2021
- const command = new GetMonitoringSubscriptionCommand(args);
2022
- if (typeof optionsOrCb === "function") {
2023
- this.send(command, optionsOrCb);
2024
- } else if (typeof cb === "function") {
2025
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2026
- this.send(command, optionsOrCb || {}, cb);
2027
- } else {
2028
- return this.send(command, optionsOrCb);
2029
- }
2030
- }
2031
-
2032
- /**
2033
- * <p>Gets an origin request policy, including the following metadata:</p>
2034
- * <ul>
2035
- * <li>
2036
- * <p>The policy’s identifier.</p>
2037
- * </li>
2038
- * <li>
2039
- * <p>The date and time when the policy was last modified.</p>
2040
- * </li>
2041
- * </ul>
2042
- * <p>To get an origin request policy, you must provide the policy’s identifier. If the origin
2043
- * request policy is attached to a distribution’s cache behavior, you can get the policy’s
2044
- * identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If the
2045
- * origin request policy is not attached to a cache behavior, you can get the identifier
2046
- * using <code>ListOriginRequestPolicies</code>.</p>
2047
- */
2048
- public getOriginRequestPolicy(
2049
- args: GetOriginRequestPolicyCommandInput,
2050
- options?: __HttpHandlerOptions
2051
- ): Promise<GetOriginRequestPolicyCommandOutput>;
2052
- public getOriginRequestPolicy(
2053
- args: GetOriginRequestPolicyCommandInput,
2054
- cb: (err: any, data?: GetOriginRequestPolicyCommandOutput) => void
2055
- ): void;
2056
- public getOriginRequestPolicy(
2057
- args: GetOriginRequestPolicyCommandInput,
2058
- options: __HttpHandlerOptions,
2059
- cb: (err: any, data?: GetOriginRequestPolicyCommandOutput) => void
2060
- ): void;
2061
- public getOriginRequestPolicy(
2062
- args: GetOriginRequestPolicyCommandInput,
2063
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetOriginRequestPolicyCommandOutput) => void),
2064
- cb?: (err: any, data?: GetOriginRequestPolicyCommandOutput) => void
2065
- ): Promise<GetOriginRequestPolicyCommandOutput> | void {
2066
- const command = new GetOriginRequestPolicyCommand(args);
2067
- if (typeof optionsOrCb === "function") {
2068
- this.send(command, optionsOrCb);
2069
- } else if (typeof cb === "function") {
2070
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2071
- this.send(command, optionsOrCb || {}, cb);
2072
- } else {
2073
- return this.send(command, optionsOrCb);
2074
- }
2075
- }
2076
-
2077
- /**
2078
- * <p>Gets an origin request policy configuration.</p>
2079
- * <p>To get an origin request policy configuration, you must provide the policy’s identifier. If
2080
- * the origin request policy is attached to a distribution’s cache behavior, you can get
2081
- * the policy’s identifier using <code>ListDistributions</code> or
2082
- * <code>GetDistribution</code>. If the origin request policy is not attached to a cache
2083
- * behavior, you can get the identifier using
2084
- * <code>ListOriginRequestPolicies</code>.</p>
2085
- */
2086
- public getOriginRequestPolicyConfig(
2087
- args: GetOriginRequestPolicyConfigCommandInput,
2088
- options?: __HttpHandlerOptions
2089
- ): Promise<GetOriginRequestPolicyConfigCommandOutput>;
2090
- public getOriginRequestPolicyConfig(
2091
- args: GetOriginRequestPolicyConfigCommandInput,
2092
- cb: (err: any, data?: GetOriginRequestPolicyConfigCommandOutput) => void
2093
- ): void;
2094
- public getOriginRequestPolicyConfig(
2095
- args: GetOriginRequestPolicyConfigCommandInput,
2096
- options: __HttpHandlerOptions,
2097
- cb: (err: any, data?: GetOriginRequestPolicyConfigCommandOutput) => void
2098
- ): void;
2099
- public getOriginRequestPolicyConfig(
2100
- args: GetOriginRequestPolicyConfigCommandInput,
2101
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetOriginRequestPolicyConfigCommandOutput) => void),
2102
- cb?: (err: any, data?: GetOriginRequestPolicyConfigCommandOutput) => void
2103
- ): Promise<GetOriginRequestPolicyConfigCommandOutput> | void {
2104
- const command = new GetOriginRequestPolicyConfigCommand(args);
2105
- if (typeof optionsOrCb === "function") {
2106
- this.send(command, optionsOrCb);
2107
- } else if (typeof cb === "function") {
2108
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2109
- this.send(command, optionsOrCb || {}, cb);
2110
- } else {
2111
- return this.send(command, optionsOrCb);
2112
- }
2113
- }
2114
-
2115
- /**
2116
- * <p>Gets a public key.</p>
2117
- */
2118
- public getPublicKey(
2119
- args: GetPublicKeyCommandInput,
2120
- options?: __HttpHandlerOptions
2121
- ): Promise<GetPublicKeyCommandOutput>;
2122
- public getPublicKey(args: GetPublicKeyCommandInput, cb: (err: any, data?: GetPublicKeyCommandOutput) => void): void;
2123
- public getPublicKey(
2124
- args: GetPublicKeyCommandInput,
2125
- options: __HttpHandlerOptions,
2126
- cb: (err: any, data?: GetPublicKeyCommandOutput) => void
2127
- ): void;
2128
- public getPublicKey(
2129
- args: GetPublicKeyCommandInput,
2130
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPublicKeyCommandOutput) => void),
2131
- cb?: (err: any, data?: GetPublicKeyCommandOutput) => void
2132
- ): Promise<GetPublicKeyCommandOutput> | void {
2133
- const command = new GetPublicKeyCommand(args);
2134
- if (typeof optionsOrCb === "function") {
2135
- this.send(command, optionsOrCb);
2136
- } else if (typeof cb === "function") {
2137
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2138
- this.send(command, optionsOrCb || {}, cb);
2139
- } else {
2140
- return this.send(command, optionsOrCb);
2141
- }
2142
- }
2143
-
2144
- /**
2145
- * <p>Gets a public key configuration.</p>
2146
- */
2147
- public getPublicKeyConfig(
2148
- args: GetPublicKeyConfigCommandInput,
2149
- options?: __HttpHandlerOptions
2150
- ): Promise<GetPublicKeyConfigCommandOutput>;
2151
- public getPublicKeyConfig(
2152
- args: GetPublicKeyConfigCommandInput,
2153
- cb: (err: any, data?: GetPublicKeyConfigCommandOutput) => void
2154
- ): void;
2155
- public getPublicKeyConfig(
2156
- args: GetPublicKeyConfigCommandInput,
2157
- options: __HttpHandlerOptions,
2158
- cb: (err: any, data?: GetPublicKeyConfigCommandOutput) => void
2159
- ): void;
2160
- public getPublicKeyConfig(
2161
- args: GetPublicKeyConfigCommandInput,
2162
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPublicKeyConfigCommandOutput) => void),
2163
- cb?: (err: any, data?: GetPublicKeyConfigCommandOutput) => void
2164
- ): Promise<GetPublicKeyConfigCommandOutput> | void {
2165
- const command = new GetPublicKeyConfigCommand(args);
2166
- if (typeof optionsOrCb === "function") {
2167
- this.send(command, optionsOrCb);
2168
- } else if (typeof cb === "function") {
2169
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2170
- this.send(command, optionsOrCb || {}, cb);
2171
- } else {
2172
- return this.send(command, optionsOrCb);
2173
- }
2174
- }
2175
-
2176
- /**
2177
- * <p>Gets a real-time log configuration.</p>
2178
- * <p>To get a real-time log configuration, you can provide the configuration’s name or its Amazon
2179
- * Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the
2180
- * name to identify the real-time log configuration to get.</p>
2181
- */
2182
- public getRealtimeLogConfig(
2183
- args: GetRealtimeLogConfigCommandInput,
2184
- options?: __HttpHandlerOptions
2185
- ): Promise<GetRealtimeLogConfigCommandOutput>;
2186
- public getRealtimeLogConfig(
2187
- args: GetRealtimeLogConfigCommandInput,
2188
- cb: (err: any, data?: GetRealtimeLogConfigCommandOutput) => void
2189
- ): void;
2190
- public getRealtimeLogConfig(
2191
- args: GetRealtimeLogConfigCommandInput,
2192
- options: __HttpHandlerOptions,
2193
- cb: (err: any, data?: GetRealtimeLogConfigCommandOutput) => void
2194
- ): void;
2195
- public getRealtimeLogConfig(
2196
- args: GetRealtimeLogConfigCommandInput,
2197
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRealtimeLogConfigCommandOutput) => void),
2198
- cb?: (err: any, data?: GetRealtimeLogConfigCommandOutput) => void
2199
- ): Promise<GetRealtimeLogConfigCommandOutput> | void {
2200
- const command = new GetRealtimeLogConfigCommand(args);
2201
- if (typeof optionsOrCb === "function") {
2202
- this.send(command, optionsOrCb);
2203
- } else if (typeof cb === "function") {
2204
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2205
- this.send(command, optionsOrCb || {}, cb);
2206
- } else {
2207
- return this.send(command, optionsOrCb);
2208
- }
2209
- }
2210
-
2211
- /**
2212
- * <p>Gets information about a specified RTMP distribution, including the distribution configuration.</p>
2213
- */
2214
- public getStreamingDistribution(
2215
- args: GetStreamingDistributionCommandInput,
2216
- options?: __HttpHandlerOptions
2217
- ): Promise<GetStreamingDistributionCommandOutput>;
2218
- public getStreamingDistribution(
2219
- args: GetStreamingDistributionCommandInput,
2220
- cb: (err: any, data?: GetStreamingDistributionCommandOutput) => void
2221
- ): void;
2222
- public getStreamingDistribution(
2223
- args: GetStreamingDistributionCommandInput,
2224
- options: __HttpHandlerOptions,
2225
- cb: (err: any, data?: GetStreamingDistributionCommandOutput) => void
2226
- ): void;
2227
- public getStreamingDistribution(
2228
- args: GetStreamingDistributionCommandInput,
2229
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetStreamingDistributionCommandOutput) => void),
2230
- cb?: (err: any, data?: GetStreamingDistributionCommandOutput) => void
2231
- ): Promise<GetStreamingDistributionCommandOutput> | void {
2232
- const command = new GetStreamingDistributionCommand(args);
2233
- if (typeof optionsOrCb === "function") {
2234
- this.send(command, optionsOrCb);
2235
- } else if (typeof cb === "function") {
2236
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2237
- this.send(command, optionsOrCb || {}, cb);
2238
- } else {
2239
- return this.send(command, optionsOrCb);
2240
- }
2241
- }
2242
-
2243
- /**
2244
- * <p>Get the configuration information about a streaming distribution. </p>
2245
- */
2246
- public getStreamingDistributionConfig(
2247
- args: GetStreamingDistributionConfigCommandInput,
2248
- options?: __HttpHandlerOptions
2249
- ): Promise<GetStreamingDistributionConfigCommandOutput>;
2250
- public getStreamingDistributionConfig(
2251
- args: GetStreamingDistributionConfigCommandInput,
2252
- cb: (err: any, data?: GetStreamingDistributionConfigCommandOutput) => void
2253
- ): void;
2254
- public getStreamingDistributionConfig(
2255
- args: GetStreamingDistributionConfigCommandInput,
2256
- options: __HttpHandlerOptions,
2257
- cb: (err: any, data?: GetStreamingDistributionConfigCommandOutput) => void
2258
- ): void;
2259
- public getStreamingDistributionConfig(
2260
- args: GetStreamingDistributionConfigCommandInput,
2261
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetStreamingDistributionConfigCommandOutput) => void),
2262
- cb?: (err: any, data?: GetStreamingDistributionConfigCommandOutput) => void
2263
- ): Promise<GetStreamingDistributionConfigCommandOutput> | void {
2264
- const command = new GetStreamingDistributionConfigCommand(args);
2265
- if (typeof optionsOrCb === "function") {
2266
- this.send(command, optionsOrCb);
2267
- } else if (typeof cb === "function") {
2268
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2269
- this.send(command, optionsOrCb || {}, cb);
2270
- } else {
2271
- return this.send(command, optionsOrCb);
2272
- }
2273
- }
2274
-
2275
- /**
2276
- * <p>Gets a list of cache policies.</p>
2277
- * <p>You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or
2278
- * only the custom policies created in your account.</p>
2279
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2280
- * the total number of items in the list exceeds the maximum that you specify, or the
2281
- * default maximum, the response is paginated. To get the next page of items, send a
2282
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2283
- * response as the <code>Marker</code> value in the subsequent request.</p>
2284
- */
2285
- public listCachePolicies(
2286
- args: ListCachePoliciesCommandInput,
2287
- options?: __HttpHandlerOptions
2288
- ): Promise<ListCachePoliciesCommandOutput>;
2289
- public listCachePolicies(
2290
- args: ListCachePoliciesCommandInput,
2291
- cb: (err: any, data?: ListCachePoliciesCommandOutput) => void
2292
- ): void;
2293
- public listCachePolicies(
2294
- args: ListCachePoliciesCommandInput,
2295
- options: __HttpHandlerOptions,
2296
- cb: (err: any, data?: ListCachePoliciesCommandOutput) => void
2297
- ): void;
2298
- public listCachePolicies(
2299
- args: ListCachePoliciesCommandInput,
2300
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCachePoliciesCommandOutput) => void),
2301
- cb?: (err: any, data?: ListCachePoliciesCommandOutput) => void
2302
- ): Promise<ListCachePoliciesCommandOutput> | void {
2303
- const command = new ListCachePoliciesCommand(args);
2304
- if (typeof optionsOrCb === "function") {
2305
- this.send(command, optionsOrCb);
2306
- } else if (typeof cb === "function") {
2307
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2308
- this.send(command, optionsOrCb || {}, cb);
2309
- } else {
2310
- return this.send(command, optionsOrCb);
2311
- }
2312
- }
2313
-
2314
- /**
2315
- * <p>Lists origin access identities.</p>
2316
- */
2317
- public listCloudFrontOriginAccessIdentities(
2318
- args: ListCloudFrontOriginAccessIdentitiesCommandInput,
2319
- options?: __HttpHandlerOptions
2320
- ): Promise<ListCloudFrontOriginAccessIdentitiesCommandOutput>;
2321
- public listCloudFrontOriginAccessIdentities(
2322
- args: ListCloudFrontOriginAccessIdentitiesCommandInput,
2323
- cb: (err: any, data?: ListCloudFrontOriginAccessIdentitiesCommandOutput) => void
2324
- ): void;
2325
- public listCloudFrontOriginAccessIdentities(
2326
- args: ListCloudFrontOriginAccessIdentitiesCommandInput,
2327
- options: __HttpHandlerOptions,
2328
- cb: (err: any, data?: ListCloudFrontOriginAccessIdentitiesCommandOutput) => void
2329
- ): void;
2330
- public listCloudFrontOriginAccessIdentities(
2331
- args: ListCloudFrontOriginAccessIdentitiesCommandInput,
2332
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCloudFrontOriginAccessIdentitiesCommandOutput) => void),
2333
- cb?: (err: any, data?: ListCloudFrontOriginAccessIdentitiesCommandOutput) => void
2334
- ): Promise<ListCloudFrontOriginAccessIdentitiesCommandOutput> | void {
2335
- const command = new ListCloudFrontOriginAccessIdentitiesCommand(args);
2336
- if (typeof optionsOrCb === "function") {
2337
- this.send(command, optionsOrCb);
2338
- } else if (typeof cb === "function") {
2339
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2340
- this.send(command, optionsOrCb || {}, cb);
2341
- } else {
2342
- return this.send(command, optionsOrCb);
2343
- }
2344
- }
2345
-
2346
- /**
2347
- * <p>Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or
2348
- * overlap with the provided alias, and the associated CloudFront distributions and Amazon Web Services
2349
- * accounts for each conflicting alias. In the returned list, the distribution and account
2350
- * IDs are partially hidden, which allows you to identify the distributions and accounts
2351
- * that you own, but helps to protect the information of ones that you don’t own.</p>
2352
- * <p>Use this operation to find aliases that are in use in CloudFront that conflict or overlap
2353
- * with the provided alias. For example, if you provide <code>www.example.com</code> as
2354
- * input, the returned list can include <code>www.example.com</code> and the overlapping
2355
- * wildcard alternate domain name (<code>*.example.com</code>), if they exist. If you
2356
- * provide <code>*.example.com</code> as input, the returned list can include
2357
- * <code>*.example.com</code> and any alternate domain names covered by that wildcard (for
2358
- * example, <code>www.example.com</code>, <code>test.example.com</code>,
2359
- * <code>dev.example.com</code>, and so on), if they exist.</p>
2360
- * <p>To list conflicting aliases, you provide the alias to search and the ID of a distribution in
2361
- * your account that has an attached SSL/TLS certificate that includes the provided alias.
2362
- * For more information, including how to set up the distribution and certificate, see
2363
- * <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving an alternate domain name to a different distribution</a>
2364
- * in the <i>Amazon CloudFront Developer Guide</i>.</p>
2365
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2366
- * the total number of items in the list exceeds the maximum that you specify, or the
2367
- * default maximum, the response is paginated. To get the next page of items, send a
2368
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2369
- * response as the <code>Marker</code> value in the subsequent request.</p>
2370
- */
2371
- public listConflictingAliases(
2372
- args: ListConflictingAliasesCommandInput,
2373
- options?: __HttpHandlerOptions
2374
- ): Promise<ListConflictingAliasesCommandOutput>;
2375
- public listConflictingAliases(
2376
- args: ListConflictingAliasesCommandInput,
2377
- cb: (err: any, data?: ListConflictingAliasesCommandOutput) => void
2378
- ): void;
2379
- public listConflictingAliases(
2380
- args: ListConflictingAliasesCommandInput,
2381
- options: __HttpHandlerOptions,
2382
- cb: (err: any, data?: ListConflictingAliasesCommandOutput) => void
2383
- ): void;
2384
- public listConflictingAliases(
2385
- args: ListConflictingAliasesCommandInput,
2386
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListConflictingAliasesCommandOutput) => void),
2387
- cb?: (err: any, data?: ListConflictingAliasesCommandOutput) => void
2388
- ): Promise<ListConflictingAliasesCommandOutput> | void {
2389
- const command = new ListConflictingAliasesCommand(args);
2390
- if (typeof optionsOrCb === "function") {
2391
- this.send(command, optionsOrCb);
2392
- } else if (typeof cb === "function") {
2393
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2394
- this.send(command, optionsOrCb || {}, cb);
2395
- } else {
2396
- return this.send(command, optionsOrCb);
2397
- }
2398
- }
2399
-
2400
- /**
2401
- * <p>List CloudFront distributions.</p>
2402
- */
2403
- public listDistributions(
2404
- args: ListDistributionsCommandInput,
2405
- options?: __HttpHandlerOptions
2406
- ): Promise<ListDistributionsCommandOutput>;
2407
- public listDistributions(
2408
- args: ListDistributionsCommandInput,
2409
- cb: (err: any, data?: ListDistributionsCommandOutput) => void
2410
- ): void;
2411
- public listDistributions(
2412
- args: ListDistributionsCommandInput,
2413
- options: __HttpHandlerOptions,
2414
- cb: (err: any, data?: ListDistributionsCommandOutput) => void
2415
- ): void;
2416
- public listDistributions(
2417
- args: ListDistributionsCommandInput,
2418
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDistributionsCommandOutput) => void),
2419
- cb?: (err: any, data?: ListDistributionsCommandOutput) => void
2420
- ): Promise<ListDistributionsCommandOutput> | void {
2421
- const command = new ListDistributionsCommand(args);
2422
- if (typeof optionsOrCb === "function") {
2423
- this.send(command, optionsOrCb);
2424
- } else if (typeof cb === "function") {
2425
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2426
- this.send(command, optionsOrCb || {}, cb);
2427
- } else {
2428
- return this.send(command, optionsOrCb);
2429
- }
2430
- }
2431
-
2432
- /**
2433
- * <p>Gets a list of distribution IDs for distributions that have a cache behavior that’s
2434
- * associated with the specified cache policy.</p>
2435
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2436
- * the total number of items in the list exceeds the maximum that you specify, or the
2437
- * default maximum, the response is paginated. To get the next page of items, send a
2438
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2439
- * response as the <code>Marker</code> value in the subsequent request.</p>
2440
- */
2441
- public listDistributionsByCachePolicyId(
2442
- args: ListDistributionsByCachePolicyIdCommandInput,
2443
- options?: __HttpHandlerOptions
2444
- ): Promise<ListDistributionsByCachePolicyIdCommandOutput>;
2445
- public listDistributionsByCachePolicyId(
2446
- args: ListDistributionsByCachePolicyIdCommandInput,
2447
- cb: (err: any, data?: ListDistributionsByCachePolicyIdCommandOutput) => void
2448
- ): void;
2449
- public listDistributionsByCachePolicyId(
2450
- args: ListDistributionsByCachePolicyIdCommandInput,
2451
- options: __HttpHandlerOptions,
2452
- cb: (err: any, data?: ListDistributionsByCachePolicyIdCommandOutput) => void
2453
- ): void;
2454
- public listDistributionsByCachePolicyId(
2455
- args: ListDistributionsByCachePolicyIdCommandInput,
2456
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDistributionsByCachePolicyIdCommandOutput) => void),
2457
- cb?: (err: any, data?: ListDistributionsByCachePolicyIdCommandOutput) => void
2458
- ): Promise<ListDistributionsByCachePolicyIdCommandOutput> | void {
2459
- const command = new ListDistributionsByCachePolicyIdCommand(args);
2460
- if (typeof optionsOrCb === "function") {
2461
- this.send(command, optionsOrCb);
2462
- } else if (typeof cb === "function") {
2463
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2464
- this.send(command, optionsOrCb || {}, cb);
2465
- } else {
2466
- return this.send(command, optionsOrCb);
2467
- }
2468
- }
2469
-
2470
- /**
2471
- * <p>Gets a list of distribution IDs for distributions that have a cache behavior that references
2472
- * the specified key group.</p>
2473
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2474
- * the total number of items in the list exceeds the maximum that you specify, or the
2475
- * default maximum, the response is paginated. To get the next page of items, send a
2476
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2477
- * response as the <code>Marker</code> value in the subsequent request.</p>
2478
- */
2479
- public listDistributionsByKeyGroup(
2480
- args: ListDistributionsByKeyGroupCommandInput,
2481
- options?: __HttpHandlerOptions
2482
- ): Promise<ListDistributionsByKeyGroupCommandOutput>;
2483
- public listDistributionsByKeyGroup(
2484
- args: ListDistributionsByKeyGroupCommandInput,
2485
- cb: (err: any, data?: ListDistributionsByKeyGroupCommandOutput) => void
2486
- ): void;
2487
- public listDistributionsByKeyGroup(
2488
- args: ListDistributionsByKeyGroupCommandInput,
2489
- options: __HttpHandlerOptions,
2490
- cb: (err: any, data?: ListDistributionsByKeyGroupCommandOutput) => void
2491
- ): void;
2492
- public listDistributionsByKeyGroup(
2493
- args: ListDistributionsByKeyGroupCommandInput,
2494
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDistributionsByKeyGroupCommandOutput) => void),
2495
- cb?: (err: any, data?: ListDistributionsByKeyGroupCommandOutput) => void
2496
- ): Promise<ListDistributionsByKeyGroupCommandOutput> | void {
2497
- const command = new ListDistributionsByKeyGroupCommand(args);
2498
- if (typeof optionsOrCb === "function") {
2499
- this.send(command, optionsOrCb);
2500
- } else if (typeof cb === "function") {
2501
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2502
- this.send(command, optionsOrCb || {}, cb);
2503
- } else {
2504
- return this.send(command, optionsOrCb);
2505
- }
2506
- }
2507
-
2508
- /**
2509
- * <p>Gets a list of distribution IDs for distributions that have a cache behavior that’s
2510
- * associated with the specified origin request policy.</p>
2511
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2512
- * the total number of items in the list exceeds the maximum that you specify, or the
2513
- * default maximum, the response is paginated. To get the next page of items, send a
2514
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2515
- * response as the <code>Marker</code> value in the subsequent request.</p>
2516
- */
2517
- public listDistributionsByOriginRequestPolicyId(
2518
- args: ListDistributionsByOriginRequestPolicyIdCommandInput,
2519
- options?: __HttpHandlerOptions
2520
- ): Promise<ListDistributionsByOriginRequestPolicyIdCommandOutput>;
2521
- public listDistributionsByOriginRequestPolicyId(
2522
- args: ListDistributionsByOriginRequestPolicyIdCommandInput,
2523
- cb: (err: any, data?: ListDistributionsByOriginRequestPolicyIdCommandOutput) => void
2524
- ): void;
2525
- public listDistributionsByOriginRequestPolicyId(
2526
- args: ListDistributionsByOriginRequestPolicyIdCommandInput,
2527
- options: __HttpHandlerOptions,
2528
- cb: (err: any, data?: ListDistributionsByOriginRequestPolicyIdCommandOutput) => void
2529
- ): void;
2530
- public listDistributionsByOriginRequestPolicyId(
2531
- args: ListDistributionsByOriginRequestPolicyIdCommandInput,
2532
- optionsOrCb?:
2533
- | __HttpHandlerOptions
2534
- | ((err: any, data?: ListDistributionsByOriginRequestPolicyIdCommandOutput) => void),
2535
- cb?: (err: any, data?: ListDistributionsByOriginRequestPolicyIdCommandOutput) => void
2536
- ): Promise<ListDistributionsByOriginRequestPolicyIdCommandOutput> | void {
2537
- const command = new ListDistributionsByOriginRequestPolicyIdCommand(args);
2538
- if (typeof optionsOrCb === "function") {
2539
- this.send(command, optionsOrCb);
2540
- } else if (typeof cb === "function") {
2541
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2542
- this.send(command, optionsOrCb || {}, cb);
2543
- } else {
2544
- return this.send(command, optionsOrCb);
2545
- }
2546
- }
2547
-
2548
- /**
2549
- * <p>Gets a list of distributions that have a cache behavior that’s associated with the specified
2550
- * real-time log configuration.</p>
2551
- * <p>You can specify the real-time log configuration by its name or its Amazon Resource Name
2552
- * (ARN). You must provide at least one. If you provide both, CloudFront uses the name to
2553
- * identify the real-time log configuration to list distributions for.</p>
2554
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2555
- * the total number of items in the list exceeds the maximum that you specify, or the
2556
- * default maximum, the response is paginated. To get the next page of items, send a
2557
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2558
- * response as the <code>Marker</code> value in the subsequent request. </p>
2559
- */
2560
- public listDistributionsByRealtimeLogConfig(
2561
- args: ListDistributionsByRealtimeLogConfigCommandInput,
2562
- options?: __HttpHandlerOptions
2563
- ): Promise<ListDistributionsByRealtimeLogConfigCommandOutput>;
2564
- public listDistributionsByRealtimeLogConfig(
2565
- args: ListDistributionsByRealtimeLogConfigCommandInput,
2566
- cb: (err: any, data?: ListDistributionsByRealtimeLogConfigCommandOutput) => void
2567
- ): void;
2568
- public listDistributionsByRealtimeLogConfig(
2569
- args: ListDistributionsByRealtimeLogConfigCommandInput,
2570
- options: __HttpHandlerOptions,
2571
- cb: (err: any, data?: ListDistributionsByRealtimeLogConfigCommandOutput) => void
2572
- ): void;
2573
- public listDistributionsByRealtimeLogConfig(
2574
- args: ListDistributionsByRealtimeLogConfigCommandInput,
2575
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDistributionsByRealtimeLogConfigCommandOutput) => void),
2576
- cb?: (err: any, data?: ListDistributionsByRealtimeLogConfigCommandOutput) => void
2577
- ): Promise<ListDistributionsByRealtimeLogConfigCommandOutput> | void {
2578
- const command = new ListDistributionsByRealtimeLogConfigCommand(args);
2579
- if (typeof optionsOrCb === "function") {
2580
- this.send(command, optionsOrCb);
2581
- } else if (typeof cb === "function") {
2582
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2583
- this.send(command, optionsOrCb || {}, cb);
2584
- } else {
2585
- return this.send(command, optionsOrCb);
2586
- }
2587
- }
2588
-
2589
- /**
2590
- * <p>List the distributions that are associated with a specified WAF web ACL.</p>
2591
- */
2592
- public listDistributionsByWebACLId(
2593
- args: ListDistributionsByWebACLIdCommandInput,
2594
- options?: __HttpHandlerOptions
2595
- ): Promise<ListDistributionsByWebACLIdCommandOutput>;
2596
- public listDistributionsByWebACLId(
2597
- args: ListDistributionsByWebACLIdCommandInput,
2598
- cb: (err: any, data?: ListDistributionsByWebACLIdCommandOutput) => void
2599
- ): void;
2600
- public listDistributionsByWebACLId(
2601
- args: ListDistributionsByWebACLIdCommandInput,
2602
- options: __HttpHandlerOptions,
2603
- cb: (err: any, data?: ListDistributionsByWebACLIdCommandOutput) => void
2604
- ): void;
2605
- public listDistributionsByWebACLId(
2606
- args: ListDistributionsByWebACLIdCommandInput,
2607
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDistributionsByWebACLIdCommandOutput) => void),
2608
- cb?: (err: any, data?: ListDistributionsByWebACLIdCommandOutput) => void
2609
- ): Promise<ListDistributionsByWebACLIdCommandOutput> | void {
2610
- const command = new ListDistributionsByWebACLIdCommand(args);
2611
- if (typeof optionsOrCb === "function") {
2612
- this.send(command, optionsOrCb);
2613
- } else if (typeof cb === "function") {
2614
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2615
- this.send(command, optionsOrCb || {}, cb);
2616
- } else {
2617
- return this.send(command, optionsOrCb);
2618
- }
2619
- }
2620
-
2621
- /**
2622
- * <p>List all field-level encryption configurations that have been created in CloudFront for this account.</p>
2623
- */
2624
- public listFieldLevelEncryptionConfigs(
2625
- args: ListFieldLevelEncryptionConfigsCommandInput,
2626
- options?: __HttpHandlerOptions
2627
- ): Promise<ListFieldLevelEncryptionConfigsCommandOutput>;
2628
- public listFieldLevelEncryptionConfigs(
2629
- args: ListFieldLevelEncryptionConfigsCommandInput,
2630
- cb: (err: any, data?: ListFieldLevelEncryptionConfigsCommandOutput) => void
2631
- ): void;
2632
- public listFieldLevelEncryptionConfigs(
2633
- args: ListFieldLevelEncryptionConfigsCommandInput,
2634
- options: __HttpHandlerOptions,
2635
- cb: (err: any, data?: ListFieldLevelEncryptionConfigsCommandOutput) => void
2636
- ): void;
2637
- public listFieldLevelEncryptionConfigs(
2638
- args: ListFieldLevelEncryptionConfigsCommandInput,
2639
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFieldLevelEncryptionConfigsCommandOutput) => void),
2640
- cb?: (err: any, data?: ListFieldLevelEncryptionConfigsCommandOutput) => void
2641
- ): Promise<ListFieldLevelEncryptionConfigsCommandOutput> | void {
2642
- const command = new ListFieldLevelEncryptionConfigsCommand(args);
2643
- if (typeof optionsOrCb === "function") {
2644
- this.send(command, optionsOrCb);
2645
- } else if (typeof cb === "function") {
2646
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2647
- this.send(command, optionsOrCb || {}, cb);
2648
- } else {
2649
- return this.send(command, optionsOrCb);
2650
- }
2651
- }
2652
-
2653
- /**
2654
- * <p>Request a list of field-level encryption profiles that have been created in CloudFront for this account.</p>
2655
- */
2656
- public listFieldLevelEncryptionProfiles(
2657
- args: ListFieldLevelEncryptionProfilesCommandInput,
2658
- options?: __HttpHandlerOptions
2659
- ): Promise<ListFieldLevelEncryptionProfilesCommandOutput>;
2660
- public listFieldLevelEncryptionProfiles(
2661
- args: ListFieldLevelEncryptionProfilesCommandInput,
2662
- cb: (err: any, data?: ListFieldLevelEncryptionProfilesCommandOutput) => void
2663
- ): void;
2664
- public listFieldLevelEncryptionProfiles(
2665
- args: ListFieldLevelEncryptionProfilesCommandInput,
2666
- options: __HttpHandlerOptions,
2667
- cb: (err: any, data?: ListFieldLevelEncryptionProfilesCommandOutput) => void
2668
- ): void;
2669
- public listFieldLevelEncryptionProfiles(
2670
- args: ListFieldLevelEncryptionProfilesCommandInput,
2671
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFieldLevelEncryptionProfilesCommandOutput) => void),
2672
- cb?: (err: any, data?: ListFieldLevelEncryptionProfilesCommandOutput) => void
2673
- ): Promise<ListFieldLevelEncryptionProfilesCommandOutput> | void {
2674
- const command = new ListFieldLevelEncryptionProfilesCommand(args);
2675
- if (typeof optionsOrCb === "function") {
2676
- this.send(command, optionsOrCb);
2677
- } else if (typeof cb === "function") {
2678
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2679
- this.send(command, optionsOrCb || {}, cb);
2680
- } else {
2681
- return this.send(command, optionsOrCb);
2682
- }
2683
- }
2684
-
2685
- /**
2686
- * <p>Gets a list of all CloudFront functions in your account.</p>
2687
- * <p>You can optionally apply a filter to return only the functions that are in the
2688
- * specified stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p>
2689
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2690
- * the total number of items in the list exceeds the maximum that you specify, or the
2691
- * default maximum, the response is paginated. To get the next page of items, send a
2692
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2693
- * response as the <code>Marker</code> value in the subsequent request.</p>
2694
- */
2695
- public listFunctions(
2696
- args: ListFunctionsCommandInput,
2697
- options?: __HttpHandlerOptions
2698
- ): Promise<ListFunctionsCommandOutput>;
2699
- public listFunctions(
2700
- args: ListFunctionsCommandInput,
2701
- cb: (err: any, data?: ListFunctionsCommandOutput) => void
2702
- ): void;
2703
- public listFunctions(
2704
- args: ListFunctionsCommandInput,
2705
- options: __HttpHandlerOptions,
2706
- cb: (err: any, data?: ListFunctionsCommandOutput) => void
2707
- ): void;
2708
- public listFunctions(
2709
- args: ListFunctionsCommandInput,
2710
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFunctionsCommandOutput) => void),
2711
- cb?: (err: any, data?: ListFunctionsCommandOutput) => void
2712
- ): Promise<ListFunctionsCommandOutput> | void {
2713
- const command = new ListFunctionsCommand(args);
2714
- if (typeof optionsOrCb === "function") {
2715
- this.send(command, optionsOrCb);
2716
- } else if (typeof cb === "function") {
2717
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2718
- this.send(command, optionsOrCb || {}, cb);
2719
- } else {
2720
- return this.send(command, optionsOrCb);
2721
- }
2722
- }
2723
-
2724
- /**
2725
- * <p>Lists invalidation batches. </p>
2726
- */
2727
- public listInvalidations(
2728
- args: ListInvalidationsCommandInput,
2729
- options?: __HttpHandlerOptions
2730
- ): Promise<ListInvalidationsCommandOutput>;
2731
- public listInvalidations(
2732
- args: ListInvalidationsCommandInput,
2733
- cb: (err: any, data?: ListInvalidationsCommandOutput) => void
2734
- ): void;
2735
- public listInvalidations(
2736
- args: ListInvalidationsCommandInput,
2737
- options: __HttpHandlerOptions,
2738
- cb: (err: any, data?: ListInvalidationsCommandOutput) => void
2739
- ): void;
2740
- public listInvalidations(
2741
- args: ListInvalidationsCommandInput,
2742
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListInvalidationsCommandOutput) => void),
2743
- cb?: (err: any, data?: ListInvalidationsCommandOutput) => void
2744
- ): Promise<ListInvalidationsCommandOutput> | void {
2745
- const command = new ListInvalidationsCommand(args);
2746
- if (typeof optionsOrCb === "function") {
2747
- this.send(command, optionsOrCb);
2748
- } else if (typeof cb === "function") {
2749
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2750
- this.send(command, optionsOrCb || {}, cb);
2751
- } else {
2752
- return this.send(command, optionsOrCb);
2753
- }
2754
- }
2755
-
2756
- /**
2757
- * <p>Gets a list of key groups.</p>
2758
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2759
- * the total number of items in the list exceeds the maximum that you specify, or the
2760
- * default maximum, the response is paginated. To get the next page of items, send a
2761
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2762
- * response as the <code>Marker</code> value in the subsequent request.</p>
2763
- */
2764
- public listKeyGroups(
2765
- args: ListKeyGroupsCommandInput,
2766
- options?: __HttpHandlerOptions
2767
- ): Promise<ListKeyGroupsCommandOutput>;
2768
- public listKeyGroups(
2769
- args: ListKeyGroupsCommandInput,
2770
- cb: (err: any, data?: ListKeyGroupsCommandOutput) => void
2771
- ): void;
2772
- public listKeyGroups(
2773
- args: ListKeyGroupsCommandInput,
2774
- options: __HttpHandlerOptions,
2775
- cb: (err: any, data?: ListKeyGroupsCommandOutput) => void
2776
- ): void;
2777
- public listKeyGroups(
2778
- args: ListKeyGroupsCommandInput,
2779
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListKeyGroupsCommandOutput) => void),
2780
- cb?: (err: any, data?: ListKeyGroupsCommandOutput) => void
2781
- ): Promise<ListKeyGroupsCommandOutput> | void {
2782
- const command = new ListKeyGroupsCommand(args);
2783
- if (typeof optionsOrCb === "function") {
2784
- this.send(command, optionsOrCb);
2785
- } else if (typeof cb === "function") {
2786
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2787
- this.send(command, optionsOrCb || {}, cb);
2788
- } else {
2789
- return this.send(command, optionsOrCb);
2790
- }
2791
- }
2792
-
2793
- /**
2794
- * <p>Gets a list of origin request policies.</p>
2795
- * <p>You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or
2796
- * only the custom policies created in your account.</p>
2797
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2798
- * the total number of items in the list exceeds the maximum that you specify, or the
2799
- * default maximum, the response is paginated. To get the next page of items, send a
2800
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2801
- * response as the <code>Marker</code> value in the subsequent request.</p>
2802
- */
2803
- public listOriginRequestPolicies(
2804
- args: ListOriginRequestPoliciesCommandInput,
2805
- options?: __HttpHandlerOptions
2806
- ): Promise<ListOriginRequestPoliciesCommandOutput>;
2807
- public listOriginRequestPolicies(
2808
- args: ListOriginRequestPoliciesCommandInput,
2809
- cb: (err: any, data?: ListOriginRequestPoliciesCommandOutput) => void
2810
- ): void;
2811
- public listOriginRequestPolicies(
2812
- args: ListOriginRequestPoliciesCommandInput,
2813
- options: __HttpHandlerOptions,
2814
- cb: (err: any, data?: ListOriginRequestPoliciesCommandOutput) => void
2815
- ): void;
2816
- public listOriginRequestPolicies(
2817
- args: ListOriginRequestPoliciesCommandInput,
2818
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListOriginRequestPoliciesCommandOutput) => void),
2819
- cb?: (err: any, data?: ListOriginRequestPoliciesCommandOutput) => void
2820
- ): Promise<ListOriginRequestPoliciesCommandOutput> | void {
2821
- const command = new ListOriginRequestPoliciesCommand(args);
2822
- if (typeof optionsOrCb === "function") {
2823
- this.send(command, optionsOrCb);
2824
- } else if (typeof cb === "function") {
2825
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2826
- this.send(command, optionsOrCb || {}, cb);
2827
- } else {
2828
- return this.send(command, optionsOrCb);
2829
- }
2830
- }
2831
-
2832
- /**
2833
- * <p>List all public keys that have been added to CloudFront for this account.</p>
2834
- */
2835
- public listPublicKeys(
2836
- args: ListPublicKeysCommandInput,
2837
- options?: __HttpHandlerOptions
2838
- ): Promise<ListPublicKeysCommandOutput>;
2839
- public listPublicKeys(
2840
- args: ListPublicKeysCommandInput,
2841
- cb: (err: any, data?: ListPublicKeysCommandOutput) => void
2842
- ): void;
2843
- public listPublicKeys(
2844
- args: ListPublicKeysCommandInput,
2845
- options: __HttpHandlerOptions,
2846
- cb: (err: any, data?: ListPublicKeysCommandOutput) => void
2847
- ): void;
2848
- public listPublicKeys(
2849
- args: ListPublicKeysCommandInput,
2850
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPublicKeysCommandOutput) => void),
2851
- cb?: (err: any, data?: ListPublicKeysCommandOutput) => void
2852
- ): Promise<ListPublicKeysCommandOutput> | void {
2853
- const command = new ListPublicKeysCommand(args);
2854
- if (typeof optionsOrCb === "function") {
2855
- this.send(command, optionsOrCb);
2856
- } else if (typeof cb === "function") {
2857
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2858
- this.send(command, optionsOrCb || {}, cb);
2859
- } else {
2860
- return this.send(command, optionsOrCb);
2861
- }
2862
- }
2863
-
2864
- /**
2865
- * <p>Gets a list of real-time log configurations.</p>
2866
- * <p>You can optionally specify the maximum number of items to receive in the response. If
2867
- * the total number of items in the list exceeds the maximum that you specify, or the
2868
- * default maximum, the response is paginated. To get the next page of items, send a
2869
- * subsequent request that specifies the <code>NextMarker</code> value from the current
2870
- * response as the <code>Marker</code> value in the subsequent request. </p>
2871
- */
2872
- public listRealtimeLogConfigs(
2873
- args: ListRealtimeLogConfigsCommandInput,
2874
- options?: __HttpHandlerOptions
2875
- ): Promise<ListRealtimeLogConfigsCommandOutput>;
2876
- public listRealtimeLogConfigs(
2877
- args: ListRealtimeLogConfigsCommandInput,
2878
- cb: (err: any, data?: ListRealtimeLogConfigsCommandOutput) => void
2879
- ): void;
2880
- public listRealtimeLogConfigs(
2881
- args: ListRealtimeLogConfigsCommandInput,
2882
- options: __HttpHandlerOptions,
2883
- cb: (err: any, data?: ListRealtimeLogConfigsCommandOutput) => void
2884
- ): void;
2885
- public listRealtimeLogConfigs(
2886
- args: ListRealtimeLogConfigsCommandInput,
2887
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRealtimeLogConfigsCommandOutput) => void),
2888
- cb?: (err: any, data?: ListRealtimeLogConfigsCommandOutput) => void
2889
- ): Promise<ListRealtimeLogConfigsCommandOutput> | void {
2890
- const command = new ListRealtimeLogConfigsCommand(args);
2891
- if (typeof optionsOrCb === "function") {
2892
- this.send(command, optionsOrCb);
2893
- } else if (typeof cb === "function") {
2894
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2895
- this.send(command, optionsOrCb || {}, cb);
2896
- } else {
2897
- return this.send(command, optionsOrCb);
2898
- }
2899
- }
2900
-
2901
- /**
2902
- * <p>List streaming distributions. </p>
2903
- */
2904
- public listStreamingDistributions(
2905
- args: ListStreamingDistributionsCommandInput,
2906
- options?: __HttpHandlerOptions
2907
- ): Promise<ListStreamingDistributionsCommandOutput>;
2908
- public listStreamingDistributions(
2909
- args: ListStreamingDistributionsCommandInput,
2910
- cb: (err: any, data?: ListStreamingDistributionsCommandOutput) => void
2911
- ): void;
2912
- public listStreamingDistributions(
2913
- args: ListStreamingDistributionsCommandInput,
2914
- options: __HttpHandlerOptions,
2915
- cb: (err: any, data?: ListStreamingDistributionsCommandOutput) => void
2916
- ): void;
2917
- public listStreamingDistributions(
2918
- args: ListStreamingDistributionsCommandInput,
2919
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListStreamingDistributionsCommandOutput) => void),
2920
- cb?: (err: any, data?: ListStreamingDistributionsCommandOutput) => void
2921
- ): Promise<ListStreamingDistributionsCommandOutput> | void {
2922
- const command = new ListStreamingDistributionsCommand(args);
2923
- if (typeof optionsOrCb === "function") {
2924
- this.send(command, optionsOrCb);
2925
- } else if (typeof cb === "function") {
2926
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2927
- this.send(command, optionsOrCb || {}, cb);
2928
- } else {
2929
- return this.send(command, optionsOrCb);
2930
- }
2931
- }
2932
-
2933
- /**
2934
- * <p>List tags for a CloudFront resource.</p>
2935
- */
2936
- public listTagsForResource(
2937
- args: ListTagsForResourceCommandInput,
2938
- options?: __HttpHandlerOptions
2939
- ): Promise<ListTagsForResourceCommandOutput>;
2940
- public listTagsForResource(
2941
- args: ListTagsForResourceCommandInput,
2942
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
2943
- ): void;
2944
- public listTagsForResource(
2945
- args: ListTagsForResourceCommandInput,
2946
- options: __HttpHandlerOptions,
2947
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
2948
- ): void;
2949
- public listTagsForResource(
2950
- args: ListTagsForResourceCommandInput,
2951
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
2952
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
2953
- ): Promise<ListTagsForResourceCommandOutput> | void {
2954
- const command = new ListTagsForResourceCommand(args);
2955
- if (typeof optionsOrCb === "function") {
2956
- this.send(command, optionsOrCb);
2957
- } else if (typeof cb === "function") {
2958
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2959
- this.send(command, optionsOrCb || {}, cb);
2960
- } else {
2961
- return this.send(command, optionsOrCb);
2962
- }
2963
- }
2964
-
2965
- /**
2966
- * <p>Publishes a CloudFront function by copying the function code from the <code>DEVELOPMENT</code>
2967
- * stage to <code>LIVE</code>. This automatically updates all cache behaviors that are
2968
- * using this function to use the newly published copy in the <code>LIVE</code>
2969
- * stage.</p>
2970
- * <p>When a function is published to the <code>LIVE</code> stage, you can attach the function to
2971
- * a distribution’s cache behavior, using the function’s Amazon Resource Name (ARN).</p>
2972
- * <p>To publish a function, you must provide the function’s name and version (<code>ETag</code>
2973
- * value). To get these values, you can use <code>ListFunctions</code> and
2974
- * <code>DescribeFunction</code>.</p>
2975
- */
2976
- public publishFunction(
2977
- args: PublishFunctionCommandInput,
2978
- options?: __HttpHandlerOptions
2979
- ): Promise<PublishFunctionCommandOutput>;
2980
- public publishFunction(
2981
- args: PublishFunctionCommandInput,
2982
- cb: (err: any, data?: PublishFunctionCommandOutput) => void
2983
- ): void;
2984
- public publishFunction(
2985
- args: PublishFunctionCommandInput,
2986
- options: __HttpHandlerOptions,
2987
- cb: (err: any, data?: PublishFunctionCommandOutput) => void
2988
- ): void;
2989
- public publishFunction(
2990
- args: PublishFunctionCommandInput,
2991
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PublishFunctionCommandOutput) => void),
2992
- cb?: (err: any, data?: PublishFunctionCommandOutput) => void
2993
- ): Promise<PublishFunctionCommandOutput> | void {
2994
- const command = new PublishFunctionCommand(args);
2995
- if (typeof optionsOrCb === "function") {
2996
- this.send(command, optionsOrCb);
2997
- } else if (typeof cb === "function") {
2998
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2999
- this.send(command, optionsOrCb || {}, cb);
3000
- } else {
3001
- return this.send(command, optionsOrCb);
3002
- }
3003
- }
3004
-
3005
- /**
3006
- * <p>Add tags to a CloudFront resource.</p>
3007
- */
3008
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
3009
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
3010
- public tagResource(
3011
- args: TagResourceCommandInput,
3012
- options: __HttpHandlerOptions,
3013
- cb: (err: any, data?: TagResourceCommandOutput) => void
3014
- ): void;
3015
- public tagResource(
3016
- args: TagResourceCommandInput,
3017
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
3018
- cb?: (err: any, data?: TagResourceCommandOutput) => void
3019
- ): Promise<TagResourceCommandOutput> | void {
3020
- const command = new TagResourceCommand(args);
3021
- if (typeof optionsOrCb === "function") {
3022
- this.send(command, optionsOrCb);
3023
- } else if (typeof cb === "function") {
3024
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3025
- this.send(command, optionsOrCb || {}, cb);
3026
- } else {
3027
- return this.send(command, optionsOrCb);
3028
- }
3029
- }
3030
-
3031
- /**
3032
- * <p>Tests a CloudFront function.</p>
3033
- * <p>To test a function, you provide an <i>event object</i> that represents an HTTP
3034
- * request or response that your CloudFront distribution could receive in production. CloudFront runs
3035
- * the function, passing it the event object that you provided, and returns the function’s
3036
- * result (the modified event object) in the response. The response also contains function
3037
- * logs and error messages, if any exist. For more information about testing functions, see
3038
- * <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function">Testing functions</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3039
- * <p>To test a function, you provide the function’s name and version (<code>ETag</code> value)
3040
- * along with the event object. To get the function’s name and version, you can use
3041
- * <code>ListFunctions</code> and <code>DescribeFunction</code>.</p>
3042
- */
3043
- public testFunction(
3044
- args: TestFunctionCommandInput,
3045
- options?: __HttpHandlerOptions
3046
- ): Promise<TestFunctionCommandOutput>;
3047
- public testFunction(args: TestFunctionCommandInput, cb: (err: any, data?: TestFunctionCommandOutput) => void): void;
3048
- public testFunction(
3049
- args: TestFunctionCommandInput,
3050
- options: __HttpHandlerOptions,
3051
- cb: (err: any, data?: TestFunctionCommandOutput) => void
3052
- ): void;
3053
- public testFunction(
3054
- args: TestFunctionCommandInput,
3055
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestFunctionCommandOutput) => void),
3056
- cb?: (err: any, data?: TestFunctionCommandOutput) => void
3057
- ): Promise<TestFunctionCommandOutput> | void {
3058
- const command = new TestFunctionCommand(args);
3059
- if (typeof optionsOrCb === "function") {
3060
- this.send(command, optionsOrCb);
3061
- } else if (typeof cb === "function") {
3062
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3063
- this.send(command, optionsOrCb || {}, cb);
3064
- } else {
3065
- return this.send(command, optionsOrCb);
3066
- }
3067
- }
3068
-
3069
- /**
3070
- * <p>Remove tags from a CloudFront resource.</p>
3071
- */
3072
- public untagResource(
3073
- args: UntagResourceCommandInput,
3074
- options?: __HttpHandlerOptions
3075
- ): Promise<UntagResourceCommandOutput>;
3076
- public untagResource(
3077
- args: UntagResourceCommandInput,
3078
- cb: (err: any, data?: UntagResourceCommandOutput) => void
3079
- ): void;
3080
- public untagResource(
3081
- args: UntagResourceCommandInput,
3082
- options: __HttpHandlerOptions,
3083
- cb: (err: any, data?: UntagResourceCommandOutput) => void
3084
- ): void;
3085
- public untagResource(
3086
- args: UntagResourceCommandInput,
3087
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
3088
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
3089
- ): Promise<UntagResourceCommandOutput> | void {
3090
- const command = new UntagResourceCommand(args);
3091
- if (typeof optionsOrCb === "function") {
3092
- this.send(command, optionsOrCb);
3093
- } else if (typeof cb === "function") {
3094
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3095
- this.send(command, optionsOrCb || {}, cb);
3096
- } else {
3097
- return this.send(command, optionsOrCb);
3098
- }
3099
- }
3100
-
3101
- /**
3102
- * <p>Updates a cache policy configuration.</p>
3103
- * <p>When you update a cache policy configuration, all the fields are updated with the
3104
- * values provided in the request. You cannot update some fields independent of others. To
3105
- * update a cache policy configuration:</p>
3106
- * <ol>
3107
- * <li>
3108
- * <p>Use <code>GetCachePolicyConfig</code> to get the current configuration.</p>
3109
- * </li>
3110
- * <li>
3111
- * <p>Locally modify the fields in the cache policy configuration that you want to
3112
- * update.</p>
3113
- * </li>
3114
- * <li>
3115
- * <p>Call <code>UpdateCachePolicy</code> by providing the entire cache policy
3116
- * configuration, including the fields that you modified and those that you
3117
- * didn’t.</p>
3118
- * </li>
3119
- * </ol>
3120
- */
3121
- public updateCachePolicy(
3122
- args: UpdateCachePolicyCommandInput,
3123
- options?: __HttpHandlerOptions
3124
- ): Promise<UpdateCachePolicyCommandOutput>;
3125
- public updateCachePolicy(
3126
- args: UpdateCachePolicyCommandInput,
3127
- cb: (err: any, data?: UpdateCachePolicyCommandOutput) => void
3128
- ): void;
3129
- public updateCachePolicy(
3130
- args: UpdateCachePolicyCommandInput,
3131
- options: __HttpHandlerOptions,
3132
- cb: (err: any, data?: UpdateCachePolicyCommandOutput) => void
3133
- ): void;
3134
- public updateCachePolicy(
3135
- args: UpdateCachePolicyCommandInput,
3136
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateCachePolicyCommandOutput) => void),
3137
- cb?: (err: any, data?: UpdateCachePolicyCommandOutput) => void
3138
- ): Promise<UpdateCachePolicyCommandOutput> | void {
3139
- const command = new UpdateCachePolicyCommand(args);
3140
- if (typeof optionsOrCb === "function") {
3141
- this.send(command, optionsOrCb);
3142
- } else if (typeof cb === "function") {
3143
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3144
- this.send(command, optionsOrCb || {}, cb);
3145
- } else {
3146
- return this.send(command, optionsOrCb);
3147
- }
3148
- }
3149
-
3150
- /**
3151
- * <p>Update an origin access identity. </p>
3152
- */
3153
- public updateCloudFrontOriginAccessIdentity(
3154
- args: UpdateCloudFrontOriginAccessIdentityCommandInput,
3155
- options?: __HttpHandlerOptions
3156
- ): Promise<UpdateCloudFrontOriginAccessIdentityCommandOutput>;
3157
- public updateCloudFrontOriginAccessIdentity(
3158
- args: UpdateCloudFrontOriginAccessIdentityCommandInput,
3159
- cb: (err: any, data?: UpdateCloudFrontOriginAccessIdentityCommandOutput) => void
3160
- ): void;
3161
- public updateCloudFrontOriginAccessIdentity(
3162
- args: UpdateCloudFrontOriginAccessIdentityCommandInput,
3163
- options: __HttpHandlerOptions,
3164
- cb: (err: any, data?: UpdateCloudFrontOriginAccessIdentityCommandOutput) => void
3165
- ): void;
3166
- public updateCloudFrontOriginAccessIdentity(
3167
- args: UpdateCloudFrontOriginAccessIdentityCommandInput,
3168
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateCloudFrontOriginAccessIdentityCommandOutput) => void),
3169
- cb?: (err: any, data?: UpdateCloudFrontOriginAccessIdentityCommandOutput) => void
3170
- ): Promise<UpdateCloudFrontOriginAccessIdentityCommandOutput> | void {
3171
- const command = new UpdateCloudFrontOriginAccessIdentityCommand(args);
3172
- if (typeof optionsOrCb === "function") {
3173
- this.send(command, optionsOrCb);
3174
- } else if (typeof cb === "function") {
3175
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3176
- this.send(command, optionsOrCb || {}, cb);
3177
- } else {
3178
- return this.send(command, optionsOrCb);
3179
- }
3180
- }
3181
-
3182
- /**
3183
- * <p>Updates the configuration for a web distribution. </p>
3184
- * <important>
3185
- * <p>When you update a distribution, there are more required fields than when you create a distribution.
3186
- * When you update your distribution by using this API action, follow the steps here to get the current configuration
3187
- * and then make your updates, to make sure that you include all of the required fields. To view a summary,
3188
- * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html">Required
3189
- * Fields for Create Distribution and Update Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3190
- * </important>
3191
- * <p>The update process includes getting the current distribution configuration, updating the XML document that is
3192
- * returned to make your changes, and then submitting an <code>UpdateDistribution</code> request to make the updates.</p>
3193
- * <p>For information about updating a distribution using the CloudFront console instead, see
3194
- * <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html">Creating a
3195
- * Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3196
- *
3197
- * <p>
3198
- * <b>To update a web distribution using the CloudFront API</b>
3199
- * </p>
3200
- * <ol>
3201
- * <li>
3202
- * <p>Submit a
3203
- * <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html">GetDistributionConfig</a>
3204
- * request to get the current configuration and an <code>Etag</code> header
3205
- * for the distribution.</p>
3206
- * <note>
3207
- * <p>If you update the distribution again, you must get a new <code>Etag</code> header.</p>
3208
- * </note>
3209
- * </li>
3210
- * <li>
3211
- * <p>Update the XML document that was returned in the response to your <code>GetDistributionConfig</code> request to include
3212
- * your changes. </p>
3213
- * <important>
3214
- * <p>When you edit the XML file, be aware of the following:</p>
3215
- * <ul>
3216
- * <li>
3217
- * <p>You must strip out the ETag parameter that is returned.</p>
3218
- * </li>
3219
- * <li>
3220
- * <p>Additional fields are required when you update a distribution. There may be fields included in the
3221
- * XML file for features that you haven't configured for your distribution. This is expected and required to
3222
- * successfully update the distribution.</p>
3223
- * </li>
3224
- * <li>
3225
- * <p>You can't change the value of <code>CallerReference</code>. If you try to change this value, CloudFront returns an
3226
- * <code>IllegalUpdate</code> error. </p>
3227
- * </li>
3228
- * <li>
3229
- * <p>The new configuration replaces the existing configuration; the values that you specify in an
3230
- * <code>UpdateDistribution</code> request are not merged into your existing configuration. When you add, delete, or
3231
- * replace values in an element that allows multiple values (for example, <code>CNAME</code>), you must specify all of the
3232
- * values that you want to appear in the updated distribution. In addition,
3233
- * you must update the corresponding <code>Quantity</code> element.</p>
3234
- * </li>
3235
- * </ul>
3236
- * </important>
3237
- * </li>
3238
- * <li>
3239
- * <p>Submit an <code>UpdateDistribution</code> request to update the configuration for your distribution:</p>
3240
- * <ul>
3241
- * <li>
3242
- * <p>In the request body, include the XML document that you updated in Step 2. The request body must include an
3243
- * XML document with a <code>DistributionConfig</code> element.</p>
3244
- * </li>
3245
- * <li>
3246
- * <p>Set the value of the HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront returned
3247
- * when you submitted the <code>GetDistributionConfig</code> request in Step 1.</p>
3248
- * </li>
3249
- * </ul>
3250
- * </li>
3251
- * <li>
3252
- * <p>Review the response to the <code>UpdateDistribution</code> request to confirm that the configuration was
3253
- * successfully updated.</p>
3254
- * </li>
3255
- * <li>
3256
- * <p>Optional: Submit a
3257
- * <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
3258
- * request to confirm that your changes have propagated.
3259
- * When propagation is complete, the value of <code>Status</code> is <code>Deployed</code>.</p>
3260
- * </li>
3261
- * </ol>
3262
- */
3263
- public updateDistribution(
3264
- args: UpdateDistributionCommandInput,
3265
- options?: __HttpHandlerOptions
3266
- ): Promise<UpdateDistributionCommandOutput>;
3267
- public updateDistribution(
3268
- args: UpdateDistributionCommandInput,
3269
- cb: (err: any, data?: UpdateDistributionCommandOutput) => void
3270
- ): void;
3271
- public updateDistribution(
3272
- args: UpdateDistributionCommandInput,
3273
- options: __HttpHandlerOptions,
3274
- cb: (err: any, data?: UpdateDistributionCommandOutput) => void
3275
- ): void;
3276
- public updateDistribution(
3277
- args: UpdateDistributionCommandInput,
3278
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDistributionCommandOutput) => void),
3279
- cb?: (err: any, data?: UpdateDistributionCommandOutput) => void
3280
- ): Promise<UpdateDistributionCommandOutput> | void {
3281
- const command = new UpdateDistributionCommand(args);
3282
- if (typeof optionsOrCb === "function") {
3283
- this.send(command, optionsOrCb);
3284
- } else if (typeof cb === "function") {
3285
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3286
- this.send(command, optionsOrCb || {}, cb);
3287
- } else {
3288
- return this.send(command, optionsOrCb);
3289
- }
3290
- }
3291
-
3292
- /**
3293
- * <p>Update a field-level encryption configuration. </p>
3294
- */
3295
- public updateFieldLevelEncryptionConfig(
3296
- args: UpdateFieldLevelEncryptionConfigCommandInput,
3297
- options?: __HttpHandlerOptions
3298
- ): Promise<UpdateFieldLevelEncryptionConfigCommandOutput>;
3299
- public updateFieldLevelEncryptionConfig(
3300
- args: UpdateFieldLevelEncryptionConfigCommandInput,
3301
- cb: (err: any, data?: UpdateFieldLevelEncryptionConfigCommandOutput) => void
3302
- ): void;
3303
- public updateFieldLevelEncryptionConfig(
3304
- args: UpdateFieldLevelEncryptionConfigCommandInput,
3305
- options: __HttpHandlerOptions,
3306
- cb: (err: any, data?: UpdateFieldLevelEncryptionConfigCommandOutput) => void
3307
- ): void;
3308
- public updateFieldLevelEncryptionConfig(
3309
- args: UpdateFieldLevelEncryptionConfigCommandInput,
3310
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFieldLevelEncryptionConfigCommandOutput) => void),
3311
- cb?: (err: any, data?: UpdateFieldLevelEncryptionConfigCommandOutput) => void
3312
- ): Promise<UpdateFieldLevelEncryptionConfigCommandOutput> | void {
3313
- const command = new UpdateFieldLevelEncryptionConfigCommand(args);
3314
- if (typeof optionsOrCb === "function") {
3315
- this.send(command, optionsOrCb);
3316
- } else if (typeof cb === "function") {
3317
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3318
- this.send(command, optionsOrCb || {}, cb);
3319
- } else {
3320
- return this.send(command, optionsOrCb);
3321
- }
3322
- }
3323
-
3324
- /**
3325
- * <p>Update a field-level encryption profile. </p>
3326
- */
3327
- public updateFieldLevelEncryptionProfile(
3328
- args: UpdateFieldLevelEncryptionProfileCommandInput,
3329
- options?: __HttpHandlerOptions
3330
- ): Promise<UpdateFieldLevelEncryptionProfileCommandOutput>;
3331
- public updateFieldLevelEncryptionProfile(
3332
- args: UpdateFieldLevelEncryptionProfileCommandInput,
3333
- cb: (err: any, data?: UpdateFieldLevelEncryptionProfileCommandOutput) => void
3334
- ): void;
3335
- public updateFieldLevelEncryptionProfile(
3336
- args: UpdateFieldLevelEncryptionProfileCommandInput,
3337
- options: __HttpHandlerOptions,
3338
- cb: (err: any, data?: UpdateFieldLevelEncryptionProfileCommandOutput) => void
3339
- ): void;
3340
- public updateFieldLevelEncryptionProfile(
3341
- args: UpdateFieldLevelEncryptionProfileCommandInput,
3342
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFieldLevelEncryptionProfileCommandOutput) => void),
3343
- cb?: (err: any, data?: UpdateFieldLevelEncryptionProfileCommandOutput) => void
3344
- ): Promise<UpdateFieldLevelEncryptionProfileCommandOutput> | void {
3345
- const command = new UpdateFieldLevelEncryptionProfileCommand(args);
3346
- if (typeof optionsOrCb === "function") {
3347
- this.send(command, optionsOrCb);
3348
- } else if (typeof cb === "function") {
3349
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3350
- this.send(command, optionsOrCb || {}, cb);
3351
- } else {
3352
- return this.send(command, optionsOrCb);
3353
- }
3354
- }
3355
-
3356
- /**
3357
- * <p>Updates a CloudFront function.</p>
3358
- * <p>You can update a function’s code or the comment that describes the function. You
3359
- * cannot update a function’s name.</p>
3360
- * <p>To update a function, you provide the function’s name and version (<code>ETag</code> value)
3361
- * along with the updated function code. To get the name and version, you can use
3362
- * <code>ListFunctions</code> and <code>DescribeFunction</code>.</p>
3363
- */
3364
- public updateFunction(
3365
- args: UpdateFunctionCommandInput,
3366
- options?: __HttpHandlerOptions
3367
- ): Promise<UpdateFunctionCommandOutput>;
3368
- public updateFunction(
3369
- args: UpdateFunctionCommandInput,
3370
- cb: (err: any, data?: UpdateFunctionCommandOutput) => void
3371
- ): void;
3372
- public updateFunction(
3373
- args: UpdateFunctionCommandInput,
3374
- options: __HttpHandlerOptions,
3375
- cb: (err: any, data?: UpdateFunctionCommandOutput) => void
3376
- ): void;
3377
- public updateFunction(
3378
- args: UpdateFunctionCommandInput,
3379
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFunctionCommandOutput) => void),
3380
- cb?: (err: any, data?: UpdateFunctionCommandOutput) => void
3381
- ): Promise<UpdateFunctionCommandOutput> | void {
3382
- const command = new UpdateFunctionCommand(args);
3383
- if (typeof optionsOrCb === "function") {
3384
- this.send(command, optionsOrCb);
3385
- } else if (typeof cb === "function") {
3386
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3387
- this.send(command, optionsOrCb || {}, cb);
3388
- } else {
3389
- return this.send(command, optionsOrCb);
3390
- }
3391
- }
3392
-
3393
- /**
3394
- * <p>Updates a key group.</p>
3395
- * <p>When you update a key group, all the fields are updated with the values provided in
3396
- * the request. You cannot update some fields independent of others. To update a key
3397
- * group:</p>
3398
- * <ol>
3399
- * <li>
3400
- * <p>Get the current key group with <code>GetKeyGroup</code> or
3401
- * <code>GetKeyGroupConfig</code>.</p>
3402
- * </li>
3403
- * <li>
3404
- * <p>Locally modify the fields in the key group that you want to update. For
3405
- * example, add or remove public key IDs.</p>
3406
- * </li>
3407
- * <li>
3408
- * <p>Call <code>UpdateKeyGroup</code> with the entire key group object, including
3409
- * the fields that you modified and those that you didn’t.</p>
3410
- * </li>
3411
- * </ol>
3412
- */
3413
- public updateKeyGroup(
3414
- args: UpdateKeyGroupCommandInput,
3415
- options?: __HttpHandlerOptions
3416
- ): Promise<UpdateKeyGroupCommandOutput>;
3417
- public updateKeyGroup(
3418
- args: UpdateKeyGroupCommandInput,
3419
- cb: (err: any, data?: UpdateKeyGroupCommandOutput) => void
3420
- ): void;
3421
- public updateKeyGroup(
3422
- args: UpdateKeyGroupCommandInput,
3423
- options: __HttpHandlerOptions,
3424
- cb: (err: any, data?: UpdateKeyGroupCommandOutput) => void
3425
- ): void;
3426
- public updateKeyGroup(
3427
- args: UpdateKeyGroupCommandInput,
3428
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateKeyGroupCommandOutput) => void),
3429
- cb?: (err: any, data?: UpdateKeyGroupCommandOutput) => void
3430
- ): Promise<UpdateKeyGroupCommandOutput> | void {
3431
- const command = new UpdateKeyGroupCommand(args);
3432
- if (typeof optionsOrCb === "function") {
3433
- this.send(command, optionsOrCb);
3434
- } else if (typeof cb === "function") {
3435
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3436
- this.send(command, optionsOrCb || {}, cb);
3437
- } else {
3438
- return this.send(command, optionsOrCb);
3439
- }
3440
- }
3441
-
3442
- /**
3443
- * <p>Updates an origin request policy configuration.</p>
3444
- * <p>When you update an origin request policy configuration, all the fields are updated
3445
- * with the values provided in the request. You cannot update some fields independent of
3446
- * others. To update an origin request policy configuration:</p>
3447
- * <ol>
3448
- * <li>
3449
- * <p>Use <code>GetOriginRequestPolicyConfig</code> to get the current configuration.</p>
3450
- * </li>
3451
- * <li>
3452
- * <p>Locally modify the fields in the origin request policy configuration that you
3453
- * want to update.</p>
3454
- * </li>
3455
- * <li>
3456
- * <p>Call <code>UpdateOriginRequestPolicy</code> by providing the entire origin
3457
- * request policy configuration, including the fields that you modified and those
3458
- * that you didn’t.</p>
3459
- * </li>
3460
- * </ol>
3461
- */
3462
- public updateOriginRequestPolicy(
3463
- args: UpdateOriginRequestPolicyCommandInput,
3464
- options?: __HttpHandlerOptions
3465
- ): Promise<UpdateOriginRequestPolicyCommandOutput>;
3466
- public updateOriginRequestPolicy(
3467
- args: UpdateOriginRequestPolicyCommandInput,
3468
- cb: (err: any, data?: UpdateOriginRequestPolicyCommandOutput) => void
3469
- ): void;
3470
- public updateOriginRequestPolicy(
3471
- args: UpdateOriginRequestPolicyCommandInput,
3472
- options: __HttpHandlerOptions,
3473
- cb: (err: any, data?: UpdateOriginRequestPolicyCommandOutput) => void
3474
- ): void;
3475
- public updateOriginRequestPolicy(
3476
- args: UpdateOriginRequestPolicyCommandInput,
3477
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateOriginRequestPolicyCommandOutput) => void),
3478
- cb?: (err: any, data?: UpdateOriginRequestPolicyCommandOutput) => void
3479
- ): Promise<UpdateOriginRequestPolicyCommandOutput> | void {
3480
- const command = new UpdateOriginRequestPolicyCommand(args);
3481
- if (typeof optionsOrCb === "function") {
3482
- this.send(command, optionsOrCb);
3483
- } else if (typeof cb === "function") {
3484
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3485
- this.send(command, optionsOrCb || {}, cb);
3486
- } else {
3487
- return this.send(command, optionsOrCb);
3488
- }
3489
- }
3490
-
3491
- /**
3492
- * <p>Update public key information. Note that the only value you can change is the comment.</p>
3493
- */
3494
- public updatePublicKey(
3495
- args: UpdatePublicKeyCommandInput,
3496
- options?: __HttpHandlerOptions
3497
- ): Promise<UpdatePublicKeyCommandOutput>;
3498
- public updatePublicKey(
3499
- args: UpdatePublicKeyCommandInput,
3500
- cb: (err: any, data?: UpdatePublicKeyCommandOutput) => void
3501
- ): void;
3502
- public updatePublicKey(
3503
- args: UpdatePublicKeyCommandInput,
3504
- options: __HttpHandlerOptions,
3505
- cb: (err: any, data?: UpdatePublicKeyCommandOutput) => void
3506
- ): void;
3507
- public updatePublicKey(
3508
- args: UpdatePublicKeyCommandInput,
3509
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdatePublicKeyCommandOutput) => void),
3510
- cb?: (err: any, data?: UpdatePublicKeyCommandOutput) => void
3511
- ): Promise<UpdatePublicKeyCommandOutput> | void {
3512
- const command = new UpdatePublicKeyCommand(args);
3513
- if (typeof optionsOrCb === "function") {
3514
- this.send(command, optionsOrCb);
3515
- } else if (typeof cb === "function") {
3516
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3517
- this.send(command, optionsOrCb || {}, cb);
3518
- } else {
3519
- return this.send(command, optionsOrCb);
3520
- }
3521
- }
3522
-
3523
- /**
3524
- * <p>Updates a real-time log configuration.</p>
3525
- * <p>When you update a real-time log configuration, all the parameters are updated with the
3526
- * values provided in the request. You cannot update some parameters independent of others.
3527
- * To update a real-time log configuration:</p>
3528
- * <ol>
3529
- * <li>
3530
- * <p>Call <code>GetRealtimeLogConfig</code> to get the current real-time log
3531
- * configuration.</p>
3532
- * </li>
3533
- * <li>
3534
- * <p>Locally modify the parameters in the real-time log configuration that you want
3535
- * to update.</p>
3536
- * </li>
3537
- * <li>
3538
- * <p>Call this API (<code>UpdateRealtimeLogConfig</code>) by providing the entire
3539
- * real-time log configuration, including the parameters that you modified and
3540
- * those that you didn’t.</p>
3541
- * </li>
3542
- * </ol>
3543
- * <p>You cannot update a real-time log configuration’s <code>Name</code> or
3544
- * <code>ARN</code>.</p>
3545
- */
3546
- public updateRealtimeLogConfig(
3547
- args: UpdateRealtimeLogConfigCommandInput,
3548
- options?: __HttpHandlerOptions
3549
- ): Promise<UpdateRealtimeLogConfigCommandOutput>;
3550
- public updateRealtimeLogConfig(
3551
- args: UpdateRealtimeLogConfigCommandInput,
3552
- cb: (err: any, data?: UpdateRealtimeLogConfigCommandOutput) => void
3553
- ): void;
3554
- public updateRealtimeLogConfig(
3555
- args: UpdateRealtimeLogConfigCommandInput,
3556
- options: __HttpHandlerOptions,
3557
- cb: (err: any, data?: UpdateRealtimeLogConfigCommandOutput) => void
3558
- ): void;
3559
- public updateRealtimeLogConfig(
3560
- args: UpdateRealtimeLogConfigCommandInput,
3561
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRealtimeLogConfigCommandOutput) => void),
3562
- cb?: (err: any, data?: UpdateRealtimeLogConfigCommandOutput) => void
3563
- ): Promise<UpdateRealtimeLogConfigCommandOutput> | void {
3564
- const command = new UpdateRealtimeLogConfigCommand(args);
3565
- if (typeof optionsOrCb === "function") {
3566
- this.send(command, optionsOrCb);
3567
- } else if (typeof cb === "function") {
3568
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3569
- this.send(command, optionsOrCb || {}, cb);
3570
- } else {
3571
- return this.send(command, optionsOrCb);
3572
- }
3573
- }
3574
-
3575
- /**
3576
- * <p>Update a streaming distribution. </p>
3577
- */
3578
- public updateStreamingDistribution(
3579
- args: UpdateStreamingDistributionCommandInput,
3580
- options?: __HttpHandlerOptions
3581
- ): Promise<UpdateStreamingDistributionCommandOutput>;
3582
- public updateStreamingDistribution(
3583
- args: UpdateStreamingDistributionCommandInput,
3584
- cb: (err: any, data?: UpdateStreamingDistributionCommandOutput) => void
3585
- ): void;
3586
- public updateStreamingDistribution(
3587
- args: UpdateStreamingDistributionCommandInput,
3588
- options: __HttpHandlerOptions,
3589
- cb: (err: any, data?: UpdateStreamingDistributionCommandOutput) => void
3590
- ): void;
3591
- public updateStreamingDistribution(
3592
- args: UpdateStreamingDistributionCommandInput,
3593
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateStreamingDistributionCommandOutput) => void),
3594
- cb?: (err: any, data?: UpdateStreamingDistributionCommandOutput) => void
3595
- ): Promise<UpdateStreamingDistributionCommandOutput> | void {
3596
- const command = new UpdateStreamingDistributionCommand(args);
3597
- if (typeof optionsOrCb === "function") {
3598
- this.send(command, optionsOrCb);
3599
- } else if (typeof cb === "function") {
3600
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3601
- this.send(command, optionsOrCb || {}, cb);
3602
- } else {
3603
- return this.send(command, optionsOrCb);
3604
- }
3605
- }
3606
- }