Skip to content

remove_source_identifier_from_subscription async

remove_source_identifier_from_subscription(
    *,
    config_overrides: Optional[AsyncNeptuneClientConfig] = None,
    subscription_name: Optional[String] = None,
    source_identifier: Optional[String] = None,
) -> RemoveSourceIdentifierFromSubscriptionResult

Removes a source identifier from an existing event notification subscription.

Parameters:

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

    The name of the event notification subscription you want to remove a source identifier from.

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

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

Raises:

Source code in docs_src/capo_neptune/_services/async_neptune.py
async def remove_source_identifier_from_subscription(
    self,
    *,
    config_overrides: Optional[AsyncNeptuneClientConfig] = None,
    subscription_name: Optional["capo_neptune.types.string.String"] = None,
    source_identifier: Optional["capo_neptune.types.string.String"] = None,
) -> "capo_neptune.types.remove_source_identifier_from_subscription_result.RemoveSourceIdentifierFromSubscriptionResult":
    """<p>Removes a source identifier from an existing event notification subscription.</p>

    Args:
        subscription_name: <p>The name of the event notification subscription you want to remove a source identifier from.</p>
        source_identifier: <p> The source identifier to be removed from the subscription, such as the <b>DB instance identifier</b> for a DB instance or the name of a security group.</p>

    Raises:
        capo_neptune.errors.source_not_found_fault.SourceNotFoundFault: <p>The source could not be found.</p>
        capo_neptune.errors.subscription_not_found_fault.SubscriptionNotFoundFault: <p>The designated subscription could not be found.</p>
        capo_neptune.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_neptune.types.remove_source_identifier_from_subscription_message.RemoveSourceIdentifierFromSubscriptionMessage]",
    ) -> AsyncOperationResponse[
        "capo_neptune.types.remove_source_identifier_from_subscription_result.RemoveSourceIdentifierFromSubscriptionResult"
    ]:
        import capo_neptune._operations.amazon_rd_sv19.remove_source_identifier_from_subscription

        (
            output,
            http_response,
        ) = await capo_neptune._operations.amazon_rd_sv19.remove_source_identifier_from_subscription.async_remove_source_identifier_from_subscription(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RemoveSourceIdentifierFromSubscription")
    )
    input_: capo_neptune.types.remove_source_identifier_from_subscription_message.RemoveSourceIdentifierFromSubscriptionMessage = {}
    if subscription_name is not None:
        input_["subscription_name"] = subscription_name
    if source_identifier is not None:
        input_["source_identifier"] = source_identifier

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output