update_vpc_origin
¶
update_vpc_origin(
vpc_origin_endpoint_config: VpcOriginEndpointConfig,
id: string,
if_match: string,
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
) -> UpdateVpcOriginResult
Update an Amazon CloudFront VPC origin in your account.
Parameters:
-
vpc_origin_endpoint_config(VpcOriginEndpointConfig) –The VPC origin endpoint configuration.
-
id(string) –The VPC origin ID.
-
if_match(string) –The VPC origin to update, if a match occurs.
Raises:
-
AccessDenied–Access denied.
-
CannotUpdateEntityWhileInUse–The entity cannot be updated while it is in use.
-
EntityAlreadyExists–The entity already exists. You must provide a unique entity.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntityNotFound–The entity was not found.
-
IllegalUpdate–The update contains modifications that are not allowed.
-
InconsistentQuantities–The value of
Quantityand the size ofItemsdon't match. -
InvalidArgument–An argument is invalid.
-
InvalidIfMatchVersion–The
If-Matchversion is missing or not valid. -
PreconditionFailed–The precondition in one or more of the request fields evaluated to
false. -
UnsupportedOperation–This operation is not supported in this Amazon Web Services Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a VPC origin The following command updates a VPC origin:
>>> client.update_vpc_origin(vpc_origin_endpoint_config={'Name': 'my-vpcorigin-name', 'Arn': 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d', 'HTTPPort': 80, 'HTTPSPort': 443, 'OriginProtocolPolicy': 'match-viewer', 'OriginSslProtocols': {'Quantity': 2, 'Items': ['TLSv1.1', 'TLSv1.2']}}, id='vo_BQwjxxQxjCaBcQLzJUFkDM', if_match='ETVPDKIKX0DER')
Source code in docs_src/capo_cloudfront/_services/cloud_front.py
10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 | |