PrefixListProps Struct
Properties for creating a prefix list.
| Source | aws-ec2/lib/prefix-list.ts |
|---|---|
| Type last changed |
Example
ts
new ec2.PrefixList(this, 'EmptyPrefixList', {
maxEntries: 100,
});
python
ec2.PrefixList(self, "EmptyPrefixList",
max_entries=100
)
java
PrefixList.Builder.create(this, "EmptyPrefixList")
.maxEntries(100)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new PrefixList(this, "EmptyPrefixList", new PrefixListProps {
MaxEntries = 100
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
ec2.NewPrefixList(this, jsii.String("EmptyPrefixList"), &PrefixListProps{
MaxEntries: jsii.Number(100),
})
Properties
addressFamilyoptionalAddressFamilyaddress_familyoptionalAddressFamilyaddressFamilyoptionalAddressFamilyAddressFamilyoptionalAddressFamilyAddressFamilyoptionalAddressFamily = AddressFamily.IP_V4 #The address family of the prefix list.
entriesoptionalCfnPrefixList.EntryProperty[]entriesoptionaltyping.List[EntryProperty]entriesoptionalList<EntryProperty>EntriesoptionalEntryProperty[]Entriesoptional*[]EntryProperty = [] #The list of entries for the prefix list.
maxEntriesoptionalnumbermax_entriesoptionalint | floatmaxEntriesoptionalNumberMaxEntriesoptionaldoubleMaxEntriesoptional*float64 = Automatically-calculated #The maximum number of entries for the prefix list.
prefixListNameoptionalstringprefix_list_nameoptionalstrprefixListNameoptionalStringPrefixListNameoptionalstringPrefixListNameoptional*string = None #The name of the prefix list.