Skip to content

ConnectCampaignService module#

Index > ConnectCampaignService

Auto-generated documentation for ConnectCampaignService type annotations stubs module mypy-boto3-connectcampaigns.

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

From PyPI with pip#

Install boto3-stubs for ConnectCampaignService service.

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

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

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

How to uninstall#

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


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("connectcampaigns") as ConnectCampaignServiceClient boto3 documentation

# ConnectCampaignServiceClient usage example

from boto3.session import Session

from mypy_boto3_connectcampaigns.client import ConnectCampaignServiceClient

def get_client() -> ConnectCampaignServiceClient:
    return Session().client("connectcampaigns")


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

# ListCampaignsPaginator usage example

from boto3.session import Session

from mypy_boto3_connectcampaigns.paginator import ListCampaignsPaginator

def get_list_campaigns_paginator() -> ListCampaignsPaginator:
    return Session().client("connectcampaigns").get_paginator("list_campaigns"))


Type annotations for literals used in methods and schemas.

# CampaignStateType usage example

from mypy_boto3_connectcampaigns.literals import CampaignStateType

def get_value() -> CampaignStateType:
    return "Failed"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AnswerMachineDetectionConfigTypeDef usage example

from mypy_boto3_connectcampaigns.type_defs import AnswerMachineDetectionConfigTypeDef

def get_value() -> AnswerMachineDetectionConfigTypeDef:
    return {
        "enableAnswerMachineDetection": ...,