Show / Hide Table of Contents

Class CfnInstance.NetworkingProperty

Networking is a property of the AWS::Lightsail::Instance resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.

Inheritance
object
CfnInstance.NetworkingProperty
Implements
CfnInstance.INetworkingProperty
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.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.NetworkingProperty : CfnInstance.INetworkingProperty
Syntax (vb)
Public Class CfnInstance.NetworkingProperty Implements CfnInstance.INetworkingProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html

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.Lightsail;

             var networkingProperty = new NetworkingProperty {
                 Ports = new [] { new PortProperty {
                     AccessDirection = "accessDirection",
                     AccessFrom = "accessFrom",
                     AccessType = "accessType",
                     CidrListAliases = new [] { "cidrListAliases" },
                     Cidrs = new [] { "cidrs" },
                     CommonName = "commonName",
                     FromPort = 123,
                     Ipv6Cidrs = new [] { "ipv6Cidrs" },
                     Protocol = "protocol",
                     ToPort = 123
                 } },

                 // the properties below are optional
                 MonthlyTransfer = new MonthlyTransferProperty {
                     GbPerMonthAllocated = "gbPerMonthAllocated"
                 }
             };

Synopsis

Constructors

NetworkingProperty()

Networking is a property of the AWS::Lightsail::Instance resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.

Properties

MonthlyTransfer

The monthly amount of data transfer, in GB, allocated for the instance.

Ports

An array of ports to open on the instance.

Constructors

NetworkingProperty()

Networking is a property of the AWS::Lightsail::Instance resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.

public NetworkingProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html

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.Lightsail;

             var networkingProperty = new NetworkingProperty {
                 Ports = new [] { new PortProperty {
                     AccessDirection = "accessDirection",
                     AccessFrom = "accessFrom",
                     AccessType = "accessType",
                     CidrListAliases = new [] { "cidrListAliases" },
                     Cidrs = new [] { "cidrs" },
                     CommonName = "commonName",
                     FromPort = 123,
                     Ipv6Cidrs = new [] { "ipv6Cidrs" },
                     Protocol = "protocol",
                     ToPort = 123
                 } },

                 // the properties below are optional
                 MonthlyTransfer = new MonthlyTransferProperty {
                     GbPerMonthAllocated = "gbPerMonthAllocated"
                 }
             };

Properties

MonthlyTransfer

The monthly amount of data transfer, in GB, allocated for the instance.

public object? MonthlyTransfer { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html#cfn-lightsail-instance-networking-monthlytransfer

Ports

An array of ports to open on the instance.

public object Ports { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html#cfn-lightsail-instance-networking-ports

Implements

CfnInstance.INetworkingProperty
Back to top Generated by DocFX