Show / Hide Table of Contents

Class PublicSubnetAttributes

Inheritance
object
PublicSubnetAttributes
Implements
IPublicSubnetAttributes
ISubnetAttributes
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PublicSubnetAttributes : IPublicSubnetAttributes, ISubnetAttributes
Syntax (vb)
Public Class PublicSubnetAttributes Implements IPublicSubnetAttributes, ISubnetAttributes
Remarks

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 publicSubnetAttributes = new PublicSubnetAttributes {
                SubnetId = "subnetId",

                // the properties below are optional
                AvailabilityZone = "availabilityZone",
                Ipv4CidrBlock = "ipv4CidrBlock",
                RouteTableId = "routeTableId"
            };

Synopsis

Constructors

PublicSubnetAttributes()

Properties

AvailabilityZone

The Availability Zone the subnet is located in.

Ipv4CidrBlock

The IPv4 CIDR block associated with the subnet.

RouteTableId

The ID of the route table for this particular subnet.

SubnetId

The subnetId for this particular subnet.

Constructors

PublicSubnetAttributes()

public PublicSubnetAttributes()
Remarks

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 publicSubnetAttributes = new PublicSubnetAttributes {
                SubnetId = "subnetId",

                // the properties below are optional
                AvailabilityZone = "availabilityZone",
                Ipv4CidrBlock = "ipv4CidrBlock",
                RouteTableId = "routeTableId"
            };

Properties

AvailabilityZone

The Availability Zone the subnet is located in.

public string? AvailabilityZone { get; set; }
Property Value

string

Remarks

Default: - No AZ information, cannot use AZ selection features

Ipv4CidrBlock

The IPv4 CIDR block associated with the subnet.

public string? Ipv4CidrBlock { get; set; }
Property Value

string

Remarks

Default: - No CIDR information, cannot use CIDR filter features

RouteTableId

The ID of the route table for this particular subnet.

public string? RouteTableId { get; set; }
Property Value

string

Remarks

Default: - No route table information, cannot create VPC endpoints

SubnetId

The subnetId for this particular subnet.

public string SubnetId { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Implements

IPublicSubnetAttributes
ISubnetAttributes
Back to top Generated by DocFX