Skip to content

Create Service Instance

proton_create_service_instance R Documentation

Create a service instance

Description

Create a service instance.

Usage

proton_create_service_instance(clientToken, name, serviceName, spec,
  tags, templateMajorVersion, templateMinorVersion)

Arguments

clientToken

The client token of the service instance to create.

name

[required] The name of the service instance to create.

serviceName

[required] The name of the service the service instance is added to.

spec

[required] The spec for the service instance you want to create.

tags

An optional list of metadata items that you can associate with the Proton service instance. A tag is a key-value pair.

For more information, see Proton resources and tagging in the Proton User Guide.

templateMajorVersion

To create a new major and minor version of the service template, exclude ⁠major Version⁠.

templateMinorVersion

To create a new minor version of the service template, include a ⁠major Version⁠.

Value

A list with the following syntax:

list(
  serviceInstance = list(
    arn = "string",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    deploymentStatus = "IN_PROGRESS"|"FAILED"|"SUCCEEDED"|"DELETE_IN_PROGRESS"|"DELETE_FAILED"|"DELETE_COMPLETE"|"CANCELLING"|"CANCELLED",
    deploymentStatusMessage = "string",
    environmentName = "string",
    lastAttemptedDeploymentId = "string",
    lastClientRequestToken = "string",
    lastDeploymentAttemptedAt = as.POSIXct(
      "2015-01-01"
    ),
    lastDeploymentSucceededAt = as.POSIXct(
      "2015-01-01"
    ),
    lastSucceededDeploymentId = "string",
    name = "string",
    serviceName = "string",
    spec = "string",
    templateMajorVersion = "string",
    templateMinorVersion = "string",
    templateName = "string"
  )
)

Request syntax

svc$create_service_instance(
  clientToken = "string",
  name = "string",
  serviceName = "string",
  spec = "string",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  ),
  templateMajorVersion = "string",
  templateMinorVersion = "string"
)