MobileClient
Auto-generated documentation for Mobile type annotations stubs module mypy-boto3-mobile.
MobileClient
Type annotations and code completion for boto3.client("mobile")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_mobile.client import MobileClient
def get_mobile_client() -> MobileClient:
return Session().client("mobile")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("mobile").exceptions
structure.
client = boto3.client("mobile")
try:
do_something(client)
except (
client.AccountActionRequiredException,
client.BadRequestException,
client.ClientError,
client.InternalFailureException,
client.LimitExceededException,
client.NotFoundException,
client.ServiceUnavailableException,
client.TooManyRequestsException,
client.UnauthorizedException,
) as e:
print(e)
from mypy_boto3_mobile.client import Exceptions
def handle_error(exc: Exceptions.AccountActionRequiredException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("mobile").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("mobile").close
method.
boto3 documentation
create_project
Creates an AWS Mobile Hub project.
Type annotations and code completion for boto3.client("mobile").create_project
method.
boto3 documentation
def create_project(
self,
*,
name: str = ...,
region: str = ...,
contents: Union[str, bytes, IO[Any], StreamingBody] = ...,
snapshotId: str = ...,
) -> CreateProjectResultTypeDef: # (1)
...
kwargs: CreateProjectRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_project(**kwargs)
delete_project
Delets a project in AWS Mobile Hub.
Type annotations and code completion for boto3.client("mobile").delete_project
method.
boto3 documentation
def delete_project(
self,
*,
projectId: str,
) -> DeleteProjectResultTypeDef: # (1)
...
kwargs: DeleteProjectRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.delete_project(**kwargs)
describe_bundle
Get the bundle details for the requested bundle id.
Type annotations and code completion for boto3.client("mobile").describe_bundle
method.
boto3 documentation
def describe_bundle(
self,
*,
bundleId: str,
) -> DescribeBundleResultTypeDef: # (1)
...
kwargs: DescribeBundleRequestRequestTypeDef = { # (1)
"bundleId": ...,
}
parent.describe_bundle(**kwargs)
describe_project
Gets details about a project in AWS Mobile Hub.
Type annotations and code completion for boto3.client("mobile").describe_project
method.
boto3 documentation
def describe_project(
self,
*,
projectId: str,
syncFromResources: bool = ...,
) -> DescribeProjectResultTypeDef: # (1)
...
kwargs: DescribeProjectRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.describe_project(**kwargs)
export_bundle
Generates customized software development kit (SDK) and or tool packages used to integrate mobile web or mobile app clients with backend AWS resources.
Type annotations and code completion for boto3.client("mobile").export_bundle
method.
boto3 documentation
def export_bundle(
self,
*,
bundleId: str,
projectId: str = ...,
platform: PlatformType = ..., # (1)
) -> ExportBundleResultTypeDef: # (2)
...
kwargs: ExportBundleRequestRequestTypeDef = { # (1)
"bundleId": ...,
}
parent.export_bundle(**kwargs)
export_project
Exports project configuration to a snapshot which can be downloaded and shared.
Type annotations and code completion for boto3.client("mobile").export_project
method.
boto3 documentation
def export_project(
self,
*,
projectId: str,
) -> ExportProjectResultTypeDef: # (1)
...
kwargs: ExportProjectRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.export_project(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("mobile").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_bundles
List all available bundles.
Type annotations and code completion for boto3.client("mobile").list_bundles
method.
boto3 documentation
def list_bundles(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListBundlesResultTypeDef: # (1)
...
kwargs: ListBundlesRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_bundles(**kwargs)
list_projects
Lists projects in AWS Mobile Hub.
Type annotations and code completion for boto3.client("mobile").list_projects
method.
boto3 documentation
def list_projects(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListProjectsResultTypeDef: # (1)
...
kwargs: ListProjectsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_projects(**kwargs)
update_project
Update an existing project.
Type annotations and code completion for boto3.client("mobile").update_project
method.
boto3 documentation
def update_project(
self,
*,
projectId: str,
contents: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> UpdateProjectResultTypeDef: # (1)
...
kwargs: UpdateProjectRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.update_project(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("mobile").get_paginator
method with overloads.
client.get_paginator("list_bundles")
-> ListBundlesPaginatorclient.get_paginator("list_projects")
-> ListProjectsPaginator