Class CfnPrefixList.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnPrefixList.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrefixList>
- Enclosing class:
CfnPrefixList
@Stability(Stable)
public static final class CfnPrefixList.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrefixList>
A fluent builder for
CfnPrefixList
.-
Method Summary
Modifier and TypeMethodDescriptionaddressFamily
(String addressFamily) The IP address type.build()
static CfnPrefixList.Builder
One or more entries for the prefix list.entries
(IResolvable entries) One or more entries for the prefix list.maxEntries
(Number maxEntries) The maximum number of entries for the prefix list.prefixListName
(String prefixListName) A name for the prefix list.The tags for the prefix list.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPrefixList.Builder
.
-
addressFamily
The IP address type.Valid Values:
IPv4
|IPv6
- Parameters:
addressFamily
- The IP address type. This parameter is required.- Returns:
this
-
maxEntries
The maximum number of entries for the prefix list.- Parameters:
maxEntries
- The maximum number of entries for the prefix list. This parameter is required.- Returns:
this
-
prefixListName
A name for the prefix list.Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws
.- Parameters:
prefixListName
- A name for the prefix list. This parameter is required.- Returns:
this
-
entries
One or more entries for the prefix list.- Parameters:
entries
- One or more entries for the prefix list. This parameter is required.- Returns:
this
-
entries
One or more entries for the prefix list.- Parameters:
entries
- One or more entries for the prefix list. This parameter is required.- Returns:
this
-
tags
The tags for the prefix list.- Parameters:
tags
- The tags for the prefix list. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrefixList>
- Returns:
- a newly built instance of
CfnPrefixList
.
-