Skip to main content

identity_pool_role_attachments

Creates, updates, deletes or gets an identity_pool_role_attachment resource or lists identity_pool_role_attachments in a region

Overview

Nameidentity_pool_role_attachments
TypeResource
DescriptionResource Type definition for AWS::Cognito::IdentityPoolRoleAttachment
Idaws.cognito.identity_pool_role_attachments

Fields

NameDatatypeDescription
identity_pool_idstring
roles
idstring
role_mappings
regionstringAWS region.

Methods

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

SELECT examples

Gets all identity_pool_role_attachments in a region.

SELECT
region,
identity_pool_id,
roles,
id,
role_mappings
FROM aws.cognito.identity_pool_role_attachments
WHERE region = 'us-east-1';

Gets all properties from an individual identity_pool_role_attachment.

SELECT
region,
identity_pool_id,
roles,
id,
role_mappings
FROM aws.cognito.identity_pool_role_attachments
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.cognito.identity_pool_role_attachments
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

cognito-identity:GetIdentityPoolRoles,
cognito-identity:SetIdentityPoolRoles,
iam:PassRole

Read

cognito-identity:GetIdentityPoolRoles

Update

cognito-identity:GetIdentityPoolRoles,
cognito-identity:SetIdentityPoolRoles,
iam:PassRole

Delete

cognito-identity:GetIdentityPoolRoles,
cognito-identity:SetIdentityPoolRoles

List

cognito-identity:GetIdentityPoolRoles