@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:42.669Z") 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.
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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPrefixList(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAddressFamily()
The IP address type.
|
java.lang.String |
getAttrArn()
The ARN of the prefix list.
|
java.lang.String |
getAttrOwnerId()
The ID of the owner of the prefix list.
|
java.lang.String |
getAttrPrefixListId()
The ID of the prefix list.
|
java.lang.Number |
getAttrVersion()
The version of the prefix list.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getEntries()
One or more entries for the prefix list.
|
java.lang.Number |
getMaxEntries()
The maximum number of entries for the prefix list.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAddressFamily(java.lang.String value)
The IP address type.
|
void |
setEntries(IResolvable value)
One or more entries for the prefix list.
|
void |
setEntries(java.util.List<java.lang.Object> value)
One or more entries for the prefix list.
|
void |
setMaxEntries(java.lang.Number value)
The maximum number of entries for the prefix list.
|
void |
setPrefixListName(java.lang.String value)
A name for the prefix list.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPrefixList(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPrefixList(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPrefixList(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
For example, arn:aws:ec2:us-east-1:123456789012:prefix-list/pl-0123123123123abcd
.
public java.lang.String getAttrOwnerId()
For example, 123456789012
.
public java.lang.String getAttrPrefixListId()
For example, pl-0123123123123abcd
.
public java.lang.Number getAttrVersion()
For example, 1
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getAddressFamily()
Valid Values: IPv4
| IPv6
public void setAddressFamily(java.lang.String value)
Valid Values: IPv4
| IPv6
public java.lang.Number getMaxEntries()
public void setMaxEntries(java.lang.Number value)
public java.lang.String getPrefixListName()
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws
.
public void setPrefixListName(java.lang.String value)
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws
.
public java.lang.Object getEntries()
public void setEntries(IResolvable value)
public void setEntries(java.util.List<java.lang.Object> value)