pub struct Client { /* private fields */ }
Expand description
Client for AWS Direct Connect
Client for invoking operations on AWS Direct Connect. Each operation on AWS Direct Connect is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_directconnect::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_directconnect::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AcceptDirectConnectGatewayAssociationProposal
operation has
a Client::accept_direct_connect_gateway_association_proposal
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.accept_direct_connect_gateway_association_proposal()
.direct_connect_gateway_id("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn accept_direct_connect_gateway_association_proposal(
&self,
) -> AcceptDirectConnectGatewayAssociationProposalFluentBuilder
pub fn accept_direct_connect_gateway_association_proposal( &self, ) -> AcceptDirectConnectGatewayAssociationProposalFluentBuilder
Constructs a fluent builder for the AcceptDirectConnectGatewayAssociationProposal
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway.
proposal_id(impl Into<String>)
/set_proposal_id(Option<String>)
:
required: trueThe ID of the request proposal.
associated_gateway_owner_account(impl Into<String>)
/set_associated_gateway_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account that owns the virtual private gateway or transit gateway.
override_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_override_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseOverrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
- On success, responds with
AcceptDirectConnectGatewayAssociationProposalOutput
with field(s):direct_connect_gateway_association(Option<DirectConnectGatewayAssociation>)
:Information about an association between a Direct Connect gateway and a virtual gateway or transit gateway.
- On failure, responds with
SdkError<AcceptDirectConnectGatewayAssociationProposalError>
Source§impl Client
impl Client
Sourcepub fn allocate_connection_on_interconnect(
&self,
) -> AllocateConnectionOnInterconnectFluentBuilder
👎Deprecated
pub fn allocate_connection_on_interconnect( &self, ) -> AllocateConnectionOnInterconnectFluentBuilder
Constructs a fluent builder for the AllocateConnectionOnInterconnect
operation.
- The fluent builder is configurable:
bandwidth(impl Into<String>)
/set_bandwidth(Option<String>)
:
required: trueThe bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: trueThe name of the provisioned connection.
owner_account(impl Into<String>)
/set_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account of the customer for whom the connection will be provisioned.
interconnect_id(impl Into<String>)
/set_interconnect_id(Option<String>)
:
required: trueThe ID of the interconnect on which the connection will be provisioned.
vlan(i32)
/set_vlan(Option<i32>)
:
required: trueThe dedicated VLAN provisioned to the connection.
- On success, responds with
AllocateConnectionOnInterconnectOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<AllocateConnectionOnInterconnectError>
Source§impl Client
impl Client
Sourcepub fn allocate_hosted_connection(
&self,
) -> AllocateHostedConnectionFluentBuilder
pub fn allocate_hosted_connection( &self, ) -> AllocateHostedConnectionFluentBuilder
Constructs a fluent builder for the AllocateHostedConnection
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the interconnect or LAG.
owner_account(impl Into<String>)
/set_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account ID of the customer for the connection.
bandwidth(impl Into<String>)
/set_bandwidth(Option<String>)
:
required: trueThe bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps, and 25Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps, 10Gbps, or 25Gbps hosted connection.
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: trueThe name of the hosted connection.
vlan(i32)
/set_vlan(Option<i32>)
:
required: trueThe dedicated VLAN provisioned to the hosted connection.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags associated with the connection.
- On success, responds with
AllocateHostedConnectionOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<AllocateHostedConnectionError>
Source§impl Client
impl Client
Sourcepub fn allocate_private_virtual_interface(
&self,
) -> AllocatePrivateVirtualInterfaceFluentBuilder
pub fn allocate_private_virtual_interface( &self, ) -> AllocatePrivateVirtualInterfaceFluentBuilder
Constructs a fluent builder for the AllocatePrivateVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection on which the private virtual interface is provisioned.
owner_account(impl Into<String>)
/set_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account that owns the virtual private interface.
new_private_virtual_interface_allocation(NewPrivateVirtualInterfaceAllocation)
/set_new_private_virtual_interface_allocation(Option<NewPrivateVirtualInterfaceAllocation>)
:
required: trueInformation about the private virtual interface.
- On success, responds with
AllocatePrivateVirtualInterfaceOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<AllocatePrivateVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn allocate_public_virtual_interface(
&self,
) -> AllocatePublicVirtualInterfaceFluentBuilder
pub fn allocate_public_virtual_interface( &self, ) -> AllocatePublicVirtualInterfaceFluentBuilder
Constructs a fluent builder for the AllocatePublicVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection on which the public virtual interface is provisioned.
owner_account(impl Into<String>)
/set_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account that owns the public virtual interface.
new_public_virtual_interface_allocation(NewPublicVirtualInterfaceAllocation)
/set_new_public_virtual_interface_allocation(Option<NewPublicVirtualInterfaceAllocation>)
:
required: trueInformation about the public virtual interface.
- On success, responds with
AllocatePublicVirtualInterfaceOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<AllocatePublicVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn allocate_transit_virtual_interface(
&self,
) -> AllocateTransitVirtualInterfaceFluentBuilder
pub fn allocate_transit_virtual_interface( &self, ) -> AllocateTransitVirtualInterfaceFluentBuilder
Constructs a fluent builder for the AllocateTransitVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection on which the transit virtual interface is provisioned.
owner_account(impl Into<String>)
/set_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account that owns the transit virtual interface.
new_transit_virtual_interface_allocation(NewTransitVirtualInterfaceAllocation)
/set_new_transit_virtual_interface_allocation(Option<NewTransitVirtualInterfaceAllocation>)
:
required: trueInformation about the transit virtual interface.
- On success, responds with
AllocateTransitVirtualInterfaceOutput
with field(s):virtual_interface(Option<VirtualInterface>)
:Information about the transit virtual interface.
- On failure, responds with
SdkError<AllocateTransitVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn associate_connection_with_lag(
&self,
) -> AssociateConnectionWithLagFluentBuilder
pub fn associate_connection_with_lag( &self, ) -> AssociateConnectionWithLagFluentBuilder
Constructs a fluent builder for the AssociateConnectionWithLag
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: trueThe ID of the LAG with which to associate the connection.
- On success, responds with
AssociateConnectionWithLagOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<AssociateConnectionWithLagError>
Source§impl Client
impl Client
Sourcepub fn associate_hosted_connection(
&self,
) -> AssociateHostedConnectionFluentBuilder
pub fn associate_hosted_connection( &self, ) -> AssociateHostedConnectionFluentBuilder
Constructs a fluent builder for the AssociateHostedConnection
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the hosted connection.
parent_connection_id(impl Into<String>)
/set_parent_connection_id(Option<String>)
:
required: trueThe ID of the interconnect or the LAG.
- On success, responds with
AssociateHostedConnectionOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<AssociateHostedConnectionError>
Source§impl Client
impl Client
Sourcepub fn associate_mac_sec_key(&self) -> AssociateMacSecKeyFluentBuilder
pub fn associate_mac_sec_key(&self) -> AssociateMacSecKeyFluentBuilder
Constructs a fluent builder for the AssociateMacSecKey
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use
DescribeConnections
orDescribeLags
to retrieve connection ID.secret_arn(impl Into<String>)
/set_secret_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection.
You can use
DescribeConnections
orDescribeLags
to retrieve the MAC Security (MACsec) secret key.If you use this request parameter, you do not use the
ckn
andcak
request parameters.ckn(impl Into<String>)
/set_ckn(Option<String>)
:
required: falseThe 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
cak
request parameter and not use thesecretARN
request parameter.cak(impl Into<String>)
/set_cak(Option<String>)
:
required: falseThe 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
ckn
request parameter and not use thesecretARN
request parameter.
- On success, responds with
AssociateMacSecKeyOutput
with field(s):connection_id(Option<String>)
:The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the dedicated connection.
- On failure, responds with
SdkError<AssociateMacSecKeyError>
Source§impl Client
impl Client
Sourcepub fn associate_virtual_interface(
&self,
) -> AssociateVirtualInterfaceFluentBuilder
pub fn associate_virtual_interface( &self, ) -> AssociateVirtualInterfaceFluentBuilder
Constructs a fluent builder for the AssociateVirtualInterface
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the LAG or connection.
- On success, responds with
AssociateVirtualInterfaceOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<AssociateVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn confirm_connection(&self) -> ConfirmConnectionFluentBuilder
pub fn confirm_connection(&self) -> ConfirmConnectionFluentBuilder
Constructs a fluent builder for the ConfirmConnection
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the hosted connection.
- On success, responds with
ConfirmConnectionOutput
with field(s):connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
- On failure, responds with
SdkError<ConfirmConnectionError>
Source§impl Client
impl Client
Sourcepub fn confirm_customer_agreement(
&self,
) -> ConfirmCustomerAgreementFluentBuilder
pub fn confirm_customer_agreement( &self, ) -> ConfirmCustomerAgreementFluentBuilder
Constructs a fluent builder for the ConfirmCustomerAgreement
operation.
- The fluent builder is configurable:
agreement_name(impl Into<String>)
/set_agreement_name(Option<String>)
:
required: falseThe name of the customer agreement.
- On success, responds with
ConfirmCustomerAgreementOutput
with field(s):status(Option<String>)
:The status of the customer agreement when the connection was created. This will be either
signed
orunsigned
.
- On failure, responds with
SdkError<ConfirmCustomerAgreementError>
Source§impl Client
impl Client
Sourcepub fn confirm_private_virtual_interface(
&self,
) -> ConfirmPrivateVirtualInterfaceFluentBuilder
pub fn confirm_private_virtual_interface( &self, ) -> ConfirmPrivateVirtualInterfaceFluentBuilder
Constructs a fluent builder for the ConfirmPrivateVirtualInterface
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
virtual_gateway_id(impl Into<String>)
/set_virtual_gateway_id(Option<String>)
:
required: falseThe ID of the virtual private gateway.
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
- On success, responds with
ConfirmPrivateVirtualInterfaceOutput
with field(s):virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
- On failure, responds with
SdkError<ConfirmPrivateVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn confirm_public_virtual_interface(
&self,
) -> ConfirmPublicVirtualInterfaceFluentBuilder
pub fn confirm_public_virtual_interface( &self, ) -> ConfirmPublicVirtualInterfaceFluentBuilder
Constructs a fluent builder for the ConfirmPublicVirtualInterface
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
- On success, responds with
ConfirmPublicVirtualInterfaceOutput
with field(s):virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
- On failure, responds with
SdkError<ConfirmPublicVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn confirm_transit_virtual_interface(
&self,
) -> ConfirmTransitVirtualInterfaceFluentBuilder
pub fn confirm_transit_virtual_interface( &self, ) -> ConfirmTransitVirtualInterfaceFluentBuilder
Constructs a fluent builder for the ConfirmTransitVirtualInterface
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway.
- On success, responds with
ConfirmTransitVirtualInterfaceOutput
with field(s):virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
- On failure, responds with
SdkError<ConfirmTransitVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn create_bgp_peer(&self) -> CreateBGPPeerFluentBuilder
pub fn create_bgp_peer(&self) -> CreateBGPPeerFluentBuilder
Constructs a fluent builder for the CreateBGPPeer
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: falseThe ID of the virtual interface.
new_bgp_peer(NewBgpPeer)
/set_new_bgp_peer(Option<NewBgpPeer>)
:
required: falseInformation about the BGP peer.
- On success, responds with
CreateBgpPeerOutput
with field(s):virtual_interface(Option<VirtualInterface>)
:The virtual interface.
- On failure, responds with
SdkError<CreateBGPPeerError>
Source§impl Client
impl Client
Sourcepub fn create_connection(&self) -> CreateConnectionFluentBuilder
pub fn create_connection(&self) -> CreateConnectionFluentBuilder
Constructs a fluent builder for the CreateConnection
operation.
- The fluent builder is configurable:
location(impl Into<String>)
/set_location(Option<String>)
:
required: trueThe location of the connection.
bandwidth(impl Into<String>)
/set_bandwidth(Option<String>)
:
required: trueThe bandwidth of the connection.
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: trueThe name of the connection.
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: falseThe ID of the LAG.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to associate with the lag.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe name of the service provider associated with the requested connection.
request_mac_sec(bool)
/set_request_mac_sec(Option<bool>)
:
required: falseIndicates 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 Direct Connect User Guide.
- On success, responds with
CreateConnectionOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<CreateConnectionError>
Source§impl Client
impl Client
Sourcepub fn create_direct_connect_gateway(
&self,
) -> CreateDirectConnectGatewayFluentBuilder
pub fn create_direct_connect_gateway( &self, ) -> CreateDirectConnectGatewayFluentBuilder
Constructs a fluent builder for the CreateDirectConnectGateway
operation.
- The fluent builder is configurable:
direct_connect_gateway_name(impl Into<String>)
/set_direct_connect_gateway_name(Option<String>)
:
required: trueThe name of the Direct Connect gateway.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe key-value pair tags associated with the request.
amazon_side_asn(i64)
/set_amazon_side_asn(Option<i64>)
:
required: falseThe 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.
- On success, responds with
CreateDirectConnectGatewayOutput
with field(s):direct_connect_gateway(Option<DirectConnectGateway>)
:The Direct Connect gateway.
- On failure, responds with
SdkError<CreateDirectConnectGatewayError>
Source§impl Client
impl Client
Sourcepub fn create_direct_connect_gateway_association(
&self,
) -> CreateDirectConnectGatewayAssociationFluentBuilder
pub fn create_direct_connect_gateway_association( &self, ) -> CreateDirectConnectGatewayAssociationFluentBuilder
Constructs a fluent builder for the CreateDirectConnectGatewayAssociation
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway.
gateway_id(impl Into<String>)
/set_gateway_id(Option<String>)
:
required: falseThe ID of the virtual private gateway or transit gateway.
add_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_add_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseThe 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 Direct Connect User Guide.
virtual_gateway_id(impl Into<String>)
/set_virtual_gateway_id(Option<String>)
:
required: falseThe ID of the virtual private gateway.
- On success, responds with
CreateDirectConnectGatewayAssociationOutput
with field(s):direct_connect_gateway_association(Option<DirectConnectGatewayAssociation>)
:The association to be created.
- On failure, responds with
SdkError<CreateDirectConnectGatewayAssociationError>
Source§impl Client
impl Client
Sourcepub fn create_direct_connect_gateway_association_proposal(
&self,
) -> CreateDirectConnectGatewayAssociationProposalFluentBuilder
pub fn create_direct_connect_gateway_association_proposal( &self, ) -> CreateDirectConnectGatewayAssociationProposalFluentBuilder
Constructs a fluent builder for the CreateDirectConnectGatewayAssociationProposal
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway.
direct_connect_gateway_owner_account(impl Into<String>)
/set_direct_connect_gateway_owner_account(Option<String>)
:
required: trueThe ID of the Amazon Web Services account that owns the Direct Connect gateway.
gateway_id(impl Into<String>)
/set_gateway_id(Option<String>)
:
required: trueThe ID of the virtual private gateway or transit gateway.
add_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_add_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
remove_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_remove_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseThe Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
- On success, responds with
CreateDirectConnectGatewayAssociationProposalOutput
with field(s):direct_connect_gateway_association_proposal(Option<DirectConnectGatewayAssociationProposal>)
:Information about the Direct Connect gateway proposal.
- On failure, responds with
SdkError<CreateDirectConnectGatewayAssociationProposalError>
Source§impl Client
impl Client
Sourcepub fn create_interconnect(&self) -> CreateInterconnectFluentBuilder
pub fn create_interconnect(&self) -> CreateInterconnectFluentBuilder
Constructs a fluent builder for the CreateInterconnect
operation.
- The fluent builder is configurable:
interconnect_name(impl Into<String>)
/set_interconnect_name(Option<String>)
:
required: trueThe name of the interconnect.
bandwidth(impl Into<String>)
/set_bandwidth(Option<String>)
:
required: trueThe port bandwidth, in Gbps. The possible values are 1, 10, and 100.
location(impl Into<String>)
/set_location(Option<String>)
:
required: trueThe location of the interconnect.
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: falseThe ID of the LAG.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to associate with the interconnect.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe name of the service provider associated with the interconnect.
- On success, responds with
CreateInterconnectOutput
with field(s):interconnect_id(Option<String>)
:The ID of the interconnect.
interconnect_name(Option<String>)
:The name of the interconnect.
interconnect_state(Option<InterconnectState>)
: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.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the interconnect.
provider_name(Option<String>)
:The name of the service provider associated with the interconnect.
- On failure, responds with
SdkError<CreateInterconnectError>
Source§impl Client
impl Client
Sourcepub fn create_lag(&self) -> CreateLagFluentBuilder
pub fn create_lag(&self) -> CreateLagFluentBuilder
Constructs a fluent builder for the CreateLag
operation.
- The fluent builder is configurable:
number_of_connections(i32)
/set_number_of_connections(Option<i32>)
:
required: trueThe number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the port speed is 1Gbps or 10Gbps, or two when the port speed is 100Gbps or 400Gbps.
location(impl Into<String>)
/set_location(Option<String>)
:
required: trueThe location for the LAG.
connections_bandwidth(impl Into<String>)
/set_connections_bandwidth(Option<String>)
:
required: trueThe bandwidth of the individual physical dedicated connections bundled by the LAG. The possible values are 1Gbps,10Gbps, 100Gbps, and 400Gbps.
lag_name(impl Into<String>)
/set_lag_name(Option<String>)
:
required: trueThe name of the LAG.
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: falseThe ID of an existing dedicated connection to migrate to the LAG.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to associate with the LAG.
child_connection_tags(Tag)
/set_child_connection_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to associate with the automtically created LAGs.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe name of the service provider associated with the LAG.
request_mac_sec(bool)
/set_request_mac_sec(Option<bool>)
:
required: falseIndicates 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 Direct Connect User Guide.
- On success, responds with
CreateLagOutput
with field(s):connections_bandwidth(Option<String>)
:The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps, 100Gbps, or 400 Gbps..
number_of_connections(i32)
:The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
lag_id(Option<String>)
:The ID of the LAG.
owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the LAG.
lag_name(Option<String>)
:The name of the LAG.
lag_state(Option<LagState>)
:The 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.
-
location(Option<String>)
:The location of the LAG.
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
minimum_links(i32)
:The minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
aws_device(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
connections(Option<Vec::<Connection>>)
:The connections bundled by the LAG.
allows_hosted_connections(bool)
:Indicates whether the LAG can host other connections.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the LAG.
provider_name(Option<String>)
:The name of the service provider associated with the LAG.
mac_sec_capable(Option<bool>)
:Indicates whether the LAG supports MAC Security (MACsec).
encryption_mode(Option<String>)
:The LAG MAC Security (MACsec) encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the LAG.
- On failure, responds with
SdkError<CreateLagError>
Source§impl Client
impl Client
Sourcepub fn create_private_virtual_interface(
&self,
) -> CreatePrivateVirtualInterfaceFluentBuilder
pub fn create_private_virtual_interface( &self, ) -> CreatePrivateVirtualInterfaceFluentBuilder
Constructs a fluent builder for the CreatePrivateVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
new_private_virtual_interface(NewPrivateVirtualInterface)
/set_new_private_virtual_interface(Option<NewPrivateVirtualInterface>)
:
required: trueInformation about the private virtual interface.
- On success, responds with
CreatePrivateVirtualInterfaceOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<CreatePrivateVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn create_public_virtual_interface(
&self,
) -> CreatePublicVirtualInterfaceFluentBuilder
pub fn create_public_virtual_interface( &self, ) -> CreatePublicVirtualInterfaceFluentBuilder
Constructs a fluent builder for the CreatePublicVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
new_public_virtual_interface(NewPublicVirtualInterface)
/set_new_public_virtual_interface(Option<NewPublicVirtualInterface>)
:
required: trueInformation about the public virtual interface.
- On success, responds with
CreatePublicVirtualInterfaceOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<CreatePublicVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn create_transit_virtual_interface(
&self,
) -> CreateTransitVirtualInterfaceFluentBuilder
pub fn create_transit_virtual_interface( &self, ) -> CreateTransitVirtualInterfaceFluentBuilder
Constructs a fluent builder for the CreateTransitVirtualInterface
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
new_transit_virtual_interface(NewTransitVirtualInterface)
/set_new_transit_virtual_interface(Option<NewTransitVirtualInterface>)
:
required: trueInformation about the transit virtual interface.
- On success, responds with
CreateTransitVirtualInterfaceOutput
with field(s):virtual_interface(Option<VirtualInterface>)
:Information about a virtual interface.
- On failure, responds with
SdkError<CreateTransitVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn delete_bgp_peer(&self) -> DeleteBGPPeerFluentBuilder
pub fn delete_bgp_peer(&self) -> DeleteBGPPeerFluentBuilder
Constructs a fluent builder for the DeleteBGPPeer
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: falseThe ID of the virtual interface.
asn(i32)
/set_asn(Option<i32>)
:
required: falseThe autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
customer_address(impl Into<String>)
/set_customer_address(Option<String>)
:
required: falseThe IP address assigned to the customer interface.
bgp_peer_id(impl Into<String>)
/set_bgp_peer_id(Option<String>)
:
required: falseThe ID of the BGP peer.
- On success, responds with
DeleteBgpPeerOutput
with field(s):virtual_interface(Option<VirtualInterface>)
:The virtual interface.
- On failure, responds with
SdkError<DeleteBGPPeerError>
Source§impl Client
impl Client
Sourcepub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
pub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
Constructs a fluent builder for the DeleteConnection
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
- On success, responds with
DeleteConnectionOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<DeleteConnectionError>
Source§impl Client
impl Client
Sourcepub fn delete_direct_connect_gateway(
&self,
) -> DeleteDirectConnectGatewayFluentBuilder
pub fn delete_direct_connect_gateway( &self, ) -> DeleteDirectConnectGatewayFluentBuilder
Constructs a fluent builder for the DeleteDirectConnectGateway
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway.
- On success, responds with
DeleteDirectConnectGatewayOutput
with field(s):direct_connect_gateway(Option<DirectConnectGateway>)
:The Direct Connect gateway.
- On failure, responds with
SdkError<DeleteDirectConnectGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_direct_connect_gateway_association(
&self,
) -> DeleteDirectConnectGatewayAssociationFluentBuilder
pub fn delete_direct_connect_gateway_association( &self, ) -> DeleteDirectConnectGatewayAssociationFluentBuilder
Constructs a fluent builder for the DeleteDirectConnectGatewayAssociation
operation.
- The fluent builder is configurable:
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway association.
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
virtual_gateway_id(impl Into<String>)
/set_virtual_gateway_id(Option<String>)
:
required: falseThe ID of the virtual private gateway.
- On success, responds with
DeleteDirectConnectGatewayAssociationOutput
with field(s):direct_connect_gateway_association(Option<DirectConnectGatewayAssociation>)
:Information about the deleted association.
- On failure, responds with
SdkError<DeleteDirectConnectGatewayAssociationError>
Source§impl Client
impl Client
Sourcepub fn delete_direct_connect_gateway_association_proposal(
&self,
) -> DeleteDirectConnectGatewayAssociationProposalFluentBuilder
pub fn delete_direct_connect_gateway_association_proposal( &self, ) -> DeleteDirectConnectGatewayAssociationProposalFluentBuilder
Constructs a fluent builder for the DeleteDirectConnectGatewayAssociationProposal
operation.
- The fluent builder is configurable:
proposal_id(impl Into<String>)
/set_proposal_id(Option<String>)
:
required: trueThe ID of the proposal.
- On success, responds with
DeleteDirectConnectGatewayAssociationProposalOutput
with field(s):direct_connect_gateway_association_proposal(Option<DirectConnectGatewayAssociationProposal>)
:The ID of the associated gateway.
- On failure, responds with
SdkError<DeleteDirectConnectGatewayAssociationProposalError>
Source§impl Client
impl Client
Sourcepub fn delete_interconnect(&self) -> DeleteInterconnectFluentBuilder
pub fn delete_interconnect(&self) -> DeleteInterconnectFluentBuilder
Constructs a fluent builder for the DeleteInterconnect
operation.
- The fluent builder is configurable:
interconnect_id(impl Into<String>)
/set_interconnect_id(Option<String>)
:
required: trueThe ID of the interconnect.
- On success, responds with
DeleteInterconnectOutput
with field(s):interconnect_state(Option<InterconnectState>)
: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.
-
- On failure, responds with
SdkError<DeleteInterconnectError>
Source§impl Client
impl Client
Sourcepub fn delete_lag(&self) -> DeleteLagFluentBuilder
pub fn delete_lag(&self) -> DeleteLagFluentBuilder
Constructs a fluent builder for the DeleteLag
operation.
- The fluent builder is configurable:
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: trueThe ID of the LAG.
- On success, responds with
DeleteLagOutput
with field(s):connections_bandwidth(Option<String>)
:The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps, 100Gbps, or 400 Gbps..
number_of_connections(i32)
:The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
lag_id(Option<String>)
:The ID of the LAG.
owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the LAG.
lag_name(Option<String>)
:The name of the LAG.
lag_state(Option<LagState>)
:The 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.
-
location(Option<String>)
:The location of the LAG.
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
minimum_links(i32)
:The minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
aws_device(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
connections(Option<Vec::<Connection>>)
:The connections bundled by the LAG.
allows_hosted_connections(bool)
:Indicates whether the LAG can host other connections.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the LAG.
provider_name(Option<String>)
:The name of the service provider associated with the LAG.
mac_sec_capable(Option<bool>)
:Indicates whether the LAG supports MAC Security (MACsec).
encryption_mode(Option<String>)
:The LAG MAC Security (MACsec) encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the LAG.
- On failure, responds with
SdkError<DeleteLagError>
Source§impl Client
impl Client
Sourcepub fn delete_virtual_interface(&self) -> DeleteVirtualInterfaceFluentBuilder
pub fn delete_virtual_interface(&self) -> DeleteVirtualInterfaceFluentBuilder
Constructs a fluent builder for the DeleteVirtualInterface
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
- On success, responds with
DeleteVirtualInterfaceOutput
with field(s):virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
- On failure, responds with
SdkError<DeleteVirtualInterfaceError>
Source§impl Client
impl Client
Sourcepub fn describe_connection_loa(&self) -> DescribeConnectionLoaFluentBuilder
👎Deprecated
pub fn describe_connection_loa(&self) -> DescribeConnectionLoaFluentBuilder
Constructs a fluent builder for the DescribeConnectionLoa
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe 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.
loa_content_type(LoaContentType)
/set_loa_content_type(Option<LoaContentType>)
:
required: falseThe standard media type for the LOA-CFA document. The only supported value is application/pdf.
- On success, responds with
DescribeConnectionLoaOutput
with field(s):loa(Option<Loa>)
:The Letter of Authorization - Connecting Facility Assignment (LOA-CFA).
- On failure, responds with
SdkError<DescribeConnectionLoaError>
Source§impl Client
impl Client
Sourcepub fn describe_connections(&self) -> DescribeConnectionsFluentBuilder
pub fn describe_connections(&self) -> DescribeConnectionsFluentBuilder
Constructs a fluent builder for the DescribeConnections
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: falseThe ID of the connection.
- On success, responds with
DescribeConnectionsOutput
with field(s):connections(Option<Vec::<Connection>>)
:The connections.
- On failure, responds with
SdkError<DescribeConnectionsError>
Source§impl Client
impl Client
Sourcepub fn describe_connections_on_interconnect(
&self,
) -> DescribeConnectionsOnInterconnectFluentBuilder
👎Deprecated
pub fn describe_connections_on_interconnect( &self, ) -> DescribeConnectionsOnInterconnectFluentBuilder
Constructs a fluent builder for the DescribeConnectionsOnInterconnect
operation.
- The fluent builder is configurable:
interconnect_id(impl Into<String>)
/set_interconnect_id(Option<String>)
:
required: trueThe ID of the interconnect.
- On success, responds with
DescribeConnectionsOnInterconnectOutput
with field(s):connections(Option<Vec::<Connection>>)
:The connections.
- On failure, responds with
SdkError<DescribeConnectionsOnInterconnectError>
Source§impl Client
impl Client
Sourcepub fn describe_customer_metadata(
&self,
) -> DescribeCustomerMetadataFluentBuilder
pub fn describe_customer_metadata( &self, ) -> DescribeCustomerMetadataFluentBuilder
Constructs a fluent builder for the DescribeCustomerMetadata
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeCustomerMetadataOutput
with field(s):agreements(Option<Vec::<CustomerAgreement>>)
:The list of customer agreements.
nni_partner_type(Option<NniPartnerType>)
:The type of network-to-network interface (NNI) partner. The partner type will be one of the following:
-
V1: This partner can only allocate 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps subgigabit connections.
-
V2: This partner can only allocate 1GB, 2GB, 5GB, or 10GB hosted connections.
-
nonPartner: The customer is not a partner.
-
- On failure, responds with
SdkError<DescribeCustomerMetadataError>
Source§impl Client
impl Client
Sourcepub fn describe_direct_connect_gateway_association_proposals(
&self,
) -> DescribeDirectConnectGatewayAssociationProposalsFluentBuilder
pub fn describe_direct_connect_gateway_association_proposals( &self, ) -> DescribeDirectConnectGatewayAssociationProposalsFluentBuilder
Constructs a fluent builder for the DescribeDirectConnectGatewayAssociationProposals
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
proposal_id(impl Into<String>)
/set_proposal_id(Option<String>)
:
required: falseThe ID of the proposal.
associated_gateway_id(impl Into<String>)
/set_associated_gateway_id(Option<String>)
:
required: falseThe ID of the associated gateway.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next page of results.
- On success, responds with
DescribeDirectConnectGatewayAssociationProposalsOutput
with field(s):direct_connect_gateway_association_proposals(Option<Vec::<DirectConnectGatewayAssociationProposal>>)
:Describes the Direct Connect gateway association proposals.
next_token(Option<String>)
:The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
- On failure, responds with
SdkError<DescribeDirectConnectGatewayAssociationProposalsError>
Source§impl Client
impl Client
Sourcepub fn describe_direct_connect_gateway_associations(
&self,
) -> DescribeDirectConnectGatewayAssociationsFluentBuilder
pub fn describe_direct_connect_gateway_associations( &self, ) -> DescribeDirectConnectGatewayAssociationsFluentBuilder
Constructs a fluent builder for the DescribeDirectConnectGatewayAssociations
operation.
- The fluent builder is configurable:
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway association.
associated_gateway_id(impl Into<String>)
/set_associated_gateway_id(Option<String>)
:
required: falseThe ID of the associated gateway.
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token provided in the previous call to retrieve the next page.
virtual_gateway_id(impl Into<String>)
/set_virtual_gateway_id(Option<String>)
:
required: falseThe ID of the virtual private gateway or transit gateway.
- On success, responds with
DescribeDirectConnectGatewayAssociationsOutput
with field(s):direct_connect_gateway_associations(Option<Vec::<DirectConnectGatewayAssociation>>)
:Information about the associations.
next_token(Option<String>)
:The token to retrieve the next page.
- On failure, responds with
SdkError<DescribeDirectConnectGatewayAssociationsError>
Source§impl Client
impl Client
Sourcepub fn describe_direct_connect_gateway_attachments(
&self,
) -> DescribeDirectConnectGatewayAttachmentsFluentBuilder
pub fn describe_direct_connect_gateway_attachments( &self, ) -> DescribeDirectConnectGatewayAttachmentsFluentBuilder
Constructs a fluent builder for the DescribeDirectConnectGatewayAttachments
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: falseThe ID of the virtual interface.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token provided in the previous call to retrieve the next page.
- On success, responds with
DescribeDirectConnectGatewayAttachmentsOutput
with field(s):direct_connect_gateway_attachments(Option<Vec::<DirectConnectGatewayAttachment>>)
:The attachments.
next_token(Option<String>)
:The token to retrieve the next page.
- On failure, responds with
SdkError<DescribeDirectConnectGatewayAttachmentsError>
Source§impl Client
impl Client
Sourcepub fn describe_direct_connect_gateways(
&self,
) -> DescribeDirectConnectGatewaysFluentBuilder
pub fn describe_direct_connect_gateways( &self, ) -> DescribeDirectConnectGatewaysFluentBuilder
Constructs a fluent builder for the DescribeDirectConnectGateways
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token provided in the previous call to retrieve the next page.
- On success, responds with
DescribeDirectConnectGatewaysOutput
with field(s):direct_connect_gateways(Option<Vec::<DirectConnectGateway>>)
:The Direct Connect gateways.
next_token(Option<String>)
:The token to retrieve the next page.
- On failure, responds with
SdkError<DescribeDirectConnectGatewaysError>
Source§impl Client
impl Client
Sourcepub fn describe_hosted_connections(
&self,
) -> DescribeHostedConnectionsFluentBuilder
pub fn describe_hosted_connections( &self, ) -> DescribeHostedConnectionsFluentBuilder
Constructs a fluent builder for the DescribeHostedConnections
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the interconnect or LAG.
- On success, responds with
DescribeHostedConnectionsOutput
with field(s):connections(Option<Vec::<Connection>>)
:The connections.
- On failure, responds with
SdkError<DescribeHostedConnectionsError>
Source§impl Client
impl Client
Sourcepub fn describe_interconnect_loa(&self) -> DescribeInterconnectLoaFluentBuilder
👎Deprecated
pub fn describe_interconnect_loa(&self) -> DescribeInterconnectLoaFluentBuilder
Constructs a fluent builder for the DescribeInterconnectLoa
operation.
- The fluent builder is configurable:
interconnect_id(impl Into<String>)
/set_interconnect_id(Option<String>)
:
required: trueThe ID of the interconnect.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe 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.
loa_content_type(LoaContentType)
/set_loa_content_type(Option<LoaContentType>)
:
required: falseThe standard media type for the LOA-CFA document. The only supported value is application/pdf.
- On success, responds with
DescribeInterconnectLoaOutput
with field(s):loa(Option<Loa>)
:The Letter of Authorization - Connecting Facility Assignment (LOA-CFA).
- On failure, responds with
SdkError<DescribeInterconnectLoaError>
Source§impl Client
impl Client
Sourcepub fn describe_interconnects(&self) -> DescribeInterconnectsFluentBuilder
pub fn describe_interconnects(&self) -> DescribeInterconnectsFluentBuilder
Constructs a fluent builder for the DescribeInterconnects
operation.
- The fluent builder is configurable:
interconnect_id(impl Into<String>)
/set_interconnect_id(Option<String>)
:
required: falseThe ID of the interconnect.
- On success, responds with
DescribeInterconnectsOutput
with field(s):interconnects(Option<Vec::<Interconnect>>)
:The interconnects.
- On failure, responds with
SdkError<DescribeInterconnectsError>
Source§impl Client
impl Client
Sourcepub fn describe_lags(&self) -> DescribeLagsFluentBuilder
pub fn describe_lags(&self) -> DescribeLagsFluentBuilder
Constructs a fluent builder for the DescribeLags
operation.
- The fluent builder is configurable:
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: falseThe ID of the LAG.
- On success, responds with
DescribeLagsOutput
with field(s):lags(Option<Vec::<Lag>>)
:The LAGs.
- On failure, responds with
SdkError<DescribeLagsError>
Source§impl Client
impl Client
Sourcepub fn describe_loa(&self) -> DescribeLoaFluentBuilder
pub fn describe_loa(&self) -> DescribeLoaFluentBuilder
Constructs a fluent builder for the DescribeLoa
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of a connection, LAG, or interconnect.
provider_name(impl Into<String>)
/set_provider_name(Option<String>)
:
required: falseThe 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.
loa_content_type(LoaContentType)
/set_loa_content_type(Option<LoaContentType>)
:
required: falseThe standard media type for the LOA-CFA document. The only supported value is application/pdf.
- On success, responds with
DescribeLoaOutput
with field(s):loa_content(Option<Blob>)
:The binary contents of the LOA-CFA document.
loa_content_type(Option<LoaContentType>)
:The standard media type for the LOA-CFA document. The only supported value is application/pdf.
- On failure, responds with
SdkError<DescribeLoaError>
Source§impl Client
impl Client
Sourcepub fn describe_locations(&self) -> DescribeLocationsFluentBuilder
pub fn describe_locations(&self) -> DescribeLocationsFluentBuilder
Constructs a fluent builder for the DescribeLocations
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeLocationsOutput
with field(s):locations(Option<Vec::<Location>>)
:The locations.
- On failure, responds with
SdkError<DescribeLocationsError>
Source§impl Client
impl Client
Sourcepub fn describe_router_configuration(
&self,
) -> DescribeRouterConfigurationFluentBuilder
pub fn describe_router_configuration( &self, ) -> DescribeRouterConfigurationFluentBuilder
Constructs a fluent builder for the DescribeRouterConfiguration
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface.
router_type_identifier(impl Into<String>)
/set_router_type_identifier(Option<String>)
:
required: falseIdentifies the router by a combination of vendor, platform, and software version. For example,
CiscoSystemsInc-2900SeriesRouters-IOS124
.
- On success, responds with
DescribeRouterConfigurationOutput
with field(s):customer_router_config(Option<String>)
:The customer router configuration.
router(Option<RouterType>)
:The details about the router.
virtual_interface_id(Option<String>)
:The ID assigned to the virtual interface.
virtual_interface_name(Option<String>)
:Provides the details about a virtual interface’s router.
- On failure, responds with
SdkError<DescribeRouterConfigurationError>
Source§impl Client
impl Client
Constructs a fluent builder for the DescribeTags
operation.
- The fluent builder is configurable:
resource_arns(impl Into<String>)
/set_resource_arns(Option<Vec::<String>>)
:
required: trueThe Amazon Resource Names (ARNs) of the resources.
- On success, responds with
DescribeTagsOutput
with field(s):resource_tags(Option<Vec::<ResourceTag>>)
:Information about the tags.
- On failure, responds with
SdkError<DescribeTagsError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_gateways(&self) -> DescribeVirtualGatewaysFluentBuilder
pub fn describe_virtual_gateways(&self) -> DescribeVirtualGatewaysFluentBuilder
Constructs a fluent builder for the DescribeVirtualGateways
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DescribeVirtualGatewaysOutput
with field(s):virtual_gateways(Option<Vec::<VirtualGateway>>)
:The virtual private gateways.
- On failure, responds with
SdkError<DescribeVirtualGatewaysError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_interfaces(
&self,
) -> DescribeVirtualInterfacesFluentBuilder
pub fn describe_virtual_interfaces( &self, ) -> DescribeVirtualInterfacesFluentBuilder
Constructs a fluent builder for the DescribeVirtualInterfaces
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: falseThe ID of the connection.
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: falseThe ID of the virtual interface.
- On success, responds with
DescribeVirtualInterfacesOutput
with field(s):virtual_interfaces(Option<Vec::<VirtualInterface>>)
:The virtual interfaces
- On failure, responds with
SdkError<DescribeVirtualInterfacesError>
Source§impl Client
impl Client
Sourcepub fn disassociate_connection_from_lag(
&self,
) -> DisassociateConnectionFromLagFluentBuilder
pub fn disassociate_connection_from_lag( &self, ) -> DisassociateConnectionFromLagFluentBuilder
Constructs a fluent builder for the DisassociateConnectionFromLag
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the connection.
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: trueThe ID of the LAG.
- On success, responds with
DisassociateConnectionFromLagOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<DisassociateConnectionFromLagError>
Source§impl Client
impl Client
Sourcepub fn disassociate_mac_sec_key(&self) -> DisassociateMacSecKeyFluentBuilder
pub fn disassociate_mac_sec_key(&self) -> DisassociateMacSecKeyFluentBuilder
Constructs a fluent builder for the DisassociateMacSecKey
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use
DescribeConnections
orDescribeLags
to retrieve connection ID.secret_arn(impl Into<String>)
/set_secret_arn(Option<String>)
:
required: trueThe 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.
- On success, responds with
DisassociateMacSecKeyOutput
with field(s):connection_id(Option<String>)
:The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys no longer associated with the dedicated connection.
- On failure, responds with
SdkError<DisassociateMacSecKeyError>
Source§impl Client
impl Client
Sourcepub fn list_virtual_interface_test_history(
&self,
) -> ListVirtualInterfaceTestHistoryFluentBuilder
pub fn list_virtual_interface_test_history( &self, ) -> ListVirtualInterfaceTestHistoryFluentBuilder
Constructs a fluent builder for the ListVirtualInterfaceTestHistory
operation.
- The fluent builder is configurable:
test_id(impl Into<String>)
/set_test_id(Option<String>)
:
required: falseThe ID of the virtual interface failover test.
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: falseThe ID of the virtual interface that was tested.
bgp_peers(impl Into<String>)
/set_bgp_peers(Option<Vec::<String>>)
:
required: falseThe BGP peers that were placed in the DOWN state during the virtual interface failover test.
status(impl Into<String>)
/set_status(Option<String>)
:
required: falseThe status of the virtual interface failover test.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next page of results.
- On success, responds with
ListVirtualInterfaceTestHistoryOutput
with field(s):virtual_interface_test_history(Option<Vec::<VirtualInterfaceTestHistory>>)
:The ID of the tested virtual interface.
next_token(Option<String>)
:The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
- On failure, responds with
SdkError<ListVirtualInterfaceTestHistoryError>
Source§impl Client
impl Client
Sourcepub fn start_bgp_failover_test(&self) -> StartBgpFailoverTestFluentBuilder
pub fn start_bgp_failover_test(&self) -> StartBgpFailoverTestFluentBuilder
Constructs a fluent builder for the StartBgpFailoverTest
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface you want to test.
bgp_peers(impl Into<String>)
/set_bgp_peers(Option<Vec::<String>>)
:
required: falseThe BGP peers to place in the DOWN state.
test_duration_in_minutes(i32)
/set_test_duration_in_minutes(Option<i32>)
:
required: falseThe time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
- On success, responds with
StartBgpFailoverTestOutput
with field(s):virtual_interface_test(Option<VirtualInterfaceTestHistory>)
:Information about the virtual interface failover test.
- On failure, responds with
SdkError<StartBgpFailoverTestError>
Source§impl Client
impl Client
Sourcepub fn stop_bgp_failover_test(&self) -> StopBgpFailoverTestFluentBuilder
pub fn stop_bgp_failover_test(&self) -> StopBgpFailoverTestFluentBuilder
Constructs a fluent builder for the StopBgpFailoverTest
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual interface you no longer want to test.
- On success, responds with
StopBgpFailoverTestOutput
with field(s):virtual_interface_test(Option<VirtualInterfaceTestHistory>)
:Information about the virtual interface failover test.
- On failure, responds with
SdkError<StopBgpFailoverTestError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueThe tags to add.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe tag keys of the tags to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_connection(&self) -> UpdateConnectionFluentBuilder
pub fn update_connection(&self) -> UpdateConnectionFluentBuilder
Constructs a fluent builder for the UpdateConnection
operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)
/set_connection_id(Option<String>)
:
required: trueThe ID of the dedicated connection.
You can use
DescribeConnections
to retrieve the connection ID.connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: falseThe name of the connection.
encryption_mode(impl Into<String>)
/set_encryption_mode(Option<String>)
:
required: falseThe connection MAC Security (MACsec) encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.
- On success, responds with
UpdateConnectionOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the connection.
connection_id(Option<String>)
:The ID of the connection.
connection_name(Option<String>)
:The name of the connection.
connection_state(Option<ConnectionState>)
: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 theordering
state enters therejected
state if it is deleted by the customer. -
unknown
: The state of the connection is not available.
-
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
location(Option<String>)
:The location of the connection.
bandwidth(Option<String>)
:The bandwidth of the connection.
vlan(i32)
:The ID of the VLAN.
partner_name(Option<String>)
:The name of the Direct Connect service provider associated with the connection.
loa_issue_time(Option<DateTime>)
:The time of the most recent call to
DescribeLoa
for this connection.lag_id(Option<String>)
:The ID of the LAG.
aws_device(Option<String>)
:The Direct Connect endpoint on which the physical connection terminates.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the connection.
provider_name(Option<String>)
:The name of the service provider associated with the connection.
mac_sec_capable(Option<bool>)
:Indicates whether the connection supports MAC Security (MACsec).
port_encryption_status(Option<String>)
:The 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, orEncryption Down
.encryption_mode(Option<String>)
:The MAC Security (MACsec) connection encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the connection.
- On failure, responds with
SdkError<UpdateConnectionError>
Source§impl Client
impl Client
Sourcepub fn update_direct_connect_gateway(
&self,
) -> UpdateDirectConnectGatewayFluentBuilder
pub fn update_direct_connect_gateway( &self, ) -> UpdateDirectConnectGatewayFluentBuilder
Constructs a fluent builder for the UpdateDirectConnectGateway
operation.
- The fluent builder is configurable:
direct_connect_gateway_id(impl Into<String>)
/set_direct_connect_gateway_id(Option<String>)
:
required: trueThe ID of the Direct Connect gateway to update.
new_direct_connect_gateway_name(impl Into<String>)
/set_new_direct_connect_gateway_name(Option<String>)
:
required: trueThe new name for the Direct Connect gateway.
- On success, responds with
UpdateDirectConnectGatewayOutput
with field(s):direct_connect_gateway(Option<DirectConnectGateway>)
:Informaiton about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateways or transit gateways.
- On failure, responds with
SdkError<UpdateDirectConnectGatewayError>
Source§impl Client
impl Client
Sourcepub fn update_direct_connect_gateway_association(
&self,
) -> UpdateDirectConnectGatewayAssociationFluentBuilder
pub fn update_direct_connect_gateway_association( &self, ) -> UpdateDirectConnectGatewayAssociationFluentBuilder
Constructs a fluent builder for the UpdateDirectConnectGatewayAssociation
operation.
- The fluent builder is configurable:
association_id(impl Into<String>)
/set_association_id(Option<String>)
:
required: falseThe ID of the Direct Connect gateway association.
add_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_add_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
remove_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)
/set_remove_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)
:
required: falseThe Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.
- On success, responds with
UpdateDirectConnectGatewayAssociationOutput
with field(s):direct_connect_gateway_association(Option<DirectConnectGatewayAssociation>)
:Information about an association between a Direct Connect gateway and a virtual private gateway or transit gateway.
- On failure, responds with
SdkError<UpdateDirectConnectGatewayAssociationError>
Source§impl Client
impl Client
Sourcepub fn update_lag(&self) -> UpdateLagFluentBuilder
pub fn update_lag(&self) -> UpdateLagFluentBuilder
Constructs a fluent builder for the UpdateLag
operation.
- The fluent builder is configurable:
lag_id(impl Into<String>)
/set_lag_id(Option<String>)
:
required: trueThe ID of the LAG.
lag_name(impl Into<String>)
/set_lag_name(Option<String>)
:
required: falseThe name of the LAG.
minimum_links(i32)
/set_minimum_links(Option<i32>)
:
required: falseThe minimum number of physical connections that must be operational for the LAG itself to be operational.
encryption_mode(impl Into<String>)
/set_encryption_mode(Option<String>)
:
required: falseThe LAG MAC Security (MACsec) encryption mode.
Amazon Web Services applies the value to all connections which are part of the LAG.
- On success, responds with
UpdateLagOutput
with field(s):connections_bandwidth(Option<String>)
:The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps, 100Gbps, or 400 Gbps..
number_of_connections(i32)
:The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
lag_id(Option<String>)
:The ID of the LAG.
owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the LAG.
lag_name(Option<String>)
:The name of the LAG.
lag_state(Option<LagState>)
:The 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.
-
location(Option<String>)
:The location of the LAG.
region(Option<String>)
:The Amazon Web Services Region where the connection is located.
minimum_links(i32)
:The minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
aws_device(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that hosts the LAG.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
connections(Option<Vec::<Connection>>)
:The connections bundled by the LAG.
allows_hosted_connections(bool)
:Indicates whether the LAG can host other connections.
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
has_logical_redundancy(Option<HasLogicalRedundancy>)
:Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
tags(Option<Vec::<Tag>>)
:The tags associated with the LAG.
provider_name(Option<String>)
:The name of the service provider associated with the LAG.
mac_sec_capable(Option<bool>)
:Indicates whether the LAG supports MAC Security (MACsec).
encryption_mode(Option<String>)
:The LAG MAC Security (MACsec) encryption mode.
The valid values are
no_encrypt
,should_encrypt
, andmust_encrypt
.mac_sec_keys(Option<Vec::<MacSecKey>>)
:The MAC Security (MACsec) security keys associated with the LAG.
- On failure, responds with
SdkError<UpdateLagError>
Source§impl Client
impl Client
Sourcepub fn update_virtual_interface_attributes(
&self,
) -> UpdateVirtualInterfaceAttributesFluentBuilder
pub fn update_virtual_interface_attributes( &self, ) -> UpdateVirtualInterfaceAttributesFluentBuilder
Constructs a fluent builder for the UpdateVirtualInterfaceAttributes
operation.
- The fluent builder is configurable:
virtual_interface_id(impl Into<String>)
/set_virtual_interface_id(Option<String>)
:
required: trueThe ID of the virtual private interface.
mtu(i32)
/set_mtu(Option<i32>)
:
required: falseThe maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500.
enable_site_link(bool)
/set_enable_site_link(Option<bool>)
:
required: falseIndicates whether to enable or disable SiteLink.
virtual_interface_name(impl Into<String>)
/set_virtual_interface_name(Option<String>)
:
required: falseThe name of the virtual private interface.
- On success, responds with
UpdateVirtualInterfaceAttributesOutput
with field(s):owner_account(Option<String>)
:The ID of the Amazon Web Services account that owns the virtual interface.
virtual_interface_id(Option<String>)
:The ID of the virtual interface.
location(Option<String>)
:The location of the connection.
connection_id(Option<String>)
:The ID of the connection.
virtual_interface_type(Option<String>)
:The type of virtual interface. The possible values are
private
,public
andtransit
.virtual_interface_name(Option<String>)
:The 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 (-).
vlan(i32)
:The ID of the VLAN.
asn(i32)
:The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
amazon_side_asn(Option<i64>)
:The autonomous system number (ASN) for the Amazon side of the connection.
auth_key(Option<String>)
:The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
amazon_address(Option<String>)
:The IP address assigned to the Amazon interface.
customer_address(Option<String>)
:The IP address assigned to the customer interface.
address_family(Option<AddressFamily>)
:The address family for the BGP peer.
virtual_interface_state(Option<VirtualInterfaceState>)
: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. -
testing
: A virtual interface is in this state immediately after callingStartBgpFailoverTest
and remains in this state during the duration of the test. -
deleting
: A virtual interface is in this state immediately after callingDeleteVirtualInterface
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 theConfirming
state is deleted by the virtual interface owner, the virtual interface enters theRejected
state. -
unknown
: The state of the virtual interface is not available.
-
customer_router_config(Option<String>)
:The customer router configuration.
mtu(Option<i32>)
:The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. The default value is 1500
jumbo_frame_capable(Option<bool>)
:Indicates whether jumbo frames are supported.
virtual_gateway_id(Option<String>)
:The ID of the virtual private gateway. Applies only to private virtual interfaces.
direct_connect_gateway_id(Option<String>)
:The ID of the Direct Connect gateway.
route_filter_prefixes(Option<Vec::<RouteFilterPrefix>>)
:The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual interfaces.
bgp_peers(Option<Vec::<BgpPeer>>)
:The BGP peers configured on this virtual interface.
region(Option<String>)
:The Amazon Web Services Region where the virtual interface is located.
aws_device_v2(Option<String>)
:The Direct Connect endpoint that terminates the physical connection.
aws_logical_device_id(Option<String>)
:The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
tags(Option<Vec::<Tag>>)
:The tags associated with the virtual interface.
site_link_enabled(Option<bool>)
:Indicates whether SiteLink is enabled.
- On failure, responds with
SdkError<UpdateVirtualInterfaceAttributesError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);