Class: AWSCDK::EC2::CfnNetworkInterfaceAttachment::EnaSrdUDPSpecificationProperty

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

Overview

ENA Express is compatible with both TCP and UDP transport protocols.

When it's enabled, TCP traffic automatically uses it. However, some UDP-based applications are designed to handle network packets that are out of order, without a need for retransmission, such as live video broadcasting or other near-real-time applications. For UDP traffic, you can specify whether to use ENA Express, based on your application environment needs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ena_srd_udp_enabled: nil) ⇒ EnaSrdUDPSpecificationProperty

Returns a new instance of EnaSrdUDPSpecificationProperty.

Parameters:

  • ena_srd_udp_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether UDP traffic to and from the instance uses ENA Express.



617
618
619
620
# File 'ec2/cfn_network_interface_attachment.rb', line 617

def initialize(ena_srd_udp_enabled: nil)
  @ena_srd_udp_enabled = ena_srd_udp_enabled
  Jsii::Type.check_type(@ena_srd_udp_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enaSrdUdpEnabled") unless @ena_srd_udp_enabled.nil?
end

Instance Attribute Details

#ena_srd_udp_enabledBoolean, ... (readonly)

Indicates whether UDP traffic to and from the instance uses ENA Express.

To specify this setting, you must first enable ENA Express.



628
629
630
# File 'ec2/cfn_network_interface_attachment.rb', line 628

def ena_srd_udp_enabled
  @ena_srd_udp_enabled
end

Class Method Details

.jsii_propertiesObject



630
631
632
633
634
# File 'ec2/cfn_network_interface_attachment.rb', line 630

def self.jsii_properties
  {
    :ena_srd_udp_enabled => "enaSrdUdpEnabled",
  }
end

Instance Method Details

#to_jsiiObject



636
637
638
639
640
641
642
# File 'ec2/cfn_network_interface_attachment.rb', line 636

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