UNPKG

@aws-sdk/client-iot

Version:

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

73 lines (72 loc) 3.38 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { DetachSecurityProfileRequest, DetachSecurityProfileResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DetachSecurityProfileCommand}. */ export interface DetachSecurityProfileCommandInput extends DetachSecurityProfileRequest { } /** * @public * * The output of {@link DetachSecurityProfileCommand}. */ export interface DetachSecurityProfileCommandOutput extends DetachSecurityProfileResponse, __MetadataBearer { } declare const DetachSecurityProfileCommand_base: { new (input: DetachSecurityProfileCommandInput): import("@smithy/smithy-client").CommandImpl<DetachSecurityProfileCommandInput, DetachSecurityProfileCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: DetachSecurityProfileCommandInput): import("@smithy/smithy-client").CommandImpl<DetachSecurityProfileCommandInput, DetachSecurityProfileCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Disassociates a Device Defender security profile from a thing group or from this account.</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">DetachSecurityProfile</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, DetachSecurityProfileCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, DetachSecurityProfileCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // DetachSecurityProfileRequest * securityProfileName: "STRING_VALUE", // required * securityProfileTargetArn: "STRING_VALUE", // required * }; * const command = new DetachSecurityProfileCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DetachSecurityProfileCommandInput - {@link DetachSecurityProfileCommandInput} * @returns {@link DetachSecurityProfileCommandOutput} * @see {@link DetachSecurityProfileCommandInput} for command's `input` shape. * @see {@link DetachSecurityProfileCommandOutput} 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 ThrottlingException} (client fault) * <p>The rate exceeds the limit.</p> * * @throws {@link IoTServiceException} * <p>Base exception class for all service exceptions from IoT service.</p> * * @public */ export declare class DetachSecurityProfileCommand extends DetachSecurityProfileCommand_base { }