Skip to main content

profile_permissions

Creates, updates, deletes or gets a profile_permission resource or lists profile_permissions in a region

Overview

Nameprofile_permissions
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idaws.signer.profile_permissions

Fields

NameDatatypeDescription
profile_namestring
profile_versionstring
actionstring
principalstring
statement_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTProfileName, Action, Principal, StatementId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all profile_permissions in a region.

SELECT
region,
profile_name,
profile_version,
action,
principal,
statement_id
FROM aws.signer.profile_permissions
WHERE region = 'us-east-1';

Gets all properties from an individual profile_permission.

SELECT
region,
profile_name,
profile_version,
action,
principal,
statement_id
FROM aws.signer.profile_permissions
WHERE region = 'us-east-1' AND data__Identifier = '<StatementId>|<ProfileName>';

INSERT example

Use the following StackQL query and manifest file to create a new profile_permission resource, using stack-deploy.

/*+ create */
INSERT INTO aws.signer.profile_permissions (
ProfileName,
Action,
Principal,
StatementId,
region
)
SELECT
'{{ ProfileName }}',
'{{ Action }}',
'{{ Principal }}',
'{{ StatementId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.signer.profile_permissions
WHERE data__Identifier = '<StatementId|ProfileName>'
AND region = 'us-east-1';

Permissions

To operate on the profile_permissions resource, the following permissions are required:

Create

signer:AddProfilePermission,
signer:ListProfilePermissions

Read

signer:ListProfilePermissions

Delete

signer:RemoveProfilePermission,
signer:ListProfilePermissions

List

signer:ListProfilePermissions,
signer:GetSigningProfile