Skip to content

Greengrass module#

Index > Greengrass

Auto-generated documentation for Greengrass type annotations stubs module mypy-boto3-greengrass.

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 Greengrass.

From PyPI with pip#

Install boto3-stubs for Greengrass service.

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


# 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[greengrass]'


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

GreengrassClient#

Type annotations and code completion for boto3.client("greengrass") as GreengrassClient boto3 documentation

# GreengrassClient usage example

from boto3.session import Session

from mypy_boto3_greengrass.client import GreengrassClient

def get_client() -> GreengrassClient:
    return Session().client("greengrass")

Paginators#

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

# ListBulkDeploymentDetailedReportsPaginator usage example

from boto3.session import Session

from mypy_boto3_greengrass.paginator import ListBulkDeploymentDetailedReportsPaginator

def get_list_bulk_deployment_detailed_reports_paginator() -> ListBulkDeploymentDetailedReportsPaginator:
    return Session().client("greengrass").get_paginator("list_bulk_deployment_detailed_reports"))

Literals#

Type annotations for literals used in methods and schema.

# BulkDeploymentStatusType usage example

from mypy_boto3_greengrass.literals import BulkDeploymentStatusType

def get_value() -> BulkDeploymentStatusType:
    return "Completed"

Type definitions#

Type annotations for type definitions used in methods and schema.