class Amazonite::Lambda::InstanceRequirements

Overview

Specifications that define the characteristics and constraints for compute instances used by the capacity provider.

Included Modules

Defined in:

lambda/instance_requirements.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(architectures : Array(Architecture) | Nil = nil, allowed_instance_types : Array(String) | Nil = nil, excluded_instance_types : Array(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 allowed_instance_types : Array(String) | Nil #

A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.


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

A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.


[View source]
def architectures : Array(Architecture) | Nil #

A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.


[View source]
def architectures=(architectures : Array(Architecture) | Nil) #

A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.


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

A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.


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

A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.


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

See Object#hash(hasher)


def validate! : Nil #

[View source]