View a markdown version of this page

DeleteView - Amazon CloudWatch Omni

DeleteView

Deletes the specified view.

Queries that reference the view fail after it is deleted. Managed views cannot be deleted.

Request Parameters

name

The name of the view to delete.

Type: String

Length Constraints: Minimum length of 6. Maximum length of 256.

Pattern: view\.[a-z0-9][a-z0-9_-]{0,250}

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

The caller is not authorized to perform this action.

HTTP Status Code: 403

InternalServerException

An unexpected error occurred while processing the request.

errorCode

The error code associated with the internal error.

HTTP Status Code: 500

ResourceNotFoundException

The specified resource does not exist.

errorCode

The error code associated with the failure.

resourceId

The identifier of the resource that could not be found. Not always present.

resourceType

The type of the resource that could not be found. Not always present.

HTTP Status Code: 404

ThrottlingException

The request was throttled due to exceeding the allowed request rate.

retryAfterSeconds

The number of seconds to wait before retrying the request. Not always present.

HTTP Status Code: 429

ValidationException

A parameter is specified incorrectly.

errorCode

The error code associated with the validation failure.

HTTP Status Code: 400

Examples

Delete a view

The following example deletes a view. The response body is empty. Queries that reference the view fail after it is deleted. Payloads are shown as JSON; on the wire they are CBOR-encoded.

Sample Request

{ "name": "view.service_errors" }

Sample Response

{}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: