Skip to content
v2.278.0

MonthlyTransferProperty Struct ​

MonthlyTransfer is a property of the Networking property. It describes the amount of allocated monthly data transfer (in GB) for an instance.

Example ​

ts
// 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 monthlyTransferProperty: lightsail.CfnInstance.MonthlyTransferProperty = {
  gbPerMonthAllocated: 'gbPerMonthAllocated',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

monthly_transfer_property = lightsail.CfnInstance.MonthlyTransferProperty(
    gb_per_month_allocated="gbPerMonthAllocated"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;

MonthlyTransferProperty monthlyTransferProperty = MonthlyTransferProperty.builder()
        .gbPerMonthAllocated("gbPerMonthAllocated")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 monthlyTransferProperty = new MonthlyTransferProperty {
    GbPerMonthAllocated = "gbPerMonthAllocated"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

monthlyTransferProperty := &MonthlyTransferProperty{
	GbPerMonthAllocated: jsii.String("gbPerMonthAllocated"),
}

Properties ​

gbPerMonthAllocatedoptionalstringgb_per_month_allocatedoptionalstrgbPerMonthAllocatedoptionalStringGbPerMonthAllocatedoptionalstringGbPerMonthAllocatedoptional*string #
The amount of allocated monthly data transfer (in GB) for an instance.