| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Proton.CreateEnvironmentTemplateVersion
Description
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.
Synopsis
- data CreateEnvironmentTemplateVersion = CreateEnvironmentTemplateVersion' {
- clientToken :: Maybe Text
- description :: Maybe (Sensitive Text)
- majorVersion :: Maybe Text
- tags :: Maybe [Tag]
- source :: TemplateVersionSourceInput
- templateName :: Text
- newCreateEnvironmentTemplateVersion :: TemplateVersionSourceInput -> Text -> CreateEnvironmentTemplateVersion
- createEnvironmentTemplateVersion_clientToken :: Lens' CreateEnvironmentTemplateVersion (Maybe Text)
- createEnvironmentTemplateVersion_description :: Lens' CreateEnvironmentTemplateVersion (Maybe Text)
- createEnvironmentTemplateVersion_majorVersion :: Lens' CreateEnvironmentTemplateVersion (Maybe Text)
- createEnvironmentTemplateVersion_tags :: Lens' CreateEnvironmentTemplateVersion (Maybe [Tag])
- createEnvironmentTemplateVersion_source :: Lens' CreateEnvironmentTemplateVersion TemplateVersionSourceInput
- createEnvironmentTemplateVersion_templateName :: Lens' CreateEnvironmentTemplateVersion Text
- data CreateEnvironmentTemplateVersionResponse = CreateEnvironmentTemplateVersionResponse' {}
- newCreateEnvironmentTemplateVersionResponse :: Int -> EnvironmentTemplateVersion -> CreateEnvironmentTemplateVersionResponse
- createEnvironmentTemplateVersionResponse_httpStatus :: Lens' CreateEnvironmentTemplateVersionResponse Int
- createEnvironmentTemplateVersionResponse_environmentTemplateVersion :: Lens' CreateEnvironmentTemplateVersionResponse EnvironmentTemplateVersion
Creating a Request
data CreateEnvironmentTemplateVersion Source #
See: newCreateEnvironmentTemplateVersion smart constructor.
Constructors
| CreateEnvironmentTemplateVersion' | |
Fields
| |
Instances
newCreateEnvironmentTemplateVersion Source #
Arguments
| :: TemplateVersionSourceInput | |
| -> Text | |
| -> CreateEnvironmentTemplateVersion |
Create a value of CreateEnvironmentTemplateVersion with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientToken:CreateEnvironmentTemplateVersion', createEnvironmentTemplateVersion_clientToken - When included, if two identical requests are made with the same client
token, Proton returns the environment template version that the first
request created.
CreateEnvironmentTemplateVersion, createEnvironmentTemplateVersion_description - A description of the new version of an environment template.
CreateEnvironmentTemplateVersion, createEnvironmentTemplateVersion_majorVersion - 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.
$sel:tags:CreateEnvironmentTemplateVersion', createEnvironmentTemplateVersion_tags - 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.
$sel:source:CreateEnvironmentTemplateVersion', createEnvironmentTemplateVersion_source - An object that includes the template bundle S3 bucket path and name for
the new version of an template.
CreateEnvironmentTemplateVersion, createEnvironmentTemplateVersion_templateName - The name of the environment template.
Request Lenses
createEnvironmentTemplateVersion_clientToken :: Lens' CreateEnvironmentTemplateVersion (Maybe Text) Source #
When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
createEnvironmentTemplateVersion_description :: Lens' CreateEnvironmentTemplateVersion (Maybe Text) Source #
A description of the new version of an environment template.
createEnvironmentTemplateVersion_majorVersion :: Lens' CreateEnvironmentTemplateVersion (Maybe Text) Source #
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.
createEnvironmentTemplateVersion_tags :: Lens' CreateEnvironmentTemplateVersion (Maybe [Tag]) Source #
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.
createEnvironmentTemplateVersion_source :: Lens' CreateEnvironmentTemplateVersion TemplateVersionSourceInput Source #
An object that includes the template bundle S3 bucket path and name for the new version of an template.
createEnvironmentTemplateVersion_templateName :: Lens' CreateEnvironmentTemplateVersion Text Source #
The name of the environment template.
Destructuring the Response
data CreateEnvironmentTemplateVersionResponse Source #
See: newCreateEnvironmentTemplateVersionResponse smart constructor.
Constructors
| CreateEnvironmentTemplateVersionResponse' | |
Fields
| |
Instances
newCreateEnvironmentTemplateVersionResponse Source #
Arguments
| :: Int | |
| -> EnvironmentTemplateVersion |
|
| -> CreateEnvironmentTemplateVersionResponse |
Create a value of CreateEnvironmentTemplateVersionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateEnvironmentTemplateVersionResponse', createEnvironmentTemplateVersionResponse_httpStatus - The response's http status code.
$sel:environmentTemplateVersion:CreateEnvironmentTemplateVersionResponse', createEnvironmentTemplateVersionResponse_environmentTemplateVersion - The environment template detail data that's returned by Proton.
Response Lenses
createEnvironmentTemplateVersionResponse_httpStatus :: Lens' CreateEnvironmentTemplateVersionResponse Int Source #
The response's http status code.
createEnvironmentTemplateVersionResponse_environmentTemplateVersion :: Lens' CreateEnvironmentTemplateVersionResponse EnvironmentTemplateVersion Source #
The environment template detail data that's returned by Proton.