Class: AWSCDK::Lightsail::CfnInstance::MonthlyTransferProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lightsail/cfn_instance.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gb_per_month_allocated: nil) ⇒ MonthlyTransferProperty

Returns a new instance of MonthlyTransferProperty.

Parameters:

  • gb_per_month_allocated (String, nil) (defaults to: nil)

    The amount of allocated monthly data transfer (in GB) for an instance.



1079
1080
1081
1082
# File 'lightsail/cfn_instance.rb', line 1079

def initialize(gb_per_month_allocated: nil)
  @gb_per_month_allocated = gb_per_month_allocated
  Jsii::Type.check_type(@gb_per_month_allocated, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gbPerMonthAllocated") unless @gb_per_month_allocated.nil?
end

Instance Attribute Details

#gb_per_month_allocatedString? (readonly)

The amount of allocated monthly data transfer (in GB) for an instance.



1088
1089
1090
# File 'lightsail/cfn_instance.rb', line 1088

def gb_per_month_allocated
  @gb_per_month_allocated
end

Class Method Details

.jsii_propertiesObject



1090
1091
1092
1093
1094
# File 'lightsail/cfn_instance.rb', line 1090

def self.jsii_properties
  {
    :gb_per_month_allocated => "gbPerMonthAllocated",
  }
end

Instance Method Details

#to_jsiiObject



1096
1097
1098
1099
1100
1101
1102
# File 'lightsail/cfn_instance.rb', line 1096

def to_jsii
  result = {}
  result.merge!({
    "gbPerMonthAllocated" => @gb_per_month_allocated,
  })
  result.compact
end