# HttpGatewayRoutePrefixRewriteProperty

Struct · External

An object representing the beginning characters of the route to rewrite.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const httpGatewayRoutePrefixRewriteProperty: appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty = {
  defaultPrefix: 'defaultPrefix',
  value: 'value',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

http_gateway_route_prefix_rewrite_property = appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty(
    default_prefix="defaultPrefix",
    value="value"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

HttpGatewayRoutePrefixRewriteProperty httpGatewayRoutePrefixRewriteProperty = HttpGatewayRoutePrefixRewriteProperty.builder()
        .defaultPrefix("defaultPrefix")
        .value("value")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var httpGatewayRoutePrefixRewriteProperty = new HttpGatewayRoutePrefixRewriteProperty {
    DefaultPrefix = "defaultPrefix",
    Value = "value"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpGatewayRoutePrefixRewriteProperty := &HttpGatewayRoutePrefixRewriteProperty{
	DefaultPrefix: jsii.String("defaultPrefix"),
	Value: jsii.String("value"),
}
```

## Properties

- `defaultPrefix`: string — The default prefix used to replace the incoming route prefix when rewritten.

- `value`: string — The value used to replace the incoming route prefix when rewritten.
