Skip to content

List the workload shares associated with the workload

Description

List the workload shares associated with the workload.

Usage

wellarchitected_list_workload_shares(WorkloadId, SharedWithPrefix,
  NextToken, MaxResults, Status)

Arguments

  • WorkloadId

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

  • SharedWithPrefix

    The Amazon Web Services account ID, organization ID, or organizational unit (OU) ID with which the workload is shared.

  • NextToken

    The token to use to retrieve the next set of results.

  • MaxResults

    The maximum number of results to return for this request.

  • Status

    The status of the share request.

Value

A list with the following syntax:

list(
  WorkloadId = "string",
  WorkloadShareSummaries = list(
    list(
      ShareId = "string",
      SharedWith = "string",
      PermissionType = "READONLY"|"CONTRIBUTOR",
      Status = "ACCEPTED"|"REJECTED"|"PENDING"|"REVOKED"|"EXPIRED"|"ASSOCIATING"|"ASSOCIATED"|"FAILED",
      StatusMessage = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_workload_shares(
  WorkloadId = "string",
  SharedWithPrefix = "string",
  NextToken = "string",
  MaxResults = 123,
  Status = "ACCEPTED"|"REJECTED"|"PENDING"|"REVOKED"|"EXPIRED"|"ASSOCIATING"|"ASSOCIATED"|"FAILED"
)