Skip to content

update_outpost_resolver

update_outpost_resolver(
    id: ResourceId,
    *,
    config_overrides: Optional[Route53ResolverClientConfig] = None,
    name: Optional[OutpostResolverName] = None,
    instance_count: Optional[InstanceCount] = None,
    preferred_instance_type: Optional[OutpostInstanceType] = None,
) -> UpdateOutpostResolverResponse

You can use UpdateOutpostResolver to update the instance count, type, or name of a Resolver on an Outpost.

This operation applies to first-generation Outposts only. On second-generation Outposts, Resolver is managed automatically by Amazon Web Services and can't be updated directly.

Parameters:

Raises:

  • AccessDeniedException –

    The current account doesn't have the IAM permissions required to perform the specified Resolver operation.

    This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.

  • ConflictException –

    The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted.

  • InternalServiceErrorException –

    We encountered an unknown error. Try again in a few minutes.

  • ResourceNotFoundException –

    The specified resource doesn't exist.

  • ServiceQuotaExceededException –

    Fulfilling the request would cause one or more quotas to be exceeded.

  • ThrottlingException –

    The request was throttled. Try again in a few minutes.

  • ValidationException –

    You have provided an invalid command. If you ran the UpdateFirewallDomains request. supported values are ADD, REMOVE, or REPLACE a domain.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_route53resolver/_services/route53_resolver.py
def update_outpost_resolver(
    self,
    id: "capo_route53resolver.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[Route53ResolverClientConfig] = None,
    name: Optional[
        "capo_route53resolver.types.outpost_resolver_name.OutpostResolverName"
    ] = None,
    instance_count: Optional[
        "capo_route53resolver.types.instance_count.InstanceCount"
    ] = None,
    preferred_instance_type: Optional[
        "capo_route53resolver.types.outpost_instance_type.OutpostInstanceType"
    ] = None,
) -> "capo_route53resolver.types.update_outpost_resolver_response.UpdateOutpostResolverResponse":
    """<p>You can use <code>UpdateOutpostResolver</code> to update the instance count, type, or name of a Resolver on an Outpost.</p> <note> <p>This operation applies to first-generation Outposts only. On second-generation Outposts, Resolver is managed automatically by Amazon Web Services and can't be updated directly.</p> </note>

    Args:
        id: <p>A unique string that identifies Resolver on an Outpost.</p>
        name: <p>Name of the Resolver on the Outpost.</p>
        instance_count: <p>The Amazon EC2 instance count for a Resolver on the Outpost.</p>
        preferred_instance_type: <p> Amazon EC2 instance type. </p>

    Raises:
        capo_route53resolver.errors.access_denied_exception.AccessDeniedException: <p>The current account doesn't have the IAM permissions required to perform the specified Resolver operation.</p> <p>This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.</p>
        capo_route53resolver.errors.conflict_exception.ConflictException: <p>The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted.</p>
        capo_route53resolver.errors.internal_service_error_exception.InternalServiceErrorException: <p>We encountered an unknown error. Try again in a few minutes.</p>
        capo_route53resolver.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist.</p>
        capo_route53resolver.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Fulfilling the request would cause one or more quotas to be exceeded.</p>
        capo_route53resolver.errors.throttling_exception.ThrottlingException: <p>The request was throttled. Try again in a few minutes.</p>
        capo_route53resolver.errors.validation_exception.ValidationException: <p>You have provided an invalid command. If you ran the <code>UpdateFirewallDomains</code> request. supported values are <code>ADD</code>, <code>REMOVE</code>, or <code>REPLACE</code> a domain.</p>
        capo_route53resolver.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_route53resolver.types.update_outpost_resolver_request.UpdateOutpostResolverRequest]",
    ) -> OperationResponse[
        "capo_route53resolver.types.update_outpost_resolver_response.UpdateOutpostResolverResponse"
    ]:
        import capo_route53resolver._operations.route53_resolver.update_outpost_resolver

        output, http_response = (
            capo_route53resolver._operations.route53_resolver.update_outpost_resolver.update_outpost_resolver(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateOutpostResolver")
    )
    input_: capo_route53resolver.types.update_outpost_resolver_request.UpdateOutpostResolverRequest = {
        "id": id
    }
    if name is not None:
        input_["name"] = name
    if instance_count is not None:
        input_["instance_count"] = instance_count
    if preferred_instance_type is not None:
        input_["preferred_instance_type"] = preferred_instance_type

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