InstanceSize
- class aws_cdk.aws_ec2.InstanceSize(value)
Bases:
Enum
What size of instance to use.
- 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
- LARGE
Instance size LARGE (large).
- MEDIUM
Instance size MEDIUM (medium).
- METAL
Instance size METAL (metal).
- MICRO
Instance size MICRO (micro).
- NANO
Instance size NANO (nano).
- SMALL
Instance size SMALL (small).
- XLARGE
Instance size XLARGE (xlarge).
- XLARGE10
Instance size XLARGE10 (10xlarge).
- XLARGE112
Instance size XLARGE56 (112xlarge).
- XLARGE12
Instance size XLARGE12 (12xlarge).
- XLARGE16
Instance size XLARGE16 (16xlarge).
- XLARGE18
Instance size XLARGE18 (18xlarge).
- XLARGE2
Instance size XLARGE2 (2xlarge).
- XLARGE24
Instance size XLARGE24 (24xlarge).
- XLARGE3
Instance size XLARGE3 (3xlarge).
- XLARGE32
Instance size XLARGE32 (32xlarge).
- XLARGE4
Instance size XLARGE4 (4xlarge).
- XLARGE48
Instance size XLARGE48 (48xlarge).
- XLARGE56
Instance size XLARGE56 (56xlarge).
- XLARGE6
Instance size XLARGE6 (6xlarge).
- XLARGE8
Instance size XLARGE8 (8xlarge).
- XLARGE9
Instance size XLARGE9 (9xlarge).