AppSyncClient#
Auto-generated documentation for AppSync type annotations stubs module mypy-boto3-appsync.
AppSyncClient#
Type annotations and code completion for boto3.client("appsync")
.
boto3 documentation
# AppSyncClient usage example
from boto3.session import Session
from mypy_boto3_appsync.client import AppSyncClient
def get_appsync_client() -> AppSyncClient:
return Session().client("appsync")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("appsync").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("appsync")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ApiKeyLimitExceededException,
client.exceptions.ApiKeyValidityOutOfBoundsException,
client.exceptions.ApiLimitExceededException,
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConcurrentModificationException,
client.exceptions.GraphQLSchemaException,
client.exceptions.InternalFailureException,
client.exceptions.LimitExceededException,
client.exceptions.NotFoundException,
client.exceptions.UnauthorizedException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_appsync.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_api#
Maps an endpoint to your custom domain.
Type annotations and code completion for boto3.client("appsync").associate_api
method.
boto3 documentation
# associate_api method definition
def associate_api(
self,
*,
domainName: str,
apiId: str,
) -> AssociateApiResponseTypeDef: # (1)
...
# associate_api method usage example with argument unpacking
kwargs: AssociateApiRequestRequestTypeDef = { # (1)
"domainName": ...,
"apiId": ...,
}
parent.associate_api(**kwargs)
associate_merged_graphql_api#
Creates an association between a Merged API and source API using the source API's identifier.
Type annotations and code completion for boto3.client("appsync").associate_merged_graphql_api
method.
boto3 documentation
# associate_merged_graphql_api method definition
def associate_merged_graphql_api(
self,
*,
sourceApiIdentifier: str,
mergedApiIdentifier: str,
description: str = ...,
sourceApiAssociationConfig: SourceApiAssociationConfigTypeDef = ..., # (1)
) -> AssociateMergedGraphqlApiResponseTypeDef: # (2)
...
# associate_merged_graphql_api method usage example with argument unpacking
kwargs: AssociateMergedGraphqlApiRequestRequestTypeDef = { # (1)
"sourceApiIdentifier": ...,
"mergedApiIdentifier": ...,
}
parent.associate_merged_graphql_api(**kwargs)
associate_source_graphql_api#
Creates an association between a Merged API and source API using the Merged API's identifier.
Type annotations and code completion for boto3.client("appsync").associate_source_graphql_api
method.
boto3 documentation
# associate_source_graphql_api method definition
def associate_source_graphql_api(
self,
*,
mergedApiIdentifier: str,
sourceApiIdentifier: str,
description: str = ...,
sourceApiAssociationConfig: SourceApiAssociationConfigTypeDef = ..., # (1)
) -> AssociateSourceGraphqlApiResponseTypeDef: # (2)
...
# associate_source_graphql_api method usage example with argument unpacking
kwargs: AssociateSourceGraphqlApiRequestRequestTypeDef = { # (1)
"mergedApiIdentifier": ...,
"sourceApiIdentifier": ...,
}
parent.associate_source_graphql_api(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("appsync").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlyin