create_environment_template_version
async
¶
create_environment_template_version(
template_name: ResourceName,
source: TemplateVersionSourceInput,
*,
config_overrides: Optional[AsyncProtonClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
major_version: Optional[TemplateVersionPart] = None,
tags: Optional[TagList] = None,
) -> CreateEnvironmentTemplateVersionOutput
Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards 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 environment template version that the first request created.
-
template_name(ResourceName) –The name of the environment template.
-
description(Optional[Description], default:None) –A description of the new version of an environment template.
-
major_version(Optional[TemplateVersionPart], default:None) –To create a new minor version of the environment template, include
major Version.To create a new major and minor version of the environment template, exclude
major Version. -
source(TemplateVersionSourceInput) –An object that includes the template bundle S3 bucket path and name for the new version of an template.
-
tags(Optional[TagList], default:None) –An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.
For more information, see Proton resources and tagging 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
3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 | |