Skip to content

delete_partner async

delete_partner(
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    account_id: Optional[PartnerIntegrationAccountId] = None,
    cluster_identifier: Optional[PartnerIntegrationClusterIdentifier] = None,
    database_name: Optional[PartnerIntegrationDatabaseName] = None,
    partner_name: Optional[PartnerIntegrationPartnerName] = None,
) -> PartnerIntegrationOutputMessage

Deletes a partner integration from a cluster. Data can still flow to the cluster until the integration is deleted at the partner's website.

Parameters:

Raises:

Source code in docs_src/capo_redshift/_services/async_redshift.py
async def delete_partner(
    self,
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    account_id: Optional[
        "capo_redshift.types.partner_integration_account_id.PartnerIntegrationAccountId"
    ] = None,
    cluster_identifier: Optional[
        "capo_redshift.types.partner_integration_cluster_identifier.PartnerIntegrationClusterIdentifier"
    ] = None,
    database_name: Optional[
        "capo_redshift.types.partner_integration_database_name.PartnerIntegrationDatabaseName"
    ] = None,
    partner_name: Optional[
        "capo_redshift.types.partner_integration_partner_name.PartnerIntegrationPartnerName"
    ] = None,
) -> "capo_redshift.types.partner_integration_output_message.PartnerIntegrationOutputMessage":
    """<p>Deletes a partner integration from a cluster. Data can still flow to the cluster until the integration is deleted at the partner's website.</p>

    Args:
        account_id: <p>The Amazon Web Services account ID that owns the cluster.</p>
        cluster_identifier: <p>The cluster identifier of the cluster that receives data from the partner.</p>
        database_name: <p>The name of the database that receives data from the partner.</p>
        partner_name: <p>The name of the partner that is authorized to send data.</p>

    Raises:
        capo_redshift.errors.cluster_not_found_fault.ClusterNotFoundFault: <p>The <code>ClusterIdentifier</code> parameter does not refer to an existing cluster. </p>
        capo_redshift.errors.partner_not_found_fault.PartnerNotFoundFault: <p>The name of the partner was not found.</p>
        capo_redshift.errors.unauthorized_partner_integration_fault.UnauthorizedPartnerIntegrationFault: <p>The partner integration is not authorized.</p>
        capo_redshift.errors.unsupported_operation_fault.UnsupportedOperationFault: <p>The requested operation isn't supported.</p>
        capo_redshift.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_redshift.types.partner_integration_input_message.PartnerIntegrationInputMessage]",
    ) -> AsyncOperationResponse[
        "capo_redshift.types.partner_integration_output_message.PartnerIntegrationOutputMessage"
    ]:
        import capo_redshift._operations.redshift_service_version20121201.delete_partner

        (
            output,
            http_response,
        ) = await capo_redshift._operations.redshift_service_version20121201.delete_partner.async_delete_partner(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeletePartner")
    )
    input_: capo_redshift.types.partner_integration_input_message.PartnerIntegrationInputMessage = {}
    if account_id is not None:
        input_["account_id"] = account_id
    if cluster_identifier is not None:
        input_["cluster_identifier"] = cluster_identifier
    if database_name is not None:
        input_["database_name"] = database_name
    if partner_name is not None:
        input_["partner_name"] = partner_name

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