UNPKG

@aws-sdk/client-iot

Version:

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

109 lines (108 loc) 4.78 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { ListTopicRuleDestinationsRequest, ListTopicRuleDestinationsResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListTopicRuleDestinationsCommand}. */ export interface ListTopicRuleDestinationsCommandInput extends ListTopicRuleDestinationsRequest { } /** * @public * * The output of {@link ListTopicRuleDestinationsCommand}. */ export interface ListTopicRuleDestinationsCommandOutput extends ListTopicRuleDestinationsResponse, __MetadataBearer { } declare const ListTopicRuleDestinationsCommand_base: { new (input: ListTopicRuleDestinationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTopicRuleDestinationsCommandInput, ListTopicRuleDestinationsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (...[input]: [] | [ListTopicRuleDestinationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListTopicRuleDestinationsCommandInput, ListTopicRuleDestinationsCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Lists all the topic rule destinations in your Amazon Web Services 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">ListTopicRuleDestinations</a> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, ListTopicRuleDestinationsCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, ListTopicRuleDestinationsCommand } = require("@aws-sdk/client-iot"); // CommonJS import * const client = new IoTClient(config); * const input = { // ListTopicRuleDestinationsRequest * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListTopicRuleDestinationsCommand(input); * const response = await client.send(command); * // { // ListTopicRuleDestinationsResponse * // destinationSummaries: [ // TopicRuleDestinationSummaries * // { // TopicRuleDestinationSummary * // arn: "STRING_VALUE", * // status: "ENABLED" || "IN_PROGRESS" || "DISABLED" || "ERROR" || "DELETING", * // createdAt: new Date("TIMESTAMP"), * // lastUpdatedAt: new Date("TIMESTAMP"), * // statusReason: "STRING_VALUE", * // httpUrlSummary: { // HttpUrlDestinationSummary * // confirmationUrl: "STRING_VALUE", * // }, * // vpcDestinationSummary: { // VpcDestinationSummary * // subnetIds: [ // SubnetIdList * // "STRING_VALUE", * // ], * // securityGroups: [ // SecurityGroupList * // "STRING_VALUE", * // ], * // vpcId: "STRING_VALUE", * // roleArn: "STRING_VALUE", * // }, * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTopicRuleDestinationsCommandInput - {@link ListTopicRuleDestinationsCommandInput} * @returns {@link ListTopicRuleDestinationsCommandOutput} * @see {@link ListTopicRuleDestinationsCommandInput} for command's `input` shape. * @see {@link ListTopicRuleDestinationsCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalException} (server fault) * <p>An unexpected error has occurred.</p> * * @throws {@link InvalidRequestException} (client fault) * <p>The request is not valid.</p> * * @throws {@link ServiceUnavailableException} (server fault) * <p>The service is temporarily unavailable.</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 ListTopicRuleDestinationsCommand extends ListTopicRuleDestinationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTopicRuleDestinationsRequest; output: ListTopicRuleDestinationsResponse; }; sdk: { input: ListTopicRuleDestinationsCommandInput; output: ListTopicRuleDestinationsCommandOutput; }; }; }