InstanceType

class aws_cdk.aws_ec2.InstanceType(instance_type_identifier)

Bases: object

Instance type for EC2 instances.

This class takes a literal string, good if you already know the identifier of the type you want.

__init__(instance_type_identifier)
Parameters

instance_type_identifier (str) –

Return type

None

Methods

to_string()

Return the instance type as a dotted string.

Return type

str

Static Methods

classmethod of(instance_class, instance_size)

Instance type for EC2 instances.

This class takes a combination of a class and size.

Be aware that not all combinations of class and size are available, and not all classes are available in all regions.

Parameters
Return type

InstanceType