class Amazonite::ApiGateway::RestApi

Overview

Represents a REST API.

Included Modules

Defined in:

api_gateway/rest_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(id : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, created_date : Time | Nil = nil, version : String | Nil = nil, warnings : Array(String) | Nil = nil, binary_media_types : Array(String) | Nil = nil, minimum_compression_size : Int32 | Nil = nil, api_key_source : ApiKeySourceType | Nil = nil, endpoint_configuration : EndpointConfiguration | Nil = nil, policy : String | Nil = nil, tags : Hash(String, String) | Nil = nil, disable_execute_api_endpoint : Bool | Nil = nil, root_resource_id : String | Nil = nil, security_policy : SecurityPolicy | Nil = nil, endpoint_access_mode : EndpointAccessMode | Nil = nil, api_status : ApiStatus | Nil = nil, api_status_message : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def api_key_source : ApiKeySourceType | Nil #

The source of the API key for metering requests according to a usage plan. Valid values are:

HEADER to read the API key from the X-API-Key header of a request. AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.


[View source]
def api_key_source=(api_key_source : ApiKeySourceType | Nil) #

The source of the API key for metering requests according to a usage plan. Valid values are:

HEADER to read the API key from the X-API-Key header of a request. AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.


[View source]
def api_status : ApiStatus | Nil #

The ApiStatus of the RestApi.


[View source]
def api_status=(api_status : ApiStatus | Nil) #

The ApiStatus of the RestApi.


[View source]
def api_status_message : String | Nil #

The status message of the RestApi. When the status message is UPDATING you can still invoke it.


[View source]
def api_status_message=(api_status_message : String | Nil) #

The status message of the RestApi. When the status message is UPDATING you can still invoke it.


[View source]
def binary_media_types : Array(String) | Nil #

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


[View source]
def binary_media_types=(binary_media_types : Array(String) | Nil) #

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


[View source]
def created_date : Time | Nil #

The timestamp when the API was created.


[View source]
def created_date=(created_date : Time | Nil) #

The timestamp when the API was created.


[View source]
def description : String | Nil #

The API's description.


[View source]
def description=(description : String | Nil) #

The API's description.


[View source]
def disable_execute_api_endpoint : Bool | Nil #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.


[View source]
def disable_execute_api_endpoint=(disable_execute_api_endpoint : Bool | Nil) #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.


[View source]
def endpoint_access_mode : EndpointAccessMode | Nil #

The endpoint access mode of the RestApi.


[View source]
def endpoint_access_mode=(endpoint_access_mode : EndpointAccessMode | Nil) #

The endpoint access mode of the RestApi.


[View source]
def endpoint_configuration : EndpointConfiguration | Nil #

The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API.


[View source]
def endpoint_configuration=(endpoint_configuration : EndpointConfiguration | Nil) #

The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def id : String | Nil #

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


[View source]
def id=(id : String | Nil) #

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


[View source]
def minimum_compression_size : Int32 | Nil #

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.


[View source]
def minimum_compression_size=(minimum_compression_size : Int32 | Nil) #

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.


[View source]
def name : String | Nil #

The API's name.


[View source]
def name=(name : String | Nil) #

The API's name.


[View source]
def policy : String | Nil #

A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.


[View source]
def policy=(policy : String | Nil) #

A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.


[View source]
def root_resource_id : String | Nil #

The API's root resource ID.


[View source]
def root_resource_id=(root_resource_id : String | Nil) #

The API's root resource ID.


[View source]
def security_policy : SecurityPolicy | Nil #

The Transport Layer Security (TLS) version + cipher suite for this RestApi.


[View source]
def security_policy=(security_policy : SecurityPolicy | Nil) #

The Transport Layer Security (TLS) version + cipher suite for this RestApi.


[View source]
def tags : Hash(String, String) | Nil #

The collection of tags. Each tag element is associated with a given resource.


[View source]
def tags=(tags : Hash(String, String) | Nil) #

The collection of tags. Each tag element is associated with a given resource.


[View source]
def validate! : Nil #

[View source]
def version : String | Nil #

A version identifier for the API.


[View source]
def version=(version : String | Nil) #

A version identifier for the API.


[View source]
def warnings : Array(String) | Nil #

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


[View source]
def warnings=(warnings : Array(String) | Nil) #

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


[View source]