Skip to content

update_reputation_entity_policy

update_reputation_entity_policy(
    reputation_entity_type: ReputationEntityType,
    reputation_entity_reference: ReputationEntityReference,
    reputation_entity_policy: AmazonResourceName,
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> UpdateReputationEntityPolicyResponse

Update the reputation management policy for a reputation entity. The policy determines how the entity responds to reputation findings, such as automatically pausing sending when certain thresholds are exceeded.

Reputation management policies are Amazon Web Services Amazon SES-managed (predefined policies). You can select from none, standard, and strict policies.

Parameters:

  • reputation_entity_type (ReputationEntityType) –

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

  • 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_policy (AmazonResourceName) –

    The Amazon Resource Name (ARN) of the reputation management policy to apply to this entity. This is an Amazon Web Services Amazon SES-managed policy.

Raises:

Source code in docs_src/capo_sesv2/_services/se_sv2.py
def update_reputation_entity_policy(
    self,
    reputation_entity_type: "capo_sesv2.types.reputation_entity_type.ReputationEntityType",
    reputation_entity_reference: "capo_sesv2.types.reputation_entity_reference.ReputationEntityReference",
    reputation_entity_policy: "capo_sesv2.types.amazon_resource_name.AmazonResourceName",
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.update_reputation_entity_policy_response.UpdateReputationEntityPolicyResponse":
    """<p>Update the reputation management policy for a reputation entity. The policy determines how the entity responds to reputation findings, such as automatically pausing sending when certain thresholds are exceeded.</p> <p>Reputation management policies are Amazon Web Services Amazon SES-managed (predefined policies). You can select from none, standard, and strict policies.</p>

    Args:
        reputation_entity_type: <p>The type of reputation entity. Currently, only <code>RESOURCE</code> type entities are supported.</p>
        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_policy: <p>The Amazon Resource Name (ARN) of the reputation management policy to apply to this entity. This is an Amazon Web Services Amazon SES-managed policy.</p>

    Raises:
        capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
        capo_sesv2.errors.conflict_exception.ConflictException: <p>If there is already an ongoing account details update under review.</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.update_reputation_entity_policy_request.UpdateReputationEntityPolicyRequest]",
    ) -> OperationResponse[
        "capo_sesv2.types.update_reputation_entity_policy_response.UpdateReputationEntityPolicyResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.update_reputation_entity_policy

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateReputationEntityPolicy")
    )
    input_: capo_sesv2.types.update_reputation_entity_policy_request.UpdateReputationEntityPolicyRequest = {
        "reputation_entity_type": reputation_entity_type,
        "reputation_entity_reference": reputation_entity_reference,
        "reputation_entity_policy": reputation_entity_policy,
    }

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