class Amazonite::ApiGateway::UsagePlan

Overview

Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgets to monitor costs and WAF to manage API requests.

Included Modules

Defined in:

api_gateway/usage_plan.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, api_stages : Array(ApiStage) | Nil = nil, throttle : ThrottleSettings | Nil = nil, quota : QuotaSettings | Nil = nil, product_code : 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 api_stages : Array(ApiStage) | Nil #

The associated API stages of a usage plan.


[View source]
def api_stages=(api_stages : Array(ApiStage) | Nil) #

The associated API stages of a usage plan.


[View source]
def description : String | Nil #

The description of a usage plan.


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

The description of a usage plan.


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

See Object#hash(hasher)


def id : String | Nil #

The identifier of a UsagePlan resource.


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

The identifier of a UsagePlan resource.


[View source]
def name : String | Nil #

The name of a usage plan.


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

The name of a usage plan.


[View source]
def product_code : String | Nil #

The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.


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

The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.


[View source]
def quota : QuotaSettings | Nil #

The target maximum number of permitted requests per a given unit time interval.


[View source]
def quota=(quota : QuotaSettings | Nil) #

The target maximum number of permitted requests per a given unit time interval.


[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 throttle : ThrottleSettings | Nil #

A map containing method level throttling information for API stage in a usage plan.


[View source]
def throttle=(throttle : ThrottleSettings | Nil) #

A map containing method level throttling information for API stage in a usage plan.


[View source]
def validate! : Nil #

[View source]