AWS::RefactorSpaces::Service> 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 service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint. > If an AWS resource is launched in a service VPC, and you want it to be accessible to all of an environment’s services with VPCs and routes, apply the `RefactorSpacesSecurityGroup` to the resource. Alternatively, to add more cross-account constraints, apply your own security group.
import { CfnService } from 'aws-cdk-lib/aws-refactorspaces';Or use the module namespace:
import * as refactorspaces from 'aws-cdk-lib/aws-refactorspaces';
// refactorspaces.CfnServiceConfiguration passed to the constructor as CfnServiceProps.
applicationIdentifierRequiredstring | IApplicationRefThe unique identifier of the application.
endpointTypeRequiredstringThe endpoint type of the service.
environmentIdentifierRequiredstring | IEnvironmentRefThe unique identifier of the environment.
nameRequiredstringThe name of the service.
descriptionOptionalstringA description of the service.
lambdaEndpointOptionalIResolvable | LambdaEndpointInputPropertyA summary of the configuration for the AWS Lambda endpoint type.
tagsOptionalCfnTag[]The tags assigned to the service.
urlEndpointOptionalIResolvable | UrlEndpointInputPropertyThe summary of the configuration for the URL endpoint type.
vpcIdOptionalstring | IVPCRefThe ID of the virtual private cloud (VPC).
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-refactorspacesAWS::RefactorSpaces::Service