Struct NetworkManagerClient

Source
pub struct NetworkManagerClient { /* private fields */ }
Expand description

A client for the NetworkManager API.

Implementations§

Source§

impl NetworkManagerClient

Source

pub fn new(region: Region) -> NetworkManagerClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> NetworkManagerClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> NetworkManagerClient

Trait Implementations§

Source§

impl Clone for NetworkManagerClient

Source§

fn clone(&self) -> NetworkManagerClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl NetworkManager for NetworkManagerClient

Source§

fn associate_customer_gateway<'life0, 'async_trait>( &'life0 self, input: AssociateCustomerGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<AssociateCustomerGatewayResponse, RusotoError<AssociateCustomerGatewayError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Associates a customer gateway with a device and optionally, with a link. If you specify a link, it must be associated with the specified device.

You can only associate customer gateways that are connected to a VPN attachment on a transit gateway. The transit gateway must be registered in your global network. When you register a transit gateway, customer gateways that are connected to the transit gateway are automatically included in the global network. To list customer gateways that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by transit-gateway-id.

You cannot associate a customer gateway with more than one device and link.

Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.

Source§

fn associate_transit_gateway_connect_peer<'life0, 'async_trait>( &'life0 self, input: AssociateTransitGatewayConnectPeerRequest, ) -> Pin<Box<dyn Future<Output = Result<AssociateTransitGatewayConnectPeerResponse, RusotoError<AssociateTransitGatewayConnectPeerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Associates a transit gateway Connect peer with a device, and optionally, with a link. If you specify a link, it must be associated with the specified device.

You can only associate transit gateway Connect peers that have been created on a transit gateway that's registered in your global network.

You cannot associate a transit gateway Connect peer with more than one device and link.

Source§

fn create_connection<'life0, 'async_trait>( &'life0 self, input: CreateConnectionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, RusotoError<CreateConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a connection between two devices. The devices can be a physical or virtual appliance that connects to a third-party appliance in a VPC, or a physical appliance that connects to another physical appliance in an on-premises network.

Source§

fn create_device<'life0, 'async_trait>( &'life0 self, input: CreateDeviceRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateDeviceResponse, RusotoError<CreateDeviceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console.

Source§

fn create_global_network<'life0, 'async_trait>( &'life0 self, input: CreateGlobalNetworkRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateGlobalNetworkResponse, RusotoError<CreateGlobalNetworkError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new, empty global network.

Creates a new link for a specified site.

Source§

fn create_site<'life0, 'async_trait>( &'life0 self, input: CreateSiteRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateSiteResponse, RusotoError<CreateSiteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new site in a global network.

Source§

fn delete_connection<'life0, 'async_trait>( &'life0 self, input: DeleteConnectionRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteConnectionResponse, RusotoError<DeleteConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes the specified connection in your global network.

Source§

fn delete_device<'life0, 'async_trait>( &'life0 self, input: DeleteDeviceRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteDeviceResponse, RusotoError<DeleteDeviceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an existing device. You must first disassociate the device from any links and customer gateways.

Source§

fn delete_global_network<'life0, 'async_trait>( &'life0 self, input: DeleteGlobalNetworkRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteGlobalNetworkResponse, RusotoError<DeleteGlobalNetworkError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an existing global network. You must first delete all global network objects (devices, links, and sites) and deregister all transit gateways.

Deletes an existing link. You must first disassociate the link from any devices and customer gateways.

Source§

fn delete_site<'life0, 'async_trait>( &'life0 self, input: DeleteSiteRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteSiteResponse, RusotoError<DeleteSiteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an existing site. The site cannot be associated with any device or link.

Source§

fn deregister_transit_gateway<'life0, 'async_trait>( &'life0 self, input: DeregisterTransitGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<DeregisterTransitGatewayResponse, RusotoError<DeregisterTransitGatewayError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deregisters a transit gateway from your global network. This action does not delete your transit gateway, or modify any of its attachments. This action removes any customer gateway associations.

Source§

fn describe_global_networks<'life0, 'async_trait>( &'life0 self, input: DescribeGlobalNetworksRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeGlobalNetworksResponse, RusotoError<DescribeGlobalNetworksError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Describes one or more global networks. By default, all global networks are described. To describe the objects in your global network, you must use the appropriate Get* action. For example, to list the transit gateways in your global network, use GetTransitGatewayRegistrations.

Source§

fn disassociate_customer_gateway<'life0, 'async_trait>( &'life0 self, input: DisassociateCustomerGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<DisassociateCustomerGatewayResponse, RusotoError<DisassociateCustomerGatewayError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disassociates a customer gateway from a device and a link.

Disassociates an existing device from a link. You must first disassociate any customer gateways that are associated with the link.

Source§

fn disassociate_transit_gateway_connect_peer<'life0, 'async_trait>( &'life0 self, input: DisassociateTransitGatewayConnectPeerRequest, ) -> Pin<Box<dyn Future<Output = Result<DisassociateTransitGatewayConnectPeerResponse, RusotoError<DisassociateTransitGatewayConnectPeerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disassociates a transit gateway Connect peer from a device and link.

Source§

fn get_connections<'life0, 'async_trait>( &'life0 self, input: GetConnectionsRequest, ) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, RusotoError<GetConnectionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more of your connections in a global network.

Source§

fn get_customer_gateway_associations<'life0, 'async_trait>( &'life0 self, input: GetCustomerGatewayAssociationsRequest, ) -> Pin<Box<dyn Future<Output = Result<GetCustomerGatewayAssociationsResponse, RusotoError<GetCustomerGatewayAssociationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the association information for customer gateways that are associated with devices and links in your global network.

Source§

fn get_devices<'life0, 'async_trait>( &'life0 self, input: GetDevicesRequest, ) -> Pin<Box<dyn Future<Output = Result<GetDevicesResponse, RusotoError<GetDevicesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more of your devices in a global network.

Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.

Gets information about one or more links in a specified global network.

If you specify the site ID, you cannot specify the type or provider in the same request. You can specify the type and provider in the same request.

Source§

fn get_sites<'life0, 'async_trait>( &'life0 self, input: GetSitesRequest, ) -> Pin<Box<dyn Future<Output = Result<GetSitesResponse, RusotoError<GetSitesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more of your sites in a global network.

Source§

fn get_transit_gateway_connect_peer_associations<'life0, 'async_trait>( &'life0 self, input: GetTransitGatewayConnectPeerAssociationsRequest, ) -> Pin<Box<dyn Future<Output = Result<GetTransitGatewayConnectPeerAssociationsResponse, RusotoError<GetTransitGatewayConnectPeerAssociationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more of your transit gateway Connect peer associations in a global network.

Source§

fn get_transit_gateway_registrations<'life0, 'async_trait>( &'life0 self, input: GetTransitGatewayRegistrationsRequest, ) -> Pin<Box<dyn Future<Output = Result<GetTransitGatewayRegistrationsResponse, RusotoError<GetTransitGatewayRegistrationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about the transit gateway registrations in a specified global network.

Source§

fn list_tags_for_resource<'life0, 'async_trait>( &'life0 self, input: ListTagsForResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the tags for a specified resource.

Source§

fn register_transit_gateway<'life0, 'async_trait>( &'life0 self, input: RegisterTransitGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<RegisterTransitGatewayResponse, RusotoError<RegisterTransitGatewayError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a transit gateway in your global network. The transit gateway can be in any AWS Region, but it must be owned by the same AWS account that owns the global network. You cannot register a transit gateway in more than one global network.

Source§

fn tag_resource<'life0, 'async_trait>( &'life0 self, input: TagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Tags a specified resource.

Source§

fn untag_resource<'life0, 'async_trait>( &'life0 self, input: UntagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes tags from a specified resource.

Source§

fn update_connection<'life0, 'async_trait>( &'life0 self, input: UpdateConnectionRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateConnectionResponse, RusotoError<UpdateConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the information for an existing connection. To remove information for any of the parameters, specify an empty string.

Source§

fn update_device<'life0, 'async_trait>( &'life0 self, input: UpdateDeviceRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateDeviceResponse, RusotoError<UpdateDeviceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the details for an existing device. To remove information for any of the parameters, specify an empty string.

Source§

fn update_global_network<'life0, 'async_trait>( &'life0 self, input: UpdateGlobalNetworkRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateGlobalNetworkResponse, RusotoError<UpdateGlobalNetworkError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates an existing global network. To remove information for any of the parameters, specify an empty string.

Updates the details for an existing link. To remove information for any of the parameters, specify an empty string.

Source§

fn update_site<'life0, 'async_trait>( &'life0 self, input: UpdateSiteRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateSiteResponse, RusotoError<UpdateSiteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the information for an existing site. To remove information for any of the parameters, specify an empty string.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more