@aws-sdk/client-cloudfront 3.693.0 → 3.697.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 (70) hide show
  1. package/README.md +88 -0
  2. package/dist-cjs/index.js +976 -199
  3. package/dist-es/CloudFront.js +22 -0
  4. package/dist-es/commands/CreateAnycastIpListCommand.js +22 -0
  5. package/dist-es/commands/CreateVpcOriginCommand.js +22 -0
  6. package/dist-es/commands/DeleteAnycastIpListCommand.js +22 -0
  7. package/dist-es/commands/DeleteVpcOriginCommand.js +22 -0
  8. package/dist-es/commands/GetAnycastIpListCommand.js +22 -0
  9. package/dist-es/commands/GetVpcOriginCommand.js +22 -0
  10. package/dist-es/commands/ListAnycastIpListsCommand.js +22 -0
  11. package/dist-es/commands/ListDistributionsByAnycastIpListIdCommand.js +23 -0
  12. package/dist-es/commands/ListDistributionsByVpcOriginIdCommand.js +22 -0
  13. package/dist-es/commands/ListVpcOriginsCommand.js +22 -0
  14. package/dist-es/commands/UpdateVpcOriginCommand.js +22 -0
  15. package/dist-es/commands/index.js +11 -0
  16. package/dist-es/models/models_0.js +78 -52
  17. package/dist-es/models/models_1.js +3 -13
  18. package/dist-es/protocols/Aws_restXml.js +630 -56
  19. package/dist-types/CloudFront.d.ts +79 -0
  20. package/dist-types/CloudFrontClient.d.ts +13 -2
  21. package/dist-types/commands/CopyDistributionCommand.d.ts +14 -4
  22. package/dist-types/commands/CreateAnycastIpListCommand.d.ts +110 -0
  23. package/dist-types/commands/CreateDistributionCommand.d.ts +31 -8
  24. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +31 -8
  25. package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +3 -3
  26. package/dist-types/commands/CreateVpcOriginCommand.d.ts +135 -0
  27. package/dist-types/commands/DeleteAnycastIpListCommand.d.ts +95 -0
  28. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +2 -2
  30. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteVpcOriginCommand.d.ts +117 -0
  33. package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +1 -1
  34. package/dist-types/commands/GetAnycastIpListCommand.d.ts +94 -0
  35. package/dist-types/commands/GetDistributionCommand.d.ts +14 -4
  36. package/dist-types/commands/GetDistributionConfigCommand.d.ts +14 -4
  37. package/dist-types/commands/GetVpcOriginCommand.d.ts +103 -0
  38. package/dist-types/commands/ListAnycastIpListsCommand.d.ts +100 -0
  39. package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +392 -0
  40. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +10 -0
  41. package/dist-types/commands/ListDistributionsByVpcOriginIdCommand.d.ts +94 -0
  42. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +10 -0
  43. package/dist-types/commands/ListDistributionsCommand.d.ts +10 -0
  44. package/dist-types/commands/ListVpcOriginsCommand.d.ts +101 -0
  45. package/dist-types/commands/UpdateDistributionCommand.d.ts +31 -8
  46. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +17 -4
  47. package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateVpcOriginCommand.d.ts +141 -0
  49. package/dist-types/commands/index.d.ts +11 -0
  50. package/dist-types/models/models_0.d.ts +337 -314
  51. package/dist-types/models/models_1.d.ts +668 -24
  52. package/dist-types/protocols/Aws_restXml.d.ts +99 -0
  53. package/dist-types/ts3.4/CloudFront.d.ts +195 -0
  54. package/dist-types/ts3.4/CloudFrontClient.d.ts +68 -2
  55. package/dist-types/ts3.4/commands/CreateAnycastIpListCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/CreateVpcOriginCommand.d.ts +50 -0
  57. package/dist-types/ts3.4/commands/DeleteAnycastIpListCommand.d.ts +46 -0
  58. package/dist-types/ts3.4/commands/DeleteVpcOriginCommand.d.ts +50 -0
  59. package/dist-types/ts3.4/commands/GetAnycastIpListCommand.d.ts +50 -0
  60. package/dist-types/ts3.4/commands/GetVpcOriginCommand.d.ts +47 -0
  61. package/dist-types/ts3.4/commands/ListAnycastIpListsCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/ListDistributionsByVpcOriginIdCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/ListVpcOriginsCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/UpdateVpcOriginCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  67. package/dist-types/ts3.4/models/models_0.d.ts +99 -89
  68. package/dist-types/ts3.4/models/models_1.d.ts +167 -13
  69. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +132 -0
  70. package/package.json +38 -38
@@ -118,6 +118,9 @@ declare const GetDistributionCommand_base: {
118
118
  * // OriginReadTimeout: Number("int"),
119
119
  * // OriginKeepaliveTimeout: Number("int"),
120
120
  * // },
121
+ * // VpcOriginConfig: { // VpcOriginConfig
122
+ * // VpcOriginId: "STRING_VALUE", // required
123
+ * // },
121
124
  * // ConnectionAttempts: Number("int"),
122
125
  * // ConnectionTimeout: Number("int"),
123
126
  * // OriginShield: { // OriginShield
@@ -207,6 +210,9 @@ declare const GetDistributionCommand_base: {
207
210
  * // CachePolicyId: "STRING_VALUE",
208
211
  * // OriginRequestPolicyId: "STRING_VALUE",
209
212
  * // ResponseHeadersPolicyId: "STRING_VALUE",
213
+ * // GrpcConfig: { // GrpcConfig
214
+ * // Enabled: true || false, // required
215
+ * // },
210
216
  * // ForwardedValues: { // ForwardedValues
211
217
  * // QueryString: true || false, // required
212
218
  * // Cookies: { // CookiePreference
@@ -290,6 +296,9 @@ declare const GetDistributionCommand_base: {
290
296
  * // CachePolicyId: "STRING_VALUE",
291
297
  * // OriginRequestPolicyId: "STRING_VALUE",
292
298
  * // ResponseHeadersPolicyId: "STRING_VALUE",
299
+ * // GrpcConfig: {
300
+ * // Enabled: true || false, // required
301
+ * // },
293
302
  * // ForwardedValues: {
294
303
  * // QueryString: true || false, // required
295
304
  * // Cookies: {
@@ -333,10 +342,10 @@ declare const GetDistributionCommand_base: {
333
342
  * // },
334
343
  * // Comment: "STRING_VALUE", // required
335
344
  * // Logging: { // LoggingConfig
336
- * // Enabled: true || false, // required
337
- * // IncludeCookies: true || false, // required
338
- * // Bucket: "STRING_VALUE", // required
339
- * // Prefix: "STRING_VALUE", // required
345
+ * // Enabled: true || false,
346
+ * // IncludeCookies: true || false,
347
+ * // Bucket: "STRING_VALUE",
348
+ * // Prefix: "STRING_VALUE",
340
349
  * // },
341
350
  * // PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
342
351
  * // Enabled: true || false, // required
@@ -363,6 +372,7 @@ declare const GetDistributionCommand_base: {
363
372
  * // IsIPV6Enabled: true || false,
364
373
  * // ContinuousDeploymentPolicyId: "STRING_VALUE",
365
374
  * // Staging: true || false,
375
+ * // AnycastIpListId: "STRING_VALUE",
366
376
  * // },
367
377
  * // AliasICPRecordals: [ // AliasICPRecordals
368
378
  * // { // AliasICPRecordal
@@ -81,6 +81,9 @@ declare const GetDistributionConfigCommand_base: {
81
81
  * // OriginReadTimeout: Number("int"),
82
82
  * // OriginKeepaliveTimeout: Number("int"),
83
83
  * // },
84
+ * // VpcOriginConfig: { // VpcOriginConfig
85
+ * // VpcOriginId: "STRING_VALUE", // required
86
+ * // },
84
87
  * // ConnectionAttempts: Number("int"),
85
88
  * // ConnectionTimeout: Number("int"),
86
89
  * // OriginShield: { // OriginShield
@@ -170,6 +173,9 @@ declare const GetDistributionConfigCommand_base: {
170
173
  * // CachePolicyId: "STRING_VALUE",
171
174
  * // OriginRequestPolicyId: "STRING_VALUE",
172
175
  * // ResponseHeadersPolicyId: "STRING_VALUE",
176
+ * // GrpcConfig: { // GrpcConfig
177
+ * // Enabled: true || false, // required
178
+ * // },
173
179
  * // ForwardedValues: { // ForwardedValues
174
180
  * // QueryString: true || false, // required
175
181
  * // Cookies: { // CookiePreference
@@ -253,6 +259,9 @@ declare const GetDistributionConfigCommand_base: {
253
259
  * // CachePolicyId: "STRING_VALUE",
254
260
  * // OriginRequestPolicyId: "STRING_VALUE",
255
261
  * // ResponseHeadersPolicyId: "STRING_VALUE",
262
+ * // GrpcConfig: {
263
+ * // Enabled: true || false, // required
264
+ * // },
256
265
  * // ForwardedValues: {
257
266
  * // QueryString: true || false, // required
258
267
  * // Cookies: {
@@ -296,10 +305,10 @@ declare const GetDistributionConfigCommand_base: {
296
305
  * // },
297
306
  * // Comment: "STRING_VALUE", // required
298
307
  * // Logging: { // LoggingConfig
299
- * // Enabled: true || false, // required
300
- * // IncludeCookies: true || false, // required
301
- * // Bucket: "STRING_VALUE", // required
302
- * // Prefix: "STRING_VALUE", // required
308
+ * // Enabled: true || false,
309
+ * // IncludeCookies: true || false,
310
+ * // Bucket: "STRING_VALUE",
311
+ * // Prefix: "STRING_VALUE",
303
312
  * // },
304
313
  * // PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
305
314
  * // Enabled: true || false, // required
@@ -326,6 +335,7 @@ declare const GetDistributionConfigCommand_base: {
326
335
  * // IsIPV6Enabled: true || false,
327
336
  * // ContinuousDeploymentPolicyId: "STRING_VALUE",
328
337
  * // Staging: true || false,
338
+ * // AnycastIpListId: "STRING_VALUE",
329
339
  * // },
330
340
  * // ETag: "STRING_VALUE",
331
341
  * // };
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { GetVpcOriginRequest, GetVpcOriginResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetVpcOriginCommand}.
14
+ */
15
+ export interface GetVpcOriginCommandInput extends GetVpcOriginRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetVpcOriginCommand}.
21
+ */
22
+ export interface GetVpcOriginCommandOutput extends GetVpcOriginResult, __MetadataBearer {
23
+ }
24
+ declare const GetVpcOriginCommand_base: {
25
+ new (input: GetVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl<GetVpcOriginCommandInput, GetVpcOriginCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl<GetVpcOriginCommandInput, GetVpcOriginCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Get the details of an Amazon CloudFront VPC origin.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, GetVpcOriginCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, GetVpcOriginCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * const client = new CloudFrontClient(config);
37
+ * const input = { // GetVpcOriginRequest
38
+ * Id: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetVpcOriginCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetVpcOriginResult
43
+ * // VpcOrigin: { // VpcOrigin
44
+ * // Id: "STRING_VALUE", // required
45
+ * // Arn: "STRING_VALUE", // required
46
+ * // Status: "STRING_VALUE", // required
47
+ * // CreatedTime: new Date("TIMESTAMP"), // required
48
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
49
+ * // VpcOriginEndpointConfig: { // VpcOriginEndpointConfig
50
+ * // Name: "STRING_VALUE", // required
51
+ * // Arn: "STRING_VALUE", // required
52
+ * // HTTPPort: Number("int"), // required
53
+ * // HTTPSPort: Number("int"), // required
54
+ * // OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required
55
+ * // OriginSslProtocols: { // OriginSslProtocols
56
+ * // Quantity: Number("int"), // required
57
+ * // Items: [ // SslProtocolsList // required
58
+ * // "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2",
59
+ * // ],
60
+ * // },
61
+ * // },
62
+ * // },
63
+ * // ETag: "STRING_VALUE",
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param GetVpcOriginCommandInput - {@link GetVpcOriginCommandInput}
69
+ * @returns {@link GetVpcOriginCommandOutput}
70
+ * @see {@link GetVpcOriginCommandInput} for command's `input` shape.
71
+ * @see {@link GetVpcOriginCommandOutput} for command's `response` shape.
72
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDenied} (client fault)
75
+ * <p>Access denied.</p>
76
+ *
77
+ * @throws {@link EntityNotFound} (client fault)
78
+ * <p>The entity was not found.</p>
79
+ *
80
+ * @throws {@link InvalidArgument} (client fault)
81
+ * <p>An argument is invalid.</p>
82
+ *
83
+ * @throws {@link UnsupportedOperation} (client fault)
84
+ * <p>This operation is not supported in this region.</p>
85
+ *
86
+ * @throws {@link CloudFrontServiceException}
87
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class GetVpcOriginCommand extends GetVpcOriginCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: GetVpcOriginRequest;
96
+ output: GetVpcOriginResult;
97
+ };
98
+ sdk: {
99
+ input: GetVpcOriginCommandInput;
100
+ output: GetVpcOriginCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { ListAnycastIpListsRequest, ListAnycastIpListsResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAnycastIpListsCommand}.
14
+ */
15
+ export interface ListAnycastIpListsCommandInput extends ListAnycastIpListsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAnycastIpListsCommand}.
21
+ */
22
+ export interface ListAnycastIpListsCommandOutput extends ListAnycastIpListsResult, __MetadataBearer {
23
+ }
24
+ declare const ListAnycastIpListsCommand_base: {
25
+ new (input: ListAnycastIpListsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAnycastIpListsCommandInput, ListAnycastIpListsCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListAnycastIpListsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAnycastIpListsCommandInput, ListAnycastIpListsCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists your Anycast static IP lists.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, ListAnycastIpListsCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, ListAnycastIpListsCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * const client = new CloudFrontClient(config);
37
+ * const input = { // ListAnycastIpListsRequest
38
+ * Marker: "STRING_VALUE",
39
+ * MaxItems: Number("int"),
40
+ * };
41
+ * const command = new ListAnycastIpListsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListAnycastIpListsResult
44
+ * // AnycastIpLists: { // AnycastIpListCollection
45
+ * // Items: [ // AnycastIpListSummaries
46
+ * // { // AnycastIpListSummary
47
+ * // Id: "STRING_VALUE", // required
48
+ * // Name: "STRING_VALUE", // required
49
+ * // Status: "STRING_VALUE", // required
50
+ * // Arn: "STRING_VALUE", // required
51
+ * // IpCount: Number("int"), // required
52
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
53
+ * // },
54
+ * // ],
55
+ * // Marker: "STRING_VALUE", // required
56
+ * // NextMarker: "STRING_VALUE",
57
+ * // MaxItems: Number("int"), // required
58
+ * // IsTruncated: true || false, // required
59
+ * // Quantity: Number("int"), // required
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListAnycastIpListsCommandInput - {@link ListAnycastIpListsCommandInput}
66
+ * @returns {@link ListAnycastIpListsCommandOutput}
67
+ * @see {@link ListAnycastIpListsCommandInput} for command's `input` shape.
68
+ * @see {@link ListAnycastIpListsCommandOutput} for command's `response` shape.
69
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDenied} (client fault)
72
+ * <p>Access denied.</p>
73
+ *
74
+ * @throws {@link EntityNotFound} (client fault)
75
+ * <p>The entity was not found.</p>
76
+ *
77
+ * @throws {@link InvalidArgument} (client fault)
78
+ * <p>An argument is invalid.</p>
79
+ *
80
+ * @throws {@link UnsupportedOperation} (client fault)
81
+ * <p>This operation is not supported in this region.</p>
82
+ *
83
+ * @throws {@link CloudFrontServiceException}
84
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListAnycastIpListsCommand extends ListAnycastIpListsCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListAnycastIpListsRequest;
93
+ output: ListAnycastIpListsResult;
94
+ };
95
+ sdk: {
96
+ input: ListAnycastIpListsCommandInput;
97
+ output: ListAnycastIpListsCommandOutput;
98
+ };
99
+ };
100
+ }