Deletes the specified identity (an email address or a domain) from the list of verified identities.
You can execute this operation no more than once per second.
Parameters:
-
identity
(Identity)
–
The identity to be removed from the list of identities for the Amazon Web Services account.
Raises:
Examples:
DeleteIdentity
The following example deletes an identity from the list of identities that have been submitted for verification with Amazon SES:
Source code in docs_src/capo_ses/_services/ses.py
| def delete_identity(
self,
identity: "capo_ses.types.identity.Identity",
*,
config_overrides: Optional[SESClientConfig] = None,
) -> "capo_ses.types.delete_identity_response.DeleteIdentityResponse":
"""<p>Deletes the specified identity (an email address or a domain) from the list of verified identities.</p> <p>You can execute this operation no more than once per second.</p>
Args:
identity: <p>The identity to be removed from the list of identities for the Amazon Web Services account.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
DeleteIdentity
The following example deletes an identity from the list of identities that have been submitted for verification with Amazon SES:
>>> client.delete_identity(identity='[email protected]')
"""
def _handler(
req: "OperationRequest[capo_ses.types.delete_identity_request.DeleteIdentityRequest]",
) -> OperationResponse[
"capo_ses.types.delete_identity_response.DeleteIdentityResponse"
]:
import capo_ses._operations.simple_email_service.delete_identity
output, http_response = (
capo_ses._operations.simple_email_service.delete_identity.delete_identity(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteIdentity")
)
input_: capo_ses.types.delete_identity_request.DeleteIdentityRequest = {
"identity": identity
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|