Skip to content

GameLift module

Index > GameLift

Auto-generated documentation for GameLift type annotations stubs module types-aiobotocore-gamelift.

How to install

From PyPI with pip

Install types-aioboto3 for GameLift service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[gamelift]'


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


# standalone installation
python -m pip install types-aiobotocore-gamelift

How to uninstall

python -m pip uninstall -y types-aiobotocore-gamelift

Usage

Code samples can be found in Examples.

GameLiftClient

Type annotations and code completion for session.client("gamelift") as GameLiftClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_gamelift.client import GameLiftClient


session = Session()
async with session.client("gamelift") as client:
    client: GameLiftClient

Paginators

Type annotations and code completion for paginators from session.client("gamelift").get_paginator("...").

Usage example
from types_aiobotocore_gamelift.paginator import DescribeFleetAttributesPaginator

def get_describe_fleet_attributes_paginator() -> DescribeFleetAttributesPaginator:
    return client.get_paginator("describe_fleet_attributes"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_gamelift.literals import AcceptanceTypeType

def get_value() -> AcceptanceTypeType:
    return "ACCEPT"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_gamelift.type_defs import AcceptMatchInputRequestTypeDef

def get_value() -> AcceptMatchInputRequestTypeDef:
    return {
        "TicketId": ...,
        "PlayerIds": ...,
        "AcceptanceType": ...,
    }