UriPathRouteInput
¶
Used by
-
AsyncMigrationHubRefactorSpacesClient Operationscreate_route -
MigrationHubRefactorSpacesClient Operationscreate_route
Source code in docs_src/capo_migration_hub_refactor_spaces/types/uri_path_route_input.py
activation_state
instance-attribute
¶
activation_state: RouteActivationState
If set to ACTIVE, traffic is forwarded to this route’s service after the route is created.
append_source_path
instance-attribute
¶
append_source_path: NotRequired[Boolean]
If set to true, this option appends the source path to the service URL endpoint.
include_child_paths
instance-attribute
¶
include_child_paths: NotRequired[Boolean]
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
instance-attribute
¶
methods: NotRequired[HttpMethods]
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.
source_path
instance-attribute
¶
source_path: UriPath
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'.