UNPKG

@aws-sdk/client-iot

Version:

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

85 lines (84 loc) 3.83 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { DetachThingPrincipalRequest, DetachThingPrincipalResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DetachThingPrincipalCommand}. */ export interface DetachThingPrincipalCommandInput extends DetachThingPrincipalRequest { } /** * @public * * The output of {@link DetachThingPrincipalCommand}. */ export interface DetachThingPrincipalCommandOutput extends DetachThingPrincipalResponse, __MetadataBearer { } declare const DetachThingPrincipalCommand_base: { new (input: DetachThingPrincipalCommandInput): import("@smithy/smithy-client").CommandImpl<DetachThingPrincipalCommandInput, DetachThingPrincipalCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: DetachThingPrincipalCommandInput): import("@smithy/smithy-client").CommandImpl<DetachThingPrincipalCommandInput, DetachThingPrincipalCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Detaches the specified principal from the specified thing. A principal can be X.509 * certificates, IAM users, groups, and roles, Amazon Cognito identities or federated * identities.</p> * <note> * <p>This call is asynchronous. It might take several seconds for the detachment to * propagate.</p> * </note> * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DetachThingPrincipal</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, DetachThingPrincipalCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, DetachThingPrincipalCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // DetachThingPrincipalRequest * thingName: "STRING_VALUE", // required * principal: "STRING_VALUE", // required * }; * const command = new DetachThingPrincipalCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DetachThingPrincipalCommandInput - {@link DetachThingPrincipalCommandInput} * @returns {@link DetachThingPrincipalCommandOutput} * @see {@link DetachThingPrincipalCommandInput} for command's `input` shape. * @see {@link DetachThingPrincipalCommandOutput} 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 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 ServiceUnavailableException} (server fault) * <p>The service is temporarily unavailable.</p> * * @throws {@link ThrottlingException} (client fault) * <p>The rate exceeds the limit.</p> * * @throws {@link UnauthorizedException} (client fault) * <p>You are not authorized to perform this operation.</p> * * @throws {@link IoTServiceException} * <p>Base exception class for all service exceptions from IoT service.</p> * * @public */ export declare class DetachThingPrincipalCommand extends DetachThingPrincipalCommand_base { }