interface NetworkingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lightsail.CfnInstance.NetworkingProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnInstance_NetworkingProperty |
Java | software.amazon.awscdk.services.lightsail.CfnInstance.NetworkingProperty |
Python | aws_cdk.aws_lightsail.CfnInstance.NetworkingProperty |
TypeScript | aws-cdk-lib » aws_lightsail » 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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const networkingProperty: lightsail.CfnInstance.NetworkingProperty = {
ports: [{
accessDirection: 'accessDirection',
accessFrom: 'accessFrom',
accessType: 'accessType',
cidrListAliases: ['cidrListAliases'],
cidrs: ['cidrs'],
commonName: 'commonName',
fromPort: 123,
ipv6Cidrs: ['ipv6Cidrs'],
protocol: 'protocol',
toPort: 123,
}],
// the properties below are optional
monthlyTransfer: {
gbPerMonthAllocated: 'gbPerMonthAllocated',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| ports | IResolvable | (IResolvable | Port)[] | An array of ports to open on the instance. |
| monthly | IResolvable | Monthly | The monthly amount of data transfer, in GB, allocated for the instance. |
ports
Type:
IResolvable | (IResolvable | Port)[]
An array of ports to open on the instance.
monthlyTransfer?
Type:
IResolvable | Monthly
(optional)
The monthly amount of data transfer, in GB, allocated for the instance.

.NET
Go
Java
Python
TypeScript