Skip to content

Private5G module#

Index > Private5G

Auto-generated documentation for Private5G type annotations stubs module mypy-boto3-privatenetworks.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Private5G.

From PyPI with pip#

Install boto3-stubs for Private5G service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[privatenetworks]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[privatenetworks]'


# standalone installation
python -m pip install mypy-boto3-privatenetworks

How to uninstall#

python -m pip uninstall -y mypy-boto3-privatenetworks

Usage#

Code samples can be found in Examples.

Private5GClient#

Type annotations and code completion for boto3.client("privatenetworks") as Private5GClient boto3 documentation

# Private5GClient usage example

from boto3.session import Session

from mypy_boto3_privatenetworks.client import Private5GClient

def get_client() -> Private5GClient:
    return Session().client("privatenetworks")

Paginators#

Type annotations and code completion for paginators from boto3.client("privatenetworks").get_paginator("...").

# ListDeviceIdentifiersPaginator usage example

from boto3.session import Session

from mypy_boto3_privatenetworks.paginator import ListDeviceIdentifiersPaginator

def get_list_device_identifiers_paginator() -> ListDeviceIdentifiersPaginator:
    return Session().client("privatenetworks").get_paginator("list_device_identifiers"))

Literals#

Type annotations for literals used in methods and schema.

# AcknowledgmentStatusType usage example

from mypy_boto3_privatenetworks.literals import AcknowledgmentStatusType

def get_value() -> AcknowledgmentStatusType:
    return "ACKNOWLEDGED"

Type definitions#

Type annotations for type definitions used in methods and schema.