delete_cloud_front_origin_access_identity(
id: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
if_match: Optional[string] = None,
) -> None
Delete an origin access identity.
Parameters:
-
id
(string)
–
The origin access identity's ID.
-
if_match
(Optional[string], default:
None
)
–
The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.
Raises:
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
| async def delete_cloud_front_origin_access_identity(
self,
id: "capo_cloudfront.types.string.string",
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
if_match: Optional["capo_cloudfront.types.string.string"] = None,
) -> None:
"""<p>Delete an origin access identity.</p>
Args:
id: <p>The origin access identity's ID.</p>
if_match: <p>The value of the <code>ETag</code> header you received from a previous <code>GET</code> or <code>PUT</code> request. For example: <code>E2QWRUHAPOMQZL</code>.</p>
Raises:
capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
capo_cloudfront.errors.cloud_front_origin_access_identity_in_use.CloudFrontOriginAccessIdentityInUse: <p>The Origin Access Identity specified is already in use.</p>
capo_cloudfront.errors.invalid_if_match_version.InvalidIfMatchVersion: <p>The <code>If-Match</code> version is missing or not valid.</p>
capo_cloudfront.errors.no_such_cloud_front_origin_access_identity.NoSuchCloudFrontOriginAccessIdentity: <p>The specified origin access identity does not exist.</p>
capo_cloudfront.errors.precondition_failed.PreconditionFailed: <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudfront.types.delete_cloud_front_origin_access_identity_request.DeleteCloudFrontOriginAccessIdentityRequest]",
) -> AsyncOperationResponse[None]:
import capo_cloudfront._operations.cloudfront2020_05_31.delete_cloud_front_origin_access_identity
(
output,
http_response,
) = await capo_cloudfront._operations.cloudfront2020_05_31.delete_cloud_front_origin_access_identity.async_delete_cloud_front_origin_access_identity(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteCloudFrontOriginAccessIdentity")
)
input_: capo_cloudfront.types.delete_cloud_front_origin_access_identity_request.DeleteCloudFrontOriginAccessIdentityRequest = {
"id": id
}
if if_match is not None:
input_["if_match"] = if_match
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|