Skip to content

CognitoSyncClient#

Index > CognitoSync > CognitoSyncClient

Auto-generated documentation for CognitoSync type annotations stubs module mypy-boto3-cognito-sync.

CognitoSyncClient#

Type annotations and code completion for boto3.client("cognito-sync"). boto3 documentation

# CognitoSyncClient usage example

from boto3.session import Session
from mypy_boto3_cognito_sync.client import CognitoSyncClient

def get_cognito-sync_client() -> CognitoSyncClient:
    return Session().client("cognito-sync")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("cognito-sync").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("cognito-sync")

try:
    do_something(client)
except (
    client.exceptions.AlreadyStreamedException,
    client.exceptions.ClientError,
    client.exceptions.ConcurrentModificationException,
    client.exceptions.DuplicateRequestException,
    client.exceptions.InternalErrorException,
    client.exceptions.InvalidConfigurationException,
    client.exceptions.InvalidLambdaFunctionOutputException,
    client.exceptions.InvalidParameterException,
    client.exceptions.LambdaThrottledException,
    client.exceptions.LimitExceededException,
    client.exceptions.NotAuthorizedException,
    client.exceptions.ResourceConflictException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.TooManyRequestsException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_cognito_sync.client import Exceptions

def handle_error(exc: Exceptions.AlreadyStreamedException) -> None:
    ...

Methods#

bulk_publish#

Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream.

Type annotations and code completion for boto3.client("cognito-sync").bulk_publish method. boto3 documentation

# bulk_publish method definition

def bulk_publish(
    self,
    *,
    IdentityPoolId: str,
) -> BulkPublishResponseTypeDef:  # (1)
    ...
  1. See BulkPublishResponseTypeDef
# bulk_publish method usage example with argument unpacking

kwargs: BulkPublishRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
}

parent.bulk_publish(**kwargs)
  1. See BulkPublishRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("cognito-sync").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("cognito-sync").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

delete_dataset#

Deletes the specific dataset.

Type annotations and code completion for boto3.client("cognito-sync").delete_dataset method. boto3 documentation

# delete_dataset method definition

def delete_dataset(
    self,
    *,
    IdentityPoolId: str,
    IdentityId: str,
    DatasetName: str,
) -> DeleteDatasetResponseTypeDef:  # (1)
    ...
  1. See DeleteDatasetResponseTypeDef
# delete_dataset method usage example with argument unpacking

kwargs: DeleteDatasetRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
    "IdentityId": ...,
    "DatasetName": ...,
}

parent.delete_dataset(**kwargs)
  1. See DeleteDatasetRequestRequestTypeDef

describe_dataset#

Gets meta data about a dataset by identity and dataset name.

Type annotations and code completion for boto3.client("cognito-sync").describe_dataset method. boto3 documentation

# describe_dataset method definition

def describe_dataset(
    self,
    *,
    IdentityPoolId: str,
    IdentityId: str,
    DatasetName: str,
) -> DescribeDatasetResponseTypeDef:  # (1)
    ...
  1. See DescribeDatasetResponseTypeDef
# describe_dataset method usage example with argument unpacking

kwargs: DescribeDatasetRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
    "IdentityId": ...,
    "DatasetName": ...,
}

parent.describe_dataset(**kwargs)
  1. See DescribeDatasetRequestRequestTypeDef

describe_identity_pool_usage#

Gets usage details (for example, data storage) about a particular identity pool.

Type annotations and code completion for boto3.client("cognito-sync").describe_identity_pool_usage method. boto3 documentation

# describe_identity_pool_usage method definition

def describe_identity_pool_usage(
    self,
    *,
    IdentityPoolId: str,
) -> DescribeIdentityPoolUsageResponseTypeDef:  # (1)
    ...
  1. See DescribeIdentityPoolUsageResponseTypeDef
# describe_identity_pool_usage method usage example with argument unpacking

kwargs: DescribeIdentityPoolUsageRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
}

parent.describe_identity_pool_usage(**kwargs)
  1. See DescribeIdentityPoolUsageRequestRequestTypeDef

describe_identity_usage#

Gets usage information for an identity, including number of datasets and data usage.

Type annotations and code completion for boto3.client("cognito-sync").describe_identity_usage method. boto3 documentation

# describe_identity_usage method definition

def describe_identity_usage(
    self,
    *,
    IdentityPoolId: str,
    IdentityId: str,
) -> DescribeIdentityUsageResponseTypeDef:  # (1)
    ...
  1. See DescribeIdentityUsageResponseTypeDef
# describe_identity_usage method usage example with argument unpacking

kwargs: DescribeIdentityUsageRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
    "IdentityId": ...,
}

parent.describe_identity_usage(**kwargs)
  1. See DescribeIdentityUsageRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("cognito-sync").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_bulk_publish_details#

Get the status of the last BulkPublish operation for an identity pool.

Type annotations and code completion for boto3.client("cognito-sync").get_bulk_publish_details method. boto3 documentation

# get_bulk_publish_details method definition

def get_bulk_publish_details(
    self,
    *,
    IdentityPoolId: str,
) -> GetBulkPublishDetailsResponseTypeDef:  # (1)
    ...
  1. See GetBulkPublishDetailsResponseTypeDef
# get_bulk_publish_details method usage example with argument unpacking

kwargs: GetBulkPublishDetailsRequestRequestTypeDef = {  # (1)
    "IdentityPoolId": ...,
}

parent.get_bulk_publish_details(**kwargs)
  1. See