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/async_ses.py
| async def delete_identity(
self,
identity: "capo_ses.types.identity.Identity",
*,
config_overrides: Optional[AsyncSESClientConfig] = 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:
>>> await client.delete_identity(identity='[email protected]')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ses.types.delete_identity_request.DeleteIdentityRequest]",
) -> AsyncOperationResponse[
"capo_ses.types.delete_identity_response.DeleteIdentityResponse"
]:
import capo_ses._operations.simple_email_service.delete_identity
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.delete_identity.async_delete_identity(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|