Skip to content

Delete Resource Server

cognitoidentityprovider_delete_resource_server R Documentation

Deletes a resource server

Description

Deletes a resource server. After you delete a resource server, users can no longer generate access tokens with scopes that are associate with that resource server.

Resource servers are associated with custom scopes and machine-to-machine (M2M) authorization. For more information, see Access control with resource servers.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

Usage

cognitoidentityprovider_delete_resource_server(UserPoolId, Identifier)

Arguments

UserPoolId

[required] The ID of the user pool where you want to delete the resource server.

Identifier

[required] The identifier of the resource server that you want to delete.

Value

An empty list.

Request syntax

svc$delete_resource_server(
  UserPoolId = "string",
  Identifier = "string"
)