import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GreengrassClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassClient"; import type { CreateSubscriptionDefinitionRequest, CreateSubscriptionDefinitionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateSubscriptionDefinitionCommand}. */ export interface CreateSubscriptionDefinitionCommandInput extends CreateSubscriptionDefinitionRequest { } /** * @public * * The output of {@link CreateSubscriptionDefinitionCommand}. */ export interface CreateSubscriptionDefinitionCommandOutput extends CreateSubscriptionDefinitionResponse, __MetadataBearer { } declare const CreateSubscriptionDefinitionCommand_base: { new (input: CreateSubscriptionDefinitionCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [CreateSubscriptionDefinitionCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * Creates a subscription definition. You may provide the initial version of the subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a later time. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GreengrassClient, CreateSubscriptionDefinitionCommand } from "@aws-sdk/client-greengrass"; // ES Modules import * // const { GreengrassClient, CreateSubscriptionDefinitionCommand } = require("@aws-sdk/client-greengrass"); // CommonJS import * // import type { GreengrassClientConfig } from "@aws-sdk/client-greengrass"; * const config = {}; // type is GreengrassClientConfig * const client = new GreengrassClient(config); * const input = { // CreateSubscriptionDefinitionRequest * AmznClientToken: "STRING_VALUE", * InitialVersion: { // SubscriptionDefinitionVersion * Subscriptions: [ // __listOfSubscription * { // Subscription * Id: "STRING_VALUE", // required * Source: "STRING_VALUE", // required * Subject: "STRING_VALUE", // required * Target: "STRING_VALUE", // required * }, * ], * }, * Name: "STRING_VALUE", * tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreateSubscriptionDefinitionCommand(input); * const response = await client.send(command); * // { // CreateSubscriptionDefinitionResponse * // Arn: "STRING_VALUE", * // CreationTimestamp: "STRING_VALUE", * // Id: "STRING_VALUE", * // LastUpdatedTimestamp: "STRING_VALUE", * // LatestVersion: "STRING_VALUE", * // LatestVersionArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // }; * * ``` * * @param CreateSubscriptionDefinitionCommandInput - {@link CreateSubscriptionDefinitionCommandInput} * @returns {@link CreateSubscriptionDefinitionCommandOutput} * @see {@link CreateSubscriptionDefinitionCommandInput} for command's `input` shape. * @see {@link CreateSubscriptionDefinitionCommandOutput} for command's `response` shape. * @see {@link GreengrassClientResolvedConfig | config} for GreengrassClient's `config` shape. * * @throws {@link BadRequestException} (client fault) * General error information. * * @throws {@link GreengrassServiceException} *

Base exception class for all service exceptions from Greengrass service.

* * * @public */ export declare class CreateSubscriptionDefinitionCommand extends CreateSubscriptionDefinitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSubscriptionDefinitionRequest; output: CreateSubscriptionDefinitionResponse; }; sdk: { input: CreateSubscriptionDefinitionCommandInput; output: CreateSubscriptionDefinitionCommandOutput; }; }; }