NetworkManager
public struct NetworkManager
Client object for interacting with AWS NetworkManager service.
Transit Gateway Network Manager (Network Manager) enables you to create a global network, in which you can monitor your AWS and on-premises networks that are built around transit gateways.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the NetworkManager client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
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.
Declaration
Swift
public func associateCustomerGateway(_ input: AssociateCustomerGatewayRequest) -> EventLoopFuture<AssociateCustomerGatewayResponse>
-
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.
Declaration
Swift
public func associateLink(_ input: AssociateLinkRequest) -> EventLoopFuture<AssociateLinkResponse>
-
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.
Declaration
Swift
public func createDevice(_ input: CreateDeviceRequest) -> EventLoopFuture<CreateDeviceResponse>
-
Creates a new, empty global network.
Declaration
Swift
public func createGlobalNetwork(_ input: CreateGlobalNetworkRequest) -> EventLoopFuture<CreateGlobalNetworkResponse>
-
Creates a new link for a specified site.
Declaration
Swift
public func createLink(_ input: CreateLinkRequest) -> EventLoopFuture<CreateLinkResponse>
-
Creates a new site in a global network.
Declaration
Swift
public func createSite(_ input: CreateSiteRequest) -> EventLoopFuture<CreateSiteResponse>
-
Deletes an existing device. You must first disassociate the device from any links and customer gateways.
Declaration
Swift
public func deleteDevice(_ input: DeleteDeviceRequest) -> EventLoopFuture<DeleteDeviceResponse>
-
Deletes an existing global network. You must first delete all global network objects (devices, links, and sites) and deregister all transit gateways.
Declaration
Swift
public func deleteGlobalNetwork(_ input: DeleteGlobalNetworkRequest) -> EventLoopFuture<DeleteGlobalNetworkResponse>
-
Deletes an existing link. You must first disassociate the link from any devices and customer gateways.
Declaration
Swift
public func deleteLink(_ input: DeleteLinkRequest) -> EventLoopFuture<DeleteLinkResponse>
-
Deletes an existing site. The site cannot be associated with any device or link.
Declaration
Swift
public func deleteSite(_ input: DeleteSiteRequest) -> EventLoopFuture<DeleteSiteResponse>
-
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.
Declaration
Swift
public func deregisterTransitGateway(_ input: DeregisterTransitGatewayRequest) -> EventLoopFuture<DeregisterTransitGatewayResponse>
-
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.
Declaration
Swift
public func describeGlobalNetworks(_ input: DescribeGlobalNetworksRequest) -> EventLoopFuture<DescribeGlobalNetworksResponse>
-
Disassociates a customer gateway from a device and a link.
Declaration
Swift
public func disassociateCustomerGateway(_ input: DisassociateCustomerGatewayRequest) -> EventLoopFuture<DisassociateCustomerGatewayResponse>
-
Disassociates an existing device from a link. You must first disassociate any customer gateways that are associated with the link.
Declaration
Swift
public func disassociateLink(_ input: DisassociateLinkRequest) -> EventLoopFuture<DisassociateLinkResponse>
-
Gets the association information for customer gateways that are associated with devices and links in your global network.
Declaration
Swift
public func getCustomerGatewayAssociations(_ input: GetCustomerGatewayAssociationsRequest) -> EventLoopFuture<GetCustomerGatewayAssociationsResponse>
-
Gets information about one or more of your devices in a global network.
Declaration
Swift
public func getDevices(_ input: GetDevicesRequest) -> EventLoopFuture<GetDevicesResponse>
-
Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.
Declaration
Swift
public func getLinkAssociations(_ input: GetLinkAssociationsRequest) -> EventLoopFuture<GetLinkAssociationsResponse>
-
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.
Declaration
Swift
public func getLinks(_ input: GetLinksRequest) -> EventLoopFuture<GetLinksResponse>
-
Gets information about one or more of your sites in a global network.
Declaration
Swift
public func getSites(_ input: GetSitesRequest) -> EventLoopFuture<GetSitesResponse>
-
Gets information about the transit gateway registrations in a specified global network.
Declaration
Swift
public func getTransitGatewayRegistrations(_ input: GetTransitGatewayRegistrationsRequest) -> EventLoopFuture<GetTransitGatewayRegistrationsResponse>
-
Lists the tags for a specified resource.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResponse>
-
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.
Declaration
Swift
public func registerTransitGateway(_ input: RegisterTransitGatewayRequest) -> EventLoopFuture<RegisterTransitGatewayResponse>
-
Tags a specified resource.
Declaration
Swift
public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<TagResourceResponse>
-
Removes tags from a specified resource.
Declaration
Swift
public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<UntagResourceResponse>
-
Updates the details for an existing device. To remove information for any of the parameters, specify an empty string.
Declaration
Swift
public func updateDevice(_ input: UpdateDeviceRequest) -> EventLoopFuture<UpdateDeviceResponse>
-
Updates an existing global network. To remove information for any of the parameters, specify an empty string.
Declaration
Swift
public func updateGlobalNetwork(_ input: UpdateGlobalNetworkRequest) -> EventLoopFuture<UpdateGlobalNetworkResponse>
-
Updates the details for an existing link. To remove information for any of the parameters, specify an empty string.
Declaration
Swift
public func updateLink(_ input: UpdateLinkRequest) -> EventLoopFuture<UpdateLinkResponse>
-
Updates the information for an existing site. To remove information for any of the parameters, specify an empty string.
Declaration
Swift
public func updateSite(_ input: UpdateSiteRequest) -> EventLoopFuture<UpdateSiteResponse>
-
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.
Declaration
Swift
public func describeGlobalNetworksPaginator(_ input: DescribeGlobalNetworksRequest, onPage: @escaping (DescribeGlobalNetworksResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets the association information for customer gateways that are associated with devices and links in your global network.
Declaration
Swift
public func getCustomerGatewayAssociationsPaginator(_ input: GetCustomerGatewayAssociationsRequest, onPage: @escaping (GetCustomerGatewayAssociationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets information about one or more of your devices in a global network.
Declaration
Swift
public func getDevicesPaginator(_ input: GetDevicesRequest, onPage: @escaping (GetDevicesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.
Declaration
Swift
public func getLinkAssociationsPaginator(_ input: GetLinkAssociationsRequest, onPage: @escaping (GetLinkAssociationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
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.
Declaration
Swift
public func getLinksPaginator(_ input: GetLinksRequest, onPage: @escaping (GetLinksResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets information about one or more of your sites in a global network.
Declaration
Swift
public func getSitesPaginator(_ input: GetSitesRequest, onPage: @escaping (GetSitesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Gets information about the transit gateway registrations in a specified global network.
Declaration
Swift
public func getTransitGatewayRegistrationsPaginator(_ input: GetTransitGatewayRegistrationsRequest, onPage: @escaping (GetTransitGatewayRegistrationsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct DescribeGlobalNetworksRequest : AWSShape
extension NetworkManager.DescribeGlobalNetworksRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetCustomerGatewayAssociationsRequest : AWSShape
extension NetworkManager.GetCustomerGatewayAssociationsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetDevicesRequest : AWSShape
extension NetworkManager.GetDevicesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetLinkAssociationsRequest : AWSShape
extension NetworkManager.GetLinkAssociationsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetLinksRequest : AWSShape
extension NetworkManager.GetLinksRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetSitesRequest : AWSShape
extension NetworkManager.GetSitesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct GetTransitGatewayRegistrationsRequest : AWSShape
extension NetworkManager.GetTransitGatewayRegistrationsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum CustomerGatewayAssociationState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum DeviceState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum GlobalNetworkState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum LinkAssociationState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum LinkState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SiteState : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum TransitGatewayRegistrationState : String, CustomStringConvertible, Codable