import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateServiceActionInput, CreateServiceActionOutput } from "../models/models_0"; import type { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateServiceActionCommand}. */ export interface CreateServiceActionCommandInput extends CreateServiceActionInput { } /** * @public * * The output of {@link CreateServiceActionCommand}. */ export interface CreateServiceActionCommandOutput extends CreateServiceActionOutput, __MetadataBearer { } declare const CreateServiceActionCommand_base: { new (input: CreateServiceActionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateServiceActionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a self-service action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceCatalogClient, CreateServiceActionCommand } from "@aws-sdk/client-service-catalog"; // ES Modules import * // const { ServiceCatalogClient, CreateServiceActionCommand } = require("@aws-sdk/client-service-catalog"); // CommonJS import * // import type { ServiceCatalogClientConfig } from "@aws-sdk/client-service-catalog"; * const config = {}; // type is ServiceCatalogClientConfig * const client = new ServiceCatalogClient(config); * const input = { // CreateServiceActionInput * Name: "STRING_VALUE", // required * DefinitionType: "SSM_AUTOMATION", // required * Definition: { // ServiceActionDefinitionMap // required * "": "STRING_VALUE", * }, * Description: "STRING_VALUE", * AcceptLanguage: "STRING_VALUE", * IdempotencyToken: "STRING_VALUE", // required * }; * const command = new CreateServiceActionCommand(input); * const response = await client.send(command); * // { // CreateServiceActionOutput * // ServiceActionDetail: { // ServiceActionDetail * // ServiceActionSummary: { // ServiceActionSummary * // Id: "STRING_VALUE", * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // DefinitionType: "SSM_AUTOMATION", * // }, * // Definition: { // ServiceActionDefinitionMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param CreateServiceActionCommandInput - {@link CreateServiceActionCommandInput} * @returns {@link CreateServiceActionCommandOutput} * @see {@link CreateServiceActionCommandInput} for command's `input` shape. * @see {@link CreateServiceActionCommandOutput} for command's `response` shape. * @see {@link ServiceCatalogClientResolvedConfig | config} for ServiceCatalogClient's `config` shape. * * @throws {@link InvalidParametersException} (client fault) *

One or more parameters provided to the operation are not valid.

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

The current limits of the service would have been exceeded by this operation. Decrease your * resource use or increase your service limits and retry the operation.

* * @throws {@link ServiceCatalogServiceException} *

Base exception class for all service exceptions from ServiceCatalog service.

* * * @public */ export declare class CreateServiceActionCommand extends CreateServiceActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateServiceActionInput; output: CreateServiceActionOutput; }; sdk: { input: CreateServiceActionCommandInput; output: CreateServiceActionCommandOutput; }; }; }