IoTSiteWise / Client / delete_computation_model

delete_computation_model

IoTSiteWise.Client.delete_computation_model(**kwargs)

Deletes a computation model. This action can’t be undone.

See also: AWS API Documentation

Request Syntax

response = client.delete_computation_model(
    computationModelId='string',
    clientToken='string'
)
Parameters:
  • computationModelId (string) –

    [REQUIRED]

    The ID of the computation model.

  • clientToken (string) –

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don’t reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'computationModelStatus': {
        'state': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'FAILED',
        'error': {
            'code': 'VALIDATION_ERROR'|'INTERNAL_FAILURE',
            'message': 'string',
            'details': [
                {
                    'code': 'INCOMPATIBLE_COMPUTE_LOCATION'|'INCOMPATIBLE_FORWARDING_CONFIGURATION',
                    'message': 'string'
                },
            ]
        }
    }
}

Response Structure

  • (dict) –

    • computationModelStatus (dict) –

      The status of the computation model. It contains a state (DELETING after successfully calling this operation) and any error messages.

      • state (string) –

        The current state of the computation model.

      • error (dict) –

        Contains the details of an IoT SiteWise error.

        • code (string) –

          The error code.

        • message (string) –

          The error message.

        • details (list) –

          A list of detailed errors.

          • (dict) –

            Contains detailed error information.

            • code (string) –

              The error code.

            • message (string) –

              The error message.

Exceptions