AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: AWS.NetworkManager

Inherits:
AWS.Service show all
Identifier:
networkmanager
API Version:
2019-07-05
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

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.

Sending a Request Using NetworkManager

var networkmanager = new AWS.NetworkManager();
networkmanager.associateCustomerGateway(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the NetworkManager object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var networkmanager = new AWS.NetworkManager({apiVersion: '2019-07-05'});

You can also set the API version globally in AWS.config.apiVersions using the networkmanager service identifier:

AWS.config.apiVersions = {
  networkmanager: '2019-07-05',
  // other service API versions
};

var networkmanager = new AWS.NetworkManager();

Version:

  • 2019-07-05

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.NetworkManager(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a NetworkManager object

var networkmanager = new AWS.NetworkManager({apiVersion: '2019-07-05'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.NetworkManager.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.NetworkManager.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.NetworkManager.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateCustomerGateway(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the associateCustomerGateway operation

var params = {
  CustomerGatewayArn: 'STRING_VALUE', /* required */
  DeviceId: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkId: 'STRING_VALUE'
};
networkmanager.associateCustomerGateway(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CustomerGatewayArn — (String)

      The Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2.

    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

    • LinkId — (String)

      The ID of the link.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CustomerGatewayAssociation — (map)

        The customer gateway association.

        • CustomerGatewayArn — (String)

          The Amazon Resource Name (ARN) of the customer gateway.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The ID of the device.

        • LinkId — (String)

          The ID of the link.

        • State — (String)

          The association state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the associateLink operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkId: 'STRING_VALUE' /* required */
};
networkmanager.associateLink(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

    • LinkId — (String)

      The ID of the link.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LinkAssociation — (map)

        The link association.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The device ID for the link association.

        • LinkId — (String)

          The ID of the link.

        • LinkAssociationState — (String)

          The state of the association.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDevice(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createDevice operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Location: {
    Address: 'STRING_VALUE',
    Latitude: 'STRING_VALUE',
    Longitude: 'STRING_VALUE'
  },
  Model: 'STRING_VALUE',
  SerialNumber: 'STRING_VALUE',
  SiteId: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  Type: 'STRING_VALUE',
  Vendor: 'STRING_VALUE'
};
networkmanager.createDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • Description — (String)

      A description of the device.

      Length Constraints: Maximum length of 256 characters.

    • Type — (String)

      The type of the device.

    • Vendor — (String)

      The vendor of the device.

      Length Constraints: Maximum length of 128 characters.

    • Model — (String)

      The model of the device.

      Length Constraints: Maximum length of 128 characters.

    • SerialNumber — (String)

      The serial number of the device.

      Length Constraints: Maximum length of 128 characters.

    • Location — (map)

      The location of the device.

      • Address — (String)

        The physical address.

      • Latitude — (String)

        The latitude.

      • Longitude — (String)

        The longitude.

    • SiteId — (String)

      The ID of the site.

    • Tags — (Array<map>)

      The tags to apply to the resource during creation.

      • Key — (String)

        The tag key.

        Length Constraints: Maximum length of 128 characters.

      • Value — (String)

        The tag value.

        Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Device — (map)

        Information about the device.

        • DeviceId — (String)

          The ID of the device.

        • DeviceArn — (String)

          The Amazon Resource Name (ARN) of the device.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the device.

        • Type — (String)

          The device type.

        • Vendor — (String)

          The device vendor.

        • Model — (String)

          The device model.

        • SerialNumber — (String)

          The device serial number.

        • Location — (map)

          The site location.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • SiteId — (String)

          The site ID.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The device state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the device.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createGlobalNetwork(params = {}, callback) ⇒ AWS.Request

Creates a new, empty global network.

Service Reference:

Examples:

Calling the createGlobalNetwork operation

var params = {
  Description: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
networkmanager.createGlobalNetwork(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Description — (String)

      A description of the global network.

      Length Constraints: Maximum length of 256 characters.

    • Tags — (Array<map>)

      The tags to apply to the resource during creation.

      • Key — (String)

        The tag key.

        Length Constraints: Maximum length of 128 characters.

      • Value — (String)

        The tag value.

        Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GlobalNetwork — (map)

        Information about the global network object.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • GlobalNetworkArn — (String)

          The Amazon Resource Name (ARN) of the global network.

        • Description — (String)

          The description of the global network.

        • CreatedAt — (Date)

          The date and time that the global network was created.

        • State — (String)

          The state of the global network.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the global network.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

Creates a new link for a specified site.

Service Reference:

Examples:

Calling the createLink operation

var params = {
  Bandwidth: { /* required */
    DownloadSpeed: 'NUMBER_VALUE',
    UploadSpeed: 'NUMBER_VALUE'
  },
  GlobalNetworkId: 'STRING_VALUE', /* required */
  SiteId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Provider: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  Type: 'STRING_VALUE'
};
networkmanager.createLink(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • Description — (String)

      A description of the link.

      Length Constraints: Maximum length of 256 characters.

    • Type — (String)

      The type of the link.

      Constraints: Cannot include the following characters: | \ ^

      Length Constraints: Maximum length of 128 characters.

    • Bandwidth — (map)

      The upload speed and download speed in Mbps.

      • UploadSpeed — (Integer)

        Upload speed in Mbps.

      • DownloadSpeed — (Integer)

        Download speed in Mbps.

    • Provider — (String)

      The provider of the link.

      Constraints: Cannot include the following characters: | \ ^

      Length Constraints: Maximum length of 128 characters.

    • SiteId — (String)

      The ID of the site.

    • Tags — (Array<map>)

      The tags to apply to the resource during creation.

      • Key — (String)

        The tag key.

        Length Constraints: Maximum length of 128 characters.

      • Value — (String)

        The tag value.

        Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Link — (map)

        Information about the link.

        • LinkId — (String)

          The ID of the link.

        • LinkArn — (String)

          The Amazon Resource Name (ARN) of the link.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • SiteId — (String)

          The ID of the site.

        • Description — (String)

          The description of the link.

        • Type — (String)

          The type of the link.

        • Bandwidth — (map)

          The bandwidth for the link.

          • UploadSpeed — (Integer)

            Upload speed in Mbps.

          • DownloadSpeed — (Integer)

            Download speed in Mbps.

        • Provider — (String)

          The provider of the link.

        • CreatedAt — (Date)

          The date and time that the link was created.

        • State — (String)

          The state of the link.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the link.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createSite(params = {}, callback) ⇒ AWS.Request

Creates a new site in a global network.

Service Reference:

Examples:

Calling the createSite operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Location: {
    Address: 'STRING_VALUE',
    Latitude: 'STRING_VALUE',
    Longitude: 'STRING_VALUE'
  },
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
networkmanager.createSite(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • Description — (String)

      A description of your site.

      Length Constraints: Maximum length of 256 characters.

    • Location — (map)

      The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.

      • Address: The physical address of the site.

      • Latitude: The latitude of the site.

      • Longitude: The longitude of the site.

      • Address — (String)

        The physical address.

      • Latitude — (String)

        The latitude.

      • Longitude — (String)

        The longitude.

    • Tags — (Array<map>)

      The tags to apply to the resource during creation.

      • Key — (String)

        The tag key.

        Length Constraints: Maximum length of 128 characters.

      • Value — (String)

        The tag value.

        Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Site — (map)

        Information about the site.

        • SiteId — (String)

          The ID of the site.

        • SiteArn — (String)

          The Amazon Resource Name (ARN) of the site.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the site.

        • Location — (map)

          The location of the site.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The state of the site.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the site.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDevice(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deleteDevice operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE' /* required */
};
networkmanager.deleteDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Device — (map)

        Information about the device.

        • DeviceId — (String)

          The ID of the device.

        • DeviceArn — (String)

          The Amazon Resource Name (ARN) of the device.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the device.

        • Type — (String)

          The device type.

        • Vendor — (String)

          The device vendor.

        • Model — (String)

          The device model.

        • SerialNumber — (String)

          The device serial number.

        • Location — (map)

          The site location.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • SiteId — (String)

          The site ID.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The device state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the device.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteGlobalNetwork(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deleteGlobalNetwork operation

var params = {
  GlobalNetworkId: 'STRING_VALUE' /* required */
};
networkmanager.deleteGlobalNetwork(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GlobalNetwork — (map)

        Information about the global network.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • GlobalNetworkArn — (String)

          The Amazon Resource Name (ARN) of the global network.

        • Description — (String)

          The description of the global network.

        • CreatedAt — (Date)

          The date and time that the global network was created.

        • State — (String)

          The state of the global network.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the global network.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Service Reference:

Examples:

Calling the deleteLink operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkId: 'STRING_VALUE' /* required */
};
networkmanager.deleteLink(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • LinkId — (String)

      The ID of the link.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Link — (map)

        Information about the link.

        • LinkId — (String)

          The ID of the link.

        • LinkArn — (String)

          The Amazon Resource Name (ARN) of the link.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • SiteId — (String)

          The ID of the site.

        • Description — (String)

          The description of the link.

        • Type — (String)

          The type of the link.

        • Bandwidth — (map)

          The bandwidth for the link.

          • UploadSpeed — (Integer)

            Upload speed in Mbps.

          • DownloadSpeed — (Integer)

            Download speed in Mbps.

        • Provider — (String)

          The provider of the link.

        • CreatedAt — (Date)

          The date and time that the link was created.

        • State — (String)

          The state of the link.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the link.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteSite(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deleteSite operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  SiteId: 'STRING_VALUE' /* required */
};
networkmanager.deleteSite(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • SiteId — (String)

      The ID of the site.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Site — (map)

        Information about the site.

        • SiteId — (String)

          The ID of the site.

        • SiteArn — (String)

          The Amazon Resource Name (ARN) of the site.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the site.

        • Location — (map)

          The location of the site.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The state of the site.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the site.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterTransitGateway(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the deregisterTransitGateway operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  TransitGatewayArn: 'STRING_VALUE' /* required */
};
networkmanager.deregisterTransitGateway(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • TransitGatewayArn — (String)

      The Amazon Resource Name (ARN) of the transit gateway.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransitGatewayRegistration — (map)

        The transit gateway registration information.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • TransitGatewayArn — (String)

          The Amazon Resource Name (ARN) of the transit gateway.

        • State — (map)

          The state of the transit gateway registration.

          • Code — (String)

            The code for the state reason.

            Possible values include:
            • "PENDING"
            • "AVAILABLE"
            • "DELETING"
            • "DELETED"
            • "FAILED"
          • Message — (String)

            The message for the state reason.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeGlobalNetworks(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeGlobalNetworks operation

var params = {
  GlobalNetworkIds: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
networkmanager.describeGlobalNetworks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkIds — (Array<String>)

      The IDs of one or more global networks. The maximum is 10.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GlobalNetworks — (Array<map>)

        Information about the global networks.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • GlobalNetworkArn — (String)

          The Amazon Resource Name (ARN) of the global network.

        • Description — (String)

          The description of the global network.

        • CreatedAt — (Date)

          The date and time that the global network was created.

        • State — (String)

          The state of the global network.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the global network.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateCustomerGateway(params = {}, callback) ⇒ AWS.Request

Disassociates a customer gateway from a device and a link.

Service Reference:

Examples:

Calling the disassociateCustomerGateway operation

var params = {
  CustomerGatewayArn: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE' /* required */
};
networkmanager.disassociateCustomerGateway(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • CustomerGatewayArn — (String)

      The Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CustomerGatewayAssociation — (map)

        Information about the customer gateway association.

        • CustomerGatewayArn — (String)

          The Amazon Resource Name (ARN) of the customer gateway.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The ID of the device.

        • LinkId — (String)

          The ID of the link.

        • State — (String)

          The association state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Service Reference:

Examples:

Calling the disassociateLink operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkId: 'STRING_VALUE' /* required */
};
networkmanager.disassociateLink(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

    • LinkId — (String)

      The ID of the link.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LinkAssociation — (map)

        Information about the link association.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The device ID for the link association.

        • LinkId — (String)

          The ID of the link.

        • LinkAssociationState — (String)

          The state of the association.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCustomerGatewayAssociations(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getCustomerGatewayAssociations operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  CustomerGatewayArns: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
networkmanager.getCustomerGatewayAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • CustomerGatewayArns — (Array<String>)

      One or more customer gateway Amazon Resource Names (ARNs). For more information, see Resources Defined by Amazon EC2. The maximum is 10.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CustomerGatewayAssociations — (Array<map>)

        The customer gateway associations.

        • CustomerGatewayArn — (String)

          The Amazon Resource Name (ARN) of the customer gateway.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The ID of the device.

        • LinkId — (String)

          The ID of the link.

        • State — (String)

          The association state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"
      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDevices(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getDevices operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  DeviceIds: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SiteId: 'STRING_VALUE'
};
networkmanager.getDevices(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceIds — (Array<String>)

      One or more device IDs. The maximum is 10.

    • SiteId — (String)

      The ID of the site.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Devices — (Array<map>)

        The devices.

        • DeviceId — (String)

          The ID of the device.

        • DeviceArn — (String)

          The Amazon Resource Name (ARN) of the device.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the device.

        • Type — (String)

          The device type.

        • Vendor — (String)

          The device vendor.

        • Model — (String)

          The device model.

        • SerialNumber — (String)

          The device serial number.

        • Location — (map)

          The site location.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • SiteId — (String)

          The site ID.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The device state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the device.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getLinkAssociations(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getLinkAssociations operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  DeviceId: 'STRING_VALUE',
  LinkId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
networkmanager.getLinkAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

    • LinkId — (String)

      The ID of the link.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LinkAssociations — (Array<map>)

        The link associations.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • DeviceId — (String)

          The device ID for the link association.

        • LinkId — (String)

          The ID of the link.

        • LinkAssociationState — (String)

          The state of the association.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "DELETED"
      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getLinks operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkIds: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Provider: 'STRING_VALUE',
  SiteId: 'STRING_VALUE',
  Type: 'STRING_VALUE'
};
networkmanager.getLinks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • LinkIds — (Array<String>)

      One or more link IDs. The maximum is 10.

    • SiteId — (String)

      The ID of the site.

    • Type — (String)

      The link type.

    • Provider — (String)

      The link provider.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Links — (Array<map>)

        The links.

        • LinkId — (String)

          The ID of the link.

        • LinkArn — (String)

          The Amazon Resource Name (ARN) of the link.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • SiteId — (String)

          The ID of the site.

        • Description — (String)

          The description of the link.

        • Type — (String)

          The type of the link.

        • Bandwidth — (map)

          The bandwidth for the link.

          • UploadSpeed — (Integer)

            Upload speed in Mbps.

          • DownloadSpeed — (Integer)

            Download speed in Mbps.

        • Provider — (String)

          The provider of the link.

        • CreatedAt — (Date)

          The date and time that the link was created.

        • State — (String)

          The state of the link.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the link.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSites(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getSites operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SiteIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
networkmanager.getSites(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • SiteIds — (Array<String>)

      One or more site IDs. The maximum is 10.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Sites — (Array<map>)

        The sites.

        • SiteId — (String)

          The ID of the site.

        • SiteArn — (String)

          The Amazon Resource Name (ARN) of the site.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the site.

        • Location — (map)

          The location of the site.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The state of the site.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the site.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTransitGatewayRegistrations(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getTransitGatewayRegistrations operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  TransitGatewayArns: [
    'STRING_VALUE',
    /* more items */
  ]
};
networkmanager.getTransitGatewayRegistrations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • TransitGatewayArns — (Array<String>)

      The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum is 10.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransitGatewayRegistrations — (Array<map>)

        The transit gateway registrations.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • TransitGatewayArn — (String)

          The Amazon Resource Name (ARN) of the transit gateway.

        • State — (map)

          The state of the transit gateway registration.

          • Code — (String)

            The code for the state reason.

            Possible values include:
            • "PENDING"
            • "AVAILABLE"
            • "DELETING"
            • "DELETED"
            • "FAILED"
          • Message — (String)

            The message for the state reason.

      • NextToken — (String)

        The token for the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists the tags for a specified resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
networkmanager.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TagList — (Array<map>)

        The list of tags.

        • Key — (String)

          The tag key.

          Length Constraints: Maximum length of 128 characters.

        • Value — (String)

          The tag value.

          Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerTransitGateway(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the registerTransitGateway operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  TransitGatewayArn: 'STRING_VALUE' /* required */
};
networkmanager.registerTransitGateway(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • TransitGatewayArn — (String)

      The Amazon Resource Name (ARN) of the transit gateway. For more information, see Resources Defined by Amazon EC2.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransitGatewayRegistration — (map)

        Information about the transit gateway registration.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • TransitGatewayArn — (String)

          The Amazon Resource Name (ARN) of the transit gateway.

        • State — (map)

          The state of the transit gateway registration.

          • Code — (String)

            The code for the state reason.

            Possible values include:
            • "PENDING"
            • "AVAILABLE"
            • "DELETING"
            • "DELETED"
            • "FAILED"
          • Message — (String)

            The message for the state reason.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Tags a specified resource.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
networkmanager.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • Tags — (Array<map>)

      The tags to apply to the specified resource.

      • Key — (String)

        The tag key.

        Length Constraints: Maximum length of 128 characters.

      • Value — (String)

        The tag value.

        Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes tags from a specified resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
networkmanager.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • TagKeys — (Array<String>)

      The tag keys to remove from the specified resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDevice(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateDevice operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  GlobalNetworkId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Location: {
    Address: 'STRING_VALUE',
    Latitude: 'STRING_VALUE',
    Longitude: 'STRING_VALUE'
  },
  Model: 'STRING_VALUE',
  SerialNumber: 'STRING_VALUE',
  SiteId: 'STRING_VALUE',
  Type: 'STRING_VALUE',
  Vendor: 'STRING_VALUE'
};
networkmanager.updateDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • DeviceId — (String)

      The ID of the device.

    • Description — (String)

      A description of the device.

      Length Constraints: Maximum length of 256 characters.

    • Type — (String)

      The type of the device.

    • Vendor — (String)

      The vendor of the device.

      Length Constraints: Maximum length of 128 characters.

    • Model — (String)

      The model of the device.

      Length Constraints: Maximum length of 128 characters.

    • SerialNumber — (String)

      The serial number of the device.

      Length Constraints: Maximum length of 128 characters.

    • Location — (map)

      Describes a location.

      • Address — (String)

        The physical address.

      • Latitude — (String)

        The latitude.

      • Longitude — (String)

        The longitude.

    • SiteId — (String)

      The ID of the site.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Device — (map)

        Information about the device.

        • DeviceId — (String)

          The ID of the device.

        • DeviceArn — (String)

          The Amazon Resource Name (ARN) of the device.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the device.

        • Type — (String)

          The device type.

        • Vendor — (String)

          The device vendor.

        • Model — (String)

          The device model.

        • SerialNumber — (String)

          The device serial number.

        • Location — (map)

          The site location.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • SiteId — (String)

          The site ID.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The device state.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the device.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateGlobalNetwork(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateGlobalNetwork operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE'
};
networkmanager.updateGlobalNetwork(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of your global network.

    • Description — (String)

      A description of the global network.

      Length Constraints: Maximum length of 256 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GlobalNetwork — (map)

        Information about the global network object.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • GlobalNetworkArn — (String)

          The Amazon Resource Name (ARN) of the global network.

        • Description — (String)

          The description of the global network.

        • CreatedAt — (Date)

          The date and time that the global network was created.

        • State — (String)

          The state of the global network.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the global network.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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

Service Reference:

Examples:

Calling the updateLink operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  LinkId: 'STRING_VALUE', /* required */
  Bandwidth: {
    DownloadSpeed: 'NUMBER_VALUE',
    UploadSpeed: 'NUMBER_VALUE'
  },
  Description: 'STRING_VALUE',
  Provider: 'STRING_VALUE',
  Type: 'STRING_VALUE'
};
networkmanager.updateLink(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • LinkId — (String)

      The ID of the link.

    • Description — (String)

      A description of the link.

      Length Constraints: Maximum length of 256 characters.

    • Type — (String)

      The type of the link.

      Length Constraints: Maximum length of 128 characters.

    • Bandwidth — (map)

      The upload and download speed in Mbps.

      • UploadSpeed — (Integer)

        Upload speed in Mbps.

      • DownloadSpeed — (Integer)

        Download speed in Mbps.

    • Provider — (String)

      The provider of the link.

      Length Constraints: Maximum length of 128 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Link — (map)

        Information about the link.

        • LinkId — (String)

          The ID of the link.

        • LinkArn — (String)

          The Amazon Resource Name (ARN) of the link.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • SiteId — (String)

          The ID of the site.

        • Description — (String)

          The description of the link.

        • Type — (String)

          The type of the link.

        • Bandwidth — (map)

          The bandwidth for the link.

          • UploadSpeed — (Integer)

            Upload speed in Mbps.

          • DownloadSpeed — (Integer)

            Download speed in Mbps.

        • Provider — (String)

          The provider of the link.

        • CreatedAt — (Date)

          The date and time that the link was created.

        • State — (String)

          The state of the link.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the link.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSite(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateSite operation

var params = {
  GlobalNetworkId: 'STRING_VALUE', /* required */
  SiteId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Location: {
    Address: 'STRING_VALUE',
    Latitude: 'STRING_VALUE',
    Longitude: 'STRING_VALUE'
  }
};
networkmanager.updateSite(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GlobalNetworkId — (String)

      The ID of the global network.

    • SiteId — (String)

      The ID of your site.

    • Description — (String)

      A description of your site.

      Length Constraints: Maximum length of 256 characters.

    • Location — (map)

      The site location:

      • Address: The physical address of the site.

      • Latitude: The latitude of the site.

      • Longitude: The longitude of the site.

      • Address — (String)

        The physical address.

      • Latitude — (String)

        The latitude.

      • Longitude — (String)

        The longitude.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Site — (map)

        Information about the site.

        • SiteId — (String)

          The ID of the site.

        • SiteArn — (String)

          The Amazon Resource Name (ARN) of the site.

        • GlobalNetworkId — (String)

          The ID of the global network.

        • Description — (String)

          The description of the site.

        • Location — (map)

          The location of the site.

          • Address — (String)

            The physical address.

          • Latitude — (String)

            The latitude.

          • Longitude — (String)

            The longitude.

        • CreatedAt — (Date)

          The date and time that the site was created.

        • State — (String)

          The state of the site.

          Possible values include:
          • "PENDING"
          • "AVAILABLE"
          • "DELETING"
          • "UPDATING"
        • Tags — (Array<map>)

          The tags for the site.

          • Key — (String)

            The tag key.

            Length Constraints: Maximum length of 128 characters.

          • Value — (String)

            The tag value.

            Length Constraints: Maximum length of 256 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.