HostHeaderConfigProperty Struct
Information about a host header condition.
| Source | |
|---|---|
| Type last changed |
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 hostHeaderConfigProperty: elbv2.CfnListenerRule.HostHeaderConfigProperty = {
regexValues: ['regexValues'],
values: ['values'],
};
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
host_header_config_property = elbv2.CfnListenerRule.HostHeaderConfigProperty(
regex_values=["regexValues"],
values=["values"]
)
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.*;
HostHeaderConfigProperty hostHeaderConfigProperty = HostHeaderConfigProperty.builder()
.regexValues(List.of("regexValues"))
.values(List.of("values"))
.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 hostHeaderConfigProperty = new HostHeaderConfigProperty {
RegexValues = new [] { "regexValues" },
Values = new [] { "values" }
};
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"
hostHeaderConfigProperty := &HostHeaderConfigProperty{
RegexValues: []*string{
jsii.String("regexValues"),
},
Values: []*string{
jsii.String("values"),
},
}
Properties
regexValuesoptionalstring[]regex_valuesoptionaltyping.List[str]regexValuesoptionalList<String>RegexValuesoptionalstring[]RegexValuesoptional*[]*string #valuesoptionalstring[]valuesoptionaltyping.List[str]valuesoptionalList<String>Valuesoptionalstring[]Valuesoptional*[]*string #The host names.
notes
The maximum length of each string is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character). You must include at least one "." character. You can include only alphabetical characters after the final "." character.
If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.