Skip to content

update_dev_endpoint

update_dev_endpoint(
    endpoint_name: GenericString,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    public_key: Optional[GenericString] = None,
    add_public_keys: Optional[PublicKeysList] = None,
    delete_public_keys: Optional[PublicKeysList] = None,
    custom_libraries: Optional[DevEndpointCustomLibraries] = None,
    update_etl_libraries: Optional[BooleanValue] = None,
    delete_arguments: Optional[StringList] = None,
    add_arguments: Optional[MapValue] = None,
) -> UpdateDevEndpointResponse

Updates a specified development endpoint.

Parameters:

  • endpoint_name (GenericString) –

    The name of the DevEndpoint to be updated.

  • public_key (Optional[GenericString], default: None ) –

    The public key for the DevEndpoint to use.

  • add_public_keys (Optional[PublicKeysList], default: None ) –

    The list of public keys for the DevEndpoint to use.

  • delete_public_keys (Optional[PublicKeysList], default: None ) –

    The list of public keys to be deleted from the DevEndpoint.

  • custom_libraries (Optional[DevEndpointCustomLibraries], default: None ) –

    Custom Python or Java libraries to be loaded in the DevEndpoint.

  • update_etl_libraries (Optional[BooleanValue], default: None ) –

    True if the list of custom libraries to be loaded in the development endpoint needs to be updated, or False if otherwise.

  • delete_arguments (Optional[StringList], default: None ) –

    The list of argument keys to be deleted from the map of arguments used to configure the DevEndpoint.

  • add_arguments (Optional[MapValue], default: None ) –

    The map of arguments to add the map of arguments used to configure the DevEndpoint.

    Valid arguments are:

    • "--enable-glue-datacatalog": ""

    You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def update_dev_endpoint(
    self,
    endpoint_name: "capo_glue.types.generic_string.GenericString",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    public_key: Optional["capo_glue.types.generic_string.GenericString"] = None,
    add_public_keys: Optional[
        "capo_glue.types.public_keys_list.PublicKeysList"
    ] = None,
    delete_public_keys: Optional[
        "capo_glue.types.public_keys_list.PublicKeysList"
    ] = None,
    custom_libraries: Optional[
        "capo_glue.types.dev_endpoint_custom_libraries.DevEndpointCustomLibraries"
    ] = None,
    update_etl_libraries: Optional[
        "capo_glue.types.boolean_value.BooleanValue"
    ] = None,
    delete_arguments: Optional["capo_glue.types.string_list.StringList"] = None,
    add_arguments: Optional["capo_glue.types.map_value.MapValue"] = None,
) -> "capo_glue.types.update_dev_endpoint_response.UpdateDevEndpointResponse":
    """<p>Updates a specified development endpoint.</p>

    Args:
        endpoint_name: <p>The name of the <code>DevEndpoint</code> to be updated.</p>
        public_key: <p>The public key for the <code>DevEndpoint</code> to use.</p>
        add_public_keys: <p>The list of public keys for the <code>DevEndpoint</code> to use.</p>
        delete_public_keys: <p>The list of public keys to be deleted from the <code>DevEndpoint</code>.</p>
        custom_libraries: <p>Custom Python or Java libraries to be loaded in the <code>DevEndpoint</code>.</p>
        update_etl_libraries: <p> <code>True</code> if the list of custom libraries to be loaded in the development endpoint needs to be updated, or <code>False</code> if otherwise.</p>
        delete_arguments: <p>The list of argument keys to be deleted from the map of arguments used to configure the <code>DevEndpoint</code>.</p>
        add_arguments: <p>The map of arguments to add the map of arguments used to configure the <code>DevEndpoint</code>.</p> <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog": ""</code> </p> </li> </ul> <p>You can specify a version of Python support for development endpoints by using the <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version defaults to Python 2.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.update_dev_endpoint_request.UpdateDevEndpointRequest]",
    ) -> OperationResponse[
        "capo_glue.types.update_dev_endpoint_response.UpdateDevEndpointResponse"
    ]:
        import capo_glue._operations.aws_glue.update_dev_endpoint

        output, http_response = (
            capo_glue._operations.aws_glue.update_dev_endpoint.update_dev_endpoint(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateDevEndpoint")
    )
    input_: capo_glue.types.update_dev_endpoint_request.UpdateDevEndpointRequest = {
        "endpoint_name": endpoint_name
    }
    if public_key is not None:
        input_["public_key"] = public_key
    if add_public_keys is not None:
        input_["add_public_keys"] = add_public_keys
    if delete_public_keys is not None:
        input_["delete_public_keys"] = delete_public_keys
    if custom_libraries is not None:
        input_["custom_libraries"] = custom_libraries
    if update_etl_libraries is not None:
        input_["update_etl_libraries"] = update_etl_libraries
    if delete_arguments is not None:
        input_["delete_arguments"] = delete_arguments
    if add_arguments is not None:
        input_["add_arguments"] = add_arguments

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