@aws-sdk/client-cloudfront 3.696.0 → 3.698.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.
- package/README.md +88 -0
- package/dist-cjs/index.js +988 -197
- package/dist-es/CloudFront.js +22 -0
- package/dist-es/commands/CreateAnycastIpListCommand.js +22 -0
- package/dist-es/commands/CreateVpcOriginCommand.js +22 -0
- package/dist-es/commands/DeleteAnycastIpListCommand.js +22 -0
- package/dist-es/commands/DeleteVpcOriginCommand.js +22 -0
- package/dist-es/commands/GetAnycastIpListCommand.js +22 -0
- package/dist-es/commands/GetVpcOriginCommand.js +22 -0
- package/dist-es/commands/ListAnycastIpListsCommand.js +22 -0
- package/dist-es/commands/ListDistributionsByAnycastIpListIdCommand.js +23 -0
- package/dist-es/commands/ListDistributionsByVpcOriginIdCommand.js +22 -0
- package/dist-es/commands/ListVpcOriginsCommand.js +22 -0
- package/dist-es/commands/UpdateVpcOriginCommand.js +22 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +82 -52
- package/dist-es/models/models_1.js +3 -13
- package/dist-es/protocols/Aws_restXml.js +648 -66
- package/dist-types/CloudFront.d.ts +79 -0
- package/dist-types/CloudFrontClient.d.ts +13 -2
- package/dist-types/commands/CopyDistributionCommand.d.ts +15 -4
- package/dist-types/commands/CreateAnycastIpListCommand.d.ts +110 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +33 -8
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +33 -8
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +4 -4
- package/dist-types/commands/CreateVpcOriginCommand.d.ts +186 -0
- package/dist-types/commands/DeleteAnycastIpListCommand.d.ts +95 -0
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +2 -2
- package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteVpcOriginCommand.d.ts +155 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +1 -1
- package/dist-types/commands/GetAnycastIpListCommand.d.ts +94 -0
- package/dist-types/commands/GetDistributionCommand.d.ts +15 -4
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +15 -4
- package/dist-types/commands/GetVpcOriginCommand.d.ts +140 -0
- package/dist-types/commands/ListAnycastIpListsCommand.d.ts +100 -0
- package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +393 -0
- package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +11 -0
- package/dist-types/commands/ListDistributionsByVpcOriginIdCommand.d.ts +116 -0
- package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +11 -0
- package/dist-types/commands/ListDistributionsCommand.d.ts +11 -0
- package/dist-types/commands/ListVpcOriginsCommand.d.ts +131 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +33 -8
- package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +18 -4
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +1 -1
- package/dist-types/commands/UpdateVpcOriginCommand.d.ts +193 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +361 -383
- package/dist-types/models/models_1.d.ts +733 -25
- package/dist-types/protocols/Aws_restXml.d.ts +99 -0
- package/dist-types/ts3.4/CloudFront.d.ts +195 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +68 -2
- package/dist-types/ts3.4/commands/CreateAnycastIpListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAnycastIpListCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAnycastIpListCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetVpcOriginCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAnycastIpListsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDistributionsByVpcOriginIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListVpcOriginsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +106 -93
- package/dist-types/ts3.4/models/models_1.d.ts +171 -13
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +132 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
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 { ListVpcOriginsRequest, ListVpcOriginsResult } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListVpcOriginsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListVpcOriginsCommandInput extends ListVpcOriginsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListVpcOriginsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListVpcOriginsCommandOutput extends ListVpcOriginsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListVpcOriginsCommand_base: {
|
|
25
|
+
new (input: ListVpcOriginsCommandInput): import("@smithy/smithy-client").CommandImpl<ListVpcOriginsCommandInput, ListVpcOriginsCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListVpcOriginsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListVpcOriginsCommandInput, ListVpcOriginsCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>List the CloudFront VPC origins in your account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { CloudFrontClient, ListVpcOriginsCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
35
|
+
* // const { CloudFrontClient, ListVpcOriginsCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
36
|
+
* const client = new CloudFrontClient(config);
|
|
37
|
+
* const input = { // ListVpcOriginsRequest
|
|
38
|
+
* Marker: "STRING_VALUE",
|
|
39
|
+
* MaxItems: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListVpcOriginsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListVpcOriginsResult
|
|
44
|
+
* // VpcOriginList: { // VpcOriginList
|
|
45
|
+
* // Marker: "STRING_VALUE", // required
|
|
46
|
+
* // NextMarker: "STRING_VALUE",
|
|
47
|
+
* // MaxItems: Number("int"), // required
|
|
48
|
+
* // IsTruncated: true || false, // required
|
|
49
|
+
* // Quantity: Number("int"), // required
|
|
50
|
+
* // Items: [ // VpcOriginSummaryList
|
|
51
|
+
* // { // VpcOriginSummary
|
|
52
|
+
* // Id: "STRING_VALUE", // required
|
|
53
|
+
* // Name: "STRING_VALUE", // required
|
|
54
|
+
* // Status: "STRING_VALUE", // required
|
|
55
|
+
* // CreatedTime: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // LastModifiedTime: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // Arn: "STRING_VALUE", // required
|
|
58
|
+
* // OriginEndpointArn: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // },
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListVpcOriginsCommandInput - {@link ListVpcOriginsCommandInput}
|
|
67
|
+
* @returns {@link ListVpcOriginsCommandOutput}
|
|
68
|
+
* @see {@link ListVpcOriginsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListVpcOriginsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDenied} (client fault)
|
|
73
|
+
* <p>Access denied.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link EntityNotFound} (client fault)
|
|
76
|
+
* <p>The entity was not found.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InvalidArgument} (client fault)
|
|
79
|
+
* <p>An argument is invalid.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link UnsupportedOperation} (client fault)
|
|
82
|
+
* <p>This operation is not supported in this region.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link CloudFrontServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
* @example To list VPC origins
|
|
89
|
+
* ```javascript
|
|
90
|
+
* // The following command lists VPC origins:
|
|
91
|
+
* const input = {};
|
|
92
|
+
* const command = new ListVpcOriginsCommand(input);
|
|
93
|
+
* const response = await client.send(command);
|
|
94
|
+
* /* response ==
|
|
95
|
+
* {
|
|
96
|
+
* "VpcOriginList": {
|
|
97
|
+
* "IsTruncated": true,
|
|
98
|
+
* "Items": [
|
|
99
|
+
* {
|
|
100
|
+
* "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM",
|
|
101
|
+
* "CreatedTime": "2024-10-15T17:19:42.318Z",
|
|
102
|
+
* "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM",
|
|
103
|
+
* "LastModifiedTime": "2024-10-15T17:24:35.188Z",
|
|
104
|
+
* "Name": "my-vpcorigin-name",
|
|
105
|
+
* "OriginEndpointArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d",
|
|
106
|
+
* "Status": "Deployed"
|
|
107
|
+
* }
|
|
108
|
+
* ],
|
|
109
|
+
* "Marker": "a",
|
|
110
|
+
* "MaxItems": 100,
|
|
111
|
+
* "Quantity": 1
|
|
112
|
+
* }
|
|
113
|
+
* }
|
|
114
|
+
* *\/
|
|
115
|
+
* // example id: example-1
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class ListVpcOriginsCommand extends ListVpcOriginsCommand_base {
|
|
120
|
+
/** @internal type navigation helper, not in runtime. */
|
|
121
|
+
protected static __types: {
|
|
122
|
+
api: {
|
|
123
|
+
input: ListVpcOriginsRequest;
|
|
124
|
+
output: ListVpcOriginsResult;
|
|
125
|
+
};
|
|
126
|
+
sdk: {
|
|
127
|
+
input: ListVpcOriginsCommandInput;
|
|
128
|
+
output: ListVpcOriginsCommandOutput;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -109,6 +109,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
109
109
|
* OriginReadTimeout: Number("int"),
|
|
110
110
|
* OriginKeepaliveTimeout: Number("int"),
|
|
111
111
|
* },
|
|
112
|
+
* VpcOriginConfig: { // VpcOriginConfig
|
|
113
|
+
* VpcOriginId: "STRING_VALUE", // required
|
|
114
|
+
* },
|
|
112
115
|
* ConnectionAttempts: Number("int"),
|
|
113
116
|
* ConnectionTimeout: Number("int"),
|
|
114
117
|
* OriginShield: { // OriginShield
|
|
@@ -140,6 +143,7 @@ declare const UpdateDistributionCommand_base: {
|
|
|
140
143
|
* },
|
|
141
144
|
* ],
|
|
142
145
|
* },
|
|
146
|
+
* SelectionCriteria: "default" || "media-quality-based",
|
|
143
147
|
* },
|
|
144
148
|
* ],
|
|
145
149
|
* },
|
|
@@ -198,6 +202,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
198
202
|
* CachePolicyId: "STRING_VALUE",
|
|
199
203
|
* OriginRequestPolicyId: "STRING_VALUE",
|
|
200
204
|
* ResponseHeadersPolicyId: "STRING_VALUE",
|
|
205
|
+
* GrpcConfig: { // GrpcConfig
|
|
206
|
+
* Enabled: true || false, // required
|
|
207
|
+
* },
|
|
201
208
|
* ForwardedValues: { // ForwardedValues
|
|
202
209
|
* QueryString: true || false, // required
|
|
203
210
|
* Cookies: { // CookiePreference
|
|
@@ -281,6 +288,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
281
288
|
* CachePolicyId: "STRING_VALUE",
|
|
282
289
|
* OriginRequestPolicyId: "STRING_VALUE",
|
|
283
290
|
* ResponseHeadersPolicyId: "STRING_VALUE",
|
|
291
|
+
* GrpcConfig: {
|
|
292
|
+
* Enabled: true || false, // required
|
|
293
|
+
* },
|
|
284
294
|
* ForwardedValues: {
|
|
285
295
|
* QueryString: true || false, // required
|
|
286
296
|
* Cookies: {
|
|
@@ -324,10 +334,10 @@ declare const UpdateDistributionCommand_base: {
|
|
|
324
334
|
* },
|
|
325
335
|
* Comment: "STRING_VALUE", // required
|
|
326
336
|
* Logging: { // LoggingConfig
|
|
327
|
-
* Enabled: true || false,
|
|
328
|
-
* IncludeCookies: true || false,
|
|
329
|
-
* Bucket: "STRING_VALUE",
|
|
330
|
-
* Prefix: "STRING_VALUE",
|
|
337
|
+
* Enabled: true || false,
|
|
338
|
+
* IncludeCookies: true || false,
|
|
339
|
+
* Bucket: "STRING_VALUE",
|
|
340
|
+
* Prefix: "STRING_VALUE",
|
|
331
341
|
* },
|
|
332
342
|
* PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
|
|
333
343
|
* Enabled: true || false, // required
|
|
@@ -354,6 +364,7 @@ declare const UpdateDistributionCommand_base: {
|
|
|
354
364
|
* IsIPV6Enabled: true || false,
|
|
355
365
|
* ContinuousDeploymentPolicyId: "STRING_VALUE",
|
|
356
366
|
* Staging: true || false,
|
|
367
|
+
* AnycastIpListId: "STRING_VALUE",
|
|
357
368
|
* },
|
|
358
369
|
* Id: "STRING_VALUE", // required
|
|
359
370
|
* IfMatch: "STRING_VALUE",
|
|
@@ -439,6 +450,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
439
450
|
* // OriginReadTimeout: Number("int"),
|
|
440
451
|
* // OriginKeepaliveTimeout: Number("int"),
|
|
441
452
|
* // },
|
|
453
|
+
* // VpcOriginConfig: { // VpcOriginConfig
|
|
454
|
+
* // VpcOriginId: "STRING_VALUE", // required
|
|
455
|
+
* // },
|
|
442
456
|
* // ConnectionAttempts: Number("int"),
|
|
443
457
|
* // ConnectionTimeout: Number("int"),
|
|
444
458
|
* // OriginShield: { // OriginShield
|
|
@@ -470,6 +484,7 @@ declare const UpdateDistributionCommand_base: {
|
|
|
470
484
|
* // },
|
|
471
485
|
* // ],
|
|
472
486
|
* // },
|
|
487
|
+
* // SelectionCriteria: "default" || "media-quality-based",
|
|
473
488
|
* // },
|
|
474
489
|
* // ],
|
|
475
490
|
* // },
|
|
@@ -528,6 +543,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
528
543
|
* // CachePolicyId: "STRING_VALUE",
|
|
529
544
|
* // OriginRequestPolicyId: "STRING_VALUE",
|
|
530
545
|
* // ResponseHeadersPolicyId: "STRING_VALUE",
|
|
546
|
+
* // GrpcConfig: { // GrpcConfig
|
|
547
|
+
* // Enabled: true || false, // required
|
|
548
|
+
* // },
|
|
531
549
|
* // ForwardedValues: { // ForwardedValues
|
|
532
550
|
* // QueryString: true || false, // required
|
|
533
551
|
* // Cookies: { // CookiePreference
|
|
@@ -611,6 +629,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
611
629
|
* // CachePolicyId: "STRING_VALUE",
|
|
612
630
|
* // OriginRequestPolicyId: "STRING_VALUE",
|
|
613
631
|
* // ResponseHeadersPolicyId: "STRING_VALUE",
|
|
632
|
+
* // GrpcConfig: {
|
|
633
|
+
* // Enabled: true || false, // required
|
|
634
|
+
* // },
|
|
614
635
|
* // ForwardedValues: {
|
|
615
636
|
* // QueryString: true || false, // required
|
|
616
637
|
* // Cookies: {
|
|
@@ -654,10 +675,10 @@ declare const UpdateDistributionCommand_base: {
|
|
|
654
675
|
* // },
|
|
655
676
|
* // Comment: "STRING_VALUE", // required
|
|
656
677
|
* // Logging: { // LoggingConfig
|
|
657
|
-
* // Enabled: true || false,
|
|
658
|
-
* // IncludeCookies: true || false,
|
|
659
|
-
* // Bucket: "STRING_VALUE",
|
|
660
|
-
* // Prefix: "STRING_VALUE",
|
|
678
|
+
* // Enabled: true || false,
|
|
679
|
+
* // IncludeCookies: true || false,
|
|
680
|
+
* // Bucket: "STRING_VALUE",
|
|
681
|
+
* // Prefix: "STRING_VALUE",
|
|
661
682
|
* // },
|
|
662
683
|
* // PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
|
|
663
684
|
* // Enabled: true || false, // required
|
|
@@ -684,6 +705,7 @@ declare const UpdateDistributionCommand_base: {
|
|
|
684
705
|
* // IsIPV6Enabled: true || false,
|
|
685
706
|
* // ContinuousDeploymentPolicyId: "STRING_VALUE",
|
|
686
707
|
* // Staging: true || false,
|
|
708
|
+
* // AnycastIpListId: "STRING_VALUE",
|
|
687
709
|
* // },
|
|
688
710
|
* // AliasICPRecordals: [ // AliasICPRecordals
|
|
689
711
|
* // { // AliasICPRecordal
|
|
@@ -713,6 +735,9 @@ declare const UpdateDistributionCommand_base: {
|
|
|
713
735
|
* <p>You cannot delete a continuous deployment policy that is associated with a primary
|
|
714
736
|
* distribution.</p>
|
|
715
737
|
*
|
|
738
|
+
* @throws {@link EntityNotFound} (client fault)
|
|
739
|
+
* <p>The entity was not found.</p>
|
|
740
|
+
*
|
|
716
741
|
* @throws {@link IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior} (client fault)
|
|
717
742
|
* <p>The specified configuration for field-level encryption can't be associated with the
|
|
718
743
|
* specified cache behavior.</p>
|
|
@@ -142,6 +142,9 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
142
142
|
* // OriginReadTimeout: Number("int"),
|
|
143
143
|
* // OriginKeepaliveTimeout: Number("int"),
|
|
144
144
|
* // },
|
|
145
|
+
* // VpcOriginConfig: { // VpcOriginConfig
|
|
146
|
+
* // VpcOriginId: "STRING_VALUE", // required
|
|
147
|
+
* // },
|
|
145
148
|
* // ConnectionAttempts: Number("int"),
|
|
146
149
|
* // ConnectionTimeout: Number("int"),
|
|
147
150
|
* // OriginShield: { // OriginShield
|
|
@@ -173,6 +176,7 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
173
176
|
* // },
|
|
174
177
|
* // ],
|
|
175
178
|
* // },
|
|
179
|
+
* // SelectionCriteria: "default" || "media-quality-based",
|
|
176
180
|
* // },
|
|
177
181
|
* // ],
|
|
178
182
|
* // },
|
|
@@ -231,6 +235,9 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
231
235
|
* // CachePolicyId: "STRING_VALUE",
|
|
232
236
|
* // OriginRequestPolicyId: "STRING_VALUE",
|
|
233
237
|
* // ResponseHeadersPolicyId: "STRING_VALUE",
|
|
238
|
+
* // GrpcConfig: { // GrpcConfig
|
|
239
|
+
* // Enabled: true || false, // required
|
|
240
|
+
* // },
|
|
234
241
|
* // ForwardedValues: { // ForwardedValues
|
|
235
242
|
* // QueryString: true || false, // required
|
|
236
243
|
* // Cookies: { // CookiePreference
|
|
@@ -314,6 +321,9 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
314
321
|
* // CachePolicyId: "STRING_VALUE",
|
|
315
322
|
* // OriginRequestPolicyId: "STRING_VALUE",
|
|
316
323
|
* // ResponseHeadersPolicyId: "STRING_VALUE",
|
|
324
|
+
* // GrpcConfig: {
|
|
325
|
+
* // Enabled: true || false, // required
|
|
326
|
+
* // },
|
|
317
327
|
* // ForwardedValues: {
|
|
318
328
|
* // QueryString: true || false, // required
|
|
319
329
|
* // Cookies: {
|
|
@@ -357,10 +367,10 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
357
367
|
* // },
|
|
358
368
|
* // Comment: "STRING_VALUE", // required
|
|
359
369
|
* // Logging: { // LoggingConfig
|
|
360
|
-
* // Enabled: true || false,
|
|
361
|
-
* // IncludeCookies: true || false,
|
|
362
|
-
* // Bucket: "STRING_VALUE",
|
|
363
|
-
* // Prefix: "STRING_VALUE",
|
|
370
|
+
* // Enabled: true || false,
|
|
371
|
+
* // IncludeCookies: true || false,
|
|
372
|
+
* // Bucket: "STRING_VALUE",
|
|
373
|
+
* // Prefix: "STRING_VALUE",
|
|
364
374
|
* // },
|
|
365
375
|
* // PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
|
|
366
376
|
* // Enabled: true || false, // required
|
|
@@ -387,6 +397,7 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
387
397
|
* // IsIPV6Enabled: true || false,
|
|
388
398
|
* // ContinuousDeploymentPolicyId: "STRING_VALUE",
|
|
389
399
|
* // Staging: true || false,
|
|
400
|
+
* // AnycastIpListId: "STRING_VALUE",
|
|
390
401
|
* // },
|
|
391
402
|
* // AliasICPRecordals: [ // AliasICPRecordals
|
|
392
403
|
* // { // AliasICPRecordal
|
|
@@ -412,6 +423,9 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
412
423
|
* @throws {@link CNAMEAlreadyExists} (client fault)
|
|
413
424
|
* <p>The CNAME specified is already defined for CloudFront.</p>
|
|
414
425
|
*
|
|
426
|
+
* @throws {@link EntityNotFound} (client fault)
|
|
427
|
+
* <p>The entity was not found.</p>
|
|
428
|
+
*
|
|
415
429
|
* @throws {@link IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior} (client fault)
|
|
416
430
|
* <p>The specified configuration for field-level encryption can't be associated with the
|
|
417
431
|
* specified cache behavior.</p>
|
|
@@ -65,7 +65,7 @@ declare const UpdateKeyValueStoreCommand_base: {
|
|
|
65
65
|
* <p>Access denied.</p>
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link EntityNotFound} (client fault)
|
|
68
|
-
* <p>The
|
|
68
|
+
* <p>The entity was not found.</p>
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link InvalidArgument} (client fault)
|
|
71
71
|
* <p>An argument is invalid.</p>
|
|
@@ -0,0 +1,193 @@
|
|
|
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 { UpdateVpcOriginRequest, UpdateVpcOriginResult } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateVpcOriginCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateVpcOriginCommandInput extends UpdateVpcOriginRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateVpcOriginCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateVpcOriginCommandOutput extends UpdateVpcOriginResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateVpcOriginCommand_base: {
|
|
25
|
+
new (input: UpdateVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateVpcOriginCommandInput, UpdateVpcOriginCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateVpcOriginCommandInput, UpdateVpcOriginCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Update an Amazon CloudFront VPC origin in your account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { CloudFrontClient, UpdateVpcOriginCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
35
|
+
* // const { CloudFrontClient, UpdateVpcOriginCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
36
|
+
* const client = new CloudFrontClient(config);
|
|
37
|
+
* const input = { // UpdateVpcOriginRequest
|
|
38
|
+
* VpcOriginEndpointConfig: { // VpcOriginEndpointConfig
|
|
39
|
+
* Name: "STRING_VALUE", // required
|
|
40
|
+
* Arn: "STRING_VALUE", // required
|
|
41
|
+
* HTTPPort: Number("int"), // required
|
|
42
|
+
* HTTPSPort: Number("int"), // required
|
|
43
|
+
* OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required
|
|
44
|
+
* OriginSslProtocols: { // OriginSslProtocols
|
|
45
|
+
* Quantity: Number("int"), // required
|
|
46
|
+
* Items: [ // SslProtocolsList // required
|
|
47
|
+
* "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* Id: "STRING_VALUE", // required
|
|
52
|
+
* IfMatch: "STRING_VALUE", // required
|
|
53
|
+
* };
|
|
54
|
+
* const command = new UpdateVpcOriginCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // UpdateVpcOriginResult
|
|
57
|
+
* // VpcOrigin: { // VpcOrigin
|
|
58
|
+
* // Id: "STRING_VALUE", // required
|
|
59
|
+
* // Arn: "STRING_VALUE", // required
|
|
60
|
+
* // Status: "STRING_VALUE", // required
|
|
61
|
+
* // CreatedTime: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // LastModifiedTime: new Date("TIMESTAMP"), // required
|
|
63
|
+
* // VpcOriginEndpointConfig: { // VpcOriginEndpointConfig
|
|
64
|
+
* // Name: "STRING_VALUE", // required
|
|
65
|
+
* // Arn: "STRING_VALUE", // required
|
|
66
|
+
* // HTTPPort: Number("int"), // required
|
|
67
|
+
* // HTTPSPort: Number("int"), // required
|
|
68
|
+
* // OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required
|
|
69
|
+
* // OriginSslProtocols: { // OriginSslProtocols
|
|
70
|
+
* // Quantity: Number("int"), // required
|
|
71
|
+
* // Items: [ // SslProtocolsList // required
|
|
72
|
+
* // "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2",
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
77
|
+
* // ETag: "STRING_VALUE",
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param UpdateVpcOriginCommandInput - {@link UpdateVpcOriginCommandInput}
|
|
83
|
+
* @returns {@link UpdateVpcOriginCommandOutput}
|
|
84
|
+
* @see {@link UpdateVpcOriginCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link UpdateVpcOriginCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link AccessDenied} (client fault)
|
|
89
|
+
* <p>Access denied.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link CannotUpdateEntityWhileInUse} (client fault)
|
|
92
|
+
* <p>The entity cannot be updated while it is in use.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link EntityAlreadyExists} (client fault)
|
|
95
|
+
* <p>The entity already exists. You must provide a unique
|
|
96
|
+
* entity.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link EntityLimitExceeded} (client fault)
|
|
99
|
+
* <p>The entity limit has been exceeded.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link EntityNotFound} (client fault)
|
|
102
|
+
* <p>The entity was not found.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link IllegalUpdate} (client fault)
|
|
105
|
+
* <p>The update contains modifications that are not allowed.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link InconsistentQuantities} (client fault)
|
|
108
|
+
* <p>The value of <code>Quantity</code> and the size of <code>Items</code> don't
|
|
109
|
+
* match.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link InvalidArgument} (client fault)
|
|
112
|
+
* <p>An argument is invalid.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link InvalidIfMatchVersion} (client fault)
|
|
115
|
+
* <p>The <code>If-Match</code> version is missing or not valid.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link PreconditionFailed} (client fault)
|
|
118
|
+
* <p>The precondition in one or more of the request fields evaluated to
|
|
119
|
+
* <code>false</code>.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link UnsupportedOperation} (client fault)
|
|
122
|
+
* <p>This operation is not supported in this region.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link CloudFrontServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
* @example To update a VPC origin
|
|
129
|
+
* ```javascript
|
|
130
|
+
* // The following command updates a VPC origin:
|
|
131
|
+
* const input = {
|
|
132
|
+
* "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM",
|
|
133
|
+
* "IfMatch": "ETVPDKIKX0DER",
|
|
134
|
+
* "VpcOriginEndpointConfig": {
|
|
135
|
+
* "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d",
|
|
136
|
+
* "HTTPPort": 80,
|
|
137
|
+
* "HTTPSPort": 443,
|
|
138
|
+
* "Name": "my-vpcorigin-name",
|
|
139
|
+
* "OriginProtocolPolicy": "match-viewer",
|
|
140
|
+
* "OriginSslProtocols": {
|
|
141
|
+
* "Items": [
|
|
142
|
+
* "TLSv1.1",
|
|
143
|
+
* "TLSv1.2"
|
|
144
|
+
* ],
|
|
145
|
+
* "Quantity": 2
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* };
|
|
149
|
+
* const command = new UpdateVpcOriginCommand(input);
|
|
150
|
+
* const response = await client.send(command);
|
|
151
|
+
* /* response ==
|
|
152
|
+
* {
|
|
153
|
+
* "ETag": "E3UN6WX5RRO2AG",
|
|
154
|
+
* "VpcOrigin": {
|
|
155
|
+
* "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM",
|
|
156
|
+
* "CreatedTime": "2024-10-15T17:19:42.318Z",
|
|
157
|
+
* "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM",
|
|
158
|
+
* "LastModifiedTime": "2024-10-15T17:47:08.133Z",
|
|
159
|
+
* "Status": "Deploying",
|
|
160
|
+
* "VpcOriginEndpointConfig": {
|
|
161
|
+
* "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d",
|
|
162
|
+
* "HTTPPort": 80,
|
|
163
|
+
* "HTTPSPort": 443,
|
|
164
|
+
* "Name": "my-vpcorigin-name",
|
|
165
|
+
* "OriginProtocolPolicy": "match-viewer",
|
|
166
|
+
* "OriginSslProtocols": {
|
|
167
|
+
* "Items": [
|
|
168
|
+
* "TLSv1.1",
|
|
169
|
+
* "TLSv1.2"
|
|
170
|
+
* ],
|
|
171
|
+
* "Quantity": 2
|
|
172
|
+
* }
|
|
173
|
+
* }
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
* *\/
|
|
177
|
+
* // example id: example-1
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
export declare class UpdateVpcOriginCommand extends UpdateVpcOriginCommand_base {
|
|
182
|
+
/** @internal type navigation helper, not in runtime. */
|
|
183
|
+
protected static __types: {
|
|
184
|
+
api: {
|
|
185
|
+
input: UpdateVpcOriginRequest;
|
|
186
|
+
output: UpdateVpcOriginResult;
|
|
187
|
+
};
|
|
188
|
+
sdk: {
|
|
189
|
+
input: UpdateVpcOriginCommandInput;
|
|
190
|
+
output: UpdateVpcOriginCommandOutput;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AssociateAliasCommand";
|
|
2
2
|
export * from "./CopyDistributionCommand";
|
|
3
|
+
export * from "./CreateAnycastIpListCommand";
|
|
3
4
|
export * from "./CreateCachePolicyCommand";
|
|
4
5
|
export * from "./CreateCloudFrontOriginAccessIdentityCommand";
|
|
5
6
|
export * from "./CreateContinuousDeploymentPolicyCommand";
|
|
@@ -19,6 +20,8 @@ export * from "./CreateRealtimeLogConfigCommand";
|
|
|
19
20
|
export * from "./CreateResponseHeadersPolicyCommand";
|
|
20
21
|
export * from "./CreateStreamingDistributionCommand";
|
|
21
22
|
export * from "./CreateStreamingDistributionWithTagsCommand";
|
|
23
|
+
export * from "./CreateVpcOriginCommand";
|
|
24
|
+
export * from "./DeleteAnycastIpListCommand";
|
|
22
25
|
export * from "./DeleteCachePolicyCommand";
|
|
23
26
|
export * from "./DeleteCloudFrontOriginAccessIdentityCommand";
|
|
24
27
|
export * from "./DeleteContinuousDeploymentPolicyCommand";
|
|
@@ -35,8 +38,10 @@ export * from "./DeletePublicKeyCommand";
|
|
|
35
38
|
export * from "./DeleteRealtimeLogConfigCommand";
|
|
36
39
|
export * from "./DeleteResponseHeadersPolicyCommand";
|
|
37
40
|
export * from "./DeleteStreamingDistributionCommand";
|
|
41
|
+
export * from "./DeleteVpcOriginCommand";
|
|
38
42
|
export * from "./DescribeFunctionCommand";
|
|
39
43
|
export * from "./DescribeKeyValueStoreCommand";
|
|
44
|
+
export * from "./GetAnycastIpListCommand";
|
|
40
45
|
export * from "./GetCachePolicyCommand";
|
|
41
46
|
export * from "./GetCachePolicyConfigCommand";
|
|
42
47
|
export * from "./GetCloudFrontOriginAccessIdentityCommand";
|
|
@@ -65,15 +70,19 @@ export * from "./GetResponseHeadersPolicyCommand";
|
|
|
65
70
|
export * from "./GetResponseHeadersPolicyConfigCommand";
|
|
66
71
|
export * from "./GetStreamingDistributionCommand";
|
|
67
72
|
export * from "./GetStreamingDistributionConfigCommand";
|
|
73
|
+
export * from "./GetVpcOriginCommand";
|
|
74
|
+
export * from "./ListAnycastIpListsCommand";
|
|
68
75
|
export * from "./ListCachePoliciesCommand";
|
|
69
76
|
export * from "./ListCloudFrontOriginAccessIdentitiesCommand";
|
|
70
77
|
export * from "./ListConflictingAliasesCommand";
|
|
71
78
|
export * from "./ListContinuousDeploymentPoliciesCommand";
|
|
79
|
+
export * from "./ListDistributionsByAnycastIpListIdCommand";
|
|
72
80
|
export * from "./ListDistributionsByCachePolicyIdCommand";
|
|
73
81
|
export * from "./ListDistributionsByKeyGroupCommand";
|
|
74
82
|
export * from "./ListDistributionsByOriginRequestPolicyIdCommand";
|
|
75
83
|
export * from "./ListDistributionsByRealtimeLogConfigCommand";
|
|
76
84
|
export * from "./ListDistributionsByResponseHeadersPolicyIdCommand";
|
|
85
|
+
export * from "./ListDistributionsByVpcOriginIdCommand";
|
|
77
86
|
export * from "./ListDistributionsByWebACLIdCommand";
|
|
78
87
|
export * from "./ListDistributionsCommand";
|
|
79
88
|
export * from "./ListFieldLevelEncryptionConfigsCommand";
|
|
@@ -89,6 +98,7 @@ export * from "./ListRealtimeLogConfigsCommand";
|
|
|
89
98
|
export * from "./ListResponseHeadersPoliciesCommand";
|
|
90
99
|
export * from "./ListStreamingDistributionsCommand";
|
|
91
100
|
export * from "./ListTagsForResourceCommand";
|
|
101
|
+
export * from "./ListVpcOriginsCommand";
|
|
92
102
|
export * from "./PublishFunctionCommand";
|
|
93
103
|
export * from "./TagResourceCommand";
|
|
94
104
|
export * from "./TestFunctionCommand";
|
|
@@ -109,3 +119,4 @@ export * from "./UpdatePublicKeyCommand";
|
|
|
109
119
|
export * from "./UpdateRealtimeLogConfigCommand";
|
|
110
120
|
export * from "./UpdateResponseHeadersPolicyCommand";
|
|
111
121
|
export * from "./UpdateStreamingDistributionCommand";
|
|
122
|
+
export * from "./UpdateVpcOriginCommand";
|