delete_vpc_origin
async
¶
delete_vpc_origin(
id: string,
if_match: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> DeleteVpcOriginResult
Delete an Amazon CloudFront VPC origin.
Parameters:
-
id(string) –The VPC origin ID.
-
if_match(string) –The version identifier of the VPC origin to delete. This is the
ETagvalue returned in the response to GetVpcOrigin.
Raises:
-
AccessDenied–Access denied.
-
CannotDeleteEntityWhileInUse–The entity cannot be deleted while it is in use.
-
EntityNotFound–The entity was not found.
-
IllegalDelete–Deletion is not allowed for this entity.
-
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 delete a VPC origin The following command deletes a VPC origin:
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 | |