Skip to main content

user_pool_resource_servers

Creates, updates, deletes or gets an user_pool_resource_server resource or lists user_pool_resource_servers in a region

Overview

Nameuser_pool_resource_servers
TypeResource
DescriptionResource Type definition for AWS::Cognito::UserPoolResourceServer
Idaws.cognito.user_pool_resource_servers

Fields

NameDatatypeDescription
user_pool_idstring
identifierstring
namestring
scopesarray
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTUserPoolId, Identifier, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_pool_resource_servers in a region.

SELECT
region,
user_pool_id,
identifier,
name,
scopes
FROM aws.cognito.user_pool_resource_servers
WHERE region = 'us-east-1';

Gets all properties from an individual user_pool_resource_server.

SELECT
region,
user_pool_id,
identifier,
name,
scopes
FROM aws.cognito.user_pool_resource_servers
WHERE region = 'us-east-1' AND data__Identifier = '<UserPoolId>|<Identifier>';

INSERT example

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

/*+ create */
INSERT INTO aws.cognito.user_pool_resource_servers (
UserPoolId,
Identifier,
Name,
region
)
SELECT
'{{ UserPoolId }}',
'{{ Identifier }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cognito.user_pool_resource_servers
WHERE data__Identifier = '<UserPoolId|Identifier>'
AND region = 'us-east-1';

Permissions

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

Create

cognito-idp:CreateResourceServer

Read

cognito-idp:DescribeResourceServer

Update

cognito-idp:UpdateResourceServer

Delete

cognito-idp:DeleteResourceServer

List

cognito-idp:ListResourceServers