Skip to main content

profile_permissions

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

Overview

Nameprofile_permissions
TypeResource
Idaws.signer.profile_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringString for specifying the next set of paginated results.
permissionsarrayList of permissions associated with the Signing Profile.
policy_size_bytesintegerTotal size of the policy associated with the Signing Profile in bytes.
revision_idstringThe identifier for the current revision of profile permissions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_profile_permissionsselectprofile_name, regionnextTokenLists the cross-account permissions associated with a signing profile.
add_profile_permissionupdateprofile_name, region, action, principal, statementIdAdds cross-account permissions to a signing profile.
remove_profile_permissionupdateprofile_name, revisionId, statement_id, regionRemoves cross-account permissions from a signing profile.

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
profile_namestringA human-readable name for the signing profile with permissions to be removed.
regionstringAWS region (default: us-east-1)
revisionIdstringAn identifier for the current revision of the signing profile permissions.
statement_idstringA unique identifier for the cross-account permissions statement.
nextTokenstringString for specifying the next set of paginated results.

SELECT examples

Lists the cross-account permissions associated with a signing profile.

SELECT
next_token,
permissions,
policy_size_bytes,
revision_id
FROM aws.signer.profile_permissions
WHERE profile_name = '{{ profile_name }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Adds cross-account permissions to a signing profile.

UPDATE aws.signer.profile_permissions
SET
profileVersion = '{{ profileVersion }}',
action = '{{ action }}',
principal = '{{ principal }}',
revisionId = '{{ revisionId }}',
statementId = '{{ statementId }}'
WHERE
profile_name = '{{ profile_name }}' --required
AND region = '{{ region }}' --required
AND action = '{{ action }}' --required
AND principal = '{{ principal }}' --required
AND statementId = '{{ statementId }}' --required
RETURNING
revision_id;