Skip to content

describe_inbound_dmarc_settings async

describe_inbound_dmarc_settings(
    organization_id: OrganizationId,
    *,
    config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> DescribeInboundDmarcSettingsResponse

Lists the settings in a DMARC policy for a specified organization.

Parameters:

  • organization_id (OrganizationId) –

    Lists the ID of the given organization.

Raises:

Source code in docs_src/capo_workmail/_services/async_work_mail.py
async def describe_inbound_dmarc_settings(
    self,
    organization_id: "capo_workmail.types.organization_id.OrganizationId",
    *,
    config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> "capo_workmail.types.describe_inbound_dmarc_settings_response.DescribeInboundDmarcSettingsResponse":
    """<p>Lists the settings in a DMARC policy for a specified organization.</p>

    Args:
        organization_id: <p>Lists the ID of the given organization.</p>

    Raises:
        capo_workmail.errors.organization_not_found_exception.OrganizationNotFoundException: <p>An operation received a valid organization identifier that either doesn't belong or exist in the system.</p>
        capo_workmail.errors.organization_state_exception.OrganizationStateException: <p>The organization must have a valid state to perform certain operations on the organization or its members.</p>
        capo_workmail.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workmail.types.describe_inbound_dmarc_settings_request.DescribeInboundDmarcSettingsRequest]",
    ) -> AsyncOperationResponse[
        "capo_workmail.types.describe_inbound_dmarc_settings_response.DescribeInboundDmarcSettingsResponse"
    ]:
        import capo_workmail._operations.work_mail_service.describe_inbound_dmarc_settings

        (
            output,
            http_response,
        ) = await capo_workmail._operations.work_mail_service.describe_inbound_dmarc_settings.async_describe_inbound_dmarc_settings(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeInboundDmarcSettings")
    )
    input_: capo_workmail.types.describe_inbound_dmarc_settings_request.DescribeInboundDmarcSettingsRequest = {
        "organization_id": organization_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output