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
System.Object
CfnInstance.NetworkingProperty
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.AWS.Lightsail.dll
Syntax (csharp)
public class NetworkingProperty : Object, CfnInstance.INetworkingProperty
Syntax (vb)
Public Class NetworkingProperty
Inherits Object
Implements CfnInstance.INetworkingProperty
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.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 = 123
};
Synopsis
Constructors
NetworkingProperty() |
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()
public NetworkingProperty()
Properties
MonthlyTransfer
The monthly amount of data transfer, in GB, allocated for the instance.
public Nullable<double> MonthlyTransfer { get; set; }
Property Value
System.Nullable<System.Double>
Ports
An array of ports to open on the instance.
public object Ports { get; set; }
Property Value
System.Object