Class: AWSCDK::EC2::CfnLaunchTemplate::NetworkPerformanceOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_launch_template.rb

Overview

Contains settings for the network performance options for the instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bandwidth_weighting: nil) ⇒ NetworkPerformanceOptionsProperty

Returns a new instance of NetworkPerformanceOptionsProperty.

Parameters:

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

    Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:.



3316
3317
3318
3319
# File 'ec2/cfn_launch_template.rb', line 3316

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

Instance Attribute Details

#bandwidth_weightingString? (readonly)

Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:.

  • default - This option uses the standard bandwidth configuration for your instance type.
  • vpc-1 - This option boosts your networking baseline bandwidth and reduces your EBS baseline bandwidth.
  • ebs-1 - This option boosts your EBS baseline bandwidth and reduces your networking baseline bandwidth.


3329
3330
3331
# File 'ec2/cfn_launch_template.rb', line 3329

def bandwidth_weighting
  @bandwidth_weighting
end

Class Method Details

.jsii_propertiesObject



3331
3332
3333
3334
3335
# File 'ec2/cfn_launch_template.rb', line 3331

def self.jsii_properties
  {
    :bandwidth_weighting => "bandwidthWeighting",
  }
end

Instance Method Details

#to_jsiiObject



3337
3338
3339
3340
3341
3342
3343
# File 'ec2/cfn_launch_template.rb', line 3337

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