Skip to content

Create Workload Share

wellarchitected_create_workload_share R Documentation

Create a workload share

Description

Create a workload share.

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

If you share a workload with an organization or OU, all accounts in the organization or OU are granted access to the workload.

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

Usage

wellarchitected_create_workload_share(WorkloadId, SharedWith,
  PermissionType, ClientRequestToken)

Arguments

WorkloadId

[required] The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.

SharedWith

[required] The Amazon Web Services account ID, organization ID, or organizational unit (OU) ID with which the workload, lens, profile, or review template is shared.

PermissionType

[required] Permission granted on a share request.

ClientRequestToken

[required] A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.

This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.

Value

A list with the following syntax:

list(
  WorkloadId = "string",
  ShareId = "string"
)

Request syntax

svc$create_workload_share(
  WorkloadId = "string",
  SharedWith = "string",
  PermissionType = "READONLY"|"CONTRIBUTOR",
  ClientRequestToken = "string"
)