HeaderMatchTypeProperty Struct
Describes a header match type.
| 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_vpclattice as vpclattice } from 'aws-cdk-lib';
const headerMatchTypeProperty: vpclattice.CfnRule.HeaderMatchTypeProperty = {
contains: 'contains',
exact: 'exact',
prefix: 'prefix',
};
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_vpclattice as vpclattice
header_match_type_property = vpclattice.CfnRule.HeaderMatchTypeProperty(
contains="contains",
exact="exact",
prefix="prefix"
)
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.vpclattice.*;
HeaderMatchTypeProperty headerMatchTypeProperty = HeaderMatchTypeProperty.builder()
.contains("contains")
.exact("exact")
.prefix("prefix")
.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.VpcLattice;
var headerMatchTypeProperty = new HeaderMatchTypeProperty {
Contains = "contains",
Exact = "exact",
Prefix = "prefix"
};
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"
headerMatchTypeProperty := &HeaderMatchTypeProperty{
Contains: jsii.String("contains"),
Exact: jsii.String("exact"),
Prefix: jsii.String("prefix"),
}
Properties
containsoptionalstringcontainsoptionalstrcontainsoptionalStringContainsoptionalstringContainsoptional*string #A contains type match.
An exact type match.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #A prefix type match.
Matches the value with the prefix.