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 { CreateLoggerDefinitionRequest, CreateLoggerDefinitionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateLoggerDefinitionCommand}. */ export interface CreateLoggerDefinitionCommandInput extends CreateLoggerDefinitionRequest { } /** * @public * * The output of {@link CreateLoggerDefinitionCommand}. */ export interface CreateLoggerDefinitionCommandOutput extends CreateLoggerDefinitionResponse, __MetadataBearer { } declare const CreateLoggerDefinitionCommand_base: { new (input: CreateLoggerDefinitionCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [CreateLoggerDefinitionCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * Creates a logger definition. You may provide the initial version of the logger definition now or use ''CreateLoggerDefinitionVersion'' at a later time. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GreengrassClient, CreateLoggerDefinitionCommand } from "@aws-sdk/client-greengrass"; // ES Modules import * // const { GreengrassClient, CreateLoggerDefinitionCommand } = 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 = { // CreateLoggerDefinitionRequest * AmznClientToken: "STRING_VALUE", * InitialVersion: { // LoggerDefinitionVersion * Loggers: [ // __listOfLogger * { // Logger * Component: "GreengrassSystem" || "Lambda", // required * Id: "STRING_VALUE", // required * Level: "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL", // required * Space: Number("int"), * Type: "FileSystem" || "AWSCloudWatch", // required * }, * ], * }, * Name: "STRING_VALUE", * tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreateLoggerDefinitionCommand(input); * const response = await client.send(command); * // { // CreateLoggerDefinitionResponse * // Arn: "STRING_VALUE", * // CreationTimestamp: "STRING_VALUE", * // Id: "STRING_VALUE", * // LastUpdatedTimestamp: "STRING_VALUE", * // LatestVersion: "STRING_VALUE", * // LatestVersionArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // }; * * ``` * * @param CreateLoggerDefinitionCommandInput - {@link CreateLoggerDefinitionCommandInput} * @returns {@link CreateLoggerDefinitionCommandOutput} * @see {@link CreateLoggerDefinitionCommandInput} for command's `input` shape. * @see {@link CreateLoggerDefinitionCommandOutput} 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 CreateLoggerDefinitionCommand extends CreateLoggerDefinitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLoggerDefinitionRequest; output: CreateLoggerDefinitionResponse; }; sdk: { input: CreateLoggerDefinitionCommandInput; output: CreateLoggerDefinitionCommandOutput; }; }; }