Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteLensCommand

Delete an existing lens.

Only the owner of a lens can delete it. After the lens is deleted, Amazon Web Services accounts and IAM users that you shared the lens with can continue to use it, but they will no longer be able to apply it to new workloads.

Disclaimer

By sharing your custom lenses with other Amazon Web Services accounts, you acknowledge that Amazon Web Services will make your custom lenses available to those other accounts. Those other accounts may continue to access and use your shared custom lenses even if you delete the custom lenses from your own Amazon Web Services account or terminate your Amazon Web Services account.

example

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

import { WellArchitectedClient, DeleteLensCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
// const { WellArchitectedClient, DeleteLensCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
const client = new WellArchitectedClient(config);
const command = new DeleteLensCommand(input);
const response = await client.send(command);
see

DeleteLensCommandInput for command's input shape.

see

DeleteLensCommandOutput for command's response shape.

see

config for WellArchitectedClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteLensCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteLensCommandInput, DeleteLensCommandOutput>

Methods

Static getEndpointParameterInstructions