Protected
Lists the tags assigned to a resource.
Use a bare-bones client and the command you need to make an API call.
import { RedshiftServerlessClient, ListTagsForResourceCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import// const { RedshiftServerlessClient, ListTagsForResourceCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS importconst client = new RedshiftServerlessClient(config);const input = { resourceArn: "STRING_VALUE", // required};const command = new ListTagsForResourceCommand(input);const response = await client.send(command);
ListTagsForResourceCommandInput
ListTagsForResourceCommandOutput
input
response
config
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
ResourceNotFoundException (client fault)
The resource could not be found.
ThrottlingException (client fault)
The request was denied due to request throttling.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
Readonly
Static
Lists the tags assigned to a resource.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListTagsForResourceCommandInput
Returns
ListTagsForResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
Throws
ResourceNotFoundException (client fault)
The resource could not be found.
Throws
ThrottlingException (client fault)
The request was denied due to request throttling.
Throws
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.