# RewriteConfigObjectProperty

- Source: Generated at build time
- Type last changed: v2.221.0 · 24 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const rewriteConfigObjectProperty: elbv2.CfnListenerRule.RewriteConfigObjectProperty = {
  rewrites: [{
    regex: 'regex',
    replace: 'replace',
  }],
};
```

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_elasticloadbalancingv2 as elbv2

rewrite_config_object_property = elbv2.CfnListenerRule.RewriteConfigObjectProperty(
    rewrites=[elbv2.CfnListenerRule.RewriteConfigProperty(
        regex="regex",
        replace="replace"
    )]
)
```

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.elasticloadbalancingv2.*;

RewriteConfigObjectProperty rewriteConfigObjectProperty = RewriteConfigObjectProperty.builder()
        .rewrites(List.of(RewriteConfigProperty.builder()
                .regex("regex")
                .replace("replace")
                .build()))
        .build();
```

C# / .NET:

```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.ElasticLoadBalancingV2;

var rewriteConfigObjectProperty = new RewriteConfigObjectProperty {
    Rewrites = new [] { new RewriteConfigProperty {
        Regex = "regex",
        Replace = "replace"
    } }
};
```

Golang:

```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"

rewriteConfigObjectProperty := &RewriteConfigObjectProperty{
	Rewrites: []interface{}{
		&RewriteConfigProperty{
			Regex: jsii.String("regex"),
			Replace: jsii.String("replace"),
		},
	},
}
```

## Properties

- `rewrites`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnListenerRule.RewriteConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.CfnListenerRule.RewriteConfigProperty.html)[] (required)
