DeleteOpsMetadataCommand

Delete OpsMetadata related to an application.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SSMClient, DeleteOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import
// const { SSMClient, DeleteOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import
const client = new SSMClient(config);
const input = { // DeleteOpsMetadataRequest
  OpsMetadataArn: "STRING_VALUE", // required
};
const command = new DeleteOpsMetadataCommand(input);
const response = await client.send(command);
// {};

DeleteOpsMetadataCommand Input

See DeleteOpsMetadataCommandInput for more details

Parameter
Type
Description
OpsMetadataArn
Required
string | undefined

The Amazon Resource Name (ARN) of an OpsMetadata Object to delete.

DeleteOpsMetadataCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InternalServerError
server

An error occurred on the server side.

OpsMetadataInvalidArgumentException
client

One of the arguments passed is invalid.

OpsMetadataNotFoundException
client

The OpsMetadata object doesn't exist.

SSMServiceException
Base exception class for all service exceptions from SSM service.