- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UntagResourceCommand
Given tag IDs that you previously assigned to a user pool, removes them.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CognitoIdentityProviderClient, UntagResourceCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
// const { CognitoIdentityProviderClient, UntagResourceCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
const client = new CognitoIdentityProviderClient(config);
const input = { // UntagResourceRequest
ResourceArn: "STRING_VALUE", // required
TagKeys: [ // UserPoolTagsListType // required
"STRING_VALUE",
],
};
const command = new UntagResourceCommand(input);
const response = await client.send(command);
// {};
UntagResourceCommand Input
See UntagResourceCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ResourceArn Required | string | undefined | The Amazon Resource Name (ARN) of the user pool that the tags are assigned to. |
TagKeys Required | string[] | undefined | An array of tag keys that you want to remove from the user pool. |
UntagResourceCommand Output
See UntagResourceCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalErrorException | server | This exception is thrown when Amazon Cognito encounters an internal error. |
InvalidParameterException | client | This exception is thrown when the Amazon Cognito service encounters an invalid parameter. |
NotAuthorizedException | client | This exception is thrown when a user isn't authorized. |
ResourceNotFoundException | client | This exception is thrown when the Amazon Cognito service can't find the requested resource. |
TooManyRequestsException | client | This exception is thrown when the user has made too many requests for a given operation. |
CognitoIdentityProviderServiceException | Base exception class for all service exceptions from CognitoIdentityProvider service. |