@aws-sdk/client-iot
Version:
AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native
90 lines (89 loc) • 3.85 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { DescribeEndpointRequest, DescribeEndpointResponse } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeEndpointCommand}.
*/
export interface DescribeEndpointCommandInput extends DescribeEndpointRequest {
}
/**
* @public
*
* The output of {@link DescribeEndpointCommand}.
*/
export interface DescribeEndpointCommandOutput extends DescribeEndpointResponse, __MetadataBearer {
}
declare const DescribeEndpointCommand_base: {
new (input: DescribeEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeEndpointCommandInput, DescribeEndpointCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (...[input]: [] | [DescribeEndpointCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeEndpointCommandInput, DescribeEndpointCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns or creates a unique endpoint specific to the Amazon Web Services account making the
* call.</p>
* <note>
* <p>The first time <code>DescribeEndpoint</code> is called, an endpoint is created. All subsequent calls to <code>DescribeEndpoint</code> return the same endpoint.</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">DescribeEndpoint</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { IoTClient, DescribeEndpointCommand } from "@aws-sdk/client-iot"; // ES Modules import
* // const { IoTClient, DescribeEndpointCommand } = require("@aws-sdk/client-iot"); // CommonJS import
* const client = new IoTClient(config);
* const input = { // DescribeEndpointRequest
* endpointType: "STRING_VALUE",
* };
* const command = new DescribeEndpointCommand(input);
* const response = await client.send(command);
* // { // DescribeEndpointResponse
* // endpointAddress: "STRING_VALUE",
* // };
*
* ```
*
* @param DescribeEndpointCommandInput - {@link DescribeEndpointCommandInput}
* @returns {@link DescribeEndpointCommandOutput}
* @see {@link DescribeEndpointCommandInput} for command's `input` shape.
* @see {@link DescribeEndpointCommandOutput} 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 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 DescribeEndpointCommand extends DescribeEndpointCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeEndpointRequest;
output: DescribeEndpointResponse;
};
sdk: {
input: DescribeEndpointCommandInput;
output: DescribeEndpointCommandOutput;
};
};
}