Skip to content

get_reputation_entity

get_reputation_entity(
    reputation_entity_reference: ReputationEntityReference,
    reputation_entity_type: ReputationEntityType,
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> GetReputationEntityResponse

Retrieve information about a specific reputation entity, including its reputation management policy, customer-managed status, Amazon Web Services Amazon SES-managed status, and aggregate sending status.

Reputation entities represent resources in your Amazon SES account that have reputation tracking and management capabilities. The reputation impact reflects the highest impact reputation finding for the entity. Reputation findings can be retrieved using the ListRecommendations operation.

Parameters:

  • reputation_entity_reference (ReputationEntityReference) –

    The unique identifier for the reputation entity. For resource-type entities, this is the Amazon Resource Name (ARN) of the resource.

  • reputation_entity_type (ReputationEntityType) –

    The type of reputation entity. Currently, only RESOURCE type entities are supported.

Raises:

Source code in docs_src/capo_sesv2/_services/se_sv2.py
def get_reputation_entity(
    self,
    reputation_entity_reference: "capo_sesv2.types.reputation_entity_reference.ReputationEntityReference",
    reputation_entity_type: "capo_sesv2.types.reputation_entity_type.ReputationEntityType",
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.get_reputation_entity_response.GetReputationEntityResponse":
    """<p>Retrieve information about a specific reputation entity, including its reputation management policy, customer-managed status, Amazon Web Services Amazon SES-managed status, and aggregate sending status.</p> <p> <i>Reputation entities</i> represent resources in your Amazon SES account that have reputation tracking and management capabilities. The reputation impact reflects the highest impact reputation finding for the entity. Reputation findings can be retrieved using the <code>ListRecommendations</code> operation.</p>

    Args:
        reputation_entity_reference: <p>The unique identifier for the reputation entity. For resource-type entities, this is the Amazon Resource Name (ARN) of the resource.</p>
        reputation_entity_type: <p>The type of reputation entity. Currently, only <code>RESOURCE</code> type entities are supported.</p>

    Raises:
        capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
        capo_sesv2.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
        capo_sesv2.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
        capo_sesv2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sesv2.types.get_reputation_entity_request.GetReputationEntityRequest]",
    ) -> OperationResponse[
        "capo_sesv2.types.get_reputation_entity_response.GetReputationEntityResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.get_reputation_entity

        output, http_response = (
            capo_sesv2._operations.simple_email_service_v2.get_reputation_entity.get_reputation_entity(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetReputationEntity")
    )
    input_: capo_sesv2.types.get_reputation_entity_request.GetReputationEntityRequest = {
        "reputation_entity_reference": reputation_entity_reference,
        "reputation_entity_type": reputation_entity_type,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output