Skip to main content

profiles

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

Overview​

Nameprofiles
TypeResource
Idaws.wellarchitected.profiles

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The date and time when the profile was created.
ownerstringAn Amazon Web Services account ID. (pattern: <code>[0-9]{12}</code>)
profile_arnstringThe profile ARN. (pattern: <code>arn:aws[-a-z]*:wellarchitected:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:profile/[a-z0-9]+</code>)
profile_descriptionstringThe profile description.
profile_namestringThe profile name.
profile_questionsarrayProfile questions.
profile_versionstringThe profile version. (pattern: <code>[A-Za-z0-9-]+</code>)
share_invitation_idstringThe ID assigned to the share invitation. (pattern: <code>[0-9a-f]{32}</code>)
tagsobjectThe tags assigned to the profile.
updated_atstring (date-time)The date and time when the profile was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_profileselectprofile_arn, regionProfileVersionGet profile information.
list_profilesselectregionProfileNamePrefix, ProfileOwnerType, NextToken, MaxResultsList profiles.
create_profileinsertregion, ProfileName, ProfileDescription, ProfileQuestions, ClientRequestTokenCreate a profile.
associate_profilesupdateworkload_id, region, ProfileArnsAssociate a profile with a workload.
update_profileupdateprofile_arn, regionUpdate a profile.
delete_profiledeleteprofile_arn, ClientRequestToken, regionDelete a profile. Disclaimer By sharing your profile with other Amazon Web Services accounts, you acknowledge that Amazon Web Services will make your profile available to those other accounts. Those other accounts may continue to access and use your shared profile even if you delete the profile from your own Amazon Web Services account or terminate your Amazon Web Services account.
disassociate_profilesexecworkload_id, region, ProfileArnsDisassociate a profile from a workload.

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)
workload_idstring
MaxResultsinteger
NextTokenstring
ProfileNamePrefixstringAn optional string added to the beginning of each profile name returned in the results.
ProfileOwnerTypestringProfile owner type.
ProfileVersionstringThe profile version.

SELECT examples​

Get profile information.

SELECT
created_at,
owner,
profile_arn,
profile_description,
profile_name,
profile_questions,
profile_version,
share_invitation_id,
tags,
updated_at
FROM aws.wellarchitected.profiles
WHERE profile_arn = '{{ profile_arn }}' -- required
AND region = '{{ region }}' -- required
AND ProfileVersion = '{{ ProfileVersion }}'
;

INSERT examples​

Create a profile.

INSERT INTO aws.wellarchitected.profiles (
ProfileName,
ProfileDescription,
ProfileQuestions,
ClientRequestToken,
Tags,
region
)
SELECT
'{{ ProfileName }}' /* required */,
'{{ ProfileDescription }}' /* required */,
'{{ ProfileQuestions }}' /* required */,
'{{ ClientRequestToken }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
profile_arn,
profile_version
;

UPDATE examples​

Associate a profile with a workload.

UPDATE aws.wellarchitected.profiles
SET
ProfileArns = '{{ ProfileArns }}'
WHERE
workload_id = '{{ workload_id }}' --required
AND region = '{{ region }}' --required
AND ProfileArns = '{{ ProfileArns }}' --required;

DELETE examples​

Delete a profile. Disclaimer By sharing your profile with other Amazon Web Services accounts, you acknowledge that Amazon Web Services will make your profile available to those other accounts. Those other accounts may continue to access and use your shared profile even if you delete the profile from your own Amazon Web Services account or terminate your Amazon Web Services account.

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

Lifecycle Methods​

Disassociate a profile from a workload.

EXEC aws.wellarchitected.profiles.disassociate_profiles
@workload_id='{{ workload_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"ProfileArns": "{{ ProfileArns }}"
}'
;