Class: AWSCDK::EC2::CfnInstance::EnaSrdSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnInstance::EnaSrdSpecificationProperty
- Defined in:
- ec2/cfn_instance.rb
Overview
ENA Express uses AWS Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances.
With ENA Express, you can communicate between two EC2 instances in the same subnet within the same account, or in different accounts. Both sending and receiving instances must have ENA Express enabled.
To improve the reliability of network packet delivery, ENA Express reorders network packets on the receiving end by default. However, some UDP-based applications are designed to handle network packets that are out of order to reduce the overhead for packet delivery at the network layer. When ENA Express is enabled, you can specify whether UDP network traffic uses it.
Instance Attribute Summary collapse
-
#ena_srd_enabled ⇒ Boolean, ...
readonly
Indicates whether ENA Express is enabled for the network interface.
-
#ena_srd_udp_specification ⇒ AWSCDK::IResolvable, ...
readonly
Configures ENA Express for UDP network traffic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ena_srd_enabled: nil, ena_srd_udp_specification: nil) ⇒ EnaSrdSpecificationProperty
constructor
A new instance of EnaSrdSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ena_srd_enabled: nil, ena_srd_udp_specification: nil) ⇒ EnaSrdSpecificationProperty
Returns a new instance of EnaSrdSpecificationProperty.
1587 1588 1589 1590 1591 1592 |
# File 'ec2/cfn_instance.rb', line 1587 def initialize(ena_srd_enabled: nil, ena_srd_udp_specification: nil) @ena_srd_enabled = ena_srd_enabled Jsii::Type.check_type(@ena_srd_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enaSrdEnabled") unless @ena_srd_enabled.nil? @ena_srd_udp_specification = ena_srd_udp_specification.is_a?(Hash) ? ::AWSCDK::EC2::CfnInstance::EnaSrdUDPSpecificationProperty.new(**ena_srd_udp_specification.transform_keys(&:to_sym)) : ena_srd_udp_specification Jsii::Type.check_type(@ena_srd_udp_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuSW5zdGFuY2UuRW5hU3JkVWRwU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "enaSrdUdpSpecification") unless @ena_srd_udp_specification.nil? end |
Instance Attribute Details
#ena_srd_enabled ⇒ Boolean, ... (readonly)
Indicates whether ENA Express is enabled for the network interface.
1598 1599 1600 |
# File 'ec2/cfn_instance.rb', line 1598 def ena_srd_enabled @ena_srd_enabled end |
#ena_srd_udp_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Configures ENA Express for UDP network traffic.
1603 1604 1605 |
# File 'ec2/cfn_instance.rb', line 1603 def ena_srd_udp_specification @ena_srd_udp_specification end |
Class Method Details
.jsii_properties ⇒ Object
1605 1606 1607 1608 1609 1610 |
# File 'ec2/cfn_instance.rb', line 1605 def self.jsii_properties { :ena_srd_enabled => "enaSrdEnabled", :ena_srd_udp_specification => "enaSrdUdpSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
1612 1613 1614 1615 1616 1617 1618 1619 |
# File 'ec2/cfn_instance.rb', line 1612 def to_jsii result = {} result.merge!({ "enaSrdEnabled" => @ena_srd_enabled, "enaSrdUdpSpecification" => @ena_srd_udp_specification, }) result.compact end |