Creates a new OAuth2.0 resource server and defines custom scopes within it.
See https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_resource_server/ for full documentation.
cognitoidentityprovider_create_resource_server(
UserPoolId,
Identifier,
Name,
Scopes = NULL
)
[required] The user pool ID for the user pool.
[required] A unique resource server identifier for the resource server. The
identifier can be an API friendly name like solar-system-data
. You can
also set an API URL like https://solar-system-data-api.example.com
as
your identifier.
Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings
increase the size of your access tokens.
[required] A friendly name for the resource server.
A list of scopes. Each scope is a key-value map with the keys name
and
description
.