interface RewriteConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.CfnListenerRule.RewriteConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListenerRule_RewriteConfigProperty |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.RewriteConfigProperty |
Python | aws_cdk.aws_elasticloadbalancingv2.CfnListenerRule.RewriteConfigProperty |
TypeScript | aws-cdk-lib » aws_elasticloadbalancingv2 » CfnListenerRule » RewriteConfigProperty |
Information about a rewrite transform.
This transform matches a pattern and replaces it with the specified string.
Example
// 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 rewriteConfigProperty: elbv2.CfnListenerRule.RewriteConfigProperty = {
regex: 'regex',
replace: 'replace',
};
Properties
| Name | Type | Description |
|---|---|---|
| regex | string | The regular expression to match in the input string. |
| replace | string | The replacement string to use when rewriting the matched input. |
regex
Type:
string
The regular expression to match in the input string.
The maximum length of the string is 1,024 characters.
replace
Type:
string
The replacement string to use when rewriting the matched input.
The maximum length of the string is 1,024 characters. You can specify capture groups in the regular expression (for example, $1 and $2).

.NET
Go
Java
Python
TypeScript