create_service_template_version
async
¶
create_service_template_version(
template_name: ResourceName,
source: TemplateVersionSourceInput,
compatible_environment_templates: CompatibleEnvironmentTemplateInputList,
*,
config_overrides: Optional[AsyncProtonClientConfig] = 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/async_proton.py
6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 | |