Skip to main content

sol_network_packages

Creates, updates, deletes, gets or lists a sol_network_packages resource.

Overview

Namesol_network_packages
TypeResource
Idaws.tnb.sol_network_packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringNetwork package ID. (pattern: <code>^np-[a-f0-9]{17}$</code>)
arnstringNetwork package ARN. (pattern: <code>^arn:(aws|aws-cn|aws-iso|aws-iso-b|aws-us-gov):tnb:([a-z]{2}(-(gov|isob|iso))?-(east|west|north|south|central){1,2}-[0-9]):\d{12}:(network-package/np-[a-f0-9]{17})$</code>)
metadataobjectMetadata 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.
nsd_idstringNetwork service descriptor ID. (pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
nsd_namestringNetwork service descriptor name.
nsd_onboarding_statestringNetwork service descriptor onboarding state. (CREATED, ONBOARDED, ERROR)
nsd_operational_statestringNetwork service descriptor operational state. (ENABLED, DISABLED)
nsd_usage_statestringNetwork service descriptor usage state. (IN_USE, NOT_IN_USE)
nsd_versionstringNetwork service descriptor version.
tagsobjectA 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.
vnf_pkg_idsarrayIdentifies the function package for the function package descriptor referenced by the onboarded network package.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sol_network_packageselectnsd_info_id, regionGets 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.
list_sol_network_packagesselectregionmax_results, nextpage_opaque_markerLists 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.
create_sol_network_packageinsertregionCreates 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.
update_sol_network_packageupdatensd_info_id, region, nsdOperationalStateUpdates 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.
delete_sol_network_packagedeletensd_info_id, regionDeletes 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.
validate_sol_network_package_contentexecnsd_info_id, region, fileContent-TypeValidates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
nsd_info_idstringNetwork service descriptor file.
regionstringAWS region (default: us-east-1)
Content-TypestringNetwork package content type.
max_resultsintegerThe maximum number of results to include in the response.
nextpage_opaque_markerstringThe token for the next page of results.

SELECT examples

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.

SELECT
id,
arn,
metadata,
nsd_id,
nsd_name,
nsd_onboarding_state,
nsd_operational_state,
nsd_usage_state,
nsd_version,
tags,
vnf_pkg_ids
FROM aws.tnb.sol_network_packages
WHERE nsd_info_id = '{{ nsd_info_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.tnb.sol_network_packages (
tags,
region
)
SELECT
'{{ tags }}',
'{{ region }}'
RETURNING
id,
arn,
nsd_onboarding_state,
nsd_operational_state,
nsd_usage_state,
tags
;

UPDATE examples

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.

UPDATE aws.tnb.sol_network_packages
SET
nsdOperationalState = '{{ nsdOperationalState }}'
WHERE
nsd_info_id = '{{ nsd_info_id }}' --required
AND region = '{{ region }}' --required
AND nsdOperationalState = '{{ nsdOperationalState }}' --required
RETURNING
nsd_operational_state;

DELETE examples

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.

DELETE FROM aws.tnb.sol_network_packages
WHERE nsd_info_id = '{{ nsd_info_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

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.

EXEC aws.tnb.sol_network_packages.validate_sol_network_package_content
@nsd_info_id='{{ nsd_info_id }}' --required,
@region='{{ region }}' --required,
@Content-Type='{{ Content-Type }}'
@@json=
'{
"file": "{{ file }}"
}'
;