Class DisableResourceHandler


  • public class DisableResourceHandler
    extends Object
    Handler for the process of disabling a resource. A new instance of the handler must be created using the builder.

    For more information about the disabling process see disableResource(String).

    • Method Detail

      • disableResource

        public static Variant disableResource​(Session session,
                                              String resourceIngestionDefinitionId)
        Default handler method for the PUBLIC.DISABLE_RESOURCE procedure.
        Parameters:
        session - Snowpark session object
        resourceIngestionDefinitionId - id of a resource ingestion definition which should be disabled
        Returns:
        a variant representing the ConnectorResponse
      • disableResource

        public ConnectorResponse disableResource​(String resourceIngestionDefinitionId)
        Disables a resource with given id

        The process of disabling a resource consists of:

        If a resource is already disabled, nothing is done. If a resource ingestion definition with given id does not exist, InvalidInputException is thrown.
        Parameters:
        resourceIngestionDefinitionId - id of resource ingestion definition