Skip to main content

profile_shares

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

Overview

Nameprofile_shares
TypeResource
Idaws.wellarchitected.profile_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>)
profile_share_summariesarrayProfile share summaries.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_profile_sharesselectprofile_arn, regionSharedWithPrefix, NextToken, MaxResults, StatusList profile shares.
create_profile_shareinsertprofile_arn, region, SharedWith, ClientRequestTokenCreate a profile share.
delete_profile_sharedeleteshare_id, profile_arn, ClientRequestToken, regionDelete a profile share.

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
profile_arnstringThe profile ARN.
regionstringAWS region (default: us-east-1)
share_idstring
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 profile shares.

SELECT
next_token,
profile_share_summaries
FROM aws.wellarchitected.profile_shares
WHERE profile_arn = '{{ profile_arn }}' -- required
AND region = '{{ region }}' -- required
AND SharedWithPrefix = '{{ SharedWithPrefix }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Status = '{{ Status }}'
;

INSERT examples

Create a profile share.

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

DELETE examples

Delete a profile share.

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