Skip to content

update_core_network_endpoint

update_core_network_endpoint(
    core_network_endpoint_id: ResourceId,
    *,
    config_overrides: Optional[Route53GlobalResolverClientConfig] = None,
    name: Optional[ResourceName] = None,
    update_ip_addresses: Optional[UpdateIpAddressList] = None,
) -> UpdateCoreNetworkEndpointOutput

Updates the configuration of a core network endpoint. You can change the name and modify the IP addresses that the endpoint uses for DNS resolution.

Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions, but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

Parameters:

  • core_network_endpoint_id (ResourceId) –

    The unique identifier of the core network endpoint to update.

  • name (Optional[ResourceName], default: None ) –

    The name of the core network endpoint.

  • update_ip_addresses (Optional[UpdateIpAddressList], default: None ) –

    The IP address changes to apply to the core network endpoint. Use this parameter to add or remove the IP addresses that the endpoint uses to resolve DNS queries within the Amazon Web Services Cloud WAN core network.

Raises:

  • AccessDeniedException –

    You don't have permission to perform this operation. Check your IAM permissions and try again.

  • ConflictException –

    The request conflicts with the current state of the resource. This can occur when trying to modify a resource that is not in a valid state for the requested operation.

  • InternalServerException –

    An internal server error occurred. Try again later.

  • ResourceNotFoundException –

    The specified resource was not found. Verify the resource ID and try again.

  • ServiceQuotaExceededException –

    The request would exceed one or more service quotas. Check your current usage and quotas, then try again.

  • ThrottlingException –

    The request was throttled due to too many requests. Wait a moment and try again.

  • ValidationException –

    The input parameters are invalid. Check the parameter values and try again.

  • UnknownServiceError –

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

Source code in docs_src/capo_route53globalresolver/_services/route53_global_resolver.py
def update_core_network_endpoint(
    self,
    core_network_endpoint_id: "capo_route53globalresolver.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[Route53GlobalResolverClientConfig] = None,
    name: Optional[
        "capo_route53globalresolver.types.resource_name.ResourceName"
    ] = None,
    update_ip_addresses: Optional[
        "capo_route53globalresolver.types.update_ip_address_list.UpdateIpAddressList"
    ] = None,
) -> "capo_route53globalresolver.types.update_core_network_endpoint_output.UpdateCoreNetworkEndpointOutput":
    """<p>Updates the configuration of a core network endpoint. You can change the name and modify the IP addresses that the endpoint uses for DNS resolution.</p> <important> <p>Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions, but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify <code>--region us-east-2</code> on Amazon Web Services CLI commands.</p> </important>

    Args:
        core_network_endpoint_id: <p>The unique identifier of the core network endpoint to update.</p>
        name: <p>The name of the core network endpoint.</p>
        update_ip_addresses: <p>The IP address changes to apply to the core network endpoint. Use this parameter to add or remove the IP addresses that the endpoint uses to resolve DNS queries within the Amazon Web Services Cloud WAN core network.</p>

    Raises:
        capo_route53globalresolver.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform this operation. Check your IAM permissions and try again.</p>
        capo_route53globalresolver.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource. This can occur when trying to modify a resource that is not in a valid state for the requested operation.</p>
        capo_route53globalresolver.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Try again later.</p>
        capo_route53globalresolver.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found. Verify the resource ID and try again.</p>
        capo_route53globalresolver.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed one or more service quotas. Check your current usage and quotas, then try again.</p>
        capo_route53globalresolver.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Wait a moment and try again.</p>
        capo_route53globalresolver.errors.validation_exception.ValidationException: <p>The input parameters are invalid. Check the parameter values and try again.</p>
        capo_route53globalresolver.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_route53globalresolver.types.update_core_network_endpoint_input.UpdateCoreNetworkEndpointInput]",
    ) -> OperationResponse[
        "capo_route53globalresolver.types.update_core_network_endpoint_output.UpdateCoreNetworkEndpointOutput"
    ]:
        import capo_route53globalresolver._operations.ec2_dns_global_resolver_customer_api.update_core_network_endpoint

        output, http_response = (
            capo_route53globalresolver._operations.ec2_dns_global_resolver_customer_api.update_core_network_endpoint.update_core_network_endpoint(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateCoreNetworkEndpoint")
    )
    input_: capo_route53globalresolver.types.update_core_network_endpoint_input.UpdateCoreNetworkEndpointInput = {
        "core_network_endpoint_id": core_network_endpoint_id
    }
    if name is not None:
        input_["name"] = name
    if update_ip_addresses is not None:
        input_["update_ip_addresses"] = update_ip_addresses

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