// =================================================================
//
// * WARNING *
//
// This file is generated!
//
// Changes made to this file will be overwritten. If changes are
// required to the generated code, the service_crategen project
// must be updated to generate the changes.
//
// =================================================================
use std::error::Error;
use std::fmt;
use async_trait::async_trait;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError};
use rusoto_core::proto;
use rusoto_core::request::HttpResponse;
use rusoto_core::signature::SignedRequest;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
impl DirectConnectClient {
fn new_signed_request(&self, http_method: &str, request_uri: &str) -> SignedRequest {
let mut request =
SignedRequest::new(http_method, "directconnect", &self.region, request_uri);
request.set_content_type("application/x-amz-json-1.1".to_owned());
request
}
async fn sign_and_dispatch The ID of the AWS account that owns the virtual private gateway or transit gateway. The ID of the Direct Connect gateway. Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway. For information about how to set the prefixes, see Allowed Prefixes in the AWS Direct Connect User Guide. The ID of the request proposal. The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those AWS Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection. The name of the provisioned connection. The ID of the interconnect on which the connection will be provisioned. The ID of the AWS account of the customer for whom the connection will be provisioned. The dedicated VLAN provisioned to the connection. The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those AWS Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection. The ID of the interconnect or LAG. The name of the hosted connection. The ID of the AWS account ID of the customer for the connection. The tags associated with the connection. The dedicated VLAN provisioned to the hosted connection. The ID of the connection on which the private virtual interface is provisioned. Information about the private virtual interface. The ID of the AWS account that owns the virtual private interface. The ID of the connection on which the public virtual interface is provisioned. Information about the public virtual interface. The ID of the AWS account that owns the public virtual interface. The ID of the connection on which the transit virtual interface is provisioned. Information about the transit virtual interface. The ID of the AWS account that owns the transit virtual interface. The ID of the connection. The ID of the LAG with which to associate the connection. The ID of the hosted connection. The ID of the interconnect or the LAG. The MAC Security (MACsec) CAK to associate with the dedicated connection. You can create the CKN/CAK pair using an industry standard tool. The valid values are 64 hexadecimal characters (0-9, A-E). If you use this request parameter, you must use the The MAC Security (MACsec) CKN to associate with the dedicated connection. You can create the CKN/CAK pair using an industry standard tool. The valid values are 64 hexadecimal characters (0-9, A-E). If you use this request parameter, you must use the The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx). You can use DescribeConnections or DescribeLags to retrieve connection ID. The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection. You can use DescribeConnections or DescribeLags to retrieve the MAC Security (MACsec) secret key. If you use this request parameter, you do not use the The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx). The MAC Security (MACsec) security keys associated with the dedicated connection. The ID of the LAG or connection. The ID of the virtual interface. Information about the associated gateway. The ID of the associated gateway. The ID of the AWS account that owns the associated virtual private gateway or transit gateway. The Region where the associated gateway is located. The type of associated gateway. Information about a BGP peer. The address family for the BGP peer. The IP address assigned to the Amazon interface. The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters. The Direct Connect endpoint on which the BGP peer terminates. The ID of the BGP peer. The state of the BGP peer. The following are the possible values: ckn
request parameter and not use the secretARN
request parameter.cak
request parameter and not use the secretARN
request parameter.ckn
and cak
request parameters.
verifying
: The BGP peering addresses or ASN require validation before the BGP peer can be created. This state applies only to public virtual interfaces.pending
: The BGP peer is created, and remains in this state until it is ready to be established.available
: The BGP peer is ready to be established.deleting
: The BGP peer is being deleted.deleted
: The BGP peer is deleted and cannot be established.
The status of the BGP peer. The following are the possible values:
up
: The BGP peer is established. This state does not indicate the state of the routing function. Ensure that you are receiving routes over the BGP session.
down
: The BGP peer is down.
unknown
: The BGP peer status is not available.
The IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe ID of the hosted connection.
#[serde(rename = "connectionId")] pub connection_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ConfirmConnectionResponse { ///The state of the connection. The following are the possible values:
ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
requested
: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
pending
: The connection has been approved and is being initialized.
available
: The network link is up and the connection is ready for use.
down
: The network link is down.
deleting
: The connection is being deleted.
deleted
: The connection has been deleted.
rejected
: A hosted connection in the ordering
state enters the rejected
state if it is deleted by the customer.
unknown
: The state of the connection is not available.
The ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe ID of the virtual private gateway.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] pub virtual_interface_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ConfirmPrivateVirtualInterfaceResponse { ///The state of the virtual interface. The following are the possible values:
confirming
: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
verifying
: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
pending
: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
available
: A virtual interface that is able to forward traffic.
down
: A virtual interface that is BGP down.
deleting
: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
deleted
: A virtual interface that cannot forward traffic.
rejected
: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming
state is deleted by the virtual interface owner, the virtual interface enters the Rejected
state.
unknown
: The state of the virtual interface is not available.
The ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] pub virtual_interface_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ConfirmPublicVirtualInterfaceResponse { ///The state of the virtual interface. The following are the possible values:
confirming
: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
verifying
: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
pending
: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
available
: A virtual interface that is able to forward traffic.
down
: A virtual interface that is BGP down.
deleting
: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
deleted
: A virtual interface that cannot forward traffic.
rejected
: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming
state is deleted by the virtual interface owner, the virtual interface enters the Rejected
state.
unknown
: The state of the virtual interface is not available.
The ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] pub direct_connect_gateway_id: String, ///The ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] pub virtual_interface_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ConfirmTransitVirtualInterfaceResponse { ///The state of the virtual interface. The following are the possible values:
confirming
: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
verifying
: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
pending
: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
available
: A virtual interface that is able to forward traffic.
down
: A virtual interface that is BGP down.
deleting
: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
deleted
: A virtual interface that cannot forward traffic.
rejected
: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming
state is deleted by the virtual interface owner, the virtual interface enters the Rejected
state.
unknown
: The state of the virtual interface is not available.
Information about an AWS Direct Connect connection.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Connection { ///The Direct Connect endpoint on which the physical connection terminates.
#[serde(rename = "awsDevice")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device: OptionThe Direct Connect endpoint on which the physical connection terminates.
#[serde(rename = "awsDeviceV2")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device_v2: OptionThe bandwidth of the connection.
#[serde(rename = "bandwidth")] #[serde(skip_serializing_if = "Option::is_none")] pub bandwidth: OptionThe ID of the connection.
#[serde(rename = "connectionId")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_id: OptionThe name of the connection.
#[serde(rename = "connectionName")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_name: OptionThe state of the connection. The following are the possible values:
ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
requested
: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
pending
: The connection has been approved and is being initialized.
available
: The network link is up and the connection is ready for use.
down
: The network link is down.
deleting
: The connection is being deleted.
deleted
: The connection has been deleted.
rejected
: A hosted connection in the ordering
state enters the rejected
state if it is deleted by the customer.
unknown
: The state of the connection is not available.
The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
#[serde(rename = "hasLogicalRedundancy")] #[serde(skip_serializing_if = "Option::is_none")] pub has_logical_redundancy: OptionIndicates whether jumbo frames (9001 MTU) are supported.
#[serde(rename = "jumboFrameCapable")] #[serde(skip_serializing_if = "Option::is_none")] pub jumbo_frame_capable: OptionThe ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe time of the most recent call to DescribeLoa for this connection.
#[serde(rename = "loaIssueTime")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_issue_time: OptionThe location of the connection.
#[serde(rename = "location")] #[serde(skip_serializing_if = "Option::is_none")] pub location: OptionIndicates whether the connection supports MAC Security (MACsec).
#[serde(rename = "macSecCapable")] #[serde(skip_serializing_if = "Option::is_none")] pub mac_sec_capable: OptionThe MAC Security (MACsec) security keys associated with the connection.
#[serde(rename = "macSecKeys")] #[serde(skip_serializing_if = "Option::is_none")] pub mac_sec_keys: OptionThe ID of the AWS account that owns the connection.
#[serde(rename = "ownerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub owner_account: OptionThe name of the AWS Direct Connect service provider associated with the connection.
#[serde(rename = "partnerName")] #[serde(skip_serializing_if = "Option::is_none")] pub partner_name: OptionThe MAC Security (MACsec) port link status of the connection.
The valid values are Encryption Up
, which means that there is an active Connection Key Name, or Encryption Down
.
The name of the service provider associated with the connection.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe AWS Region where the connection is located.
#[serde(rename = "region")] #[serde(skip_serializing_if = "Option::is_none")] pub region: OptionThe tags associated with the connection.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe ID of the VLAN.
#[serde(rename = "vlan")] #[serde(skip_serializing_if = "Option::is_none")] pub vlan: OptionThe connections.
#[serde(rename = "connections")] #[serde(skip_serializing_if = "Option::is_none")] pub connections: OptionInformation about the BGP peer.
#[serde(rename = "newBGPPeer")] #[serde(skip_serializing_if = "Option::is_none")] pub new_bgp_peer: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionThe virtual interface.
#[serde(rename = "virtualInterface")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface: OptionThe bandwidth of the connection.
#[serde(rename = "bandwidth")] pub bandwidth: String, ///The name of the connection.
#[serde(rename = "connectionName")] pub connection_name: String, ///The ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe location of the connection.
#[serde(rename = "location")] pub location: String, ///The name of the service provider associated with the requested connection.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionIndicates whether you want the connection to support MAC Security (MACsec).
MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the AWS Direct Connect User Guide.
#[serde(rename = "requestMACSec")] #[serde(skip_serializing_if = "Option::is_none")] pub request_mac_sec: OptionThe tags to associate with the lag.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
#[serde(rename = "addAllowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub add_allowed_prefixes_to_direct_connect_gateway: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] pub direct_connect_gateway_id: String, ///The ID of the AWS account that owns the Direct Connect gateway.
#[serde(rename = "directConnectGatewayOwnerAccount")] pub direct_connect_gateway_owner_account: String, ///The ID of the virtual private gateway or transit gateway.
#[serde(rename = "gatewayId")] pub gateway_id: String, ///The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
#[serde(rename = "removeAllowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub remove_allowed_prefixes_to_direct_connect_gateway: OptionInformation about the Direct Connect gateway proposal.
#[serde(rename = "directConnectGatewayAssociationProposal")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_association_proposal: OptionThe Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the AWS Direct Connect User Guide.
#[serde(rename = "addAllowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub add_allowed_prefixes_to_direct_connect_gateway: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] pub direct_connect_gateway_id: String, ///The ID of the virtual private gateway or transit gateway.
#[serde(rename = "gatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub gateway_id: OptionThe ID of the virtual private gateway.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionThe association to be created.
#[serde(rename = "directConnectGatewayAssociation")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_association: OptionThe autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
#[serde(rename = "amazonSideAsn")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_side_asn: OptionThe name of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayName")] pub direct_connect_gateway_name: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateDirectConnectGatewayResult { ///The Direct Connect gateway.
#[serde(rename = "directConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway: OptionThe port bandwidth, in Gbps. The possible values are 1 and 10.
#[serde(rename = "bandwidth")] pub bandwidth: String, ///The name of the interconnect.
#[serde(rename = "interconnectName")] pub interconnect_name: String, ///The ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe location of the interconnect.
#[serde(rename = "location")] pub location: String, ///The name of the service provider associated with the interconnect.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe tags to associate with the interconnect.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe tags to associate with the automtically created LAGs.
#[serde(rename = "childConnectionTags")] #[serde(skip_serializing_if = "Option::is_none")] pub child_connection_tags: OptionThe ID of an existing dedicated connection to migrate to the LAG.
#[serde(rename = "connectionId")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_id: OptionThe bandwidth of the individual physical dedicated connections bundled by the LAG. The possible values are 1Gbps and 10Gbps.
#[serde(rename = "connectionsBandwidth")] pub connections_bandwidth: String, ///The name of the LAG.
#[serde(rename = "lagName")] pub lag_name: String, ///The location for the LAG.
#[serde(rename = "location")] pub location: String, ///The number of physical dedicated connections initially provisioned and bundled by the LAG.
#[serde(rename = "numberOfConnections")] pub number_of_connections: i64, ///The name of the service provider associated with the LAG.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionIndicates whether the connection will support MAC Security (MACsec).
All connections in the LAG must be capable of supporting MAC Security (MACsec). For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the AWS Direct Connect User Guide.
The tags to associate with the LAG.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, ///Information about the private virtual interface.
#[serde(rename = "newPrivateVirtualInterface")] pub new_private_virtual_interface: NewPrivateVirtualInterface, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreatePublicVirtualInterfaceRequest { ///The ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, ///Information about the public virtual interface.
#[serde(rename = "newPublicVirtualInterface")] pub new_public_virtual_interface: NewPublicVirtualInterface, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateTransitVirtualInterfaceRequest { ///The ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, ///Information about the transit virtual interface.
#[serde(rename = "newTransitVirtualInterface")] pub new_transit_virtual_interface: NewTransitVirtualInterface, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateTransitVirtualInterfaceResult { #[serde(rename = "virtualInterface")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
#[serde(rename = "asn")] #[serde(skip_serializing_if = "Option::is_none")] pub asn: OptionThe ID of the BGP peer.
#[serde(rename = "bgpPeerId")] #[serde(skip_serializing_if = "Option::is_none")] pub bgp_peer_id: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionThe virtual interface.
#[serde(rename = "virtualInterface")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface: OptionThe ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteDirectConnectGatewayAssociationProposalRequest { ///The ID of the proposal.
#[serde(rename = "proposalId")] pub proposal_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteDirectConnectGatewayAssociationProposalResult { ///The ID of the associated gateway.
#[serde(rename = "directConnectGatewayAssociationProposal")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_association_proposal: OptionThe ID of the Direct Connect gateway association.
#[serde(rename = "associationId")] #[serde(skip_serializing_if = "Option::is_none")] pub association_id: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe ID of the virtual private gateway.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionInformation about the deleted association.
#[serde(rename = "directConnectGatewayAssociation")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_association: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] pub direct_connect_gateway_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteDirectConnectGatewayResult { ///The Direct Connect gateway.
#[serde(rename = "directConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway: OptionThe ID of the interconnect.
#[serde(rename = "interconnectId")] pub interconnect_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteInterconnectResponse { ///The state of the interconnect. The following are the possible values:
requested
: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
pending
: The interconnect is approved, and is being initialized.
available
: The network link is up, and the interconnect is ready for use.
down
: The network link is down.
deleting
: The interconnect is being deleted.
deleted
: The interconnect is deleted.
unknown
: The state of the interconnect is not available.
The ID of the LAG.
#[serde(rename = "lagId")] pub lag_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteVirtualInterfaceRequest { ///The ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] pub virtual_interface_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteVirtualInterfaceResponse { ///The state of the virtual interface. The following are the possible values:
confirming
: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
verifying
: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
pending
: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
available
: A virtual interface that is able to forward traffic.
down
: A virtual interface that is BGP down.
deleting
: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
deleted
: A virtual interface that cannot forward traffic.
rejected
: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming
state is deleted by the virtual interface owner, the virtual interface enters the Rejected
state.
unknown
: The state of the virtual interface is not available.
The ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, ///The standard media type for the LOA-CFA document. The only supported value is application/pdf.
#[serde(rename = "loaContentType")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_content_type: OptionThe name of the APN partner or service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe Letter of Authorization - Connecting Facility Assignment (LOA-CFA).
#[serde(rename = "loa")] #[serde(skip_serializing_if = "Option::is_none")] pub loa: OptionThe ID of the interconnect.
#[serde(rename = "interconnectId")] pub interconnect_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeConnectionsRequest { ///The ID of the connection.
#[serde(rename = "connectionId")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_id: OptionThe ID of the associated gateway.
#[serde(rename = "associatedGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub associated_gateway_id: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are returned.
The token for the next page of results.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the proposal.
#[serde(rename = "proposalId")] #[serde(skip_serializing_if = "Option::is_none")] pub proposal_id: OptionDescribes the Direct Connect gateway association proposals.
#[serde(rename = "directConnectGatewayAssociationProposals")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_association_proposals: OptionThe token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The ID of the associated gateway.
#[serde(rename = "associatedGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub associated_gateway_id: OptionThe ID of the Direct Connect gateway association.
#[serde(rename = "associationId")] #[serde(skip_serializing_if = "Option::is_none")] pub association_id: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are returned.
The token provided in the previous call to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the virtual private gateway or transit gateway.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionInformation about the associations.
#[serde(rename = "directConnectGatewayAssociations")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_associations: OptionThe token to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are returned.
The token provided in the previous call to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionThe attachments.
#[serde(rename = "directConnectGatewayAttachments")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_attachments: OptionThe token to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are returned.
The token provided in the previous call to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe Direct Connect gateways.
#[serde(rename = "directConnectGateways")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateways: OptionThe token to retrieve the next page.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe ID of the interconnect or LAG.
#[serde(rename = "connectionId")] pub connection_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeInterconnectLoaRequest { ///The ID of the interconnect.
#[serde(rename = "interconnectId")] pub interconnect_id: String, ///The standard media type for the LOA-CFA document. The only supported value is application/pdf.
#[serde(rename = "loaContentType")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_content_type: OptionThe name of the service provider who establishes connectivity on your behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe Letter of Authorization - Connecting Facility Assignment (LOA-CFA).
#[serde(rename = "loa")] #[serde(skip_serializing_if = "Option::is_none")] pub loa: OptionThe ID of the interconnect.
#[serde(rename = "interconnectId")] #[serde(skip_serializing_if = "Option::is_none")] pub interconnect_id: OptionThe ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe ID of a connection, LAG, or interconnect.
#[serde(rename = "connectionId")] pub connection_id: String, ///The standard media type for the LOA-CFA document. The only supported value is application/pdf.
#[serde(rename = "loaContentType")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_content_type: OptionThe name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe Amazon Resource Names (ARNs) of the resources.
#[serde(rename = "resourceArns")] pub resource_arns: VecInformation about the tags.
#[serde(rename = "resourceTags")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_tags: OptionThe ID of the connection.
#[serde(rename = "connectionId")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_id: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionInformation about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateway or transit gateways.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DirectConnectGateway { ///The autonomous system number (ASN) for the Amazon side of the connection.
#[serde(rename = "amazonSideAsn")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_side_asn: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe name of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayName")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_name: OptionThe state of the Direct Connect gateway. The following are the possible values:
pending
: The initial state after calling CreateDirectConnectGateway.
available
: The Direct Connect gateway is ready for use.
deleting
: The initial state after calling DeleteDirectConnectGateway.
deleted
: The Direct Connect gateway is deleted and cannot pass traffic.
The ID of the AWS account that owns the Direct Connect gateway.
#[serde(rename = "ownerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub owner_account: OptionThe error message if the state of an object failed to advance.
#[serde(rename = "stateChangeError")] #[serde(skip_serializing_if = "Option::is_none")] pub state_change_error: OptionInformation about an association between a Direct Connect gateway and a virtual private gateway or transit gateway.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DirectConnectGatewayAssociation { ///The Amazon VPC prefixes to advertise to the Direct Connect gateway.
#[serde(rename = "allowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub allowed_prefixes_to_direct_connect_gateway: OptionInformation about the associated gateway.
#[serde(rename = "associatedGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub associated_gateway: OptionThe ID of the Direct Connect gateway association.
#[serde(rename = "associationId")] #[serde(skip_serializing_if = "Option::is_none")] pub association_id: OptionThe state of the association. The following are the possible values:
associating
: The initial state after calling CreateDirectConnectGatewayAssociation.
associated
: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling DeleteDirectConnectGatewayAssociation.
disassociated
: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped.
The ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe ID of the AWS account that owns the associated gateway.
#[serde(rename = "directConnectGatewayOwnerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_owner_account: OptionThe error message if the state of an object failed to advance.
#[serde(rename = "stateChangeError")] #[serde(skip_serializing_if = "Option::is_none")] pub state_change_error: OptionThe ID of the virtual private gateway. Applies only to private virtual interfaces.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionThe ID of the AWS account that owns the virtual private gateway.
#[serde(rename = "virtualGatewayOwnerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_owner_account: OptionThe AWS Region where the virtual private gateway is located.
#[serde(rename = "virtualGatewayRegion")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_region: OptionInformation about the proposal request to attach a virtual private gateway to a Direct Connect gateway.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DirectConnectGatewayAssociationProposal { ///Information about the associated gateway.
#[serde(rename = "associatedGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub associated_gateway: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe ID of the AWS account that owns the Direct Connect gateway.
#[serde(rename = "directConnectGatewayOwnerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_owner_account: OptionThe existing Amazon VPC prefixes advertised to the Direct Connect gateway.
#[serde(rename = "existingAllowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub existing_allowed_prefixes_to_direct_connect_gateway: OptionThe ID of the association proposal.
#[serde(rename = "proposalId")] #[serde(skip_serializing_if = "Option::is_none")] pub proposal_id: OptionThe state of the proposal. The following are possible values:
accepted
: The proposal has been accepted. The Direct Connect gateway association is available to use in this state.
deleted
: The proposal has been deleted by the owner that made the proposal. The Direct Connect gateway association cannot be used in this state.
requested
: The proposal has been requested. The Direct Connect gateway association cannot be used in this state.
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
#[serde(rename = "requestedAllowedPrefixesToDirectConnectGateway")] #[serde(skip_serializing_if = "Option::is_none")] pub requested_allowed_prefixes_to_direct_connect_gateway: OptionInformation about an attachment between a Direct Connect gateway and a virtual interface.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DirectConnectGatewayAttachment { ///The state of the attachment. The following are the possible values:
attaching
: The initial state after a virtual interface is created using the Direct Connect gateway.
attached
: The Direct Connect gateway and virtual interface are attached and ready to pass traffic.
detaching
: The initial state after calling DeleteVirtualInterface.
detached
: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
The type of attachment.
#[serde(rename = "attachmentType")] #[serde(skip_serializing_if = "Option::is_none")] pub attachment_type: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe error message if the state of an object failed to advance.
#[serde(rename = "stateChangeError")] #[serde(skip_serializing_if = "Option::is_none")] pub state_change_error: OptionThe ID of the virtual interface.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionThe ID of the AWS account that owns the virtual interface.
#[serde(rename = "virtualInterfaceOwnerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_owner_account: OptionThe AWS Region where the virtual interface is located.
#[serde(rename = "virtualInterfaceRegion")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_region: OptionThe ID of the connection.
#[serde(rename = "connectionId")] pub connection_id: String, ///The ID of the LAG.
#[serde(rename = "lagId")] pub lag_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DisassociateMacSecKeyRequest { ///The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use DescribeConnections or DescribeLags to retrieve connection ID.
#[serde(rename = "connectionId")] pub connection_id: String, ///The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key.
You can use DescribeConnections to retrieve the ARN of the MAC Security (MACsec) secret key.
#[serde(rename = "secretARN")] pub secret_arn: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DisassociateMacSecKeyResponse { ///The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
#[serde(rename = "connectionId")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_id: OptionThe MAC Security (MACsec) security keys no longer associated with the dedicated connection.
#[serde(rename = "macSecKeys")] #[serde(skip_serializing_if = "Option::is_none")] pub mac_sec_keys: OptionInformation about an interconnect.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Interconnect { ///The Direct Connect endpoint on which the physical connection terminates.
#[serde(rename = "awsDevice")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device: OptionThe Direct Connect endpoint on which the physical connection terminates.
#[serde(rename = "awsDeviceV2")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device_v2: OptionThe bandwidth of the connection.
#[serde(rename = "bandwidth")] #[serde(skip_serializing_if = "Option::is_none")] pub bandwidth: OptionIndicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
#[serde(rename = "hasLogicalRedundancy")] #[serde(skip_serializing_if = "Option::is_none")] pub has_logical_redundancy: OptionThe ID of the interconnect.
#[serde(rename = "interconnectId")] #[serde(skip_serializing_if = "Option::is_none")] pub interconnect_id: OptionThe name of the interconnect.
#[serde(rename = "interconnectName")] #[serde(skip_serializing_if = "Option::is_none")] pub interconnect_name: OptionThe state of the interconnect. The following are the possible values:
requested
: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
pending
: The interconnect is approved, and is being initialized.
available
: The network link is up, and the interconnect is ready for use.
down
: The network link is down.
deleting
: The interconnect is being deleted.
deleted
: The interconnect is deleted.
unknown
: The state of the interconnect is not available.
Indicates whether jumbo frames (9001 MTU) are supported.
#[serde(rename = "jumboFrameCapable")] #[serde(skip_serializing_if = "Option::is_none")] pub jumbo_frame_capable: OptionThe ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe time of the most recent call to DescribeLoa for this connection.
#[serde(rename = "loaIssueTime")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_issue_time: OptionThe location of the connection.
#[serde(rename = "location")] #[serde(skip_serializing_if = "Option::is_none")] pub location: OptionThe name of the service provider associated with the interconnect.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe AWS Region where the connection is located.
#[serde(rename = "region")] #[serde(skip_serializing_if = "Option::is_none")] pub region: OptionThe tags associated with the interconnect.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe interconnects.
#[serde(rename = "interconnects")] #[serde(skip_serializing_if = "Option::is_none")] pub interconnects: OptionInformation about a link aggregation group (LAG).
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Lag { ///Indicates whether the LAG can host other connections.
#[serde(rename = "allowsHostedConnections")] #[serde(skip_serializing_if = "Option::is_none")] pub allows_hosted_connections: OptionThe AWS Direct Connect endpoint that hosts the LAG.
#[serde(rename = "awsDevice")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device: OptionThe AWS Direct Connect endpoint that hosts the LAG.
#[serde(rename = "awsDeviceV2")] #[serde(skip_serializing_if = "Option::is_none")] pub aws_device_v2: OptionThe connections bundled by the LAG.
#[serde(rename = "connections")] #[serde(skip_serializing_if = "Option::is_none")] pub connections: OptionThe individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and 10Gbps.
#[serde(rename = "connectionsBandwidth")] #[serde(skip_serializing_if = "Option::is_none")] pub connections_bandwidth: OptionThe LAG MAC Security (MACsec) encryption mode.
The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
#[serde(rename = "hasLogicalRedundancy")] #[serde(skip_serializing_if = "Option::is_none")] pub has_logical_redundancy: OptionIndicates whether jumbo frames (9001 MTU) are supported.
#[serde(rename = "jumboFrameCapable")] #[serde(skip_serializing_if = "Option::is_none")] pub jumbo_frame_capable: OptionThe ID of the LAG.
#[serde(rename = "lagId")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_id: OptionThe name of the LAG.
#[serde(rename = "lagName")] #[serde(skip_serializing_if = "Option::is_none")] pub lag_name: OptionThe state of the LAG. The following are the possible values:
requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of Authorization (LOA) is available.
pending
: The LAG has been approved and is being initialized.
available
: The network link is established and the LAG is ready for use.
down
: The network link is down.
deleting
: The LAG is being deleted.
deleted
: The LAG is deleted.
unknown
: The state of the LAG is not available.
The location of the LAG.
#[serde(rename = "location")] #[serde(skip_serializing_if = "Option::is_none")] pub location: OptionIndicates whether the LAG supports MAC Security (MACsec).
#[serde(rename = "macSecCapable")] #[serde(skip_serializing_if = "Option::is_none")] pub mac_sec_capable: OptionThe MAC Security (MACsec) security keys associated with the LAG.
#[serde(rename = "macSecKeys")] #[serde(skip_serializing_if = "Option::is_none")] pub mac_sec_keys: OptionThe minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
#[serde(rename = "minimumLinks")] #[serde(skip_serializing_if = "Option::is_none")] pub minimum_links: OptionThe number of physical dedicated connections bundled by the LAG, up to a maximum of 10.
#[serde(rename = "numberOfConnections")] #[serde(skip_serializing_if = "Option::is_none")] pub number_of_connections: OptionThe ID of the AWS account that owns the LAG.
#[serde(rename = "ownerAccount")] #[serde(skip_serializing_if = "Option::is_none")] pub owner_account: OptionThe name of the service provider associated with the LAG.
#[serde(rename = "providerName")] #[serde(skip_serializing_if = "Option::is_none")] pub provider_name: OptionThe AWS Region where the connection is located.
#[serde(rename = "region")] #[serde(skip_serializing_if = "Option::is_none")] pub region: OptionThe tags associated with the LAG.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe LAGs.
#[serde(rename = "lags")] #[serde(skip_serializing_if = "Option::is_none")] pub lags: OptionThe BGP peers that were placed in the DOWN state during the virtual interface failover test.
#[serde(rename = "bgpPeers")] #[serde(skip_serializing_if = "Option::is_none")] pub bgp_peers: OptionThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are returned.
The token for the next page of results.
#[serde(rename = "nextToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_token: OptionThe status of the virtual interface failover test.
#[serde(rename = "status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: OptionThe ID of the virtual interface failover test.
#[serde(rename = "testId")] #[serde(skip_serializing_if = "Option::is_none")] pub test_id: OptionThe ID of the virtual interface that was tested.
#[serde(rename = "virtualInterfaceId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_id: OptionThe token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The ID of the tested virtual interface.
#[serde(rename = "virtualInterfaceTestHistory")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_test_history: OptionInformation about a Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Loa { ///The binary contents of the LOA-CFA document.
#[serde(rename = "loaContent")] #[serde( deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob", serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob", default )] #[serde(skip_serializing_if = "Option::is_none")] pub loa_content: OptionThe standard media type for the LOA-CFA document. The only supported value is application/pdf.
#[serde(rename = "loaContentType")] #[serde(skip_serializing_if = "Option::is_none")] pub loa_content_type: OptionInformation about an AWS Direct Connect location.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Location { ///The available MAC Security (MACsec) port speeds for the location.
#[serde(rename = "availableMacSecPortSpeeds")] #[serde(skip_serializing_if = "Option::is_none")] pub available_mac_sec_port_speeds: OptionThe available port speeds for the location.
#[serde(rename = "availablePortSpeeds")] #[serde(skip_serializing_if = "Option::is_none")] pub available_port_speeds: OptionThe name of the service provider for the location.
#[serde(rename = "availableProviders")] #[serde(skip_serializing_if = "Option::is_none")] pub available_providers: OptionThe code for the location.
#[serde(rename = "locationCode")] #[serde(skip_serializing_if = "Option::is_none")] pub location_code: OptionThe name of the location. This includes the name of the colocation partner and the physical site of the building.
#[serde(rename = "locationName")] #[serde(skip_serializing_if = "Option::is_none")] pub location_name: OptionThe AWS Region for the location.
#[serde(rename = "region")] #[serde(skip_serializing_if = "Option::is_none")] pub region: OptionThe locations.
#[serde(rename = "locations")] #[serde(skip_serializing_if = "Option::is_none")] pub locations: OptionInformation about the MAC Security (MACsec) secret key.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct MacSecKey { ///The Connection Key Name (CKN) for the MAC Security secret key.
#[serde(rename = "ckn")] #[serde(skip_serializing_if = "Option::is_none")] pub ckn: OptionThe Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key.
#[serde(rename = "secretARN")] #[serde(skip_serializing_if = "Option::is_none")] pub secret_arn: OptionThe date that the MAC Security (MACsec) secret key takes effect. The value is displayed in UTC format.
#[serde(rename = "startOn")] #[serde(skip_serializing_if = "Option::is_none")] pub start_on: OptionThe state of the MAC Security (MACsec) secret key.
The possible values are:
associating
: The MAC Security (MACsec) secret key is being validated and not yet associated with the connection or LAG.
associated
: The MAC Security (MACsec) secret key is validated and associated with the connection or LAG.
disassociating
: The MAC Security (MACsec) secret key is being disassociated from the connection or LAG
disassociated
: The MAC Security (MACsec) secret key is no longer associated with the connection or LAG.
Information about a new BGP peer.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewBGPPeer { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
#[serde(rename = "asn")] #[serde(skip_serializing_if = "Option::is_none")] pub asn: OptionThe authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionInformation about a private virtual interface.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewPrivateVirtualInterface { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] pub asn: i64, ///The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
#[serde(rename = "mtu")] #[serde(skip_serializing_if = "Option::is_none")] pub mtu: OptionThe tags associated with the private virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe ID of the virtual private gateway.
#[serde(rename = "virtualGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_gateway_id: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] pub virtual_interface_name: String, ///The ID of the VLAN.
#[serde(rename = "vlan")] pub vlan: i64, } ///Information about a private virtual interface to be provisioned on a connection.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewPrivateVirtualInterfaceAllocation { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] pub asn: i64, ///The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
#[serde(rename = "mtu")] #[serde(skip_serializing_if = "Option::is_none")] pub mtu: OptionThe tags associated with the private virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] pub virtual_interface_name: String, ///The ID of the VLAN.
#[serde(rename = "vlan")] pub vlan: i64, } ///Information about a public virtual interface.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewPublicVirtualInterface { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] pub asn: i64, ///The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.
#[serde(rename = "routeFilterPrefixes")] #[serde(skip_serializing_if = "Option::is_none")] pub route_filter_prefixes: OptionThe tags associated with the public virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] pub virtual_interface_name: String, ///The ID of the VLAN.
#[serde(rename = "vlan")] pub vlan: i64, } ///Information about a public virtual interface to be provisioned on a connection.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewPublicVirtualInterfaceAllocation { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] pub asn: i64, ///The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.
#[serde(rename = "routeFilterPrefixes")] #[serde(skip_serializing_if = "Option::is_none")] pub route_filter_prefixes: OptionThe tags associated with the public virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] pub virtual_interface_name: String, ///The ID of the VLAN.
#[serde(rename = "vlan")] pub vlan: i64, } ///Information about a transit virtual interface.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewTransitVirtualInterface { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] #[serde(skip_serializing_if = "Option::is_none")] pub asn: OptionThe authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe ID of the Direct Connect gateway.
#[serde(rename = "directConnectGatewayId")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_connect_gateway_id: OptionThe maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
#[serde(rename = "mtu")] #[serde(skip_serializing_if = "Option::is_none")] pub mtu: OptionThe tags associated with the transitive virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_name: OptionThe ID of the VLAN.
#[serde(rename = "vlan")] #[serde(skip_serializing_if = "Option::is_none")] pub vlan: OptionInformation about a transit virtual interface to be provisioned on a connection.
#[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct NewTransitVirtualInterfaceAllocation { ///The address family for the BGP peer.
#[serde(rename = "addressFamily")] #[serde(skip_serializing_if = "Option::is_none")] pub address_family: OptionThe IP address assigned to the Amazon interface.
#[serde(rename = "amazonAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub amazon_address: OptionThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
#[serde(rename = "asn")] #[serde(skip_serializing_if = "Option::is_none")] pub asn: OptionThe authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
#[serde(rename = "authKey")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_key: OptionThe IP address assigned to the customer interface.
#[serde(rename = "customerAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_address: OptionThe maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
#[serde(rename = "mtu")] #[serde(skip_serializing_if = "Option::is_none")] pub mtu: OptionThe tags associated with the transitive virtual interface.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionThe name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
#[serde(rename = "virtualInterfaceName")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_name: OptionThe ID of the VLAN.
#[serde(rename = "vlan")] #[serde(skip_serializing_if = "Option::is_none")] pub vlan: OptionInformation about a tag associated with an AWS Direct Connect resource.
#[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ResourceTag { ///The Amazon Resource Name (ARN) of the resource.
#[serde(rename = "resourceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_arn: OptionThe tags.
#[serde(rename = "tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: OptionInformation about a route filter prefix that a customer can advertise through Border Gateway Protocol (BGP) over a public virtual interface.
#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct RouteFilterPrefix { ///The CIDR block for the advertised route. Separate multiple routes using commas. An IPv6 CIDR must use /64 or shorter.
#[serde(rename = "cidr")] #[serde(skip_serializing_if = "Option::is_none")] pub cidr: OptionThe BGP peers to place in the DOWN state.
#[serde(rename = "bgpPeers")] #[serde(skip_serializing_if = "Option::is_none")] pub bgp_peers: OptionThe time in minutes that the virtual interface failover test will last.
Maximum value: 180 minutes (3 hours).
Default: 180 minutes (3 hours).
#[serde(rename = "testDurationInMinutes")] #[serde(skip_serializing_if = "Option::is_none")] pub test_duration_in_minutes: OptionThe ID of the virtual interface you want to test.
#[serde(rename = "virtualInterfaceId")] pub virtual_interface_id: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct StartBgpFailoverTestResponse { ///Information about the virtual interface failover test.
#[serde(rename = "virtualInterfaceTest")] #[serde(skip_serializing_if = "Option::is_none")] pub virtual_interface_test: Option