Applications applicationId Templates - Amazon Serverless Application Repository
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Applications applicationId Templates

URI

/applications/applicationId/templates

HTTP methods

POST

Operation ID: CreateCloudFormationTemplate

Creates an Amazon CloudFormation template.

Path parameters
NameTypeRequiredDescription
applicationIdStringTrue

The Amazon Resource Name (ARN) of the application.

Responses
Status codeResponse modelDescription
201TemplateDetails

Success

400BadRequestException

One of the parameters in the request is invalid.

403ForbiddenException

The client is not authenticated.

404NotFoundException

The resource (for example, an access policy statement) specified in the request doesn't exist.

429TooManyRequestsException

The client is sending more than the allowed number of requests per unit of time.

500InternalServerErrorException

The Amazon Serverless Application Repository service encountered an internal error.

OPTIONS

Path parameters
NameTypeRequiredDescription
applicationIdStringTrue

The Amazon Resource Name (ARN) of the application.

Responses
Status codeResponse modelDescription
200None

200 response

Schemas

Request bodies

Response bodies

{ "message message": "string", "errorCode errorCode": "string" }
{ "message message": "string", "errorCode errorCode": "string" }
{ "message message": "string", "errorCode errorCode": "string" }
{ "message message": "string", "errorCode errorCode": "string" }
{ "message message": "string", "errorCode errorCode": "string" }

Properties

BadRequestException

One of the parameters in the request is invalid.

PropertyTypeRequiredDescription
errorCode

string

False

400

message

string

False

One of the parameters in the request is invalid.

message

One of the parameters in the request is invalid.

  • Type: string

  • Required: False

errorCode

400

  • Type: string

  • Required: False

CreateCloudFormationTemplateInput

Create a template request.

PropertyTypeRequiredDescription
semanticVersion

string

False

The semantic version of the application:

https://semver.org/

semanticVersion

The semantic version of the application:

https://semver.org/

  • Type: string

  • Required: False

ForbiddenException

The client is not authenticated.

PropertyTypeRequiredDescription
errorCode

string

False

403

message

string

False

The client is not authenticated.

message

The client is not authenticated.

  • Type: string

  • Required: False

errorCode

403

  • Type: string

  • Required: False

InternalServerErrorException

The Amazon Serverless Application Repository service encountered an internal error.

PropertyTypeRequiredDescription
errorCode

string

False

500

message

string

False

The Amazon Serverless Application Repository service encountered an internal error.

message

The Amazon Serverless Application Repository service encountered an internal error.

  • Type: string

  • Required: False

errorCode

500

  • Type: string

  • Required: False

NotFoundException

The resource (for example, an access policy statement) specified in the request doesn't exist.

PropertyTypeRequiredDescription
errorCode

string

False

404

message

string

False

The resource (for example, an access policy statement) specified in the request doesn't exist.

message

The resource (for example, an access policy statement) specified in the request doesn't exist.

  • Type: string

  • Required: False

errorCode

404

  • Type: string

  • Required: False

TemplateDetails

Details of the template.

PropertyTypeRequiredDescription
applicationId

string

True

The application Amazon Resource Name (ARN).

creationTime

string

True

The date and time this resource was created.

expirationTime

string

True

The date and time this template expires. Templates expire 1 hour after creation.

semanticVersion

string

True

The semantic version of the application:

https://semver.org/

status

string

Values: PREPARING | ACTIVE | EXPIRED

True

Status of the template creation workflow.

Possible values: PREPARING | ACTIVE | EXPIRED

templateId

string

True

The UUID returned by CreateCloudFormationTemplate.

Pattern: [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}

templateUrl

string

True

A link to the template that can be used to deploy the application using Amazon CloudFormation.

templateId

The UUID returned by CreateCloudFormationTemplate.

Pattern: [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}

  • Type: string

  • Required: True

templateUrl

A link to the template that can be used to deploy the application using Amazon CloudFormation.

  • Type: string

  • Required: True

applicationId

The application Amazon Resource Name (ARN).

  • Type: string

  • Required: True

semanticVersion

The semantic version of the application:

https://semver.org/

  • Type: string

  • Required: True

status

Status of the template creation workflow.

Possible values: PREPARING | ACTIVE | EXPIRED

  • Type: string

  • Required: True

  • Values: PREPARING | ACTIVE | EXPIRED

creationTime

The date and time this resource was created.

  • Type: string

  • Required: True

expirationTime

The date and time this template expires. Templates expire 1 hour after creation.

  • Type: string

  • Required: True

TooManyRequestsException

The client is sending more than the allowed number of requests per unit of time.

PropertyTypeRequiredDescription
errorCode

string

False

429

message

string

False

The client is sending more than the allowed number of requests per unit of time.

message

The client is sending more than the allowed number of requests per unit of time.

  • Type: string

  • Required: False

errorCode

429

  • Type: string

  • Required: False