import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEnvironmentRequest, CreateEnvironmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEnvironmentCommand}. */ export interface CreateEnvironmentCommandInput extends CreateEnvironmentRequest { } /** * @public * * The output of {@link CreateEnvironmentCommand}. */ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentResponse, __MetadataBearer { } declare const CreateEnvironmentCommand_base: { new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all * Refactor Spaces applications, services, and routes created within the environment. They are referred * to as the environment owner. The environment owner has cross-account * visibility and control of Refactor Spaces resources that are added to the environment by other * accounts that the environment is shared with.

*

When creating an environment with a CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY, Refactor Spaces * provisions a transit gateway to enable services in VPCs to communicate directly across * accounts. If CreateEnvironment:NetworkFabricType is NONE, Refactor Spaces does not create * a transit gateway and you must use your network infrastructure to route traffic to services * with private URL endpoints.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MigrationHubRefactorSpacesClient, CreateEnvironmentCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import * // const { MigrationHubRefactorSpacesClient, CreateEnvironmentCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import * // import type { MigrationHubRefactorSpacesClientConfig } from "@aws-sdk/client-migration-hub-refactor-spaces"; * const config = {}; // type is MigrationHubRefactorSpacesClientConfig * const client = new MigrationHubRefactorSpacesClient(config); * const input = { // CreateEnvironmentRequest * Name: "STRING_VALUE", // required * Description: "STRING_VALUE", * NetworkFabricType: "STRING_VALUE", // required * Tags: { // TagMap * "": "STRING_VALUE", * }, * ClientToken: "STRING_VALUE", * }; * const command = new CreateEnvironmentCommand(input); * const response = await client.send(command); * // { // CreateEnvironmentResponse * // Name: "STRING_VALUE", * // Arn: "STRING_VALUE", * // Description: "STRING_VALUE", * // EnvironmentId: "STRING_VALUE", * // NetworkFabricType: "STRING_VALUE", * // OwnerAccountId: "STRING_VALUE", * // State: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", * // }, * // LastUpdatedTime: new Date("TIMESTAMP"), * // CreatedTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param CreateEnvironmentCommandInput - {@link CreateEnvironmentCommandInput} * @returns {@link CreateEnvironmentCommandOutput} * @see {@link CreateEnvironmentCommandInput} for command's `input` shape. * @see {@link CreateEnvironmentCommandOutput} for command's `response` shape. * @see {@link MigrationHubRefactorSpacesClientResolvedConfig | config} for MigrationHubRefactorSpacesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The user does not have sufficient access to perform this action.

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

Updating or deleting a resource can cause an inconsistent state.

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

An unexpected error occurred while processing the request.

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

The request references a resource that does not exist.

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

The request would cause a service quota to be exceeded.

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

Request was denied because the request was throttled.

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

The input does not satisfy the constraints specified by an Amazon Web Service. *

* * @throws {@link MigrationHubRefactorSpacesServiceException} *

Base exception class for all service exceptions from MigrationHubRefactorSpaces service.

* * * @public */ export declare class CreateEnvironmentCommand extends CreateEnvironmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEnvironmentRequest; output: CreateEnvironmentResponse; }; sdk: { input: CreateEnvironmentCommandInput; output: CreateEnvironmentCommandOutput; }; }; }