AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::RefactorSpaces::Service

CfnService

> 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

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnServiceProps.

applicationIdentifierRequired
string | IApplicationRef

The unique identifier of the application.

endpointTypeRequired
string

The endpoint type of the service.

environmentIdentifierRequired
string | IEnvironmentRef

The unique identifier of the environment.

nameRequired
string

The name of the service.

descriptionOptional
string

A description of the service.

lambdaEndpointOptional
IResolvable | LambdaEndpointInputProperty

A summary of the configuration for the AWS Lambda endpoint type.

tagsOptional
CfnTag[]

The tags assigned to the service.

urlEndpointOptional
IResolvable | UrlEndpointInputProperty

The summary of the configuration for the URL endpoint type.

vpcIdOptional
string | IVPCRef

The ID of the virtual private cloud (VPC).

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::Service
Properties9

Related Constructs

External Links