Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateLensShareCommand

Create a lens share.

The owner of a lens can share it with other Amazon Web Services accounts, IAM users, an organization, and organizational units (OUs) in the same Amazon Web Services Region. Shared access to a lens is not removed until the lens invitation is deleted.

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, CreateLensShareCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
// const { WellArchitectedClient, CreateLensShareCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
const client = new WellArchitectedClient(config);
const command = new CreateLensShareCommand(input);
const response = await client.send(command);
see

CreateLensShareCommandInput for command's input shape.

see

CreateLensShareCommandOutput for command's response shape.

see

config for WellArchitectedClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateLensShareCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateLensShareCommandInput, CreateLensShareCommandOutput>

Methods

Static getEndpointParameterInstructions