1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes a network interface.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InstanceNetworkInterfaceSpecification {
/// <p>Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is <code>true</code>.</p>
/// <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
pub associate_public_ip_address: ::std::option::Option<bool>,
/// <p>If set to <code>true</code>, the interface is deleted when the instance is terminated. You can specify <code>true</code> only if creating a new network interface when launching an instance.</p>
pub delete_on_termination: ::std::option::Option<bool>,
/// <p>The description of the network interface. Applies only if creating a network interface when launching an instance.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The position of the network interface in the attachment order. A primary network interface has a device index of 0.</p>
/// <p>If you specify a network interface when launching an instance, you must specify the device index.</p>
pub device_index: ::std::option::Option<i32>,
/// <p>The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.</p>
pub groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.</p>
pub ipv6_address_count: ::std::option::Option<i32>,
/// <p>The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.</p>
pub ipv6_addresses: ::std::option::Option<::std::vec::Vec<crate::types::InstanceIpv6Address>>,
/// <p>The ID of the network interface.</p>
/// <p>If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.</p>
pub network_interface_id: ::std::option::Option<::std::string::String>,
/// <p>The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub private_ip_address: ::std::option::Option<::std::string::String>,
/// <p>The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub private_ip_addresses: ::std::option::Option<::std::vec::Vec<crate::types::PrivateIpAddressSpecification>>,
/// <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub secondary_private_ip_address_count: ::std::option::Option<i32>,
/// <p>The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.</p>
pub subnet_id: ::std::option::Option<::std::string::String>,
/// <p>Indicates whether to assign a carrier IP address to the network interface.</p>
/// <p>You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see <a href="https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip">Carrier IP address</a> in the <i>Amazon Web Services Wavelength Developer Guide</i>.</p>
pub associate_carrier_ip_address: ::std::option::Option<bool>,
/// <p>The type of network interface.</p>
/// <p>Valid values: <code>interface</code> | <code>efa</code></p>
pub interface_type: ::std::option::Option<::std::string::String>,
/// <p>The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.</p>
/// <p>If you are using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">RequestSpotInstances</a> to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub network_card_index: ::std::option::Option<i32>,
/// <p>The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
pub ipv4_prefixes: ::std::option::Option<::std::vec::Vec<crate::types::Ipv4PrefixSpecificationRequest>>,
/// <p>The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv4Prefix</code> option.</p>
pub ipv4_prefix_count: ::std::option::Option<i32>,
/// <p>The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
pub ipv6_prefixes: ::std::option::Option<::std::vec::Vec<crate::types::Ipv6PrefixSpecificationRequest>>,
/// <p>The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv6Prefix</code> option.</p>
pub ipv6_prefix_count: ::std::option::Option<i32>,
/// <p>The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub primary_ipv6: ::std::option::Option<bool>,
/// <p>Specifies the ENA Express settings for the network interface that's attached to the instance.</p>
pub ena_srd_specification: ::std::option::Option<crate::types::EnaSrdSpecificationRequest>,
/// <p>A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts">Connection tracking timeouts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
pub connection_tracking_specification: ::std::option::Option<crate::types::ConnectionTrackingSpecificationRequest>,
}
impl InstanceNetworkInterfaceSpecification {
/// <p>Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is <code>true</code>.</p>
/// <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
pub fn associate_public_ip_address(&self) -> ::std::option::Option<bool> {
self.associate_public_ip_address
}
/// <p>If set to <code>true</code>, the interface is deleted when the instance is terminated. You can specify <code>true</code> only if creating a new network interface when launching an instance.</p>
pub fn delete_on_termination(&self) -> ::std::option::Option<bool> {
self.delete_on_termination
}
/// <p>The description of the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The position of the network interface in the attachment order. A primary network interface has a device index of 0.</p>
/// <p>If you specify a network interface when launching an instance, you must specify the device index.</p>
pub fn device_index(&self) -> ::std::option::Option<i32> {
self.device_index
}
/// <p>The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.groups.is_none()`.
pub fn groups(&self) -> &[::std::string::String] {
self.groups.as_deref().unwrap_or_default()
}
/// <p>A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.</p>
pub fn ipv6_address_count(&self) -> ::std::option::Option<i32> {
self.ipv6_address_count
}
/// <p>The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ipv6_addresses.is_none()`.
pub fn ipv6_addresses(&self) -> &[crate::types::InstanceIpv6Address] {
self.ipv6_addresses.as_deref().unwrap_or_default()
}
/// <p>The ID of the network interface.</p>
/// <p>If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.</p>
pub fn network_interface_id(&self) -> ::std::option::Option<&str> {
self.network_interface_id.as_deref()
}
/// <p>The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn private_ip_address(&self) -> ::std::option::Option<&str> {
self.private_ip_address.as_deref()
}
/// <p>The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.private_ip_addresses.is_none()`.
pub fn private_ip_addresses(&self) -> &[crate::types::PrivateIpAddressSpecification] {
self.private_ip_addresses.as_deref().unwrap_or_default()
}
/// <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn secondary_private_ip_address_count(&self) -> ::std::option::Option<i32> {
self.secondary_private_ip_address_count
}
/// <p>The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn subnet_id(&self) -> ::std::option::Option<&str> {
self.subnet_id.as_deref()
}
/// <p>Indicates whether to assign a carrier IP address to the network interface.</p>
/// <p>You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see <a href="https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip">Carrier IP address</a> in the <i>Amazon Web Services Wavelength Developer Guide</i>.</p>
pub fn associate_carrier_ip_address(&self) -> ::std::option::Option<bool> {
self.associate_carrier_ip_address
}
/// <p>The type of network interface.</p>
/// <p>Valid values: <code>interface</code> | <code>efa</code></p>
pub fn interface_type(&self) -> ::std::option::Option<&str> {
self.interface_type.as_deref()
}
/// <p>The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.</p>
/// <p>If you are using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">RequestSpotInstances</a> to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn network_card_index(&self) -> ::std::option::Option<i32> {
self.network_card_index
}
/// <p>The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ipv4_prefixes.is_none()`.
pub fn ipv4_prefixes(&self) -> &[crate::types::Ipv4PrefixSpecificationRequest] {
self.ipv4_prefixes.as_deref().unwrap_or_default()
}
/// <p>The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv4Prefix</code> option.</p>
pub fn ipv4_prefix_count(&self) -> ::std::option::Option<i32> {
self.ipv4_prefix_count
}
/// <p>The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ipv6_prefixes.is_none()`.
pub fn ipv6_prefixes(&self) -> &[crate::types::Ipv6PrefixSpecificationRequest] {
self.ipv6_prefixes.as_deref().unwrap_or_default()
}
/// <p>The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv6Prefix</code> option.</p>
pub fn ipv6_prefix_count(&self) -> ::std::option::Option<i32> {
self.ipv6_prefix_count
}
/// <p>The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn primary_ipv6(&self) -> ::std::option::Option<bool> {
self.primary_ipv6
}
/// <p>Specifies the ENA Express settings for the network interface that's attached to the instance.</p>
pub fn ena_srd_specification(&self) -> ::std::option::Option<&crate::types::EnaSrdSpecificationRequest> {
self.ena_srd_specification.as_ref()
}
/// <p>A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts">Connection tracking timeouts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
pub fn connection_tracking_specification(&self) -> ::std::option::Option<&crate::types::ConnectionTrackingSpecificationRequest> {
self.connection_tracking_specification.as_ref()
}
}
impl InstanceNetworkInterfaceSpecification {
/// Creates a new builder-style object to manufacture [`InstanceNetworkInterfaceSpecification`](crate::types::InstanceNetworkInterfaceSpecification).
pub fn builder() -> crate::types::builders::InstanceNetworkInterfaceSpecificationBuilder {
crate::types::builders::InstanceNetworkInterfaceSpecificationBuilder::default()
}
}
/// A builder for [`InstanceNetworkInterfaceSpecification`](crate::types::InstanceNetworkInterfaceSpecification).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct InstanceNetworkInterfaceSpecificationBuilder {
pub(crate) associate_public_ip_address: ::std::option::Option<bool>,
pub(crate) delete_on_termination: ::std::option::Option<bool>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) device_index: ::std::option::Option<i32>,
pub(crate) groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) ipv6_address_count: ::std::option::Option<i32>,
pub(crate) ipv6_addresses: ::std::option::Option<::std::vec::Vec<crate::types::InstanceIpv6Address>>,
pub(crate) network_interface_id: ::std::option::Option<::std::string::String>,
pub(crate) private_ip_address: ::std::option::Option<::std::string::String>,
pub(crate) private_ip_addresses: ::std::option::Option<::std::vec::Vec<crate::types::PrivateIpAddressSpecification>>,
pub(crate) secondary_private_ip_address_count: ::std::option::Option<i32>,
pub(crate) subnet_id: ::std::option::Option<::std::string::String>,
pub(crate) associate_carrier_ip_address: ::std::option::Option<bool>,
pub(crate) interface_type: ::std::option::Option<::std::string::String>,
pub(crate) network_card_index: ::std::option::Option<i32>,
pub(crate) ipv4_prefixes: ::std::option::Option<::std::vec::Vec<crate::types::Ipv4PrefixSpecificationRequest>>,
pub(crate) ipv4_prefix_count: ::std::option::Option<i32>,
pub(crate) ipv6_prefixes: ::std::option::Option<::std::vec::Vec<crate::types::Ipv6PrefixSpecificationRequest>>,
pub(crate) ipv6_prefix_count: ::std::option::Option<i32>,
pub(crate) primary_ipv6: ::std::option::Option<bool>,
pub(crate) ena_srd_specification: ::std::option::Option<crate::types::EnaSrdSpecificationRequest>,
pub(crate) connection_tracking_specification: ::std::option::Option<crate::types::ConnectionTrackingSpecificationRequest>,
}
impl InstanceNetworkInterfaceSpecificationBuilder {
/// <p>Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is <code>true</code>.</p>
/// <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
pub fn associate_public_ip_address(mut self, input: bool) -> Self {
self.associate_public_ip_address = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is <code>true</code>.</p>
/// <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
pub fn set_associate_public_ip_address(mut self, input: ::std::option::Option<bool>) -> Self {
self.associate_public_ip_address = input;
self
}
/// <p>Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is <code>true</code>.</p>
/// <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
pub fn get_associate_public_ip_address(&self) -> &::std::option::Option<bool> {
&self.associate_public_ip_address
}
/// <p>If set to <code>true</code>, the interface is deleted when the instance is terminated. You can specify <code>true</code> only if creating a new network interface when launching an instance.</p>
pub fn delete_on_termination(mut self, input: bool) -> Self {
self.delete_on_termination = ::std::option::Option::Some(input);
self
}
/// <p>If set to <code>true</code>, the interface is deleted when the instance is terminated. You can specify <code>true</code> only if creating a new network interface when launching an instance.</p>
pub fn set_delete_on_termination(mut self, input: ::std::option::Option<bool>) -> Self {
self.delete_on_termination = input;
self
}
/// <p>If set to <code>true</code>, the interface is deleted when the instance is terminated. You can specify <code>true</code> only if creating a new network interface when launching an instance.</p>
pub fn get_delete_on_termination(&self) -> &::std::option::Option<bool> {
&self.delete_on_termination
}
/// <p>The description of the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The position of the network interface in the attachment order. A primary network interface has a device index of 0.</p>
/// <p>If you specify a network interface when launching an instance, you must specify the device index.</p>
pub fn device_index(mut self, input: i32) -> Self {
self.device_index = ::std::option::Option::Some(input);
self
}
/// <p>The position of the network interface in the attachment order. A primary network interface has a device index of 0.</p>
/// <p>If you specify a network interface when launching an instance, you must specify the device index.</p>
pub fn set_device_index(mut self, input: ::std::option::Option<i32>) -> Self {
self.device_index = input;
self
}
/// <p>The position of the network interface in the attachment order. A primary network interface has a device index of 0.</p>
/// <p>If you specify a network interface when launching an instance, you must specify the device index.</p>
pub fn get_device_index(&self) -> &::std::option::Option<i32> {
&self.device_index
}
/// Appends an item to `groups`.
///
/// To override the contents of this collection use [`set_groups`](Self::set_groups).
///
/// <p>The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.groups.unwrap_or_default();
v.push(input.into());
self.groups = ::std::option::Option::Some(v);
self
}
/// <p>The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn set_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.groups = input;
self
}
/// <p>The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn get_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.groups
}
/// <p>A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.</p>
pub fn ipv6_address_count(mut self, input: i32) -> Self {
self.ipv6_address_count = ::std::option::Option::Some(input);
self
}
/// <p>A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.</p>
pub fn set_ipv6_address_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.ipv6_address_count = input;
self
}
/// <p>A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.</p>
pub fn get_ipv6_address_count(&self) -> &::std::option::Option<i32> {
&self.ipv6_address_count
}
/// Appends an item to `ipv6_addresses`.
///
/// To override the contents of this collection use [`set_ipv6_addresses`](Self::set_ipv6_addresses).
///
/// <p>The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.</p>
pub fn ipv6_addresses(mut self, input: crate::types::InstanceIpv6Address) -> Self {
let mut v = self.ipv6_addresses.unwrap_or_default();
v.push(input);
self.ipv6_addresses = ::std::option::Option::Some(v);
self
}
/// <p>The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.</p>
pub fn set_ipv6_addresses(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstanceIpv6Address>>) -> Self {
self.ipv6_addresses = input;
self
}
/// <p>The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.</p>
pub fn get_ipv6_addresses(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstanceIpv6Address>> {
&self.ipv6_addresses
}
/// <p>The ID of the network interface.</p>
/// <p>If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.</p>
pub fn network_interface_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.network_interface_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the network interface.</p>
/// <p>If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.</p>
pub fn set_network_interface_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.network_interface_id = input;
self
}
/// <p>The ID of the network interface.</p>
/// <p>If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.</p>
pub fn get_network_interface_id(&self) -> &::std::option::Option<::std::string::String> {
&self.network_interface_id
}
/// <p>The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn private_ip_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.private_ip_address = ::std::option::Option::Some(input.into());
self
}
/// <p>The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn set_private_ip_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.private_ip_address = input;
self
}
/// <p>The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn get_private_ip_address(&self) -> &::std::option::Option<::std::string::String> {
&self.private_ip_address
}
/// Appends an item to `private_ip_addresses`.
///
/// To override the contents of this collection use [`set_private_ip_addresses`](Self::set_private_ip_addresses).
///
/// <p>The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn private_ip_addresses(mut self, input: crate::types::PrivateIpAddressSpecification) -> Self {
let mut v = self.private_ip_addresses.unwrap_or_default();
v.push(input);
self.private_ip_addresses = ::std::option::Option::Some(v);
self
}
/// <p>The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn set_private_ip_addresses(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PrivateIpAddressSpecification>>) -> Self {
self.private_ip_addresses = input;
self
}
/// <p>The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn get_private_ip_addresses(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PrivateIpAddressSpecification>> {
&self.private_ip_addresses
}
/// <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn secondary_private_ip_address_count(mut self, input: i32) -> Self {
self.secondary_private_ip_address_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn set_secondary_private_ip_address_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.secondary_private_ip_address_count = input;
self
}
/// <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
pub fn get_secondary_private_ip_address_count(&self) -> &::std::option::Option<i32> {
&self.secondary_private_ip_address_count
}
/// <p>The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn subnet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subnet_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn set_subnet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subnet_id = input;
self
}
/// <p>The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.</p>
pub fn get_subnet_id(&self) -> &::std::option::Option<::std::string::String> {
&self.subnet_id
}
/// <p>Indicates whether to assign a carrier IP address to the network interface.</p>
/// <p>You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see <a href="https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip">Carrier IP address</a> in the <i>Amazon Web Services Wavelength Developer Guide</i>.</p>
pub fn associate_carrier_ip_address(mut self, input: bool) -> Self {
self.associate_carrier_ip_address = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether to assign a carrier IP address to the network interface.</p>
/// <p>You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see <a href="https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip">Carrier IP address</a> in the <i>Amazon Web Services Wavelength Developer Guide</i>.</p>
pub fn set_associate_carrier_ip_address(mut self, input: ::std::option::Option<bool>) -> Self {
self.associate_carrier_ip_address = input;
self
}
/// <p>Indicates whether to assign a carrier IP address to the network interface.</p>
/// <p>You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see <a href="https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip">Carrier IP address</a> in the <i>Amazon Web Services Wavelength Developer Guide</i>.</p>
pub fn get_associate_carrier_ip_address(&self) -> &::std::option::Option<bool> {
&self.associate_carrier_ip_address
}
/// <p>The type of network interface.</p>
/// <p>Valid values: <code>interface</code> | <code>efa</code></p>
pub fn interface_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.interface_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of network interface.</p>
/// <p>Valid values: <code>interface</code> | <code>efa</code></p>
pub fn set_interface_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.interface_type = input;
self
}
/// <p>The type of network interface.</p>
/// <p>Valid values: <code>interface</code> | <code>efa</code></p>
pub fn get_interface_type(&self) -> &::std::option::Option<::std::string::String> {
&self.interface_type
}
/// <p>The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.</p>
/// <p>If you are using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">RequestSpotInstances</a> to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn network_card_index(mut self, input: i32) -> Self {
self.network_card_index = ::std::option::Option::Some(input);
self
}
/// <p>The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.</p>
/// <p>If you are using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">RequestSpotInstances</a> to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn set_network_card_index(mut self, input: ::std::option::Option<i32>) -> Self {
self.network_card_index = input;
self
}
/// <p>The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.</p>
/// <p>If you are using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">RequestSpotInstances</a> to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn get_network_card_index(&self) -> &::std::option::Option<i32> {
&self.network_card_index
}
/// Appends an item to `ipv4_prefixes`.
///
/// To override the contents of this collection use [`set_ipv4_prefixes`](Self::set_ipv4_prefixes).
///
/// <p>The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
pub fn ipv4_prefixes(mut self, input: crate::types::Ipv4PrefixSpecificationRequest) -> Self {
let mut v = self.ipv4_prefixes.unwrap_or_default();
v.push(input);
self.ipv4_prefixes = ::std::option::Option::Some(v);
self
}
/// <p>The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
pub fn set_ipv4_prefixes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Ipv4PrefixSpecificationRequest>>) -> Self {
self.ipv4_prefixes = input;
self
}
/// <p>The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
pub fn get_ipv4_prefixes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Ipv4PrefixSpecificationRequest>> {
&self.ipv4_prefixes
}
/// <p>The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv4Prefix</code> option.</p>
pub fn ipv4_prefix_count(mut self, input: i32) -> Self {
self.ipv4_prefix_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv4Prefix</code> option.</p>
pub fn set_ipv4_prefix_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.ipv4_prefix_count = input;
self
}
/// <p>The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv4Prefix</code> option.</p>
pub fn get_ipv4_prefix_count(&self) -> &::std::option::Option<i32> {
&self.ipv4_prefix_count
}
/// Appends an item to `ipv6_prefixes`.
///
/// To override the contents of this collection use [`set_ipv6_prefixes`](Self::set_ipv6_prefixes).
///
/// <p>The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
pub fn ipv6_prefixes(mut self, input: crate::types::Ipv6PrefixSpecificationRequest) -> Self {
let mut v = self.ipv6_prefixes.unwrap_or_default();
v.push(input);
self.ipv6_prefixes = ::std::option::Option::Some(v);
self
}
/// <p>The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
pub fn set_ipv6_prefixes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Ipv6PrefixSpecificationRequest>>) -> Self {
self.ipv6_prefixes = input;
self
}
/// <p>The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
pub fn get_ipv6_prefixes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Ipv6PrefixSpecificationRequest>> {
&self.ipv6_prefixes
}
/// <p>The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv6Prefix</code> option.</p>
pub fn ipv6_prefix_count(mut self, input: i32) -> Self {
self.ipv6_prefix_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv6Prefix</code> option.</p>
pub fn set_ipv6_prefix_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.ipv6_prefix_count = input;
self
}
/// <p>The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the <code>Ipv6Prefix</code> option.</p>
pub fn get_ipv6_prefix_count(&self) -> &::std::option::Option<i32> {
&self.ipv6_prefix_count
}
/// <p>The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn primary_ipv6(mut self, input: bool) -> Self {
self.primary_ipv6 = ::std::option::Option::Some(input);
self
}
/// <p>The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn set_primary_ipv6(mut self, input: ::std::option::Option<bool>) -> Self {
self.primary_ipv6 = input;
self
}
/// <p>The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a>.</p>
pub fn get_primary_ipv6(&self) -> &::std::option::Option<bool> {
&self.primary_ipv6
}
/// <p>Specifies the ENA Express settings for the network interface that's attached to the instance.</p>
pub fn ena_srd_specification(mut self, input: crate::types::EnaSrdSpecificationRequest) -> Self {
self.ena_srd_specification = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the ENA Express settings for the network interface that's attached to the instance.</p>
pub fn set_ena_srd_specification(mut self, input: ::std::option::Option<crate::types::EnaSrdSpecificationRequest>) -> Self {
self.ena_srd_specification = input;
self
}
/// <p>Specifies the ENA Express settings for the network interface that's attached to the instance.</p>
pub fn get_ena_srd_specification(&self) -> &::std::option::Option<crate::types::EnaSrdSpecificationRequest> {
&self.ena_srd_specification
}
/// <p>A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts">Connection tracking timeouts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
pub fn connection_tracking_specification(mut self, input: crate::types::ConnectionTrackingSpecificationRequest) -> Self {
self.connection_tracking_specification = ::std::option::Option::Some(input);
self
}
/// <p>A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts">Connection tracking timeouts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
pub fn set_connection_tracking_specification(
mut self,
input: ::std::option::Option<crate::types::ConnectionTrackingSpecificationRequest>,
) -> Self {
self.connection_tracking_specification = input;
self
}
/// <p>A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts">Connection tracking timeouts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
pub fn get_connection_tracking_specification(&self) -> &::std::option::Option<crate::types::ConnectionTrackingSpecificationRequest> {
&self.connection_tracking_specification
}
/// Consumes the builder and constructs a [`InstanceNetworkInterfaceSpecification`](crate::types::InstanceNetworkInterfaceSpecification).
pub fn build(self) -> crate::types::InstanceNetworkInterfaceSpecification {
crate::types::InstanceNetworkInterfaceSpecification {
associate_public_ip_address: self.associate_public_ip_address,
delete_on_termination: self.delete_on_termination,
description: self.description,
device_index: self.device_index,
groups: self.groups,
ipv6_address_count: self.ipv6_address_count,
ipv6_addresses: self.ipv6_addresses,
network_interface_id: self.network_interface_id,
private_ip_address: self.private_ip_address,
private_ip_addresses: self.private_ip_addresses,
secondary_private_ip_address_count: self.secondary_private_ip_address_count,
subnet_id: self.subnet_id,
associate_carrier_ip_address: self.associate_carrier_ip_address,
interface_type: self.interface_type,
network_card_index: self.network_card_index,
ipv4_prefixes: self.ipv4_prefixes,
ipv4_prefix_count: self.ipv4_prefix_count,
ipv6_prefixes: self.ipv6_prefixes,
ipv6_prefix_count: self.ipv6_prefix_count,
primary_ipv6: self.primary_ipv6,
ena_srd_specification: self.ena_srd_specification,
connection_tracking_specification: self.connection_tracking_specification,
}
}
}