AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::ApiGateway::RestApi S3Location

S3Location is a property of the AWS::ApiGateway::RestApi resource that specifies the Amazon S3 location of a OpenAPI (formerly Swagger) file that defines a set of RESTful APIs in JSON or YAML.

Note

On January 1, 2016, the Swagger Specification was donated to the OpenAPI initiative, becoming the foundation of the OpenAPI Specification.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Bucket" : String, "ETag" : String, "Key" : String, "Version" : String }

YAML

Bucket: String ETag: String Key: String Version: String

Properties

Bucket

The name of the S3 bucket where the OpenAPI file is stored.

Required: No

Type: String

Update requires: No interruption

ETag

The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.

Required: No

Type: String

Update requires: No interruption

Key

The file name of the OpenAPI file (Amazon S3 object name).

Required: No

Type: String

Update requires: No interruption

Version

For versioning-enabled buckets, a specific version of the OpenAPI file.

Required: No

Type: String

Update requires: No interruption

See Also

  • RestApi in the Amazon API Gateway REST API Reference

On this page: