class CfnEnvironmentPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.RefactorSpaces.Mixins.CfnEnvironmentPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsrefactorspaces/mixins#CfnEnvironmentPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.refactorspaces.mixins.CfnEnvironmentPropsMixin |
Python | aws_cdk.mixins_preview.aws_refactorspaces.mixins.CfnEnvironmentPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_refactorspaces » mixins » CfnEnvironmentPropsMixin |
Implements
IMixin
Extends
Mixin
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 .
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 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
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as refactorspaces_mixins } from '@aws-cdk/mixins-preview/aws-refactorspaces';
const cfnEnvironmentPropsMixin = new refactorspaces_mixins.CfnEnvironmentPropsMixin({
description: 'description',
name: 'name',
networkFabricType: 'networkFabricType',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnEnvironmentPropsMixin(props: CfnEnvironmentMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Environment Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::RefactorSpaces::Environment.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript