Class CfnPrefixList
Specifies a managed prefix list.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPrefixList : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPrefixList
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
You can add one or more entries to the prefix list. Each entry consists of a CIDR block and an optional description.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html
CloudformationResource: AWS::EC2::PrefixList
ExampleMetadata: fixture=_generated
Examples
// 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 cfnPrefixList = new CfnPrefixList(this, "MyCfnPrefixList", new CfnPrefixListProps {
AddressFamily = "addressFamily",
PrefixListName = "prefixListName",
// the properties below are optional
Entries = new [] { new EntryProperty {
Cidr = "cidr",
// the properties below are optional
Description = "description"
} },
MaxEntries = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPrefixList(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPrefixList(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPrefixList(Construct, String, ICfnPrefixListProps) |
Properties
AddressFamily | The IP address type. |
AttrArn | The ARN of the prefix list. |
AttrOwnerId | The ID of the owner of the prefix list. |
AttrPrefixListId | The ID of the prefix list. |
AttrVersion | The version of the prefix list. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Entries | One or more entries for the prefix list. |
MaxEntries | The maximum number of entries for the prefix list. |
PrefixListName | A name for the prefix list. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags for the prefix list. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPrefixList(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPrefixList(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPrefixList(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPrefixList(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPrefixList(Construct, String, ICfnPrefixListProps)
public CfnPrefixList(Construct scope, string id, ICfnPrefixListProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPrefixListProps
Resource properties.
Properties
AddressFamily
The IP address type.
public virtual string AddressFamily { get; set; }
Property Value
System.String
AttrArn
The ARN of the prefix list.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
For example, arn:aws:ec2:us-east-1:123456789012:prefix-list/pl-0123123123123abcd
.
CloudformationAttribute: Arn
AttrOwnerId
The ID of the owner of the prefix list.
public virtual string AttrOwnerId { get; }
Property Value
System.String
Remarks
For example, 123456789012
.
CloudformationAttribute: OwnerId
AttrPrefixListId
The ID of the prefix list.
public virtual string AttrPrefixListId { get; }
Property Value
System.String
Remarks
For example, pl-0123123123123abcd
.
CloudformationAttribute: PrefixListId
AttrVersion
The version of the prefix list.
public virtual double AttrVersion { get; }
Property Value
System.Double
Remarks
For example, 1
.
CloudformationAttribute: Version
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Entries
One or more entries for the prefix list.
public virtual object Entries { get; set; }
Property Value
System.Object
MaxEntries
The maximum number of entries for the prefix list.
public virtual Nullable<double> MaxEntries { get; set; }
Property Value
System.Nullable<System.Double>
PrefixListName
A name for the prefix list.
public virtual string PrefixListName { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags for the prefix list.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>