PrefixListOptions Struct
Options to add a prefix list.
| Source | aws-ec2/lib/prefix-list.ts |
|---|---|
| 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_ec2 as ec2 } from 'aws-cdk-lib';
const prefixListOptions: ec2.PrefixListOptions = {
maxEntries: 123,
};
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_ec2 as ec2
prefix_list_options = ec2.PrefixListOptions(
max_entries=123
)
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.ec2.*;
PrefixListOptions prefixListOptions = PrefixListOptions.builder()
.maxEntries(123)
.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.EC2;
var prefixListOptions = new PrefixListOptions {
MaxEntries = 123
};
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"
prefixListOptions := &PrefixListOptions{
MaxEntries: jsii.Number(123),
}
Properties
maxEntriesoptionalnumbermax_entriesoptionalint | floatmaxEntriesoptionalNumberMaxEntriesoptionaldoubleMaxEntriesoptional*float64 = Automatically-calculated #The maximum number of entries for the prefix list.