@@ -126,6 +126,58 @@ export interface UpdateVpcOriginCommandOutput extends UpdateVpcOriginResult, __M
126
126
* <p>Base exception class for all service exceptions from CloudFront service.</p>
127
127
*
128
128
* @public
129
+ * @example To update a VPC origin
130
+ * ```javascript
131
+ * // The following command updates a VPC origin:
132
+ * const input = {
133
+ * "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM",
134
+ * "IfMatch": "ETVPDKIKX0DER",
135
+ * "VpcOriginEndpointConfig": {
136
+ * "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d",
137
+ * "HTTPPort": 80,
138
+ * "HTTPSPort": 443,
139
+ * "Name": "my-vpcorigin-name",
140
+ * "OriginProtocolPolicy": "match-viewer",
141
+ * "OriginSslProtocols": {
142
+ * "Items": [
143
+ * "TLSv1.1",
144
+ * "TLSv1.2"
145
+ * ],
146
+ * "Quantity": 2
147
+ * }
148
+ * }
149
+ * };
150
+ * const command = new UpdateVpcOriginCommand(input);
151
+ * const response = await client.send(command);
152
+ * /* response ==
153
+ * {
154
+ * "ETag": "E3UN6WX5RRO2AG",
155
+ * "VpcOrigin": {
156
+ * "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM",
157
+ * "CreatedTime": "2024-10-15T17:19:42.318Z",
158
+ * "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM",
159
+ * "LastModifiedTime": "2024-10-15T17:47:08.133Z",
160
+ * "Status": "Deploying",
161
+ * "VpcOriginEndpointConfig": {
162
+ * "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d",
163
+ * "HTTPPort": 80,
164
+ * "HTTPSPort": 443,
165
+ * "Name": "my-vpcorigin-name",
166
+ * "OriginProtocolPolicy": "match-viewer",
167
+ * "OriginSslProtocols": {
168
+ * "Items": [
169
+ * "TLSv1.1",
170
+ * "TLSv1.2"
171
+ * ],
172
+ * "Quantity": 2
173
+ * }
174
+ * }
175
+ * }
176
+ * }
177
+ * *\/
178
+ * // example id: example-1
179
+ * ```
180
+ *
129
181
*/
130
182
export class UpdateVpcOriginCommand extends $Command
131
183
. classBuilder <
0 commit comments