You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::APIGateway::Types::RestApi

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb

Overview

Represents a REST API.

[Create an API][1]

Instance Attribute Summary collapse

Instance Attribute Details

#binary_media_typesArray<String>

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

Returns:

  • (Array<String>)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#created_dateTime

The timestamp when the API was created.

Returns:

  • (Time)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#descriptionString

The API's description.

Returns:

  • (String)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#idString

The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.

Returns:

  • (String)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#nameString

The API's name.

Returns:

  • (String)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#versionString

A version identifier for the API.

Returns:

  • (String)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end

#warningsArray<String>

The warning messages reported when failonwarnings is turned on during API import.

Returns:

  • (Array<String>)


5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 5341

class RestApi < Struct.new(
  :id,
  :name,
  :description,
  :created_date,
  :version,
  :warnings,
  :binary_media_types)
  include Aws::Structure
end