interface NetworkingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins.CfnInstancePropsMixin.NetworkingProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslightsail/mixins#CfnInstancePropsMixin_NetworkingProperty |
Java | software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnInstancePropsMixin.NetworkingProperty |
Python | aws_cdk.mixins_preview.aws_lightsail.mixins.CfnInstancePropsMixin.NetworkingProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lightsail » mixins » CfnInstancePropsMixin » 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 { mixins as lightsail_mixins } from '@aws-cdk/mixins-preview/aws-lightsail';
const networkingProperty: lightsail_mixins.CfnInstancePropsMixin.NetworkingProperty = {
monthlyTransfer: {
gbPerMonthAllocated: 'gbPerMonthAllocated',
},
ports: [{
accessDirection: 'accessDirection',
accessFrom: 'accessFrom',
accessType: 'accessType',
cidrListAliases: ['cidrListAliases'],
cidrs: ['cidrs'],
commonName: 'commonName',
fromPort: 123,
ipv6Cidrs: ['ipv6Cidrs'],
protocol: 'protocol',
toPort: 123,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| monthly | IResolvable | Monthly | The monthly amount of data transfer, in GB, allocated for the instance. |
| ports? | 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.
ports?
Type:
IResolvable | (IResolvable | Port)[]
(optional)
An array of ports to open on the instance.

.NET
Go
Java
Python
TypeScript