@aws-sdk/client-cloudfront 3.298.0 → 3.300.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 (107) hide show
  1. package/dist-types/commands/AssociateAliasCommand.d.ts +4 -0
  2. package/dist-types/commands/CopyDistributionCommand.d.ts +6 -0
  3. package/dist-types/commands/CreateCachePolicyCommand.d.ts +40 -0
  4. package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +6 -0
  5. package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +25 -0
  6. package/dist-types/commands/CreateDistributionCommand.d.ts +293 -0
  7. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +303 -0
  8. package/dist-types/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +31 -0
  9. package/dist-types/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +22 -0
  10. package/dist-types/commands/CreateFunctionCommand.d.ts +8 -0
  11. package/dist-types/commands/CreateInvalidationCommand.d.ts +12 -0
  12. package/dist-types/commands/CreateKeyGroupCommand.d.ts +9 -0
  13. package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +8 -0
  14. package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +9 -0
  15. package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +33 -0
  16. package/dist-types/commands/CreatePublicKeyCommand.d.ts +8 -0
  17. package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +16 -0
  18. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +86 -0
  19. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +30 -0
  20. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +40 -0
  21. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +4 -0
  22. package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +4 -0
  23. package/dist-types/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +4 -0
  24. package/dist-types/commands/DeleteDistributionCommand.d.ts +4 -0
  25. package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +4 -0
  26. package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +4 -0
  27. package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
  28. package/dist-types/commands/DeleteKeyGroupCommand.d.ts +4 -0
  29. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +3 -0
  30. package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +4 -0
  31. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +4 -0
  32. package/dist-types/commands/DeletePublicKeyCommand.d.ts +4 -0
  33. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +4 -0
  34. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +4 -0
  35. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +4 -0
  36. package/dist-types/commands/DescribeFunctionCommand.d.ts +4 -0
  37. package/dist-types/commands/GetCachePolicyCommand.d.ts +3 -0
  38. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +3 -0
  39. package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +3 -0
  40. package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +3 -0
  41. package/dist-types/commands/GetContinuousDeploymentPolicyCommand.d.ts +3 -0
  42. package/dist-types/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +3 -0
  43. package/dist-types/commands/GetDistributionCommand.d.ts +3 -0
  44. package/dist-types/commands/GetDistributionConfigCommand.d.ts +3 -0
  45. package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +3 -0
  46. package/dist-types/commands/GetFieldLevelEncryptionConfigCommand.d.ts +3 -0
  47. package/dist-types/commands/GetFieldLevelEncryptionProfileCommand.d.ts +3 -0
  48. package/dist-types/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +3 -0
  49. package/dist-types/commands/GetFunctionCommand.d.ts +4 -0
  50. package/dist-types/commands/GetInvalidationCommand.d.ts +4 -0
  51. package/dist-types/commands/GetKeyGroupCommand.d.ts +3 -0
  52. package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +3 -0
  53. package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +3 -0
  54. package/dist-types/commands/GetOriginAccessControlCommand.d.ts +3 -0
  55. package/dist-types/commands/GetOriginAccessControlConfigCommand.d.ts +3 -0
  56. package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +3 -0
  57. package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +3 -0
  58. package/dist-types/commands/GetPublicKeyCommand.d.ts +3 -0
  59. package/dist-types/commands/GetPublicKeyConfigCommand.d.ts +3 -0
  60. package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +4 -0
  61. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +3 -0
  62. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +3 -0
  63. package/dist-types/commands/GetStreamingDistributionCommand.d.ts +3 -0
  64. package/dist-types/commands/GetStreamingDistributionConfigCommand.d.ts +3 -0
  65. package/dist-types/commands/ListCachePoliciesCommand.d.ts +5 -0
  66. package/dist-types/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +4 -0
  67. package/dist-types/commands/ListConflictingAliasesCommand.d.ts +6 -0
  68. package/dist-types/commands/ListContinuousDeploymentPoliciesCommand.d.ts +4 -0
  69. package/dist-types/commands/ListDistributionsByCachePolicyIdCommand.d.ts +5 -0
  70. package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +5 -0
  71. package/dist-types/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +5 -0
  72. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +6 -0
  73. package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +5 -0
  74. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +5 -0
  75. package/dist-types/commands/ListDistributionsCommand.d.ts +4 -0
  76. package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +4 -0
  77. package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +4 -0
  78. package/dist-types/commands/ListFunctionsCommand.d.ts +5 -0
  79. package/dist-types/commands/ListInvalidationsCommand.d.ts +5 -0
  80. package/dist-types/commands/ListKeyGroupsCommand.d.ts +4 -0
  81. package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +4 -0
  82. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +5 -0
  83. package/dist-types/commands/ListPublicKeysCommand.d.ts +4 -0
  84. package/dist-types/commands/ListRealtimeLogConfigsCommand.d.ts +4 -0
  85. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +5 -0
  86. package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +4 -0
  87. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  88. package/dist-types/commands/PublishFunctionCommand.d.ts +4 -0
  89. package/dist-types/commands/TagResourceCommand.d.ts +11 -0
  90. package/dist-types/commands/TestFunctionCommand.d.ts +6 -0
  91. package/dist-types/commands/UntagResourceCommand.d.ts +8 -0
  92. package/dist-types/commands/UpdateCachePolicyCommand.d.ts +42 -0
  93. package/dist-types/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +8 -0
  94. package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +27 -0
  95. package/dist-types/commands/UpdateDistributionCommand.d.ts +295 -0
  96. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +5 -0
  97. package/dist-types/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +33 -0
  98. package/dist-types/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +24 -0
  99. package/dist-types/commands/UpdateFunctionCommand.d.ts +9 -0
  100. package/dist-types/commands/UpdateKeyGroupCommand.d.ts +11 -0
  101. package/dist-types/commands/UpdateOriginAccessControlCommand.d.ts +11 -0
  102. package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +35 -0
  103. package/dist-types/commands/UpdatePublicKeyCommand.d.ts +10 -0
  104. package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +17 -0
  105. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +88 -0
  106. package/dist-types/commands/UpdateStreamingDistributionCommand.d.ts +32 -0
  107. package/package.json +12 -12
@@ -26,6 +26,309 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
26
26
  * import { CloudFrontClient, CreateDistributionWithTagsCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
27
  * // const { CloudFrontClient, CreateDistributionWithTagsCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
28
  * const client = new CloudFrontClient(config);
29
+ * const input = {
30
+ * DistributionConfigWithTags: {
31
+ * DistributionConfig: {
32
+ * CallerReference: "STRING_VALUE", // required
33
+ * Aliases: {
34
+ * Quantity: Number("int"), // required
35
+ * Items: [
36
+ * "STRING_VALUE",
37
+ * ],
38
+ * },
39
+ * DefaultRootObject: "STRING_VALUE",
40
+ * Origins: {
41
+ * Quantity: Number("int"), // required
42
+ * Items: [ // required
43
+ * {
44
+ * Id: "STRING_VALUE", // required
45
+ * DomainName: "STRING_VALUE", // required
46
+ * OriginPath: "STRING_VALUE",
47
+ * CustomHeaders: {
48
+ * Quantity: Number("int"), // required
49
+ * Items: [
50
+ * {
51
+ * HeaderName: "STRING_VALUE", // required
52
+ * HeaderValue: "STRING_VALUE", // required
53
+ * },
54
+ * ],
55
+ * },
56
+ * S3OriginConfig: {
57
+ * OriginAccessIdentity: "STRING_VALUE", // required
58
+ * },
59
+ * CustomOriginConfig: {
60
+ * HTTPPort: Number("int"), // required
61
+ * HTTPSPort: Number("int"), // required
62
+ * OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required
63
+ * OriginSslProtocols: {
64
+ * Quantity: Number("int"), // required
65
+ * Items: [ // required
66
+ * "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2",
67
+ * ],
68
+ * },
69
+ * OriginReadTimeout: Number("int"),
70
+ * OriginKeepaliveTimeout: Number("int"),
71
+ * },
72
+ * ConnectionAttempts: Number("int"),
73
+ * ConnectionTimeout: Number("int"),
74
+ * OriginShield: {
75
+ * Enabled: true || false, // required
76
+ * OriginShieldRegion: "STRING_VALUE",
77
+ * },
78
+ * OriginAccessControlId: "STRING_VALUE",
79
+ * },
80
+ * ],
81
+ * },
82
+ * OriginGroups: {
83
+ * Quantity: Number("int"), // required
84
+ * Items: [
85
+ * {
86
+ * Id: "STRING_VALUE", // required
87
+ * FailoverCriteria: {
88
+ * StatusCodes: {
89
+ * Quantity: Number("int"), // required
90
+ * Items: [ // required
91
+ * Number("int"),
92
+ * ],
93
+ * },
94
+ * },
95
+ * Members: {
96
+ * Quantity: Number("int"), // required
97
+ * Items: [ // required
98
+ * {
99
+ * OriginId: "STRING_VALUE", // required
100
+ * },
101
+ * ],
102
+ * },
103
+ * },
104
+ * ],
105
+ * },
106
+ * DefaultCacheBehavior: {
107
+ * TargetOriginId: "STRING_VALUE", // required
108
+ * TrustedSigners: {
109
+ * Enabled: true || false, // required
110
+ * Quantity: Number("int"), // required
111
+ * Items: [
112
+ * "STRING_VALUE",
113
+ * ],
114
+ * },
115
+ * TrustedKeyGroups: {
116
+ * Enabled: true || false, // required
117
+ * Quantity: Number("int"), // required
118
+ * Items: [
119
+ * "STRING_VALUE",
120
+ * ],
121
+ * },
122
+ * ViewerProtocolPolicy: "allow-all" || "https-only" || "redirect-to-https", // required
123
+ * AllowedMethods: {
124
+ * Quantity: Number("int"), // required
125
+ * Items: [ // required
126
+ * "GET" || "HEAD" || "POST" || "PUT" || "PATCH" || "OPTIONS" || "DELETE",
127
+ * ],
128
+ * CachedMethods: {
129
+ * Quantity: Number("int"), // required
130
+ * Items: [ // required
131
+ * "GET" || "HEAD" || "POST" || "PUT" || "PATCH" || "OPTIONS" || "DELETE",
132
+ * ],
133
+ * },
134
+ * },
135
+ * SmoothStreaming: true || false,
136
+ * Compress: true || false,
137
+ * LambdaFunctionAssociations: {
138
+ * Quantity: Number("int"), // required
139
+ * Items: [
140
+ * {
141
+ * LambdaFunctionARN: "STRING_VALUE", // required
142
+ * EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
143
+ * IncludeBody: true || false,
144
+ * },
145
+ * ],
146
+ * },
147
+ * FunctionAssociations: {
148
+ * Quantity: Number("int"), // required
149
+ * Items: [
150
+ * {
151
+ * FunctionARN: "STRING_VALUE", // required
152
+ * EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
153
+ * },
154
+ * ],
155
+ * },
156
+ * FieldLevelEncryptionId: "STRING_VALUE",
157
+ * RealtimeLogConfigArn: "STRING_VALUE",
158
+ * CachePolicyId: "STRING_VALUE",
159
+ * OriginRequestPolicyId: "STRING_VALUE",
160
+ * ResponseHeadersPolicyId: "STRING_VALUE",
161
+ * ForwardedValues: {
162
+ * QueryString: true || false, // required
163
+ * Cookies: {
164
+ * Forward: "none" || "whitelist" || "all", // required
165
+ * WhitelistedNames: {
166
+ * Quantity: Number("int"), // required
167
+ * Items: [
168
+ * "STRING_VALUE",
169
+ * ],
170
+ * },
171
+ * },
172
+ * Headers: {
173
+ * Quantity: Number("int"), // required
174
+ * Items: [
175
+ * "STRING_VALUE",
176
+ * ],
177
+ * },
178
+ * QueryStringCacheKeys: {
179
+ * Quantity: Number("int"), // required
180
+ * Items: [
181
+ * "STRING_VALUE",
182
+ * ],
183
+ * },
184
+ * },
185
+ * MinTTL: Number("long"),
186
+ * DefaultTTL: Number("long"),
187
+ * MaxTTL: Number("long"),
188
+ * },
189
+ * CacheBehaviors: {
190
+ * Quantity: Number("int"), // required
191
+ * Items: [
192
+ * {
193
+ * PathPattern: "STRING_VALUE", // required
194
+ * TargetOriginId: "STRING_VALUE", // required
195
+ * TrustedSigners: {
196
+ * Enabled: true || false, // required
197
+ * Quantity: Number("int"), // required
198
+ * Items: [
199
+ * "STRING_VALUE",
200
+ * ],
201
+ * },
202
+ * TrustedKeyGroups: {
203
+ * Enabled: true || false, // required
204
+ * Quantity: Number("int"), // required
205
+ * Items: [
206
+ * "STRING_VALUE",
207
+ * ],
208
+ * },
209
+ * ViewerProtocolPolicy: "allow-all" || "https-only" || "redirect-to-https", // required
210
+ * AllowedMethods: {
211
+ * Quantity: Number("int"), // required
212
+ * Items: [ // required
213
+ * "<MethodsList>",
214
+ * ],
215
+ * CachedMethods: {
216
+ * Quantity: Number("int"), // required
217
+ * Items: [ // required
218
+ * "<MethodsList>",
219
+ * ],
220
+ * },
221
+ * },
222
+ * SmoothStreaming: true || false,
223
+ * Compress: true || false,
224
+ * LambdaFunctionAssociations: {
225
+ * Quantity: Number("int"), // required
226
+ * Items: [
227
+ * {
228
+ * LambdaFunctionARN: "STRING_VALUE", // required
229
+ * EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
230
+ * IncludeBody: true || false,
231
+ * },
232
+ * ],
233
+ * },
234
+ * FunctionAssociations: {
235
+ * Quantity: Number("int"), // required
236
+ * Items: [
237
+ * {
238
+ * FunctionARN: "STRING_VALUE", // required
239
+ * EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
240
+ * },
241
+ * ],
242
+ * },
243
+ * FieldLevelEncryptionId: "STRING_VALUE",
244
+ * RealtimeLogConfigArn: "STRING_VALUE",
245
+ * CachePolicyId: "STRING_VALUE",
246
+ * OriginRequestPolicyId: "STRING_VALUE",
247
+ * ResponseHeadersPolicyId: "STRING_VALUE",
248
+ * ForwardedValues: {
249
+ * QueryString: true || false, // required
250
+ * Cookies: {
251
+ * Forward: "none" || "whitelist" || "all", // required
252
+ * WhitelistedNames: {
253
+ * Quantity: Number("int"), // required
254
+ * Items: [
255
+ * "STRING_VALUE",
256
+ * ],
257
+ * },
258
+ * },
259
+ * Headers: {
260
+ * Quantity: Number("int"), // required
261
+ * Items: [
262
+ * "STRING_VALUE",
263
+ * ],
264
+ * },
265
+ * QueryStringCacheKeys: {
266
+ * Quantity: Number("int"), // required
267
+ * Items: [
268
+ * "STRING_VALUE",
269
+ * ],
270
+ * },
271
+ * },
272
+ * MinTTL: Number("long"),
273
+ * DefaultTTL: Number("long"),
274
+ * MaxTTL: Number("long"),
275
+ * },
276
+ * ],
277
+ * },
278
+ * CustomErrorResponses: {
279
+ * Quantity: Number("int"), // required
280
+ * Items: [
281
+ * {
282
+ * ErrorCode: Number("int"), // required
283
+ * ResponsePagePath: "STRING_VALUE",
284
+ * ResponseCode: "STRING_VALUE",
285
+ * ErrorCachingMinTTL: Number("long"),
286
+ * },
287
+ * ],
288
+ * },
289
+ * Comment: "STRING_VALUE", // required
290
+ * Logging: {
291
+ * Enabled: true || false, // required
292
+ * IncludeCookies: true || false, // required
293
+ * Bucket: "STRING_VALUE", // required
294
+ * Prefix: "STRING_VALUE", // required
295
+ * },
296
+ * PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
297
+ * Enabled: true || false, // required
298
+ * ViewerCertificate: {
299
+ * CloudFrontDefaultCertificate: true || false,
300
+ * IAMCertificateId: "STRING_VALUE",
301
+ * ACMCertificateArn: "STRING_VALUE",
302
+ * SSLSupportMethod: "sni-only" || "vip" || "static-ip",
303
+ * MinimumProtocolVersion: "SSLv3" || "TLSv1" || "TLSv1_2016" || "TLSv1.1_2016" || "TLSv1.2_2018" || "TLSv1.2_2019" || "TLSv1.2_2021",
304
+ * Certificate: "STRING_VALUE",
305
+ * CertificateSource: "cloudfront" || "iam" || "acm",
306
+ * },
307
+ * Restrictions: {
308
+ * GeoRestriction: {
309
+ * RestrictionType: "blacklist" || "whitelist" || "none", // required
310
+ * Quantity: Number("int"), // required
311
+ * Items: [
312
+ * "STRING_VALUE",
313
+ * ],
314
+ * },
315
+ * },
316
+ * WebACLId: "STRING_VALUE",
317
+ * HttpVersion: "http1.1" || "http2" || "http3" || "http2and3",
318
+ * IsIPV6Enabled: true || false,
319
+ * ContinuousDeploymentPolicyId: "STRING_VALUE",
320
+ * Staging: true || false,
321
+ * },
322
+ * Tags: {
323
+ * Items: [
324
+ * {
325
+ * Key: "STRING_VALUE", // required
326
+ * Value: "STRING_VALUE",
327
+ * },
328
+ * ],
329
+ * },
330
+ * },
331
+ * };
29
332
  * const command = new CreateDistributionWithTagsCommand(input);
30
333
  * const response = await client.send(command);
31
334
  * ```
@@ -26,6 +26,37 @@ export interface CreateFieldLevelEncryptionConfigCommandOutput extends CreateFie
26
26
  * import { CloudFrontClient, CreateFieldLevelEncryptionConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
27
  * // const { CloudFrontClient, CreateFieldLevelEncryptionConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
28
  * const client = new CloudFrontClient(config);
29
+ * const input = {
30
+ * FieldLevelEncryptionConfig: {
31
+ * CallerReference: "STRING_VALUE", // required
32
+ * Comment: "STRING_VALUE",
33
+ * QueryArgProfileConfig: {
34
+ * ForwardWhenQueryArgProfileIsUnknown: true || false, // required
35
+ * QueryArgProfiles: {
36
+ * Quantity: Number("int"), // required
37
+ * Items: [
38
+ * {
39
+ * QueryArg: "STRING_VALUE", // required
40
+ * ProfileId: "STRING_VALUE", // required
41
+ * },
42
+ * ],
43
+ * },
44
+ * },
45
+ * ContentTypeProfileConfig: {
46
+ * ForwardWhenContentTypeIsUnknown: true || false, // required
47
+ * ContentTypeProfiles: {
48
+ * Quantity: Number("int"), // required
49
+ * Items: [
50
+ * {
51
+ * Format: "URLEncoded", // required
52
+ * ProfileId: "STRING_VALUE",
53
+ * ContentType: "STRING_VALUE", // required
54
+ * },
55
+ * ],
56
+ * },
57
+ * },
58
+ * },
59
+ * };
29
60
  * const command = new CreateFieldLevelEncryptionConfigCommand(input);
30
61
  * const response = await client.send(command);
31
62
  * ```
@@ -26,6 +26,28 @@ export interface CreateFieldLevelEncryptionProfileCommandOutput extends CreateFi
26
26
  * import { CloudFrontClient, CreateFieldLevelEncryptionProfileCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
27
  * // const { CloudFrontClient, CreateFieldLevelEncryptionProfileCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
28
  * const client = new CloudFrontClient(config);
29
+ * const input = {
30
+ * FieldLevelEncryptionProfileConfig: {
31
+ * Name: "STRING_VALUE", // required
32
+ * CallerReference: "STRING_VALUE", // required
33
+ * Comment: "STRING_VALUE",
34
+ * EncryptionEntities: {
35
+ * Quantity: Number("int"), // required
36
+ * Items: [
37
+ * {
38
+ * PublicKeyId: "STRING_VALUE", // required
39
+ * ProviderId: "STRING_VALUE", // required
40
+ * FieldPatterns: {
41
+ * Quantity: Number("int"), // required
42
+ * Items: [
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * },
46
+ * },
47
+ * ],
48
+ * },
49
+ * },
50
+ * };
29
51
  * const command = new CreateFieldLevelEncryptionProfileCommand(input);
30
52
  * const response = await client.send(command);
31
53
  * ```
@@ -36,6 +36,14 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
36
36
  * import { CloudFrontClient, CreateFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
37
37
  * // const { CloudFrontClient, CreateFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
38
38
  * const client = new CloudFrontClient(config);
39
+ * const input = {
40
+ * Name: "STRING_VALUE", // required
41
+ * FunctionConfig: {
42
+ * Comment: "STRING_VALUE", // required
43
+ * Runtime: "cloudfront-js-1.0", // required
44
+ * },
45
+ * FunctionCode: "BLOB_VALUE", // required
46
+ * };
39
47
  * const command = new CreateFunctionCommand(input);
40
48
  * const response = await client.send(command);
41
49
  * ```
@@ -26,6 +26,18 @@ export interface CreateInvalidationCommandOutput extends CreateInvalidationResul
26
26
  * import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
27
  * // const { CloudFrontClient, CreateInvalidationCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
28
  * const client = new CloudFrontClient(config);
29
+ * const input = {
30
+ * DistributionId: "STRING_VALUE", // required
31
+ * InvalidationBatch: {
32
+ * Paths: {
33
+ * Quantity: Number("int"), // required
34
+ * Items: [
35
+ * "STRING_VALUE",
36
+ * ],
37
+ * },
38
+ * CallerReference: "STRING_VALUE", // required
39
+ * },
40
+ * };
29
41
  * const command = new CreateInvalidationCommand(input);
30
42
  * const response = await client.send(command);
31
43
  * ```
@@ -34,6 +34,15 @@ export interface CreateKeyGroupCommandOutput extends CreateKeyGroupResult, __Met
34
34
  * import { CloudFrontClient, CreateKeyGroupCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
35
  * // const { CloudFrontClient, CreateKeyGroupCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
36
  * const client = new CloudFrontClient(config);
37
+ * const input = {
38
+ * KeyGroupConfig: {
39
+ * Name: "STRING_VALUE", // required
40
+ * Items: [ // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * Comment: "STRING_VALUE",
44
+ * },
45
+ * };
37
46
  * const command = new CreateKeyGroupCommand(input);
38
47
  * const response = await client.send(command);
39
48
  * ```
@@ -29,6 +29,14 @@ export interface CreateMonitoringSubscriptionCommandOutput extends CreateMonitor
29
29
  * import { CloudFrontClient, CreateMonitoringSubscriptionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
30
30
  * // const { CloudFrontClient, CreateMonitoringSubscriptionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
31
31
  * const client = new CloudFrontClient(config);
32
+ * const input = {
33
+ * DistributionId: "STRING_VALUE", // required
34
+ * MonitoringSubscription: {
35
+ * RealtimeMetricsSubscriptionConfig: {
36
+ * RealtimeMetricsSubscriptionStatus: "Enabled" || "Disabled", // required
37
+ * },
38
+ * },
39
+ * };
32
40
  * const command = new CreateMonitoringSubscriptionCommand(input);
33
41
  * const response = await client.send(command);
34
42
  * ```
@@ -32,6 +32,15 @@ export interface CreateOriginAccessControlCommandOutput extends CreateOriginAcce
32
32
  * import { CloudFrontClient, CreateOriginAccessControlCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
33
33
  * // const { CloudFrontClient, CreateOriginAccessControlCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
34
34
  * const client = new CloudFrontClient(config);
35
+ * const input = {
36
+ * OriginAccessControlConfig: {
37
+ * Name: "STRING_VALUE", // required
38
+ * Description: "STRING_VALUE",
39
+ * SigningProtocol: "sigv4", // required
40
+ * SigningBehavior: "never" || "always" || "no-override", // required
41
+ * OriginAccessControlOriginType: "s3" || "mediastore", // required
42
+ * },
43
+ * };
35
44
  * const command = new CreateOriginAccessControlCommand(input);
36
45
  * const response = await client.send(command);
37
46
  * ```
@@ -52,6 +52,39 @@ export interface CreateOriginRequestPolicyCommandOutput extends CreateOriginRequ
52
52
  * import { CloudFrontClient, CreateOriginRequestPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
53
53
  * // const { CloudFrontClient, CreateOriginRequestPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
54
54
  * const client = new CloudFrontClient(config);
55
+ * const input = {
56
+ * OriginRequestPolicyConfig: {
57
+ * Comment: "STRING_VALUE",
58
+ * Name: "STRING_VALUE", // required
59
+ * HeadersConfig: {
60
+ * HeaderBehavior: "none" || "whitelist" || "allViewer" || "allViewerAndWhitelistCloudFront" || "allExcept", // required
61
+ * Headers: {
62
+ * Quantity: Number("int"), // required
63
+ * Items: [
64
+ * "STRING_VALUE",
65
+ * ],
66
+ * },
67
+ * },
68
+ * CookiesConfig: {
69
+ * CookieBehavior: "none" || "whitelist" || "all" || "allExcept", // required
70
+ * Cookies: {
71
+ * Quantity: Number("int"), // required
72
+ * Items: [
73
+ * "STRING_VALUE",
74
+ * ],
75
+ * },
76
+ * },
77
+ * QueryStringsConfig: {
78
+ * QueryStringBehavior: "none" || "whitelist" || "all" || "allExcept", // required
79
+ * QueryStrings: {
80
+ * Quantity: Number("int"), // required
81
+ * Items: [
82
+ * "STRING_VALUE",
83
+ * ],
84
+ * },
85
+ * },
86
+ * },
87
+ * };
55
88
  * const command = new CreateOriginRequestPolicyCommand(input);
56
89
  * const response = await client.send(command);
57
90
  * ```
@@ -26,6 +26,14 @@ export interface CreatePublicKeyCommandOutput extends CreatePublicKeyResult, __M
26
26
  * import { CloudFrontClient, CreatePublicKeyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
27
27
  * // const { CloudFrontClient, CreatePublicKeyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
28
28
  * const client = new CloudFrontClient(config);
29
+ * const input = {
30
+ * PublicKeyConfig: {
31
+ * CallerReference: "STRING_VALUE", // required
32
+ * Name: "STRING_VALUE", // required
33
+ * EncodedKey: "STRING_VALUE", // required
34
+ * Comment: "STRING_VALUE",
35
+ * },
36
+ * };
29
37
  * const command = new CreatePublicKeyCommand(input);
30
38
  * const response = await client.send(command);
31
39
  * ```
@@ -30,6 +30,22 @@ export interface CreateRealtimeLogConfigCommandOutput extends CreateRealtimeLogC
30
30
  * import { CloudFrontClient, CreateRealtimeLogConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
31
31
  * // const { CloudFrontClient, CreateRealtimeLogConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
32
32
  * const client = new CloudFrontClient(config);
33
+ * const input = {
34
+ * EndPoints: [ // required
35
+ * {
36
+ * StreamType: "STRING_VALUE", // required
37
+ * KinesisStreamConfig: {
38
+ * RoleARN: "STRING_VALUE", // required
39
+ * StreamARN: "STRING_VALUE", // required
40
+ * },
41
+ * },
42
+ * ],
43
+ * Fields: [ // required
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * Name: "STRING_VALUE", // required
47
+ * SamplingRate: Number("long"), // required
48
+ * };
33
49
  * const command = new CreateRealtimeLogConfigCommand(input);
34
50
  * const response = await client.send(command);
35
51
  * ```
@@ -37,6 +37,92 @@ export interface CreateResponseHeadersPolicyCommandOutput extends CreateResponse
37
37
  * import { CloudFrontClient, CreateResponseHeadersPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
38
38
  * // const { CloudFrontClient, CreateResponseHeadersPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
39
39
  * const client = new CloudFrontClient(config);
40
+ * const input = {
41
+ * ResponseHeadersPolicyConfig: {
42
+ * Comment: "STRING_VALUE",
43
+ * Name: "STRING_VALUE", // required
44
+ * CorsConfig: {
45
+ * AccessControlAllowOrigins: {
46
+ * Quantity: Number("int"), // required
47
+ * Items: [ // required
48
+ * "STRING_VALUE",
49
+ * ],
50
+ * },
51
+ * AccessControlAllowHeaders: {
52
+ * Quantity: Number("int"), // required
53
+ * Items: [ // required
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * },
57
+ * AccessControlAllowMethods: {
58
+ * Quantity: Number("int"), // required
59
+ * Items: [ // required
60
+ * "GET" || "POST" || "OPTIONS" || "PUT" || "DELETE" || "PATCH" || "HEAD" || "ALL",
61
+ * ],
62
+ * },
63
+ * AccessControlAllowCredentials: true || false, // required
64
+ * AccessControlExposeHeaders: {
65
+ * Quantity: Number("int"), // required
66
+ * Items: [
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * },
70
+ * AccessControlMaxAgeSec: Number("int"),
71
+ * OriginOverride: true || false, // required
72
+ * },
73
+ * SecurityHeadersConfig: {
74
+ * XSSProtection: {
75
+ * Override: true || false, // required
76
+ * Protection: true || false, // required
77
+ * ModeBlock: true || false,
78
+ * ReportUri: "STRING_VALUE",
79
+ * },
80
+ * FrameOptions: {
81
+ * Override: true || false, // required
82
+ * FrameOption: "DENY" || "SAMEORIGIN", // required
83
+ * },
84
+ * ReferrerPolicy: {
85
+ * Override: true || false, // required
86
+ * ReferrerPolicy: "no-referrer" || "no-referrer-when-downgrade" || "origin" || "origin-when-cross-origin" || "same-origin" || "strict-origin" || "strict-origin-when-cross-origin" || "unsafe-url", // required
87
+ * },
88
+ * ContentSecurityPolicy: {
89
+ * Override: true || false, // required
90
+ * ContentSecurityPolicy: "STRING_VALUE", // required
91
+ * },
92
+ * ContentTypeOptions: {
93
+ * Override: true || false, // required
94
+ * },
95
+ * StrictTransportSecurity: {
96
+ * Override: true || false, // required
97
+ * IncludeSubdomains: true || false,
98
+ * Preload: true || false,
99
+ * AccessControlMaxAgeSec: Number("int"), // required
100
+ * },
101
+ * },
102
+ * ServerTimingHeadersConfig: {
103
+ * Enabled: true || false, // required
104
+ * SamplingRate: Number("double"),
105
+ * },
106
+ * CustomHeadersConfig: {
107
+ * Quantity: Number("int"), // required
108
+ * Items: [
109
+ * {
110
+ * Header: "STRING_VALUE", // required
111
+ * Value: "STRING_VALUE", // required
112
+ * Override: true || false, // required
113
+ * },
114
+ * ],
115
+ * },
116
+ * RemoveHeadersConfig: {
117
+ * Quantity: Number("int"), // required
118
+ * Items: [
119
+ * {
120
+ * Header: "STRING_VALUE", // required
121
+ * },
122
+ * ],
123
+ * },
124
+ * },
125
+ * };
40
126
  * const command = new CreateResponseHeadersPolicyCommand(input);
41
127
  * const response = await client.send(command);
42
128
  * ```
@@ -28,6 +28,36 @@ export interface CreateStreamingDistributionCommandOutput extends CreateStreamin
28
28
  * import { CloudFrontClient, CreateStreamingDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
29
29
  * // const { CloudFrontClient, CreateStreamingDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
30
30
  * const client = new CloudFrontClient(config);
31
+ * const input = {
32
+ * StreamingDistributionConfig: {
33
+ * CallerReference: "STRING_VALUE", // required
34
+ * S3Origin: {
35
+ * DomainName: "STRING_VALUE", // required
36
+ * OriginAccessIdentity: "STRING_VALUE", // required
37
+ * },
38
+ * Aliases: {
39
+ * Quantity: Number("int"), // required
40
+ * Items: [
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * },
44
+ * Comment: "STRING_VALUE", // required
45
+ * Logging: {
46
+ * Enabled: true || false, // required
47
+ * Bucket: "STRING_VALUE", // required
48
+ * Prefix: "STRING_VALUE", // required
49
+ * },
50
+ * TrustedSigners: {
51
+ * Enabled: true || false, // required
52
+ * Quantity: Number("int"), // required
53
+ * Items: [
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * },
57
+ * PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
58
+ * Enabled: true || false, // required
59
+ * },
60
+ * };
31
61
  * const command = new CreateStreamingDistributionCommand(input);
32
62
  * const response = await client.send(command);
33
63
  * ```