update_vpc_origin
async
¶
update_vpc_origin(
vpc_origin_endpoint_config: VpcOriginEndpointConfig,
id: string,
if_match: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = 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:
>>> await 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/async_cloud_front.py
10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 | |