create_application
async
¶
create_application(
*,
config_overrides: Optional[AsyncServerlessApplicationRepositoryClientConfig] = None,
author: Optional[__string] = None,
description: Optional[__string] = None,
home_page_url: Optional[__string] = None,
labels: Optional[__listOf__string] = None,
license_body: Optional[__string] = None,
license_url: Optional[__string] = None,
name: Optional[__string] = None,
readme_body: Optional[__string] = None,
readme_url: Optional[__string] = None,
semantic_version: Optional[__string] = None,
source_code_archive_url: Optional[__string] = None,
source_code_url: Optional[__string] = None,
spdx_license_id: Optional[__string] = None,
template_body: Optional[__string] = None,
template_url: Optional[__string] = None,
) -> CreateApplicationResponse
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
Parameters:
-
author(Optional[__string], default:None) –The name of the author publishing the app.
Minimum length=1. Maximum length=127.
Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
-
description(Optional[__string], default:None) –The description of the application.
Minimum length=1. Maximum length=256
-
home_page_url(Optional[__string], default:None) –A URL with more information about the application, for example the location of your GitHub repository for the application.
-
labels(Optional[__listOf__string], default:None) –Labels to improve discovery of apps in search results.
Minimum length=1. Maximum length=127. Maximum number of labels: 10
Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";
-
license_body(Optional[__string], default:None) –A local text file that contains the license of the app that matches the spdxLicenseID value of your application. The file has the format file://<path>/<filename>.
Maximum size 5 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
-
license_url(Optional[__string], default:None) –A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.
Maximum size 5 MB
You can specify only one of licenseBody and licenseUrl; otherwise, an error results.
-
name(Optional[__string], default:None) –The name of the application that you want to publish.
Minimum length=1. Maximum length=140
Pattern: "[a-zA-Z0-9\\-]+";
-
readme_body(Optional[__string], default:None) –A local text readme file in Markdown language that contains a more detailed description of the application and how it works. The file has the format file://<path>/<filename>.
Maximum size 5 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
-
readme_url(Optional[__string], default:None) –A link to the S3 object in Markdown language that contains a more detailed description of the application and how it works.
Maximum size 5 MB
You can specify only one of readmeBody and readmeUrl; otherwise, an error results.
-
semantic_version(Optional[__string], default:None) –The semantic version of the application:
-
source_code_archive_url(Optional[__string], default:None) –A link to the S3 object that contains the ZIP archive of the source code for this version of your application.
Maximum size 50 MB
-
source_code_url(Optional[__string], default:None) –A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.
-
spdx_license_id(Optional[__string], default:None) –A valid identifier from https://spdx.org/licenses/.
-
template_body(Optional[__string], default:None) –The local raw packaged AWS SAM template file of your application. The file has the format file://<path>/<filename>.
You can specify only one of templateBody and templateUrl; otherwise an error results.
-
template_url(Optional[__string], default:None) –A link to the S3 object containing the packaged AWS SAM template of your application.
You can specify only one of templateBody and templateUrl; otherwise an error results.
Raises:
-
BadRequestException–One of the parameters in the request is invalid.
-
ConflictException–The resource already exists.
-
ForbiddenException–The client is not authenticated.
-
InternalServerErrorException–The AWS Serverless Application Repository service encountered an internal error.
-
TooManyRequestsException–The client is sending more than the allowed number of requests per unit of time.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_serverlessapplicationrepository/_services/async_serverless_application_repository.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | |