AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::RefactorSpaces::Environment

CfnEnvironment

> AWS Migration Hub is no longer open to new customers as of November 7, 2025. For capabilities similar to AWS Migration Hub , explore [AWS Migration Hub](https://docs.aws.amazon.com/https://aws.amazon.com/transform) . Creates an AWS 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](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType) of `TRANSIT_GATEWAY` , Refactor Spaces provisions a transit gateway to enable services in VPCs to communicate directly across accounts. If [CreateEnvironment:NetworkFabricType](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-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.

Import

import { CfnEnvironment } from 'aws-cdk-lib/aws-refactorspaces';

Or use the module namespace:

import * as refactorspaces from 'aws-cdk-lib/aws-refactorspaces';
// refactorspaces.CfnEnvironment

Properties

Configuration passed to the constructor as CfnEnvironmentProps.

descriptionOptional
string

A description of the environment.

nameOptional
string

The name of the environment.

networkFabricTypeOptional
string

The network fabric type of the environment.

tagsOptional
CfnTag[]

The tags assigned to the environment.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-refactorspaces
CFN TypeAWS::RefactorSpaces::Environment
Properties4

Related Constructs

External Links