Interface CfnInstance.INetworkingProperty
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.
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnInstance.INetworkingProperty
Syntax (vb)
Public Interface 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 = new MonthlyTransferProperty {
GbPerMonthAllocated = "gbPerMonthAllocated"
}
};
Synopsis
Properties
MonthlyTransfer | The monthly amount of data transfer, in GB, allocated for the instance. |
Ports | An array of ports to open on the instance. |
Properties
MonthlyTransfer
The monthly amount of data transfer, in GB, allocated for the instance.
object? MonthlyTransfer { get; }
Property Value
Remarks
Ports
An array of ports to open on the instance.
object Ports { get; }