import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient"; import type { CreateWorkspaceRequest, CreateWorkspaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateWorkspaceCommand}. */ export interface CreateWorkspaceCommandInput extends CreateWorkspaceRequest { } /** * @public * * The output of {@link CreateWorkspaceCommand}. */ export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, __MetadataBearer { } declare const CreateWorkspaceCommand_base: { new (input: CreateWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a workspace. In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.

Don't use CreateWorkspace to modify an existing workspace. Instead, use UpdateWorkspace.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GrafanaClient, CreateWorkspaceCommand } from "@aws-sdk/client-grafana"; // ES Modules import * // const { GrafanaClient, CreateWorkspaceCommand } = require("@aws-sdk/client-grafana"); // CommonJS import * // import type { GrafanaClientConfig } from "@aws-sdk/client-grafana"; * const config = {}; // type is GrafanaClientConfig * const client = new GrafanaClient(config); * const input = { // CreateWorkspaceRequest * accountAccessType: "STRING_VALUE", // required * clientToken: "STRING_VALUE", * organizationRoleName: "STRING_VALUE", * permissionType: "STRING_VALUE", // required * stackSetName: "STRING_VALUE", * workspaceDataSources: [ // DataSourceTypesList * "STRING_VALUE", * ], * workspaceDescription: "STRING_VALUE", * workspaceName: "STRING_VALUE", * workspaceNotificationDestinations: [ // NotificationDestinationsList * "STRING_VALUE", * ], * workspaceOrganizationalUnits: [ // OrganizationalUnitList * "STRING_VALUE", * ], * workspaceRoleArn: "STRING_VALUE", * authenticationProviders: [ // AuthenticationProviders // required * "STRING_VALUE", * ], * tags: { // TagMap * "": "STRING_VALUE", * }, * vpcConfiguration: { // VpcConfiguration * securityGroupIds: [ // SecurityGroupIds // required * "STRING_VALUE", * ], * subnetIds: [ // SubnetIds // required * "STRING_VALUE", * ], * }, * configuration: "STRING_VALUE", * networkAccessControl: { // NetworkAccessConfiguration * prefixListIds: [ // PrefixListIds // required * "STRING_VALUE", * ], * vpceIds: [ // VpceIds // required * "STRING_VALUE", * ], * }, * grafanaVersion: "STRING_VALUE", * kmsKeyId: "STRING_VALUE", * }; * const command = new CreateWorkspaceCommand(input); * const response = await client.send(command); * // { // CreateWorkspaceResponse * // workspace: { // WorkspaceDescription * // accountAccessType: "STRING_VALUE", * // created: new Date("TIMESTAMP"), // required * // dataSources: [ // DataSourceTypesList // required * // "STRING_VALUE", * // ], * // description: "STRING_VALUE", * // endpoint: "STRING_VALUE", // required * // grafanaVersion: "STRING_VALUE", // required * // id: "STRING_VALUE", // required * // modified: new Date("TIMESTAMP"), // required * // name: "STRING_VALUE", * // organizationRoleName: "STRING_VALUE", * // notificationDestinations: [ // NotificationDestinationsList * // "STRING_VALUE", * // ], * // organizationalUnits: [ // OrganizationalUnitList * // "STRING_VALUE", * // ], * // permissionType: "STRING_VALUE", * // stackSetName: "STRING_VALUE", * // status: "STRING_VALUE", // required * // workspaceRoleArn: "STRING_VALUE", * // licenseType: "STRING_VALUE", * // freeTrialConsumed: true || false, * // licenseExpiration: new Date("TIMESTAMP"), * // freeTrialExpiration: new Date("TIMESTAMP"), * // authentication: { // AuthenticationSummary * // providers: [ // AuthenticationProviders // required * // "STRING_VALUE", * // ], * // samlConfigurationStatus: "STRING_VALUE", * // }, * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // vpcConfiguration: { // VpcConfiguration * // securityGroupIds: [ // SecurityGroupIds // required * // "STRING_VALUE", * // ], * // subnetIds: [ // SubnetIds // required * // "STRING_VALUE", * // ], * // }, * // networkAccessControl: { // NetworkAccessConfiguration * // prefixListIds: [ // PrefixListIds // required * // "STRING_VALUE", * // ], * // vpceIds: [ // VpceIds // required * // "STRING_VALUE", * // ], * // }, * // grafanaToken: "STRING_VALUE", * // kmsKeyId: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateWorkspaceCommandInput - {@link CreateWorkspaceCommandInput} * @returns {@link CreateWorkspaceCommandOutput} * @see {@link CreateWorkspaceCommandInput} for command's `input` shape. * @see {@link CreateWorkspaceCommandOutput} for command's `response` shape. * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

A resource was in an inconsistent state during an update or a deletion.

* * @throws {@link InternalServerException} (server fault) *

Unexpected error while processing the request. Retry the request.

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

The request would cause a service quota to be exceeded.

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

The request was denied because of request throttling. Retry the request.

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

The value of a parameter in the request caused an error.

* * @throws {@link GrafanaServiceException} *

Base exception class for all service exceptions from Grafana service.

* * * @public */ export declare class CreateWorkspaceCommand extends CreateWorkspaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateWorkspaceRequest; output: CreateWorkspaceResponse; }; sdk: { input: CreateWorkspaceCommandInput; output: CreateWorkspaceCommandOutput; }; }; }