ElementalInference / Client / delete_function

delete_function

ElementalInference.Client.delete_function(**kwargs)

Deletes a function. If any feed still references the function, the operation returns a ConflictException. A disabled function output still references the function. Use GetFunction to find those feeds, then remove the function output from each one with UpdateFeed, or delete the feed, before retrying.

Deleting a function doesn’t delete the metadata that it has already produced.

See also: AWS API Documentation

Request Syntax

response = client.delete_function(
    id='string'
)
Parameters:

id (string) –

[REQUIRED]

The ID of the function.

Return type:

dict

Returns:

Response Syntax

{
    'arn': 'string',
    'id': 'string',
    'status': 'CREATING'|'AVAILABLE'|'REFERENCED'|'DELETING'|'DELETED'
}

Response Structure

  • (dict) –

    • arn (string) –

      The ARN of the function.

    • id (string) –

      The ID of the function.

    • status (string) –

      The status of the function. A successful request returns DELETING. Elemental Inference removes the function before it returns the response.

Exceptions