Skip to main content

share_invitations

Creates, updates, deletes, gets or lists a share_invitations resource.

Overview

Nameshare_invitations
TypeResource
Idaws.wellarchitected.share_invitations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringThe token to use to retrieve the next set of results. (pattern: <code>[A-Za-z0-9+/=_-]+</code>)
share_invitation_summariesarrayList of share invitation summaries in a workload.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_share_invitationsselectregionWorkloadNamePrefix, LensNamePrefix, ShareResourceType, NextToken, MaxResults, ProfileNamePrefix, TemplateNamePrefixList the share invitations. WorkloadNamePrefix, LensNamePrefix, ProfileNamePrefix, and TemplateNamePrefix are mutually exclusive. Use the parameter that matches your ShareResourceType.
update_share_invitationupdateshare_invitation_id, region, ShareInvitationActionUpdate a workload or custom lens share invitation. This API operation can be called independently of any resource. Previous documentation implied that a workload ARN must be specified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
share_invitation_idstringThe ID assigned to the share invitation.
LensNamePrefixstringAn optional string added to the beginning of each lens name returned in the results.
MaxResultsintegerThe maximum number of results to return for this request.
NextTokenstring
ProfileNamePrefixstringAn optional string added to the beginning of each profile name returned in the results.
ShareResourceTypestringThe type of share invitations to be returned.
TemplateNamePrefixstringAn optional string added to the beginning of each review template name returned in the results.
WorkloadNamePrefixstring

SELECT examples

List the share invitations. WorkloadNamePrefix, LensNamePrefix, ProfileNamePrefix, and TemplateNamePrefix are mutually exclusive. Use the parameter that matches your ShareResourceType.

SELECT
next_token,
share_invitation_summaries
FROM aws.wellarchitected.share_invitations
WHERE region = '{{ region }}' -- required
AND WorkloadNamePrefix = '{{ WorkloadNamePrefix }}'
AND LensNamePrefix = '{{ LensNamePrefix }}'
AND ShareResourceType = '{{ ShareResourceType }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND ProfileNamePrefix = '{{ ProfileNamePrefix }}'
AND TemplateNamePrefix = '{{ TemplateNamePrefix }}'
;

UPDATE examples

Update a workload or custom lens share invitation. This API operation can be called independently of any resource. Previous documentation implied that a workload ARN must be specified.

UPDATE aws.wellarchitected.share_invitations
SET
ShareInvitationAction = '{{ ShareInvitationAction }}'
WHERE
share_invitation_id = '{{ share_invitation_id }}' --required
AND region = '{{ region }}' --required
AND ShareInvitationAction = '{{ ShareInvitationAction }}' --required
RETURNING
share_invitation;