We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.Tnb

Inherits:
AWS.Service show all
Identifier:
tnb
API Version:
2008-10-21
Defined in:
(unknown)

Overview

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

Service Description

Amazon Web Services Telco Network Builder (TNB) is a network automation service that helps you deploy and manage telecom networks. AWS TNB helps you with the lifecycle management of your telecommunication network functions throughout planning, deployment, and post-deployment activities.

Sending a Request Using Tnb

var tnb = new AWS.Tnb();
tnb.cancelSolNetworkOperation(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 Tnb object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var tnb = new AWS.Tnb({apiVersion: '2008-10-21'});

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

AWS.config.apiVersions = {
  tnb: '2008-10-21',
  // other service API versions
};

var tnb = new AWS.Tnb();

Version:

  • 2008-10-21

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.Tnb(options = {}) ⇒ Object

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

Examples:

Constructing a Tnb object

var tnb = new AWS.Tnb({apiVersion: '2008-10-21'});

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|AWS.Endpoint)

    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' or an Endpoint object.

  • 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.Tnb.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Tnb.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. The function is only called for retryable errors.
  • 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'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

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

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

Cancels a network operation.

A network operation is any operation that is done to your network, such as network instance instantiation or termination.

Service Reference:

Examples:

Calling the cancelSolNetworkOperation operation

var params = {
  nsLcmOpOccId: 'STRING_VALUE' /* required */
};
tnb.cancelSolNetworkOperation(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: {})
    • nsLcmOpOccId — (String)

      The identifier of the network operation.

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.

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

Creates a function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network. For more information, see Function packages in the Amazon Web Services Telco Network Builder User Guide.

Creating a function package is the first step for creating a network in AWS TNB. This request creates an empty container with an ID. The next step is to upload the actual CSAR zip file into that empty container. To upload function package content, see PutSolFunctionPackageContent.

Service Reference:

Examples:

Calling the createSolFunctionPackage operation

var params = {
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.createSolFunctionPackage(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: {})
    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

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:

      • arn — (String)

        Function package ARN.

      • id — (String)

        ID of the function package.

      • onboardingState — (String)

        Onboarding state of the function package.

        Possible values include:
        • "CREATED"
        • "ONBOARDED"
        • "ERROR"
      • operationalState — (String)

        Operational state of the function package.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

      • usageState — (String)

        Usage state of the function package.

        Possible values include:
        • "IN_USE"
        • "NOT_IN_USE"

Returns:

  • (AWS.Request)

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

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

Creates a network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. Creating a network instance is the third step after creating a network package. For more information about network instances, Network instances in the Amazon Web Services Telco Network Builder User Guide.

Once you create a network instance, you can instantiate it. To instantiate a network, see InstantiateSolNetworkInstance.

Service Reference:

Examples:

Calling the createSolNetworkInstance operation

var params = {
  nsName: 'STRING_VALUE', /* required */
  nsdInfoId: 'STRING_VALUE', /* required */
  nsDescription: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.createSolNetworkInstance(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: {})
    • nsDescription — (String)

      Network instance description.

    • nsName — (String)

      Network instance name.

    • nsdInfoId — (String)

      ID for network service descriptor.

    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

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:

      • arn — (String)

        Network instance ARN.

      • id — (String)

        Network instance ID.

      • nsInstanceName — (String)

        Network instance name.

      • nsdInfoId — (String)

        Network service descriptor ID.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Creates a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on. For more information, see Network instances in the Amazon Web Services Telco Network Builder User Guide.

A network package consists of a network service descriptor (NSD) file (required) and any additional files (optional), such as scripts specific to your needs. For example, if you have multiple function packages in your network package, you can use the NSD to define which network functions should run in certain VPCs, subnets, or EKS clusters.

This request creates an empty network package container with an ID. Once you create a network package, you can upload the network package content using PutSolNetworkPackageContent.

Service Reference:

Examples:

Calling the createSolNetworkPackage operation

var params = {
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.createSolNetworkPackage(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: {})
    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

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:

      • arn — (String)

        Network package ARN.

      • id — (String)

        ID of the network package.

      • nsdOnboardingState — (String)

        Onboarding state of the network service descriptor in the network package.

        Possible values include:
        • "CREATED"
        • "ONBOARDED"
        • "ERROR"
      • nsdOperationalState — (String)

        Operational state of the network service descriptor in the network package.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • nsdUsageState — (String)

        Usage state of the network service descriptor in the network package.

        Possible values include:
        • "IN_USE"
        • "NOT_IN_USE"
      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Deletes a function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

To delete a function package, the package must be in a disabled state. To disable a function package, see UpdateSolFunctionPackage.

Service Reference:

Examples:

Calling the deleteSolFunctionPackage operation

var params = {
  vnfPkgId: 'STRING_VALUE' /* required */
};
tnb.deleteSolFunctionPackage(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: {})
    • vnfPkgId — (String)

      ID of the function package.

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.

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

Deletes a network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

To delete a network instance, the instance must be in a stopped or terminated state. To terminate a network instance, see TerminateSolNetworkInstance.

Service Reference:

Examples:

Calling the deleteSolNetworkInstance operation

var params = {
  nsInstanceId: 'STRING_VALUE' /* required */
};
tnb.deleteSolNetworkInstance(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: {})
    • nsInstanceId — (String)

      Network instance ID.

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.

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

Deletes network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

To delete a network package, the package must be in a disable state. To disable a network package, see UpdateSolNetworkPackage.

Service Reference:

Examples:

Calling the deleteSolNetworkPackage operation

var params = {
  nsdInfoId: 'STRING_VALUE' /* required */
};
tnb.deleteSolNetworkPackage(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: {})
    • nsdInfoId — (String)

      ID of the network service descriptor in the network package.

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.

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

Gets the details of a network function instance, including the instantation state and metadata from the function package descriptor in the network function package.

A network function instance is a function in a function package .

Service Reference:

Examples:

Calling the getSolFunctionInstance operation

var params = {
  vnfInstanceId: 'STRING_VALUE' /* required */
};
tnb.getSolFunctionInstance(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: {})
    • vnfInstanceId — (String)

      ID of the network function.

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:

      • arn — (String)

        Network function instance ARN.

      • id — (String)

        Network function instance ID.

      • instantiatedVnfInfo — (map)

        Information about the network function.

        A network function instance is a function in a function package .

        • vnfState — (String)

          State of the network function instance.

          Possible values include:
          • "STARTED"
          • "STOPPED"
        • vnfcResourceInfo — (Array<map>)

          Compute info used by the network function instance.

          • metadata — (map)

            The metadata of the network function compute.

            • cluster — (String)

              Information about the cluster.

            • helmChart — (String)

              Information about the helm chart.

            • nodeGroup — (String)

              Information about the node group.

      • instantiationState — (String)

        Network function instantiation state.

        Possible values include:
        • "INSTANTIATED"
        • "NOT_INSTANTIATED"
      • metadata — (map)

        The metadata of a network function instance.

        A network function instance is a function in a function package .

        • createdAtrequired — (Date)

          The date that the resource was created.

        • lastModifiedrequired — (Date)

          The date that the resource was last modified.

      • nsInstanceId — (String)

        Network instance ID.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

      • vnfPkgId — (String)

        Function package ID.

      • vnfProductName — (String)

        Network function product name.

      • vnfProvider — (String)

        Network function provider.

      • vnfdId — (String)

        Function package descriptor ID.

      • vnfdVersion — (String)

        Function package descriptor version.

Returns:

  • (AWS.Request)

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

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

Gets the details of an individual function package, such as the operational state and whether the package is in use.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network..

Service Reference:

Examples:

Calling the getSolFunctionPackage operation

var params = {
  vnfPkgId: 'STRING_VALUE' /* required */
};
tnb.getSolFunctionPackage(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: {})
    • vnfPkgId — (String)

      ID of the function package.

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:

      • arn — (String)

        Function package ARN.

      • id — (String)

        Function package ID.

      • metadata — (map)

        Metadata related to the function package.

        A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

        • createdAtrequired — (Date)

          The date that the resource was created.

        • lastModifiedrequired — (Date)

          The date that the resource was last modified.

        • vnfd — (map)

          Metadata related to the function package descriptor of the function package.

          • overrides — (Array<map>)

            Lists of function package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • onboardingState — (String)

        Function package onboarding state.

        Possible values include:
        • "CREATED"
        • "ONBOARDED"
        • "ERROR"
      • operationalState — (String)

        Function package operational state.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

      • usageState — (String)

        Function package usage state.

        Possible values include:
        • "IN_USE"
        • "NOT_IN_USE"
      • vnfProductName — (String)

        Network function product name.

      • vnfProvider — (String)

        Network function provider.

      • vnfdId — (String)

        Function package descriptor ID.

      • vnfdVersion — (String)

        Function package descriptor version.

Returns:

  • (AWS.Request)

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

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

Gets the contents of a function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Service Reference:

Examples:

Calling the getSolFunctionPackageContent operation

var params = {
  accept: application/zip, /* required */
  vnfPkgId: 'STRING_VALUE' /* required */
};
tnb.getSolFunctionPackageContent(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: {})
    • accept — (String)

      The format of the package that you want to download from the function packages.

      Possible values include:
      • "application/zip"
    • vnfPkgId — (String)

      ID of the function package.

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:

      • contentType — (String)

        Indicates the media type of the resource.

        Possible values include:
        • "application/zip"
      • packageContent — (Buffer(Node.js), Typed Array(Browser))

        Contents of the function package.

Returns:

  • (AWS.Request)

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

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

Gets a function package descriptor in a function package.

A function package descriptor is a .yaml file in a function package that uses the TOSCA standard to describe how the network function in the function package should run on your network.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Service Reference:

Examples:

Calling the getSolFunctionPackageDescriptor operation

var params = {
  accept: text/plain, /* required */
  vnfPkgId: 'STRING_VALUE' /* required */
};
tnb.getSolFunctionPackageDescriptor(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: {})
    • accept — (String)

      Indicates which content types, expressed as MIME types, the client is able to understand.

      Possible values include:
      • "text/plain"
    • vnfPkgId — (String)

      ID of the function package.

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:

      • contentType — (String)

        Indicates the media type of the resource.

        Possible values include:
        • "text/plain"
      • vnfd — (Buffer(Node.js), Typed Array(Browser))

        Contents of the function package descriptor.

Returns:

  • (AWS.Request)

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

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

Gets the details of the network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

Service Reference:

Examples:

Calling the getSolNetworkInstance operation

var params = {
  nsInstanceId: 'STRING_VALUE' /* required */
};
tnb.getSolNetworkInstance(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: {})
    • nsInstanceId — (String)

      ID of the network instance.

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:

      • arn — (String)

        Network instance ARN.

      • id — (String)

        Network instance ID.

      • lcmOpInfo — (map)

        Lifecycle management operation details on the network instance.

        Lifecycle management operations are deploy, update, or delete operations.

        • nsLcmOpOccIdrequired — (String)

          The identifier of the network operation.

      • metadata — (map)

        The metadata of a network instance.

        A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

        • createdAtrequired — (Date)

          The date that the resource was created.

        • lastModifiedrequired — (Date)

          The date that the resource was last modified.

      • nsInstanceDescription — (String)

        Network instance description.

      • nsInstanceName — (String)

        Network instance name.

      • nsState — (String)

        Network instance state.

        Possible values include:
        • "INSTANTIATED"
        • "NOT_INSTANTIATED"
        • "IMPAIRED"
        • "STOPPED"
        • "DELETED"
        • "INSTANTIATE_IN_PROGRESS"
        • "UPDATE_IN_PROGRESS"
        • "TERMINATE_IN_PROGRESS"
      • nsdId — (String)

        Network service descriptor ID.

      • nsdInfoId — (String)

        Network service descriptor info ID.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Gets the details of a network operation, including the tasks involved in the network operation and the status of the tasks.

A network operation is any operation that is done to your network, such as network instance instantiation or termination.

Service Reference:

Examples:

Calling the getSolNetworkOperation operation

var params = {
  nsLcmOpOccId: 'STRING_VALUE' /* required */
};
tnb.getSolNetworkOperation(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: {})
    • nsLcmOpOccId — (String)

      The identifier of the network operation.

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:

      • arn — (String)

        Network operation ARN.

      • error — (map)

        Error related to this specific network operation occurrence.

        • detailrequired — (String)

          A human-readable explanation specific to this occurrence of the problem.

        • title — (String)

          A human-readable title of the problem type.

      • id — (String)

        ID of this network operation occurrence.

      • lcmOperationType — (String)

        Type of the operation represented by this occurrence.

        Possible values include:
        • "INSTANTIATE"
        • "UPDATE"
        • "TERMINATE"
      • metadata — (map)

        Metadata of this network operation occurrence.

        • createdAtrequired — (Date)

          The date that the resource was created.

        • lastModifiedrequired — (Date)

          The date that the resource was last modified.

      • nsInstanceId — (String)

        ID of the network operation instance.

      • operationState — (String)

        The state of the network operation.

        Possible values include:
        • "PROCESSING"
        • "COMPLETED"
        • "FAILED"
        • "CANCELLING"
        • "CANCELLED"
      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

      • tasks — (Array<map>)

        All tasks associated with this operation occurrence.

        • taskContext — (map<String>)

          Context for the network operation task.

        • taskEndTime — (Date)

          Task end time.

        • taskErrorDetails — (map)

          Task error details.

          • cause — (String)

            Error cause.

          • details — (String)

            Error details.

        • taskName — (String)

          Task name.

        • taskStartTime — (Date)

          Task start time.

        • taskStatus — (String)

          Task status.

          Possible values include:
          • "SCHEDULED"
          • "STARTED"
          • "IN_PROGRESS"
          • "COMPLETED"
          • "ERROR"
          • "SKIPPED"
          • "CANCELLED"

Returns:

  • (AWS.Request)

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

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

Gets the details of a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Service Reference:

Examples:

Calling the getSolNetworkPackage operation

var params = {
  nsdInfoId: 'STRING_VALUE' /* required */
};
tnb.getSolNetworkPackage(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: {})
    • nsdInfoId — (String)

      ID of the network service descriptor in the network package.

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:

      • arn — (String)

        Network package ARN.

      • id — (String)

        Network package ID.

      • metadata — (map)

        Metadata associated with a network package.

        A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

        • createdAtrequired — (Date)

          The date that the resource was created.

        • lastModifiedrequired — (Date)

          The date that the resource was last modified.

        • nsd — (map)

          Metadata related to the onboarded network service descriptor in the network package.

          • overrides — (Array<map>)

            Lists network package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • nsdId — (String)

        Network service descriptor ID.

      • nsdName — (String)

        Network service descriptor name.

      • nsdOnboardingState — (String)

        Network service descriptor onboarding state.

        Possible values include:
        • "CREATED"
        • "ONBOARDED"
        • "ERROR"
      • nsdOperationalState — (String)

        Network service descriptor operational state.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • nsdUsageState — (String)

        Network service descriptor usage state.

        Possible values include:
        • "IN_USE"
        • "NOT_IN_USE"
      • nsdVersion — (String)

        Network service descriptor version.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

      • vnfPkgIds — (Array<String>)

        Identifies the function package for the function package descriptor referenced by the onboarded network package.

Returns:

  • (AWS.Request)

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

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

Gets the contents of a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Service Reference:

Examples:

Calling the getSolNetworkPackageContent operation

var params = {
  accept: application/zip, /* required */
  nsdInfoId: 'STRING_VALUE' /* required */
};
tnb.getSolNetworkPackageContent(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: {})
    • accept — (String)

      The format of the package you want to download from the network package.

      Possible values include:
      • "application/zip"
    • nsdInfoId — (String)

      ID of the network service descriptor in the network package.

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:

      • contentType — (String)

        Indicates the media type of the resource.

        Possible values include:
        • "application/zip"
      • nsdContent — (Buffer(Node.js), Typed Array(Browser))

        Content of the network service descriptor in the network package.

Returns:

  • (AWS.Request)

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

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

Gets the content of the network service descriptor.

A network service descriptor is a .yaml file in a network package that uses the TOSCA standard to describe the network functions you want to deploy and the Amazon Web Services infrastructure you want to deploy the network functions on.

Service Reference:

Examples:

Calling the getSolNetworkPackageDescriptor operation

var params = {
  nsdInfoId: 'STRING_VALUE' /* required */
};
tnb.getSolNetworkPackageDescriptor(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: {})
    • nsdInfoId — (String)

      ID of the network service descriptor in the network package.

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:

      • contentType — (String)

        Indicates the media type of the resource.

        Possible values include:
        • "text/plain"
      • nsd — (Buffer(Node.js), Typed Array(Browser))

        Contents of the network service descriptor in the network package.

Returns:

  • (AWS.Request)

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

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

Instantiates a network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

Before you can instantiate a network instance, you have to create a network instance. For more information, see CreateSolNetworkInstance.

Service Reference:

Examples:

Calling the instantiateSolNetworkInstance operation

var params = {
  nsInstanceId: 'STRING_VALUE', /* required */
  additionalParamsForNs: {
  },
  dryRun: true || false,
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.instantiateSolNetworkInstance(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: {})
    • additionalParamsForNs — (map)

      Provides values for the configurable properties.

    • dryRun — (Boolean)

      A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    • nsInstanceId — (String)

      ID of the network instance.

    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

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:

      • nsLcmOpOccId — (String)

        The identifier of the network operation.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Lists network function instances.

A network function instance is a function in a function package .

Service Reference:

Examples:

Calling the listSolFunctionInstances operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
tnb.listSolFunctionInstances(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: {})
    • maxResults — (Integer)

      The maximum number of results to include in the response.

    • 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:

      • functionInstances — (Array<map>)

        Network function instances.

        • arnrequired — (String)

          Network function instance ARN.

        • idrequired — (String)

          Network function instance ID.

        • instantiatedVnfInfo — (map)

          Information about a network function.

          A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

          • vnfState — (String)

            State of the network function.

            Possible values include:
            • "STARTED"
            • "STOPPED"
        • instantiationStaterequired — (String)

          Network function instance instantiation state.

          Possible values include:
          • "INSTANTIATED"
          • "NOT_INSTANTIATED"
        • metadatarequired — (map)

          Network function instance metadata.

          • createdAtrequired — (Date)

            When the network function instance was created.

          • lastModifiedrequired — (Date)

            When the network function instance was last modified.

        • nsInstanceIdrequired — (String)

          Network instance ID.

        • vnfPkgIdrequired — (String)

          Function package ID.

        • vnfPkgName — (String)

          Function package name.

      • nextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Lists information about function packages.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Service Reference:

Examples:

Calling the listSolFunctionPackages operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
tnb.listSolFunctionPackages(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: {})
    • maxResults — (Integer)

      The maximum number of results to include in the response.

    • 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:

      • functionPackages — (Array<map>)

        Function packages. A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

        • arnrequired — (String)

          Function package ARN.

        • idrequired — (String)

          ID of the function package.

        • metadata — (map)

          The metadata of the function package.

          • createdAtrequired — (Date)

            The date that the resource was created.

          • lastModifiedrequired — (Date)

            The date that the resource was last modified.

        • onboardingStaterequired — (String)

          Onboarding state of the function package.

          Possible values include:
          • "CREATED"
          • "ONBOARDED"
          • "ERROR"
        • operationalStaterequired — (String)

          Operational state of the function package.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • usageStaterequired — (String)

          Usage state of the function package.

          Possible values include:
          • "IN_USE"
          • "NOT_IN_USE"
        • vnfProductName — (String)

          The product name for the network function.

        • vnfProvider — (String)

          Provider of the function package and the function package descriptor.

        • vnfdId — (String)

          Identifies the function package and the function package descriptor.

        • vnfdVersion — (String)

          Identifies the version of the function package descriptor.

      • nextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Lists your network instances.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

Service Reference:

Examples:

Calling the listSolNetworkInstances operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
tnb.listSolNetworkInstances(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: {})
    • maxResults — (Integer)

      The maximum number of results to include in the response.

    • 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:

      • networkInstances — (Array<map>)

        Lists network instances.

        • arnrequired — (String)

          Network instance ARN.

        • idrequired — (String)

          ID of the network instance.

        • metadatarequired — (map)

          The metadata of the network instance.

          • createdAtrequired — (Date)

            The date that the resource was created.

          • lastModifiedrequired — (Date)

            The date that the resource was last modified.

        • nsInstanceDescriptionrequired — (String)

          Human-readable description of the network instance.

        • nsInstanceNamerequired — (String)

          Human-readable name of the network instance.

        • nsStaterequired — (String)

          The state of the network instance.

          Possible values include:
          • "INSTANTIATED"
          • "NOT_INSTANTIATED"
          • "IMPAIRED"
          • "STOPPED"
          • "DELETED"
          • "INSTANTIATE_IN_PROGRESS"
          • "UPDATE_IN_PROGRESS"
          • "TERMINATE_IN_PROGRESS"
        • nsdIdrequired — (String)

          ID of the network service descriptor in the network package.

        • nsdInfoIdrequired — (String)

          ID of the network service descriptor in the network package.

      • nextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Lists details for a network operation, including when the operation started and the status of the operation.

A network operation is any operation that is done to your network, such as network instance instantiation or termination.

Service Reference:

Examples:

Calling the listSolNetworkOperations operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
tnb.listSolNetworkOperations(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: {})
    • maxResults — (Integer)

      The maximum number of results to include in the response.

    • 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:

      • networkOperations — (Array<map>)

        Lists network operation occurrences. Lifecycle management operations are deploy, update, or delete operations.

        • arnrequired — (String)

          Network operation ARN.

        • error — (map)

          Error related to this specific network operation.

          • detailrequired — (String)

            A human-readable explanation specific to this occurrence of the problem.

          • title — (String)

            A human-readable title of the problem type.

        • idrequired — (String)

          ID of this network operation.

        • lcmOperationTyperequired — (String)

          Type of lifecycle management network operation.

          Possible values include:
          • "INSTANTIATE"
          • "UPDATE"
          • "TERMINATE"
        • metadata — (map)

          Metadata related to this network operation.

          • createdAtrequired — (Date)

            The date that the resource was created.

          • lastModifiedrequired — (Date)

            The date that the resource was last modified.

        • nsInstanceIdrequired — (String)

          ID of the network instance related to this operation.

        • operationStaterequired — (String)

          The state of the network operation.

          Possible values include:
          • "PROCESSING"
          • "COMPLETED"
          • "FAILED"
          • "CANCELLING"
          • "CANCELLED"
      • nextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Lists network packages.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Service Reference:

Examples:

Calling the listSolNetworkPackages operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
tnb.listSolNetworkPackages(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: {})
    • maxResults — (Integer)

      The maximum number of results to include in the response.

    • 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:

      • networkPackages — (Array<map>)

        Network packages. A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

        • arnrequired — (String)

          Network package ARN.

        • idrequired — (String)

          ID of the individual network package.

        • metadatarequired — (map)

          The metadata of the network package.

          • createdAtrequired — (Date)

            The date that the resource was created.

          • lastModifiedrequired — (Date)

            The date that the resource was last modified.

        • nsdDesigner — (String)

          Designer of the onboarded network service descriptor in the network package.

        • nsdId — (String)

          ID of the network service descriptor on which the network package is based.

        • nsdInvariantId — (String)

          Identifies a network service descriptor in a version independent manner.

        • nsdName — (String)

          Name of the onboarded network service descriptor in the network package.

        • nsdOnboardingStaterequired — (String)

          Onboarding state of the network service descriptor in the network package.

          Possible values include:
          • "CREATED"
          • "ONBOARDED"
          • "ERROR"
        • nsdOperationalStaterequired — (String)

          Operational state of the network service descriptor in the network package.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • nsdUsageStaterequired — (String)

          Usage state of the network service descriptor in the network package.

          Possible values include:
          • "IN_USE"
          • "NOT_IN_USE"
        • nsdVersion — (String)

          Version of the onboarded network service descriptor in the network package.

        • vnfPkgIds — (Array<String>)

          Identifies the function package for the function package descriptor referenced by the onboarded network package.

      • nextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

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

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

Lists tags for AWS TNB resources.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
tnb.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)

      Resource ARN.

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:

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Uploads the contents of a function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Service Reference:

Examples:

Calling the putSolFunctionPackageContent operation

var params = {
  file: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  vnfPkgId: 'STRING_VALUE', /* required */
  contentType: application/zip
};
tnb.putSolFunctionPackageContent(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: {})
    • contentType — (String)

      Function package content type.

      Possible values include:
      • "application/zip"
    • file — (Buffer, Typed Array, Blob, String)

      Function package file.

    • vnfPkgId — (String)

      Function package ID.

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:

      • id — (String)

        Function package ID.

      • metadata — (map)

        Function package metadata.

        • vnfd — (map)

          Metadata for function package artifacts.

          Artifacts are the contents of the package descriptor file and the state of the package.

          • overrides — (Array<map>)

            Lists of function package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • vnfProductName — (String)

        Function product name.

      • vnfProvider — (String)

        Function provider.

      • vnfdId — (String)

        Function package descriptor ID.

      • vnfdVersion — (String)

        Function package descriptor version.

Returns:

  • (AWS.Request)

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

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

Uploads the contents of a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Service Reference:

Examples:

Calling the putSolNetworkPackageContent operation

var params = {
  file: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  nsdInfoId: 'STRING_VALUE', /* required */
  contentType: application/zip
};
tnb.putSolNetworkPackageContent(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: {})
    • contentType — (String)

      Network package content type.

      Possible values include:
      • "application/zip"
    • file — (Buffer, Typed Array, Blob, String)

      Network package file.

    • nsdInfoId — (String)

      Network service descriptor info ID.

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:

      • arn — (String)

        Network package ARN.

      • id — (String)

        Network package ID.

      • metadata — (map)

        Network package metadata.

        • nsd — (map)

          Metadata for network package artifacts.

          Artifacts are the contents of the package descriptor file and the state of the package.

          • overrides — (Array<map>)

            Lists network package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • nsdId — (String)

        Network service descriptor ID.

      • nsdName — (String)

        Network service descriptor name.

      • nsdVersion — (String)

        Network service descriptor version.

      • vnfPkgIds — (Array<String>)

        Function package IDs.

Returns:

  • (AWS.Request)

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

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

Tags an AWS TNB resource.

A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.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)

      Resource ARN.

    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

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.

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

Terminates a network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

You must terminate a network instance before you can delete it.

Service Reference:

Examples:

Calling the terminateSolNetworkInstance operation

var params = {
  nsInstanceId: 'STRING_VALUE', /* required */
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.terminateSolNetworkInstance(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: {})
    • nsInstanceId — (String)

      ID of the network instance.

    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

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:

      • nsLcmOpOccId — (String)

        The identifier of the network operation.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Untags an AWS TNB resource.

A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
tnb.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)

      Resource ARN.

    • tagKeys — (Array<String>)

      Tag keys.

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.

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

Updates the operational state of function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Service Reference:

Examples:

Calling the updateSolFunctionPackage operation

var params = {
  operationalState: ENABLED | DISABLED, /* required */
  vnfPkgId: 'STRING_VALUE' /* required */
};
tnb.updateSolFunctionPackage(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: {})
    • operationalState — (String)

      Operational state of the function package.

      Possible values include:
      • "ENABLED"
      • "DISABLED"
    • vnfPkgId — (String)

      ID of the function package.

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:

      • operationalState — (String)

        Operational state of the function package.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

Update a network instance.

A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

Service Reference:

Examples:

Calling the updateSolNetworkInstance operation

var params = {
  nsInstanceId: 'STRING_VALUE', /* required */
  updateType: MODIFY_VNF_INFORMATION, /* required */
  modifyVnfInfoData: {
    vnfConfigurableProperties: { /* required */
    },
    vnfInstanceId: 'STRING_VALUE' /* required */
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
tnb.updateSolNetworkInstance(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: {})
    • modifyVnfInfoData — (map)

      Identifies the network function information parameters and/or the configurable properties of the network function to be modified.

      • vnfConfigurablePropertiesrequired — (map)

        Provides values for the configurable properties declared in the function package descriptor.

      • vnfInstanceIdrequired — (String)

        ID of the network function instance.

        A network function instance is a function in a function package .

    • nsInstanceId — (String)

      ID of the network instance.

    • tags — (map<String>)

      A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

    • updateType — (String)

      The type of update.

      Possible values include:
      • "MODIFY_VNF_INFORMATION"

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:

      • nsLcmOpOccId — (String)

        The identifier of the network operation.

      • tags — (map<String>)

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are transferred to the network operation that is created. Use tags to search and filter your resources or track your Amazon Web Services costs.

Returns:

  • (AWS.Request)

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

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

Updates the operational state of a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

A network service descriptor is a .yaml file in a network package that uses the TOSCA standard to describe the network functions you want to deploy and the Amazon Web Services infrastructure you want to deploy the network functions on.

Service Reference:

Examples:

Calling the updateSolNetworkPackage operation

var params = {
  nsdInfoId: 'STRING_VALUE', /* required */
  nsdOperationalState: ENABLED | DISABLED /* required */
};
tnb.updateSolNetworkPackage(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: {})
    • nsdInfoId — (String)

      ID of the network service descriptor in the network package.

    • nsdOperationalState — (String)

      Operational state of the network service descriptor in the network package.

      Possible values include:
      • "ENABLED"
      • "DISABLED"

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:

      • nsdOperationalState — (String)

        Operational state of the network service descriptor in the network package.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

Validates function package content. This can be used as a dry run before uploading function package content with PutSolFunctionPackageContent.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Examples:

Calling the validateSolFunctionPackageContent operation

var params = {
  file: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  vnfPkgId: 'STRING_VALUE', /* required */
  contentType: application/zip
};
tnb.validateSolFunctionPackageContent(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: {})
    • contentType — (String)

      Function package content type.

      Possible values include:
      • "application/zip"
    • file — (Buffer, Typed Array, Blob, String)

      Function package file.

    • vnfPkgId — (String)

      Function package ID.

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:

      • id — (String)

        Function package ID.

      • metadata — (map)

        Function package metadata.

        • vnfd — (map)

          Metadata for function package artifacts.

          Artifacts are the contents of the package descriptor file and the state of the package.

          • overrides — (Array<map>)

            Lists of function package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • vnfProductName — (String)

        Network function product name.

      • vnfProvider — (String)

        Network function provider.

      • vnfdId — (String)

        Function package descriptor ID.

      • vnfdVersion — (String)

        Function package descriptor version.

Returns:

  • (AWS.Request)

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

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

Validates network package content. This can be used as a dry run before uploading network package content with PutSolNetworkPackageContent.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Examples:

Calling the validateSolNetworkPackageContent operation

var params = {
  file: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  nsdInfoId: 'STRING_VALUE', /* required */
  contentType: application/zip
};
tnb.validateSolNetworkPackageContent(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: {})
    • contentType — (String)

      Network package content type.

      Possible values include:
      • "application/zip"
    • file — (Buffer, Typed Array, Blob, String)

      Network package file.

    • nsdInfoId — (String)

      Network service descriptor file.

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:

      • arn — (String)

        Network package ARN.

      • id — (String)

        Network package ID.

      • metadata — (map)

        Network package metadata.

        • nsd — (map)

          Metadata for network package artifacts.

          Artifacts are the contents of the package descriptor file and the state of the package.

          • overrides — (Array<map>)

            Lists network package overrides.

            • defaultValue — (String)

              Default value for the override.

            • name — (String)

              Name of the TOSCA override.

      • nsdId — (String)

        Network service descriptor ID.

      • nsdName — (String)

        Network service descriptor name.

      • nsdVersion — (String)

        Network service descriptor version.

      • vnfPkgIds — (Array<String>)

        Function package IDs.

Returns:

  • (AWS.Request)

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