Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImportLensCommand

Import a new lens.

The lens cannot be applied to workloads or shared with other Amazon Web Services accounts until it's published with CreateLensVersion

Lenses are defined in JSON. For more information, see JSON format specification in the Well-Architected Tool User Guide.

A custom lens cannot exceed 500 KB in size.

Disclaimer

Do not include or gather personal identifiable information (PII) of end users or other identifiable individuals in or via your custom lenses. If your custom lens or those shared with you and used in your account do include or collect PII you are responsible for: ensuring that the included PII is processed in accordance with applicable law, providing adequate privacy notices, and obtaining necessary consents for processing such data.

example

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

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

ImportLensCommandInput for command's input shape.

see

ImportLensCommandOutput for command's response shape.

see

config for WellArchitectedClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ImportLensCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ImportLensCommandInput, ImportLensCommandOutput>