delete_tags

MachineLearning.Client.delete_tags(**kwargs)

Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags.

If you specify a tag that doesn't exist, Amazon ML ignores it.

See also: AWS API Documentation

Request Syntax

response = client.delete_tags(
    TagKeys=[
        'string',
    ],
    ResourceId='string',
    ResourceType='BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
)
Parameters
  • TagKeys (list) --

    [REQUIRED]

    One or more tags to delete.

    • (string) --
  • ResourceId (string) --

    [REQUIRED]

    The ID of the tagged ML object. For example, exampleModelId .

  • ResourceType (string) --

    [REQUIRED]

    The type of the tagged ML object.

Return type

dict

Returns

Response Syntax

{
    'ResourceId': 'string',
    'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
}

Response Structure

  • (dict) --

    Amazon ML returns the following elements.

    • ResourceId (string) --

      The ID of the ML object from which tags were deleted.

    • ResourceType (string) --

      The type of the ML object from which tags were deleted.

Exceptions

  • MachineLearning.Client.exceptions.InvalidInputException
  • MachineLearning.Client.exceptions.InvalidTagException
  • MachineLearning.Client.exceptions.ResourceNotFoundException
  • MachineLearning.Client.exceptions.InternalServerException