Create Service Template Version
| proton_create_service_template_version | R Documentation |
Create a new major or minor version of a service template¶
Description¶
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.
Usage¶
proton_create_service_template_version(clientToken,
compatibleEnvironmentTemplates, description, majorVersion, source,
supportedComponentSources, tags, templateName)
Arguments¶
clientTokenWhen included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
compatibleEnvironmentTemplates[required] 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.
descriptionA description of the new version of a service template.
majorVersionTo 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[required] An object that includes the template bundle S3 bucket path and name for the new version of a service template.
supportedComponentSourcesAn 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.
tagsAn 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.
templateName[required] The name of the service template.
Value¶
A list with the following syntax:
list(
serviceTemplateVersion = list(
arn = "string",
compatibleEnvironmentTemplates = list(
list(
majorVersion = "string",
templateName = "string"
)
),
createdAt = as.POSIXct(
"2015-01-01"
),
description = "string",
lastModifiedAt = as.POSIXct(
"2015-01-01"
),
majorVersion = "string",
minorVersion = "string",
recommendedMinorVersion = "string",
schema = "string",
status = "REGISTRATION_IN_PROGRESS"|"REGISTRATION_FAILED"|"DRAFT"|"PUBLISHED",
statusMessage = "string",
supportedComponentSources = list(
"DIRECTLY_DEFINED"
),
templateName = "string"
)
)
Request syntax¶
svc$create_service_template_version(
clientToken = "string",
compatibleEnvironmentTemplates = list(
list(
majorVersion = "string",
templateName = "string"
)
),
description = "string",
majorVersion = "string",
source = list(
s3 = list(
bucket = "string",
key = "string"
)
),
supportedComponentSources = list(
"DIRECTLY_DEFINED"
),
tags = list(
list(
key = "string",
value = "string"
)
),
templateName = "string"
)