Skip to content

modify_db_cluster_endpoint

modify_db_cluster_endpoint(
    *,
    config_overrides: Optional[NeptuneClientConfig] = None,
    db_cluster_endpoint_identifier: Optional[String] = None,
    endpoint_type: Optional[String] = None,
    static_members: Optional[StringList] = None,
    excluded_members: Optional[StringList] = None,
) -> ModifyDBClusterEndpointOutput

Modifies the properties of an endpoint in an Amazon Neptune DB cluster.

Parameters:

  • db_cluster_endpoint_identifier (Optional[String], default: None ) –

    The identifier of the endpoint to modify. This parameter is stored as a lowercase string.

  • endpoint_type (Optional[String], default: None ) –

    The type of the endpoint. One of: READER, WRITER, ANY.

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

    List of DB instance identifiers that are part of the custom endpoint group.

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

    List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

Raises:

Source code in docs_src/capo_neptune/_services/neptune.py
def modify_db_cluster_endpoint(
    self,
    *,
    config_overrides: Optional[NeptuneClientConfig] = None,
    db_cluster_endpoint_identifier: Optional[
        "capo_neptune.types.string.String"
    ] = None,
    endpoint_type: Optional["capo_neptune.types.string.String"] = None,
    static_members: Optional["capo_neptune.types.string_list.StringList"] = None,
    excluded_members: Optional["capo_neptune.types.string_list.StringList"] = None,
) -> "capo_neptune.types.modify_db_cluster_endpoint_output.ModifyDBClusterEndpointOutput":
    """<p>Modifies the properties of an endpoint in an Amazon Neptune DB cluster.</p>

    Args:
        db_cluster_endpoint_identifier: <p>The identifier of the endpoint to modify. This parameter is stored as a lowercase string.</p>
        endpoint_type: <p>The type of the endpoint. One of: <code>READER</code>, <code>WRITER</code>, <code>ANY</code>.</p>
        static_members: <p>List of DB instance identifiers that are part of the custom endpoint group.</p>
        excluded_members: <p>List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.</p>

    Raises:
        capo_neptune.errors.db_cluster_endpoint_not_found_fault.DBClusterEndpointNotFoundFault: <p>The specified custom endpoint doesn't exist.</p>
        capo_neptune.errors.db_instance_not_found_fault.DBInstanceNotFoundFault: <p> <i>DBInstanceIdentifier</i> does not refer to an existing DB instance.</p>
        capo_neptune.errors.invalid_db_cluster_endpoint_state_fault.InvalidDBClusterEndpointStateFault: <p>The requested operation cannot be performed on the endpoint while the endpoint is in this state.</p>
        capo_neptune.errors.invalid_db_cluster_state_fault.InvalidDBClusterStateFault: <p>The DB cluster is not in a valid state.</p>
        capo_neptune.errors.invalid_db_instance_state_fault.InvalidDBInstanceStateFault: <p>The specified DB instance is not in the <i>available</i> state.</p>
        capo_neptune.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_neptune.types.modify_db_cluster_endpoint_message.ModifyDBClusterEndpointMessage]",
    ) -> OperationResponse[
        "capo_neptune.types.modify_db_cluster_endpoint_output.ModifyDBClusterEndpointOutput"
    ]:
        import capo_neptune._operations.amazon_rd_sv19.modify_db_cluster_endpoint

        output, http_response = (
            capo_neptune._operations.amazon_rd_sv19.modify_db_cluster_endpoint.modify_db_cluster_endpoint(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ModifyDBClusterEndpoint")
    )
    input_: capo_neptune.types.modify_db_cluster_endpoint_message.ModifyDBClusterEndpointMessage = {}
    if db_cluster_endpoint_identifier is not None:
        input_["db_cluster_endpoint_identifier"] = db_cluster_endpoint_identifier
    if endpoint_type is not None:
        input_["endpoint_type"] = endpoint_type
    if static_members is not None:
        input_["static_members"] = static_members
    if excluded_members is not None:
        input_["excluded_members"] = excluded_members

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