Skip to content

put_dedicated_ip_warmup_attributes

put_dedicated_ip_warmup_attributes(
    ip: Ip,
    warmup_percentage: Percentage100Wrapper,
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> PutDedicatedIpWarmupAttributesResponse

Parameters:

  • ip (Ip) –

    The dedicated IP address that you want to update the warm-up attributes for.

  • warmup_percentage (Percentage100Wrapper) –

    The warm-up percentage that you want to associate with the dedicated IP address.

Raises:

Source code in docs_src/capo_sesv2/_services/se_sv2.py
def put_dedicated_ip_warmup_attributes(
    self,
    ip: "capo_sesv2.types.ip.Ip",
    warmup_percentage: "capo_sesv2.types.percentage100_wrapper.Percentage100Wrapper",
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.put_dedicated_ip_warmup_attributes_response.PutDedicatedIpWarmupAttributesResponse":
    """<p></p>

    Args:
        ip: <p>The dedicated IP address that you want to update the warm-up attributes for.</p>
        warmup_percentage: <p>The warm-up percentage that you want to associate with the dedicated IP address.</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.put_dedicated_ip_warmup_attributes_request.PutDedicatedIpWarmupAttributesRequest]",
    ) -> OperationResponse[
        "capo_sesv2.types.put_dedicated_ip_warmup_attributes_response.PutDedicatedIpWarmupAttributesResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.put_dedicated_ip_warmup_attributes

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutDedicatedIpWarmupAttributes")
    )
    input_: capo_sesv2.types.put_dedicated_ip_warmup_attributes_request.PutDedicatedIpWarmupAttributesRequest = {
        "ip": ip,
        "warmup_percentage": warmup_percentage,
    }

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