update_origin_access_control
async
¶
update_origin_access_control(
origin_access_control_config: OriginAccessControlConfig,
id: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
if_match: Optional[string] = None,
) -> UpdateOriginAccessControlResult
Updates a CloudFront origin access control.
Parameters:
-
origin_access_control_config(OriginAccessControlConfig) –An origin access control.
-
id(string) –The unique identifier of the origin access control that you are updating.
-
if_match(Optional[string], default:None) –The current version (
ETagvalue) of the origin access control that you are updating.
Raises:
-
AccessDenied–Access denied.
-
IllegalUpdate–The update contains modifications that are not allowed.
-
InvalidArgument–An argument is invalid.
-
InvalidIfMatchVersion–The
If-Matchversion is missing or not valid. -
NoSuchOriginAccessControl–The origin access control does not exist.
-
OriginAccessControlAlreadyExists–An origin access control with the specified parameters already exists.
-
PreconditionFailed–The precondition in one or more of the request fields evaluated to
false. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 | |