import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateApplicationPresignedUrlRequest, CreateApplicationPresignedUrlResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateApplicationPresignedUrlCommand}. */ export interface CreateApplicationPresignedUrlCommandInput extends CreateApplicationPresignedUrlRequest { } /** * @public * * The output of {@link CreateApplicationPresignedUrlCommand}. */ export interface CreateApplicationPresignedUrlCommandOutput extends CreateApplicationPresignedUrlResponse, __MetadataBearer { } declare const CreateApplicationPresignedUrlCommand_base: { new (input: CreateApplicationPresignedUrlCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateApplicationPresignedUrlCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates and returns a URL that you can use to connect to * an application's extension.

*

The IAM role or user used to call this API defines the permissions to access the * extension. After the presigned URL is created, no additional permission is required to access * this URL. IAM authorization policies for this API are also enforced for every HTTP request * that attempts to connect to the extension.

*

You control the amount of time that the URL will be valid using the SessionExpirationDurationInSeconds * parameter. If you do not provide this parameter, the returned URL is valid for twelve hours.

* *

The URL that you get from a call to CreateApplicationPresignedUrl must be used within 3 minutes * to be valid. * If you first try to use the URL after the 3-minute limit expires, the service returns an HTTP 403 Forbidden error.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KinesisAnalyticsV2Client, CreateApplicationPresignedUrlCommand } from "@aws-sdk/client-kinesis-analytics-v2"; // ES Modules import * // const { KinesisAnalyticsV2Client, CreateApplicationPresignedUrlCommand } = require("@aws-sdk/client-kinesis-analytics-v2"); // CommonJS import * // import type { KinesisAnalyticsV2ClientConfig } from "@aws-sdk/client-kinesis-analytics-v2"; * const config = {}; // type is KinesisAnalyticsV2ClientConfig * const client = new KinesisAnalyticsV2Client(config); * const input = { // CreateApplicationPresignedUrlRequest * ApplicationName: "STRING_VALUE", // required * UrlType: "FLINK_DASHBOARD_URL" || "ZEPPELIN_UI_URL", // required * SessionExpirationDurationInSeconds: Number("long"), * }; * const command = new CreateApplicationPresignedUrlCommand(input); * const response = await client.send(command); * // { // CreateApplicationPresignedUrlResponse * // AuthorizedUrl: "STRING_VALUE", * // }; * * ``` * * @param CreateApplicationPresignedUrlCommandInput - {@link CreateApplicationPresignedUrlCommandInput} * @returns {@link CreateApplicationPresignedUrlCommandOutput} * @see {@link CreateApplicationPresignedUrlCommandInput} for command's `input` shape. * @see {@link CreateApplicationPresignedUrlCommandOutput} for command's `response` shape. * @see {@link KinesisAnalyticsV2ClientResolvedConfig | config} for KinesisAnalyticsV2Client's `config` shape. * * @throws {@link InvalidArgumentException} (client fault) *

The specified input parameter value is not valid.

* * @throws {@link ResourceInUseException} (client fault) *

The application is not available for this operation.

* * @throws {@link ResourceNotFoundException} (client fault) *

Specified application can't be found.

* * @throws {@link KinesisAnalyticsV2ServiceException} *

Base exception class for all service exceptions from KinesisAnalyticsV2 service.

* * * @public */ export declare class CreateApplicationPresignedUrlCommand extends CreateApplicationPresignedUrlCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationPresignedUrlRequest; output: CreateApplicationPresignedUrlResponse; }; sdk: { input: CreateApplicationPresignedUrlCommandInput; output: CreateApplicationPresignedUrlCommandOutput; }; }; }