ApiDefinitionS3Location

class aws_cdk.aws_apigateway.ApiDefinitionS3Location(*, bucket, key, version=None)

Bases: object

S3 location of the API definition file.

Parameters
  • bucket (str) – The S3 bucket.

  • key (str) – The S3 key.

  • version (Optional[str]) – An optional version. Default: - latest version

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigateway as apigateway

api_definition_s3_location = apigateway.ApiDefinitionS3Location(
    bucket="bucket",
    key="key",

    # the properties below are optional
    version="version"
)

Attributes

bucket

The S3 bucket.

Return type

str

key

The S3 key.

Return type

str

version

An optional version.

Default
  • latest version

Return type

Optional[str]