InstanceSize
- class aws_cdk.aws_ec2.InstanceSize(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
What size of instance to use.
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc instance = rds.DatabaseInstance(self, "Instance", engine=rds.DatabaseInstanceEngine.oracle_se2(version=rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1), # optional, defaults to m5.large instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), credentials=rds.Credentials.from_generated_secret("syscdk"), # Optional - will default to 'admin' username and generated password vpc=vpc, vpc_subnets=ec2.SubnetSelection( subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS ) )
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 XLARGE112 (112xlarge).
- XLARGE12
Instance size XLARGE12 (12xlarge).
- XLARGE16
Instance size XLARGE16 (16xlarge).
- XLARGE16METAL
Instance size XLARGE16METAL (metal-16xl).
- XLARGE18
Instance size XLARGE18 (18xlarge).
- XLARGE2
Instance size XLARGE2 (2xlarge).
- XLARGE24
Instance size XLARGE24 (24xlarge).
- XLARGE24METAL
Instance size XLARGE24METAL (metal-24xl).
- XLARGE3
Instance size XLARGE3 (3xlarge).
- XLARGE32
Instance size XLARGE32 (32xlarge).
- XLARGE32METAL
Instance size XLARGE32METAL (metal-32xl).
- XLARGE4
Instance size XLARGE4 (4xlarge).
- XLARGE48
Instance size XLARGE48 (48xlarge).
- XLARGE48METAL
Instance size XLARGE48METAL (metal-48xl).
- XLARGE56
Instance size XLARGE56 (56xlarge).
- XLARGE6
Instance size XLARGE6 (6xlarge).
- XLARGE8
Instance size XLARGE8 (8xlarge).
- XLARGE9
Instance size XLARGE9 (9xlarge).
- XLARGE96
Instance size XLARGE96 (96xlarge).