Skip to content

delete_custom_domain_association

delete_custom_domain_association(
    *,
    config_overrides: Optional[RedshiftClientConfig] = None,
    cluster_identifier: Optional[String] = None,
    custom_domain_name: Optional[CustomDomainNameString] = None,
) -> None

Contains information about deleting a custom domain association for a cluster.

Parameters:

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

    The identifier of the cluster to delete a custom domain association for.

  • custom_domain_name (Optional[CustomDomainNameString], default: None ) –

    The custom domain name for the custom domain association.

Raises:

Source code in docs_src/capo_redshift/_services/redshift.py
def delete_custom_domain_association(
    self,
    *,
    config_overrides: Optional[RedshiftClientConfig] = None,
    cluster_identifier: Optional["capo_redshift.types.string.String"] = None,
    custom_domain_name: Optional[
        "capo_redshift.types.custom_domain_name_string.CustomDomainNameString"
    ] = None,
) -> None:
    """<p>Contains information about deleting a custom domain association for a cluster.</p>

    Args:
        cluster_identifier: <p>The identifier of the cluster to delete a custom domain association for.</p>
        custom_domain_name: <p>The custom domain name for the custom domain association.</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.custom_cname_association_fault.CustomCnameAssociationFault: <p>An error occurred when an attempt was made to change the custom domain association.</p>
        capo_redshift.errors.custom_domain_association_not_found_fault.CustomDomainAssociationNotFoundFault: <p>An error occurred. The custom domain name couldn't be found.</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.
    """

    def _handler(
        req: "OperationRequest[capo_redshift.types.delete_custom_domain_association_message.DeleteCustomDomainAssociationMessage]",
    ) -> OperationResponse[None]:
        import capo_redshift._operations.redshift_service_version20121201.delete_custom_domain_association

        output, http_response = (
            capo_redshift._operations.redshift_service_version20121201.delete_custom_domain_association.delete_custom_domain_association(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteCustomDomainAssociation")
    )
    input_: capo_redshift.types.delete_custom_domain_association_message.DeleteCustomDomainAssociationMessage = {}
    if cluster_identifier is not None:
        input_["cluster_identifier"] = cluster_identifier
    if custom_domain_name is not None:
        input_["custom_domain_name"] = custom_domain_name

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