UNPKG

@aws-sdk/client-dynamodb

Version:

AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native

59 lines 2.73 kB
import { __extends } from "tslib"; import { UntagResourceInput } from "../models/models_0"; import { deserializeAws_json1_0UntagResourceCommand, serializeAws_json1_0UntagResourceCommand, } from "../protocols/Aws_json1_0"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { Command as $Command } from "@aws-sdk/smithy-client"; /** * <p>Removes the association of tags from an Amazon DynamoDB resource. You can call * <code>UntagResource</code> up to five times per second, per account. </p> * <p>For an overview on tagging DynamoDB resources, see * <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a> * in the <i>Amazon DynamoDB Developer Guide</i>.</p> */ var UntagResourceCommand = /** @class */ (function (_super) { __extends(UntagResourceCommand, _super); // Start section: command_properties // End section: command_properties function UntagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; _this.resolved = false; return _this; // End section: command_constructor } /** * @internal */ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { if (!this.resolved) { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); this.resolved = true; } var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var clientName = "DynamoDBClient"; var commandName = "UntagResourceCommand"; var handlerExecutionContext = { logger: logger, clientName: clientName, commandName: commandName, inputFilterSensitiveLog: UntagResourceInput.filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UntagResourceCommand.prototype.serialize = function (input, context) { return serializeAws_json1_0UntagResourceCommand(input, context); }; UntagResourceCommand.prototype.deserialize = function (output, context) { return deserializeAws_json1_0UntagResourceCommand(output, context); }; return UntagResourceCommand; }($Command)); export { UntagResourceCommand }; //# sourceMappingURL=UntagResourceCommand.js.map