Skip to main content

sol_function_packages

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

Overview

Namesol_function_packages
TypeResource
Idaws.tnb.sol_function_packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFunction package ID. (pattern: <code>^fp-[a-f0-9]{17}$</code>)
arnstringFunction 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}:(function-package/fp-[a-f0-9]{17})$</code>)
metadataobjectMetadata 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.
onboarding_statestringFunction package onboarding state. (CREATED, ONBOARDED, ERROR)
operational_statestringFunction package operational state. (ENABLED, DISABLED)
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.
usage_statestringFunction package usage state. (IN_USE, NOT_IN_USE)
vnf_product_namestringNetwork function product name.
vnf_providerstringNetwork function provider.
vnfd_idstringFunction package descriptor ID.
vnfd_versionstringFunction package descriptor version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sol_function_packageselectvnf_pkg_id, regionGets 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..
list_sol_function_packagesselectregionmax_results, nextpage_opaque_markerLists 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.
create_sol_function_packageinsertregionCreates 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.
update_sol_function_packageupdatevnf_pkg_id, region, operationalStateUpdates 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.
delete_sol_function_packagedeletevnf_pkg_id, regionDeletes 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.
validate_sol_function_package_contentexecvnf_pkg_id, region, fileContent-TypeValidates 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.

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
regionstringAWS region (default: us-east-1)
vnf_pkg_idstringFunction package ID.
Content-TypestringFunction 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 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..

SELECT
id,
arn,
metadata,
onboarding_state,
operational_state,
tags,
usage_state,
vnf_product_name,
vnf_provider,
vnfd_id,
vnfd_version
FROM aws.tnb.sol_function_packages
WHERE vnf_pkg_id = '{{ vnf_pkg_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.tnb.sol_function_packages (
tags,
region
)
SELECT
'{{ tags }}',
'{{ region }}'
RETURNING
id,
arn,
onboarding_state,
operational_state,
tags,
usage_state
;

UPDATE examples

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.

UPDATE aws.tnb.sol_function_packages
SET
operationalState = '{{ operationalState }}'
WHERE
vnf_pkg_id = '{{ vnf_pkg_id }}' --required
AND region = '{{ region }}' --required
AND operationalState = '{{ operationalState }}' --required
RETURNING
operational_state;

DELETE examples

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.

DELETE FROM aws.tnb.sol_function_packages
WHERE vnf_pkg_id = '{{ vnf_pkg_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

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.

EXEC aws.tnb.sol_function_packages.validate_sol_function_package_content
@vnf_pkg_id='{{ vnf_pkg_id }}' --required,
@region='{{ region }}' --required,
@Content-Type='{{ Content-Type }}'
@@json=
'{
"file": "{{ file }}"
}'
;