class Amazonite::ApiGateway::ApiKey

Overview

A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

Included Modules

Defined in:

api_gateway/api_key.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(id : String | Nil = nil, value : String | Nil = nil, name : String | Nil = nil, customer_id : String | Nil = nil, description : String | Nil = nil, enabled : Bool | Nil = nil, created_date : Time | Nil = nil, last_updated_date : Time | Nil = nil, stage_keys : Array(String) | Nil = nil, tags : Hash(String, 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 created_date : Time | Nil #

The timestamp when the API Key was created.


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

The timestamp when the API Key was created.


[View source]
def customer_id : String | Nil #

An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.


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

An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.


[View source]
def description : String | Nil #

The description of the API Key.


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

The description of the API Key.


[View source]
def enabled : Bool | Nil #

Specifies whether the API Key can be used by callers.


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

Specifies whether the API Key can be used by callers.


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

See Object#hash(hasher)


def id : String | Nil #

The identifier of the API Key.


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

The identifier of the API Key.


[View source]
def last_updated_date : Time | Nil #

The timestamp when the API Key was last updated.


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

The timestamp when the API Key was last updated.


[View source]
def name : String | Nil #

The name of the API Key.


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

The name of the API Key.


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

A list of Stage resources that are associated with the ApiKey resource.


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

A list of Stage resources that are associated with the ApiKey resource.


[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 value : String | Nil #

The value of the API Key.


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

The value of the API Key.


[View source]