ServerlessApplicationRepositoryClient#
Index > ServerlessApplicationRepository > ServerlessApplicationRepositoryClient
Auto-generated documentation for ServerlessApplicationRepository type annotations stubs module mypy-boto3-serverlessrepo.
ServerlessApplicationRepositoryClient#
Type annotations and code completion for boto3.client("serverlessrepo")
.
boto3 documentation
# ServerlessApplicationRepositoryClient usage example
from boto3.session import Session
from mypy_boto3_serverlessrepo.client import ServerlessApplicationRepositoryClient
def get_serverlessrepo_client() -> ServerlessApplicationRepositoryClient:
return Session().client("serverlessrepo")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("serverlessrepo").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("serverlessrepo")
try:
do_something(client)
except (
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.ForbiddenException,
client.exceptions.InternalServerErrorException,
client.exceptions.NotFoundException,
client.exceptions.TooManyRequestsException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_serverlessrepo.client import Exceptions
def handle_error(exc: Exceptions.BadRequestException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("serverlessrepo").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("serverlessrepo").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_application#
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
Type annotations and code completion for boto3.client("serverlessrepo").create_application
method.
boto3 documentation
# create_application method definition
def create_application(
self,
*,
Author: str,
Description: str,
Name: str,
HomePageUrl: str = ...,
Labels: Sequence[str] = ...,
LicenseBody: str = ...,
LicenseUrl: str = ...,
ReadmeBody: str = ...,
ReadmeUrl: str = ...,
SemanticVersion: str = ...,
SourceCodeArchiveUrl: str = ...,
SourceCodeUrl: str = ...,
SpdxLicenseId: str = ...,
TemplateBody: str = ...,
TemplateUrl: str = ...,
) -> CreateApplicationResponseTypeDef: # (1)
...
# create_application method usage example with argument unpacking
kwargs: CreateApplicationRequestRequestTypeDef = { # (1)
"Author": ...,
"Description": ...,
"Name": ...,
}
parent.create_application(**kwargs)
create_application_version#
Creates an application version.
Type annotations and code completion for boto3.client("serverlessrepo").create_application_version
method.
boto3 documentation
# create_application_version method definition
def create_application_version(
self,
*,
ApplicationId: str,
SemanticVersion: str,
SourceCodeArchiveUrl: str = ...,
SourceCodeUrl: str = ...,
TemplateBody: str = ...,
TemplateUrl: str = ...,
) -> CreateApplicationVersionResponseTypeDef: # (1)
...
# create_application_version method usage example with argument unpacking
kwargs: CreateApplicationVersionRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"SemanticVersion": ...,
}
parent.create_application_version(**kwargs)
create_cloud_formation_change_set#
Creates an AWS CloudFormation change set for the given application.
Type annotations and code completion for boto3.client("serverlessrepo").create_cloud_formation_change_set
method.
boto3 documentation
# create_cloud_formation_change_set method definition
def create_cloud_formation_change_set(
self,
*,
ApplicationId: str,
StackName: str,
Capabilities: Sequence[str] = ...,
ChangeSetName: str = ...,
ClientToken: str = ...,
Description: str = ...,
NotificationArns: Sequence[str] = ...,
ParameterOverrides: Sequence[ParameterValueTypeDef] = ..., # (1)
ResourceTypes: Sequence[str] = ...,
RollbackConfiguration: RollbackConfigurationTypeDef = ..., # (2)
SemanticVersion: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (3)
TemplateId: str = ...,
) -> CreateCloudFormationChangeSetResponseTypeDef: # (4)
...
- See ParameterValueTypeDef
- See RollbackConfigurationTypeDef
- See TagTypeDef
- See CreateCloudFormationChangeSetResponseTypeDef
# create_cloud_formation_change_set method usage example with argument unpacking
kwargs: CreateCloudFormationChangeSetRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"StackName": ...,
}
parent.create_cloud_formation_change_set(**kwargs)
create_cloud_formation_template#
Creates an AWS CloudFormation template.
Type annotations and code completion for boto3.client("serverlessrepo").create_cloud_formation_template
method.
boto3 documentation
# create_cloud_formation_template method definition
def create_cloud_formation_template(
self,
*,
ApplicationId: str,
SemanticVersion: str = ...,
) -> CreateCloudFormationTemplateResponseTypeDef: # (1)
...
# create_cloud_formation_template method usage example with argument unpacking
kwargs: CreateCloudFormationTemplateRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.create_cloud_formation_template(**kwargs)
delete_application#
Deletes the specified application.
Type annotations and code completion for boto3.client("serverlessrepo").delete_application
method.
boto3 documentation
# delete_application method definition
def delete_application(
self,
*,
ApplicationId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_application method usage example with argument unpacking
kwargs: DeleteApplicationRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.delete_application(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("serverlessrepo").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_application#
Gets the specified application.
Type annotations and code completion for boto3.client("serverlessrepo").get_application
method.