UNPKG

@aws-sdk/client-iot

Version:

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

107 lines (106 loc) 4.53 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { UpdateDynamicThingGroupRequest, UpdateDynamicThingGroupResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateDynamicThingGroupCommand}. */ export interface UpdateDynamicThingGroupCommandInput extends UpdateDynamicThingGroupRequest { } /** * @public * * The output of {@link UpdateDynamicThingGroupCommand}. */ export interface UpdateDynamicThingGroupCommandOutput extends UpdateDynamicThingGroupResponse, __MetadataBearer { } declare const UpdateDynamicThingGroupCommand_base: { new (input: UpdateDynamicThingGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDynamicThingGroupCommandInput, UpdateDynamicThingGroupCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (input: UpdateDynamicThingGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDynamicThingGroupCommandInput, UpdateDynamicThingGroupCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Updates a dynamic thing group.</p> * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateDynamicThingGroup</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, UpdateDynamicThingGroupCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, UpdateDynamicThingGroupCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // UpdateDynamicThingGroupRequest * thingGroupName: "STRING_VALUE", // required * thingGroupProperties: { // ThingGroupProperties * thingGroupDescription: "STRING_VALUE", * attributePayload: { // AttributePayload * attributes: { // Attributes * "<keys>": "STRING_VALUE", * }, * merge: true || false, * }, * }, * expectedVersion: Number("long"), * indexName: "STRING_VALUE", * queryString: "STRING_VALUE", * queryVersion: "STRING_VALUE", * }; * const command = new UpdateDynamicThingGroupCommand(input); * const response = await client.send(command); * // { // UpdateDynamicThingGroupResponse * // version: Number("long"), * // }; * * ``` * * @param UpdateDynamicThingGroupCommandInput - {@link UpdateDynamicThingGroupCommandInput} * @returns {@link UpdateDynamicThingGroupCommandOutput} * @see {@link UpdateDynamicThingGroupCommandInput} for command's `input` shape. * @see {@link UpdateDynamicThingGroupCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) * <p>An unexpected error has occurred.</p> * * @throws {@link InvalidQueryException} (client fault) * <p>The query is invalid.</p> * * @throws {@link InvalidRequestException} (client fault) * <p>The request is not valid.</p> * * @throws {@link ResourceNotFoundException} (client fault) * <p>The specified resource does not exist.</p> * * @throws {@link ThrottlingException} (client fault) * <p>The rate exceeds the limit.</p> * * @throws {@link VersionConflictException} (client fault) * <p>An exception thrown when the version of an entity specified with the * <code>expectedVersion</code> parameter does not match the latest version in the * system.</p> * * @throws {@link IoTServiceException} * <p>Base exception class for all service exceptions from IoT service.</p> * * * @public */ export declare class UpdateDynamicThingGroupCommand extends UpdateDynamicThingGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateDynamicThingGroupRequest; output: UpdateDynamicThingGroupResponse; }; sdk: { input: UpdateDynamicThingGroupCommandInput; output: UpdateDynamicThingGroupCommandOutput; }; }; }