Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateWorkloadShareCommand

Create a workload share.

The owner of a workload can share it with other Amazon Web Services accounts and IAM users in the same Amazon Web Services Region. Shared access to a workload is not removed until the workload invitation is deleted.

For more information, see Sharing a Workload in the Well-Architected Tool User Guide.

example

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

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

CreateWorkloadShareCommandInput for command's input shape.

see

CreateWorkloadShareCommandOutput for command's response shape.

see

config for WellArchitectedClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateWorkloadShareCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions