Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Create a new major or minor version of a service template. A major version of a service template is a version that isn't backwards compatible. A minor version of a service template is a version that's backwards compatible within its major version.
Synopsis
- data CreateServiceTemplateVersion = CreateServiceTemplateVersion' {}
- newCreateServiceTemplateVersion :: NonEmpty CompatibleEnvironmentTemplateInput -> TemplateVersionSourceInput -> Text -> CreateServiceTemplateVersion
- createServiceTemplateVersion_clientToken :: Lens' CreateServiceTemplateVersion (Maybe Text)
- createServiceTemplateVersion_majorVersion :: Lens' CreateServiceTemplateVersion (Maybe Text)
- createServiceTemplateVersion_description :: Lens' CreateServiceTemplateVersion (Maybe Text)
- createServiceTemplateVersion_tags :: Lens' CreateServiceTemplateVersion (Maybe [Tag])
- createServiceTemplateVersion_compatibleEnvironmentTemplates :: Lens' CreateServiceTemplateVersion (NonEmpty CompatibleEnvironmentTemplateInput)
- createServiceTemplateVersion_source :: Lens' CreateServiceTemplateVersion TemplateVersionSourceInput
- createServiceTemplateVersion_templateName :: Lens' CreateServiceTemplateVersion Text
- data CreateServiceTemplateVersionResponse = CreateServiceTemplateVersionResponse' {}
- newCreateServiceTemplateVersionResponse :: Int -> ServiceTemplateVersion -> CreateServiceTemplateVersionResponse
- createServiceTemplateVersionResponse_httpStatus :: Lens' CreateServiceTemplateVersionResponse Int
- createServiceTemplateVersionResponse_serviceTemplateVersion :: Lens' CreateServiceTemplateVersionResponse ServiceTemplateVersion
Creating a Request
data CreateServiceTemplateVersion Source #
See: newCreateServiceTemplateVersion
smart constructor.
CreateServiceTemplateVersion' | |
|
Instances
newCreateServiceTemplateVersion Source #
:: NonEmpty CompatibleEnvironmentTemplateInput |
|
-> TemplateVersionSourceInput | |
-> Text | |
-> CreateServiceTemplateVersion |
Create a value of CreateServiceTemplateVersion
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:CreateServiceTemplateVersion'
, createServiceTemplateVersion_clientToken
- When included, if two identicial requests are made with the same client
token, AWS Proton returns the service template version that the first
request created.
$sel:majorVersion:CreateServiceTemplateVersion'
, createServiceTemplateVersion_majorVersion
- To create a new minor version of the service template, include a
majorVersion
.
To create a new major and minor version of the service template,
exclude majorVersion
.
$sel:description:CreateServiceTemplateVersion'
, createServiceTemplateVersion_description
- A description of the new version of a service template.
$sel:tags:CreateServiceTemplateVersion'
, createServiceTemplateVersion_tags
- Create tags for a new version of a service template.
$sel:compatibleEnvironmentTemplates:CreateServiceTemplateVersion'
, createServiceTemplateVersion_compatibleEnvironmentTemplates
- An array of compatible environment template objects for the new version
of a service template.
$sel:source:CreateServiceTemplateVersion'
, createServiceTemplateVersion_source
- An object that includes the template bundle S3 bucket path and name for
the new version of a service template.
$sel:templateName:CreateServiceTemplateVersion'
, createServiceTemplateVersion_templateName
- The name of the service template.
Request Lenses
createServiceTemplateVersion_clientToken :: Lens' CreateServiceTemplateVersion (Maybe Text) Source #
When included, if two identicial requests are made with the same client token, AWS Proton returns the service template version that the first request created.
createServiceTemplateVersion_majorVersion :: Lens' CreateServiceTemplateVersion (Maybe Text) Source #
To create a new minor version of the service template, include a
majorVersion
.
To create a new major and minor version of the service template,
exclude majorVersion
.
createServiceTemplateVersion_description :: Lens' CreateServiceTemplateVersion (Maybe Text) Source #
A description of the new version of a service template.
createServiceTemplateVersion_tags :: Lens' CreateServiceTemplateVersion (Maybe [Tag]) Source #
Create tags for a new version of a service template.
createServiceTemplateVersion_compatibleEnvironmentTemplates :: Lens' CreateServiceTemplateVersion (NonEmpty CompatibleEnvironmentTemplateInput) Source #
An array of compatible environment template objects for the new version of a service template.
createServiceTemplateVersion_source :: Lens' CreateServiceTemplateVersion TemplateVersionSourceInput Source #
An object that includes the template bundle S3 bucket path and name for the new version of a service template.
createServiceTemplateVersion_templateName :: Lens' CreateServiceTemplateVersion Text Source #
The name of the service template.
Destructuring the Response
data CreateServiceTemplateVersionResponse Source #
See: newCreateServiceTemplateVersionResponse
smart constructor.
CreateServiceTemplateVersionResponse' | |
|
Instances
newCreateServiceTemplateVersionResponse Source #
:: Int | |
-> ServiceTemplateVersion |
|
-> CreateServiceTemplateVersionResponse |
Create a value of CreateServiceTemplateVersionResponse
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:CreateServiceTemplateVersionResponse'
, createServiceTemplateVersionResponse_httpStatus
- The response's http status code.
$sel:serviceTemplateVersion:CreateServiceTemplateVersionResponse'
, createServiceTemplateVersionResponse_serviceTemplateVersion
- The service template version summary of detail data that's returned by
AWS Proton.
Response Lenses
createServiceTemplateVersionResponse_httpStatus :: Lens' CreateServiceTemplateVersionResponse Int Source #
The response's http status code.
createServiceTemplateVersionResponse_serviceTemplateVersion :: Lens' CreateServiceTemplateVersionResponse ServiceTemplateVersion Source #
The service template version summary of detail data that's returned by AWS Proton.