Skip to content

delete_integration

delete_integration(
    *,
    config_overrides: Optional[RDSClientConfig] = None,
    integration_identifier: Optional[IntegrationIdentifier] = None,
) -> Integration

Deletes a zero-ETL integration with Amazon Redshift.

Parameters:

Raises:

  • IntegrationConflictOperationFault –

    A conflicting conditional operation is currently in progress against this resource. Typically occurs when there are multiple requests being made to the same resource at the same time, and these requests conflict with each other.

  • IntegrationNotFoundFault –

    The specified integration could not be found.

  • InvalidIntegrationStateFault –

    The integration is in an invalid state and can't perform the requested operation.

  • UnknownServiceError –

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

Examples:

To delete a zero-ETL integration The following example deletes a zero-ETL integration with Amazon Redshift.

>>> client.delete_integration(integration_identifier='5b9f3d79-7392-4a3e-896c-58eaa1b53231')
Source code in docs_src/capo_rds/_services/rds.py
def delete_integration(
    self,
    *,
    config_overrides: Optional[RDSClientConfig] = None,
    integration_identifier: Optional[
        "capo_rds.types.integration_identifier.IntegrationIdentifier"
    ] = None,
) -> "capo_rds.types.integration.Integration":
    """<p>Deletes a zero-ETL integration with Amazon Redshift.</p>

    Args:
        integration_identifier: <p>The unique identifier of the integration.</p>

    Raises:
        capo_rds.errors.integration_conflict_operation_fault.IntegrationConflictOperationFault: <p>A conflicting conditional operation is currently in progress against this resource. Typically occurs when there are multiple requests being made to the same resource at the same time, and these requests conflict with each other.</p>
        capo_rds.errors.integration_not_found_fault.IntegrationNotFoundFault: <p>The specified integration could not be found.</p>
        capo_rds.errors.invalid_integration_state_fault.InvalidIntegrationStateFault: <p>The integration is in an invalid state and can't perform the requested operation.</p>
        capo_rds.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To delete a zero-ETL integration
        The following example deletes a zero-ETL integration with Amazon Redshift.

        >>> client.delete_integration(integration_identifier='5b9f3d79-7392-4a3e-896c-58eaa1b53231')
    """

    def _handler(
        req: "OperationRequest[capo_rds.types.delete_integration_message.DeleteIntegrationMessage]",
    ) -> OperationResponse["capo_rds.types.integration.Integration"]:
        import capo_rds._operations.amazon_rd_sv19.delete_integration

        output, http_response = (
            capo_rds._operations.amazon_rd_sv19.delete_integration.delete_integration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteIntegration")
    )
    input_: capo_rds.types.delete_integration_message.DeleteIntegrationMessage = {}
    if integration_identifier is not None:
        input_["integration_identifier"] = integration_identifier

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