aws-cdk-lib.aws_lightsail.CfnInstance.NetworkingProperty

interface NetworkingProperty

LanguageType name
.NETAmazon.CDK.AWS.Lightsail.CfnInstance.NetworkingProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnInstance_NetworkingProperty
Javasoftware.amazon.awscdk.services.lightsail.CfnInstance.NetworkingProperty
Pythonaws_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: 123,
};

Properties

NameTypeDescription
portsIResolvable | IResolvable | PortProperty[]An array of ports to open on the instance.
monthlyTransfer?numberThe monthly amount of data transfer, in GB, allocated for the instance.

ports

Type: IResolvable | IResolvable | PortProperty[]

An array of ports to open on the instance.


monthlyTransfer?

Type: number (optional)

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