Skip to content

get_identity_mail_from_domain_attributes async

get_identity_mail_from_domain_attributes(
    identities: IdentityList, *, config_overrides: Optional[AsyncSESClientConfig] = None
) -> GetIdentityMailFromDomainAttributesResponse

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:

>>> await client.get_identity_mail_from_domain_attributes(identities=['example.com'])
Source code in docs_src/capo_ses/_services/async_ses.py
async def get_identity_mail_from_domain_attributes(
    self,
    identities: "capo_ses.types.identity_list.IdentityList",
    *,
    config_overrides: Optional[AsyncSESClientConfig] = 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:

        >>> await client.get_identity_mail_from_domain_attributes(identities=['example.com'])
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ses.types.get_identity_mail_from_domain_attributes_request.GetIdentityMailFromDomainAttributesRequest]",
    ) -> AsyncOperationResponse[
        "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,
        ) = await capo_ses._operations.simple_email_service.get_identity_mail_from_domain_attributes.async_get_identity_mail_from_domain_attributes(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output