Skip to main content

identity_pool_principal_tags

Expands all tag keys and values for identity_pool_principals in a region

Overview

Nameidentity_pool_principal_tags
TypeResource
DescriptionResource Type definition for AWS::Cognito::IdentityPoolPrincipalTag
Idaws.cognito.identity_pool_principal_tags

Fields

NameDatatypeDescription
identity_pool_idstring
identity_provider_namestring
use_defaultsboolean
principal_tagsobject
tag_keystringTag key.
tag_valuestringTag value.
regionstringAWS region.

For more information, see AWS::Cognito::IdentityPoolPrincipalTag.

Methods

NameAccessible byRequired Params
create_resourceINSERTIdentityPoolId, IdentityProviderName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Expands tags for all identity_pool_principals in a region.

SELECT
region,
identity_pool_id,
identity_provider_name,
use_defaults,
principal_tags,
tag_key,
tag_value
FROM aws.cognito.identity_pool_principal_tags
WHERE region = 'us-east-1';

Gets all properties from an individual identity_pool_principal_tag.

SELECT
region,
identity_pool_id,
identity_provider_name,
use_defaults,
principal_tags
FROM aws.cognito.identity_pool_principal_tags
WHERE region = 'us-east-1' AND data__Identifier = '<IdentityPoolId>|<IdentityProviderName>';

INSERT example

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

/*+ create */
INSERT INTO aws.cognito.identity_pool_principal_tags (
IdentityPoolId,
IdentityProviderName,
region
)
SELECT
'{{ IdentityPoolId }}',
'{{ IdentityProviderName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cognito.identity_pool_principal_tags
WHERE data__Identifier = '<IdentityPoolId|IdentityProviderName>'
AND region = 'us-east-1';

Permissions

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

Create

cognito-identity:GetPrincipalTagAttributeMap,
cognito-identity:SetPrincipalTagAttributeMap

Read

cognito-identity:GetPrincipalTagAttributeMap

Update

cognito-identity:GetPrincipalTagAttributeMap,
cognito-identity:SetPrincipalTagAttributeMap

Delete

cognito-identity:GetPrincipalTagAttributeMap,
cognito-identity:SetPrincipalTagAttributeMap

List

cognito-identity:GetPrincipalTagAttributeMap