Delete an origin access identity.
Declaration Syntax
C# |
DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity( DeleteCloudFrontOriginAccessIdentityRequest request )
Parameters
- request (DeleteCloudFrontOriginAccessIdentityRequest)
- Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity service method.
Return Value
The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.
Exceptions
Exception | Condition |
---|---|
AccessDeniedException |
Access denied.
|
CloudFrontOriginAccessIdentityInUseException | |
InvalidIfMatchVersionException |
The If-Match version is missing or not valid for the distribution.
|
NoSuchCloudFrontOriginAccessIdentityException |
The specified origin access identity does not exist.
|
PreconditionFailedException |
The precondition given in one or more of the request-header fields evaluated to false.
|