create_service_template_version
¶
create_service_template_version(
template_name: ResourceName,
source: TemplateVersionSourceInput,
compatible_environment_templates: CompatibleEnvironmentTemplateInputList,
*,
config_overrides: Optional[ProtonClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
major_version: Optional[TemplateVersionPart] = None,
tags: Optional[TagList] = None,
supported_component_sources: Optional[
ServiceTemplateSupportedComponentSourceInputList
] = None,
) -> CreateServiceTemplateVersionOutput
Create a new major or minor version of a service template. A major version of a service template is a version that isn't backward compatible. A minor version of a service template is a version that's backward compatible within its major version.
Parameters:
-
client_token(Optional[ClientToken], default:None) –When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
-
template_name(ResourceName) –The name of the service template.
-
description(Optional[Description], default:None) –A description of the new version of a service template.
-
major_version(Optional[TemplateVersionPart], default:None) –To create a new minor version of the service template, include a
major Version.To create a new major and minor version of the service template, exclude
major Version. -
source(TemplateVersionSourceInput) –An object that includes the template bundle S3 bucket path and name for the new version of a service template.
-
compatible_environment_templates(CompatibleEnvironmentTemplateInputList) –An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
-
tags(Optional[TagList], default:None) –An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
-
supported_component_sources(Optional[ServiceTemplateSupportedComponentSourceInputList], default:None) –An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
Raises:
-
AccessDeniedException–There isn't sufficient access for performing this action.
-
ConflictException–The request couldn't be made due to a conflicting operation or resource.
-
InternalServerException–The request failed to register with the service.
-
ResourceNotFoundException–The requested resource wasn't found.
-
ServiceQuotaExceededException–A quota was exceeded. For more information, see Proton Quotas in the Proton User Guide.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input is invalid or an out-of-range value was supplied for the input parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_proton/_services/proton.py
6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 | |