Skip to content
v2.278.0

RewriteConfigObjectProperty Struct ​

Example ​

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
# 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
// 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();
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"
    } }
};
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 ​

rewritesIResolvable | IResolvable | CfnListenerRule.RewriteConfigProperty[]rewritestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RewriteConfigProperty]]]rewritesIResolvableRewritesIResolvableRewritesinterface{} required #