# AWS::RefactorSpaces Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as refactorspaces from 'aws-cdk-lib/aws-refactorspaces';
```

Python:

```python
import aws_cdk.aws_refactorspaces as refactorspaces
```

Java:

```java
import software.amazon.awscdk.services.refactorspaces.*;
```

C# / .NET:

```csharp
using Amazon.CDK.AWS.RefactorSpaces;
```

Golang:

```go
import refactorspaces "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for RefactorSpaces construct libraries](https://constructs.dev/search?q=refactorspaces)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::RefactorSpaces resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RefactorSpaces.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::RefactorSpaces](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RefactorSpaces.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnApplication`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnApplication.html) Construct (L1) > AWS Migration Hub is no longer open to new customers as of November 7, 2025.
- [`CfnEnvironment`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnEnvironment.html) Construct (L1) > AWS Migration Hub is no longer open to new customers as of November 7, 2025.
- [`CfnRoute`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnRoute.html) Construct (L1) Creates an AWS Migration Hub Refactor Spaces route.
- [`CfnService`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnService.html) Construct (L1) > AWS Migration Hub is no longer open to new customers as of November 7, 2025.

### Structs

- [`CfnApplication.ApiGatewayProxyInputProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnApplication.ApiGatewayProxyInputProperty.html) Struct A wrapper object holding the Amazon API Gateway endpoint input.
- [`CfnApplicationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnApplicationProps.html) Struct Properties for defining a `CfnApplication`.
- [`CfnEnvironmentProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnEnvironmentProps.html) Struct Properties for defining a `CfnEnvironment`.
- [`CfnRoute.DefaultRouteInputProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnRoute.DefaultRouteInputProperty.html) Struct The configuration for the default route type.
- [`CfnRoute.UriPathRouteInputProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnRoute.UriPathRouteInputProperty.html) Struct The configuration for the URI path route type.
- [`CfnRouteProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnRouteProps.html) Struct Properties for defining a `CfnRoute`.
- [`CfnService.LambdaEndpointInputProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnService.LambdaEndpointInputProperty.html) Struct The input for the AWS Lambda endpoint type.
- [`CfnService.UrlEndpointInputProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnService.UrlEndpointInputProperty.html) Struct The configuration for the URL endpoint type.
- [`CfnServiceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnServiceProps.html) Struct Properties for defining a `CfnService`.
