-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-cleanrooms): GA Release of AWS Clean Rooms, Added Tagging…
… Functionality
- Loading branch information
awstools
committed
Mar 21, 2023
1 parent
86a6046
commit b310676
Showing
14 changed files
with
1,397 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
clients/client-cleanrooms/src/commands/ListTagsForResourceCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
// smithy-typescript generated code | ||
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { CleanRoomsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CleanRoomsClient"; | ||
import { | ||
ListTagsForResourceInput, | ||
ListTagsForResourceInputFilterSensitiveLog, | ||
ListTagsForResourceOutput, | ||
ListTagsForResourceOutputFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1ListTagsForResourceCommand, | ||
serializeAws_restJson1ListTagsForResourceCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* The input for {@link ListTagsForResourceCommand}. | ||
*/ | ||
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {} | ||
/** | ||
* The output of {@link ListTagsForResourceCommand}. | ||
*/ | ||
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists all of the tags that have been added to a resource.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { CleanRoomsClient, ListTagsForResourceCommand } from "@aws-sdk/client-cleanrooms"; // ES Modules import | ||
* // const { CleanRoomsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cleanrooms"); // CommonJS import | ||
* const client = new CleanRoomsClient(config); | ||
* const command = new ListTagsForResourceCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape. | ||
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. | ||
* @see {@link CleanRoomsClientResolvedConfig | config} for CleanRoomsClient's `config` shape. | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>Request references a resource which does not exist.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input fails to satisfy the specified constraints.</p> | ||
* | ||
* | ||
*/ | ||
export class ListTagsForResourceCommand extends $Command< | ||
ListTagsForResourceCommandInput, | ||
ListTagsForResourceCommandOutput, | ||
CleanRoomsClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
public static getEndpointParameterInstructions(): EndpointParameterInstructions { | ||
return { | ||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, | ||
Endpoint: { type: "builtInParams", name: "endpoint" }, | ||
Region: { type: "builtInParams", name: "region" }, | ||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, | ||
}; | ||
} | ||
|
||
constructor(readonly input: ListTagsForResourceCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: CleanRoomsClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
this.middlewareStack.use( | ||
getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()) | ||
); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "CleanRoomsClient"; | ||
const commandName = "ListTagsForResourceCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog, | ||
outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1ListTagsForResourceCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> { | ||
return deserializeAws_restJson1ListTagsForResourceCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.