Skip to content

/AWS1/CL_PRN=>CREATESERVICE()

About CreateService

Create an Proton service. An Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the Proton User Guide.

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/PRNRESOURCENAME /AWS1/PRNRESOURCENAME

The service name.

IV_TEMPLATENAME TYPE /AWS1/PRNRESOURCENAME /AWS1/PRNRESOURCENAME

The name of the service template that's used to create the service.

IV_TEMPLATEMAJORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART

The major version of the service template that was used to create the service.

IV_SPEC TYPE /AWS1/PRNSPECCONTENTS /AWS1/PRNSPECCONTENTS

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/PRNDESCRIPTION /AWS1/PRNDESCRIPTION

A description of the Proton service.

IV_TEMPLATEMINORVERSION TYPE /AWS1/PRNTEMPLATEVERSIONPART /AWS1/PRNTEMPLATEVERSIONPART

The minor version of the service template that was used to create the service.

IV_REPOSITORYCONNECTIONARN TYPE /AWS1/PRNARN /AWS1/PRNARN

The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.

IV_REPOSITORYID TYPE /AWS1/PRNREPOSITORYID /AWS1/PRNREPOSITORYID

The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

IV_BRANCHNAME TYPE /AWS1/PRNGITBRANCHNAME /AWS1/PRNGITBRANCHNAME

The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.

IT_TAGS TYPE /AWS1/CL_PRNTAG=>TT_TAGLIST TT_TAGLIST

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

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PRNCREATESVCOUTPUT /AWS1/CL_PRNCREATESVCOUTPUT