Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains).
This operation is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.
Parameters:
-
identities
(IdentityList)
–
A list of one or more identities.
Raises:
Examples:
GetIdentityMailFromDomainAttributes
The following example returns the custom MAIL FROM attributes for an identity:
>>> client.get_identity_mail_from_domain_attributes(identities=['example.com'])
Source code in docs_src/capo_ses/_services/ses.py
| def get_identity_mail_from_domain_attributes(
self,
identities: "capo_ses.types.identity_list.IdentityList",
*,
config_overrides: Optional[SESClientConfig] = None,
) -> "capo_ses.types.get_identity_mail_from_domain_attributes_response.GetIdentityMailFromDomainAttributesResponse":
"""<p>Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains).</p> <p>This operation is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.</p>
Args:
identities: <p>A list of one or more identities.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
GetIdentityMailFromDomainAttributes
The following example returns the custom MAIL FROM attributes for an identity:
>>> client.get_identity_mail_from_domain_attributes(identities=['example.com'])
"""
def _handler(
req: "OperationRequest[capo_ses.types.get_identity_mail_from_domain_attributes_request.GetIdentityMailFromDomainAttributesRequest]",
) -> OperationResponse[
"capo_ses.types.get_identity_mail_from_domain_attributes_response.GetIdentityMailFromDomainAttributesResponse"
]:
import capo_ses._operations.simple_email_service.get_identity_mail_from_domain_attributes
output, http_response = (
capo_ses._operations.simple_email_service.get_identity_mail_from_domain_attributes.get_identity_mail_from_domain_attributes(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetIdentityMailFromDomainAttributes")
)
input_: capo_ses.types.get_identity_mail_from_domain_attributes_request.GetIdentityMailFromDomainAttributesRequest = {
"identities": identities
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|