Skip to main content

template_shares

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

Overview

Nametemplate_shares
TypeResource
Idaws.wellarchitected.template_shares

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>)
template_arnstringThe review template ARN. (pattern: <code>arn:aws(-us-gov|-iso(-[a-z])?|-cn)?:wellarchitected:[a-z]{2}(-gov|-iso([a-z])?)?-[a-z]+-\d:\d{12}:(review-template)/[a-f0-9]{32}</code>)
template_share_summariesarrayA review template share summary return object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_template_sharesselecttemplate_arn, regionSharedWithPrefix, NextToken, MaxResults, StatusList review template shares.
create_template_shareinserttemplate_arn, region, SharedWith, ClientRequestTokenCreate a review template share. The owner of a review template can share it with other Amazon Web Services accounts, users, an organization, and organizational units (OUs) in the same Amazon Web Services Region. Shared access to a review template is not removed until the review template share invitation is deleted. If you share a review template with an organization or OU, all accounts in the organization or OU are granted access to the review template. Disclaimer By sharing your review template with other Amazon Web Services accounts, you acknowledge that Amazon Web Services will make your review template available to those other accounts.
delete_template_sharedeleteshare_id, template_arn, ClientRequestToken, regionDelete a review template share. After the review template share is deleted, Amazon Web Services accounts, users, organizations, and organizational units (OUs) that you shared the review template with will no longer be able to apply it to new workloads.

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
ClientRequestTokenstring
regionstringAWS region (default: us-east-1)
share_idstring
template_arnstringThe review template ARN.
MaxResultsintegerThe maximum number of results to return for this request.
NextTokenstring
SharedWithPrefixstringThe Amazon Web Services account ID, organization ID, or organizational unit (OU) ID with which the profile is shared.
Statusstring

SELECT examples

List review template shares.

SELECT
next_token,
template_arn,
template_share_summaries
FROM aws.wellarchitected.template_shares
WHERE template_arn = '{{ template_arn }}' -- required
AND region = '{{ region }}' -- required
AND SharedWithPrefix = '{{ SharedWithPrefix }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Status = '{{ Status }}'
;

INSERT examples

Create a review template share. The owner of a review template can share it with other Amazon Web Services accounts, users, an organization, and organizational units (OUs) in the same Amazon Web Services Region. Shared access to a review template is not removed until the review template share invitation is deleted. If you share a review template with an organization or OU, all accounts in the organization or OU are granted access to the review template. Disclaimer By sharing your review template with other Amazon Web Services accounts, you acknowledge that Amazon Web Services will make your review template available to those other accounts.

INSERT INTO aws.wellarchitected.template_shares (
SharedWith,
ClientRequestToken,
template_arn,
region
)
SELECT
'{{ SharedWith }}' /* required */,
'{{ ClientRequestToken }}' /* required */,
'{{ template_arn }}',
'{{ region }}'
RETURNING
share_id,
template_arn
;

DELETE examples

Delete a review template share. After the review template share is deleted, Amazon Web Services accounts, users, organizations, and organizational units (OUs) that you shared the review template with will no longer be able to apply it to new workloads.

DELETE FROM aws.wellarchitected.template_shares
WHERE share_id = '{{ share_id }}' --required
AND template_arn = '{{ template_arn }}' --required
AND ClientRequestToken = '{{ ClientRequestToken }}' --required
AND region = '{{ region }}' --required
;