InstanceClass

class aws_cdk.aws_ec2.InstanceClass(value)

Bases: enum.Enum

What class and generation of instance to use.

We have both symbolic and concrete enums for every type.

The first are for people that want to specify by purpose, the second one are for people who already know exactly what ‘R4’ means.

ExampleMetadata

infused

Example:

# vpc: ec2.Vpc

# source_instance: rds.DatabaseInstance

rds.DatabaseInstanceFromSnapshot(self, "Instance",
    snapshot_identifier="my-snapshot",
    engine=rds.DatabaseInstanceEngine.postgres(version=rds.PostgresEngineVersion.VER_12_3),
    # optional, defaults to m5.large
    instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
    vpc=vpc
)
rds.DatabaseInstanceReadReplica(self, "ReadReplica",
    source_database_instance=source_instance,
    instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
    vpc=vpc
)

Attributes

ARM1

Arm processor based instances, 1st generation.

BURSTABLE2

Burstable instances, 2nd generation.

BURSTABLE3

Burstable instances, 3rd generation.

BURSTABLE3_AMD

Burstable instances based on AMD EPYC, 3rd generation.

BURSTABLE4_GRAVITON

Burstable instances, 4th generation with Graviton2 processors.

COMPUTE3

Compute optimized instances, 3rd generation.

COMPUTE4

Compute optimized instances, 4th generation.

COMPUTE5

Compute optimized instances, 5th generation.

COMPUTE5_AMD

Compute optimized instances based on AMD EPYC, 5th generation.

COMPUTE5_AMD_NVME_DRIVE

Compute optimized instances with local NVME drive based on AMD EPYC, 5th generation.

COMPUTE5_HIGH_PERFORMANCE

Compute optimized instances for high performance computing, 5th generation.

COMPUTE5_NVME_DRIVE

Compute optimized instances with local NVME drive, 5th generation.

COMPUTE6_AMD

Compute optimized instances based on AMD EPYC (codename Milan), 6th generation.

COMPUTE6_GRAVITON2

Compute optimized instances for high performance computing, 6th generation with Graviton2 processors.

COMPUTE6_GRAVITON2_HIGH_NETWORK_BANDWITH

Compute optimized instances for high performance computing, 6th generation with Graviton2 processors and high network bandwidth capabilities.

COMPUTE6_GRAVITON2_NVME_DRIVE

Compute optimized instances for high performance computing, 6th generation with Graviton2 processors and local NVME drive.

COMPUTE6_INTEL

Compute optimized instances, 6th generation.

FPGA1

Instances with customizable hardware acceleration, 1st generation.

GRAPHICS3

Graphics-optimized instances, 3rd generation.

GRAPHICS4_AMD_NVME_DRIVE

Graphics-optimized instances based on AMD EPYC And Radeon Pro GPU (NAVI) with local NVME drive, 4th generation.

GRAPHICS4_NVME_DRIVE_HIGH_PERFORMANCE

Graphics-optimized instances with NVME drive for high performance computing, 4th generation.

GRAPHICS5

Graphics-optimized instances, 5th generation.

GRAPHICS5_GRAVITON2

Graphics-optimized instances powered by AWS Graviton2 Processors and NVIDIA T4G Tensor Core GPUs, 5th generation.

HIGH_COMPUTE_MEMORY1

High memory and compute capacity instances, 1st generation.

HIGH_MEMORY_12TB_1

High memory instances (12TB) based on Intel Xeon Platinum 8176M (Skylake) processors, 1st generation.

HIGH_MEMORY_18TB_1

High memory instances (18TB) based on Intel Xeon Scalable (Cascade Lake) processors, 1st generation.

HIGH_MEMORY_24TB_1

High memory instances (24TB) based on Intel Xeon Scalable (Cascade Lake) processors, 1st generation.

HIGH_MEMORY_6TB_1

High memory instances (6TB) based on Intel Xeon Platinum 8176M (Skylake) processors, 1st generation.

HIGH_MEMORY_9TB_1

High memory instances (9TB) based on Intel Xeon Platinum 8176M (Skylake) processors, 1st generation.

HIGH_PERFORMANCE_COMPUTING6_AMD

High performance computing based on AMD EPYC, 6th generation.

INFERENCE1

Inferentia Chips based instances for machine learning inference applications, 1st generation.

IO3

I/O-optimized instances, 3rd generation.

IO3_DENSE_NVME_DRIVE

I/O-optimized instances with local NVME drive, 3rd generation.

IO4_INTEL

I/O-optimized instances with local NVME drive powered by Intel Xeon Scalable processors (code named Ice Lake), 4th generation.

MACINTOSH1_INTEL

Macintosh instances built on Apple Mac mini computers, 1st generation with Intel procesors.

MEMORY3

Memory optimized instances, 3rd generation.

MEMORY4

Memory optimized instances, 4th generation.

MEMORY5

Memory optimized instances, 5th generation.

MEMORY5_AMD

Memory optimized instances based on AMD EPYC, 5th generation.

MEMORY5_AMD_NVME_DRIVE

Memory optimized instances based on AMD EPYC with local NVME drive, 5th generation.

MEMORY5_EBS_OPTIMIZED

Memory optimized instances that are also EBS-optimized, 5th generation.

MEMORY5_HIGH_PERFORMANCE

Memory optimized instances for high performance computing, 5th generation.

MEMORY5_NVME_DRIVE

Memory optimized instances with local NVME drive, 5th generation.

MEMORY5_NVME_DRIVE_HIGH_PERFORMANCE

Memory optimized instances with local NVME drive for high performance computing, 5th generation.

MEMORY6_GRAVITON

Memory optimized instances, 6th generation with Graviton2 processors.

MEMORY6_GRAVITON2_NVME_DRIVE

Memory optimized instances, 6th generation with Graviton2 processors and local NVME drive.

MEMORY6_INTEL

Memory optimized instances, 6th generation with Intel Xeon Scalable processors (3rd generation processors code named Ice Lake).

MEMORY_INTENSIVE_1

Memory-intensive instances, 1st generation.

MEMORY_INTENSIVE_1_EXTENDED

Memory-intensive instances, extended, 1st generation.

MEMORY_INTENSIVE_2_GRAVITON2

Memory-intensive instances, 2nd generation with Graviton2 processors.

This instance type can be used only in RDS. It is not supported in EC2.

MEMORY_INTENSIVE_2_GRAVITON2_NVME_DRIVE

Memory-intensive instances, 2nd generation with Graviton2 processors and local NVME drive.

MEMORY_INTENSIVE_2_INTEL

Memory-intensive instances with higher network bandwith and local NVME drive, Intel Xeon Scalable (Ice Lake) processors.

MEMORY_INTENSIVE_2_XTZ_INTEL

Memory-intensive instances with higher network bandwith and single-threaded performance, Intel Xeon Scalable (Cascade Lake) processors.

MEMORY_INTENSIVE_2_XT_INTEL

Memory-intensive instances with higher network bandwith, local NVME drive, and extended memory.

Intel Xeon Scalable (Ice Lake) processors

PARALLEL2

Parallel-processing optimized instances, 2nd generation.

PARALLEL3

Parallel-processing optimized instances, 3nd generation.

PARALLEL4

Parallel-processing optimized instances, 4th generation.

STANDARD3

Standard instances, 3rd generation.

STANDARD4

Standard instances, 4th generation.

STANDARD5

Standard instances, 5th generation.

STANDARD5_AMD

Standard instances based on AMD EPYC, 5th generation.

STANDARD5_AMD_NVME_DRIVE

Standard instances based on AMD EPYC with local NVME drive, 5th generation.

STANDARD5_HIGH_COMPUTE

Standard instances with high memory and compute capacity based on Intel Xeon Scalable (Cascade Lake) processors, 5nd generation.

STANDARD5_HIGH_PERFORMANCE

Standard instances for high performance computing, 5th generation.

STANDARD5_NVME_DRIVE

Standard instances with local NVME drive, 5th generation.

STANDARD5_NVME_DRIVE_HIGH_PERFORMANCE

Standard instances with local NVME drive for high performance computing, 5th generation.

STANDARD6_AMD

Standard instances based on 3rd Gen AMD EPYC processors, 6th generation.

STANDARD6_GRAVITON

Arm processor based instances, 2nd generation.

STANDARD6_GRAVITON2_NVME_DRIVE

Standard instances, 6th generation with Graviton2 processors and local NVME drive.

STANDARD6_INTEL

Standard instances based on Intel (Ice Lake), 6th generation.

STORAGE2

Storage-optimized instances, 2nd generation.

STORAGE3

Storage-optimized instances, 3rd generation.

STORAGE3_ENHANCED_NETWORK

Storage-optimized instances, 3rd generation.

STORAGE4_GRAVITON_NETWORK_OPTIMIZED

Storage optimized instances powered by Graviton2 processor, 4th generation.

STORAGE4_GRAVITON_NETWORK_STORAGE_OPTIMIZED

Storage optimized instances powered by Graviton2 processor, 4th generation.

STORAGE_COMPUTE_1

Storage/compute balanced instances, 1st generation.

VIDEO_TRANSCODING1

Multi-stream video transcoding instances for resolutions up to 4K UHD, 1st generation.