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
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.
client = boto3.client("serverlessrepo")
try:
do_something(client)
except (
client.BadRequestException,
client.ClientError,
client.ConflictException,
client.ForbiddenException,
client.InternalServerErrorException,
client.NotFoundException,
client.TooManyRequestsException,
) as e:
print(e)
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
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("serverlessrepo").close
method.
boto3 documentation
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
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)
...
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
def create_application_version(
self,
*,
ApplicationId: str,
SemanticVersion: str,
SourceCodeArchiveUrl: str = ...,
SourceCodeUrl: str = ...,
TemplateBody: str = ...,
TemplateUrl: str = ...,
) -> CreateApplicationVersionResponseTypeDef: # (1)
...
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
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
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
def create_cloud_formation_template(
self,
*,
ApplicationId: str,
SemanticVersion: str = ...,
) -> CreateCloudFormationTemplateResponseTypeDef: # (1)
...
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
def delete_application(
self,
*,
ApplicationId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
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
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.
boto3 documentation
def get_application(
self,
*,
ApplicationId: str,
SemanticVersion: str = ...,
) -> GetApplicationResponseTypeDef: # (1)
...
kwargs: GetApplicationRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.get_application(**kwargs)
get_application_policy
Retrieves the policy for the application.
Type annotations and code completion for boto3.client("serverlessrepo").get_application_policy
method.
boto3 documentation
def get_application_policy(
self,
*,
ApplicationId: str,
) -> GetApplicationPolicyResponseTypeDef: # (1)
...
kwargs: GetApplicationPolicyRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.get_application_policy(**kwargs)
get_cloud_formation_template
Gets the specified AWS CloudFormation template.
Type annotations and code completion for boto3.client("serverlessrepo").get_cloud_formation_template
method.
boto3 documentation
def get_cloud_formation_template(
self,
*,
ApplicationId: str,
TemplateId: str,
) -> GetCloudFormationTemplateResponseTypeDef: # (1)
...
kwargs: GetCloudFormationTemplateRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"TemplateId": ...,
}
parent.get_cloud_formation_template(**kwargs)
list_application_dependencies
Retrieves the list of applications nested in the containing application.
Type annotations and code completion for boto3.client("serverlessrepo").list_application_dependencies
method.
boto3 documentation
def list_application_dependencies(
self,
*,
ApplicationId: str,
MaxItems: int = ...,
NextToken: str = ...,
SemanticVersion: str = ...,
) -> ListApplicationDependenciesResponseTypeDef: # (1)
...
kwargs: ListApplicationDependenciesRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.list_application_dependencies(**kwargs)
list_application_versions
Lists versions for the specified application.
Type annotations and code completion for boto3.client("serverlessrepo").list_application_versions
method.
boto3 documentation
def list_application_versions(
self,
*,
ApplicationId: str,
MaxItems: int = ...,
NextToken: str = ...,
) -> ListApplicationVersionsResponseTypeDef: # (1)
...
kwargs: ListApplicationVersionsRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.list_application_versions(**kwargs)
list_applications
Lists applications owned by the requester.
Type annotations and code completion for boto3.client("serverlessrepo").list_applications
method.
boto3 documentation
def list_applications(
self,
*,
MaxItems: int = ...,
NextToken: str = ...,
) -> ListApplicationsResponseTypeDef: # (1)
...
kwargs: ListApplicationsRequestRequestTypeDef = { # (1)
"MaxItems": ...,
}
parent.list_applications(**kwargs)
put_application_policy
Sets the permission policy for an application.
Type annotations and code completion for boto3.client("serverlessrepo").put_application_policy
method.
boto3 documentation
def put_application_policy(
self,
*,
ApplicationId: str,
Statements: Sequence[ApplicationPolicyStatementTypeDef], # (1)
) -> PutApplicationPolicyResponseTypeDef: # (2)
...
kwargs: PutApplicationPolicyRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"Statements": ...,
}
parent.put_application_policy(**kwargs)
unshare_application
Unshares an application from an AWS Organization.
Type annotations and code completion for boto3.client("serverlessrepo").unshare_application
method.
boto3 documentation
def unshare_application(
self,
*,
ApplicationId: str,
OrganizationId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: UnshareApplicationRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"OrganizationId": ...,
}
parent.unshare_application(**kwargs)
update_application
Updates the specified application.
Type annotations and code completion for boto3.client("serverlessrepo").update_application
method.
boto3 documentation
def update_application(
self,
*,
ApplicationId: str,
Author: str = ...,
Description: str = ...,
HomePageUrl: str = ...,
Labels: Sequence[str] = ...,
ReadmeBody: str = ...,
ReadmeUrl: str = ...,
) -> UpdateApplicationResponseTypeDef: # (1)
...
kwargs: UpdateApplicationRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
}
parent.update_application(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("serverlessrepo").get_paginator
method with overloads.
client.get_paginator("list_application_dependencies")
-> ListApplicationDependenciesPaginatorclient.get_paginator("list_application_versions")
-> ListApplicationVersionsPaginatorclient.get_paginator("list_applications")
-> ListApplicationsPaginator