Esempio n. 1
0
    def delete(self, disassociate=False):
        """Delete the artifact object.

        Args:
            disassociate (bool): When set to true, disassociate incoming and outgoing association.
        """
        if disassociate:
            _disassociate(source_arn=self.artifact_arn,
                          sagemaker_session=self.sagemaker_session)
            _disassociate(destination_arn=self.artifact_arn,
                          sagemaker_session=self.sagemaker_session)
        self._invoke_api(self._boto_delete_method, self._boto_delete_members)
Esempio n. 2
0
    def delete(self, disassociate=False):
        """Delete the context object.

        Args:
            disassociate (bool): When set to true, disassociate incoming and outgoing association.

        Returns:
            obj: boto API response.
        """
        if disassociate:
            _utils._disassociate(
                source_arn=self.context_arn, sagemaker_session=self.sagemaker_session
            )
            _utils._disassociate(
                destination_arn=self.context_arn, sagemaker_session=self.sagemaker_session
            )
        return self._invoke_api(self._boto_delete_method, self._boto_delete_members)