aws-cdk-lib.aws_refactorspaces.CfnRoute.UriPathRouteInputProperty

interface UriPathRouteInputProperty

LanguageType name
.NETAmazon.CDK.AWS.RefactorSpaces.CfnRoute.UriPathRouteInputProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrefactorspaces#CfnRoute_UriPathRouteInputProperty
Javasoftware.amazon.awscdk.services.refactorspaces.CfnRoute.UriPathRouteInputProperty
Pythonaws_cdk.aws_refactorspaces.CfnRoute.UriPathRouteInputProperty
TypeScript aws-cdk-lib » aws_refactorspaces » CfnRoute » UriPathRouteInputProperty

The configuration for the URI path route type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_refactorspaces as refactorspaces } from 'aws-cdk-lib';
const uriPathRouteInputProperty: refactorspaces.CfnRoute.UriPathRouteInputProperty = {
  activationState: 'activationState',

  // the properties below are optional
  appendSourcePath: false,
  includeChildPaths: false,
  methods: ['methods'],
  sourcePath: 'sourcePath',
};

Properties

NameTypeDescription
activationStatestringIf set to ACTIVE , traffic is forwarded to this route’s service after the route is created.
appendSourcePath?boolean | IResolvableIf set to true , this option appends the source path to the service URL endpoint.
includeChildPaths?boolean | IResolvableIndicates whether to match all subpaths of the given source path.
methods?string[]A list of HTTP methods to match.
sourcePath?stringThis is the path that Refactor Spaces uses to match traffic.

activationState

Type: string

If set to ACTIVE , traffic is forwarded to this route’s service after the route is created.


appendSourcePath?

Type: boolean | IResolvable (optional)

If set to true , this option appends the source path to the service URL endpoint.


includeChildPaths?

Type: boolean | IResolvable (optional)

Indicates whether to match all subpaths of the given source path.

If this value is false , requests must match the source path exactly before they are forwarded to this route's service.


methods?

Type: string[] (optional)

A list of HTTP methods to match.

An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.


sourcePath?

Type: string (optional)

This is the path that Refactor Spaces uses to match traffic.

Paths must start with / and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.