@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.275Z") @Stability(value=Stable) public class CfnPrefixList extends CfnResource implements IInspectable
Specifies a managed prefix list. You can add one or more entries to the prefix list. Each entry consists of a CIDR block and an optional description.
You must specify the maximum number of entries for the prefix list. The maximum number of entries cannot be changed later.
Example:
// 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.*;
CfnPrefixList cfnPrefixList = CfnPrefixList.Builder.create(this, "MyCfnPrefixList")
.addressFamily("addressFamily")
.maxEntries(123)
.prefixListName("prefixListName")
// the properties below are optional
.entries(List.of(EntryProperty.builder()
.cidr("cidr")
// the properties below are optional
.description("description")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnPrefixList.Builder
A fluent builder for
CfnPrefixList. |
static interface |
CfnPrefixList.EntryProperty
An entry for a prefix list.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPrefixList(software.constructs.Construct scope,
String id,
CfnPrefixListProps props)
Create a new `AWS::EC2::PrefixList`.
|
protected |
CfnPrefixList(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPrefixList(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddressFamily()
The IP address type.
|
String |
getAttrArn()
The ARN of the prefix list.
|
String |
getAttrOwnerId()
The ID of the owner of the prefix list.
|
String |
getAttrPrefixListId()
The ID of the prefix list.
|
Number |
getAttrVersion()
The version of the prefix list.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getEntries()
One or more entries for the prefix list.
|
Number |
getMaxEntries()
The maximum number of entries for the prefix list.
|
String |
getPrefixListName()
A name for the prefix list.
|
TagManager |
getTags()
The tags for the prefix list.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAddressFamily(String value)
The IP address type.
|
void |
setEntries(IResolvable value)
One or more entries for the prefix list.
|
void |
setEntries(List<Object> value)
One or more entries for the prefix list.
|
void |
setMaxEntries(Number value)
The maximum number of entries for the prefix list.
|
void |
setPrefixListName(String value)
A name for the prefix list.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPrefixList(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPrefixList(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPrefixList(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnPrefixListProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
For example, arn:aws:ec2:us-east-1:123456789012:prefix-list/pl-0123123123123abcd .
@Stability(value=Stable) @NotNull public String getAttrOwnerId()
For example, 123456789012 .
@Stability(value=Stable) @NotNull public String getAttrPrefixListId()
For example, pl-0123123123123abcd .
@Stability(value=Stable) @NotNull public Number getAttrVersion()
For example, 1 .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getAddressFamily()
Valid Values: IPv4 | IPv6
@Stability(value=Stable)
public void setAddressFamily(@NotNull
String value)
Valid Values: IPv4 | IPv6
@Stability(value=Stable) @NotNull public Number getMaxEntries()
@Stability(value=Stable)
public void setMaxEntries(@NotNull
Number value)
@Stability(value=Stable) @NotNull public String getPrefixListName()
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .
@Stability(value=Stable)
public void setPrefixListName(@NotNull
String value)
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .
@Stability(value=Stable) @Nullable public Object getEntries()
@Stability(value=Stable)
public void setEntries(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.