InstanceSize

class aws_cdk.aws_ec2.InstanceSize(value)

Bases: Enum

What size of instance to use.

ExampleMetadata

infused

Example:

# build: gamelift.Build


fleet = gamelift.BuildFleet(self, "Game server fleet",
    fleet_name="test-fleet",
    content=build,
    instance_type=ec2.InstanceType.of(ec2.InstanceClass.C4, ec2.InstanceSize.LARGE),
    runtime_configuration=gamelift.RuntimeConfiguration(
        server_processes=[gamelift.ServerProcess(
            launch_path="/local/game/GameLiftExampleServer.x86_64"
        )]
    ),
    ingress_rules=[gamelift.IngressRule(
        source=gamelift.Peer.any_ipv4(),
        port=gamelift.Port.tcp_range(100, 200)
    )]
)
# Allowing a specific CIDR for port 1111 on UDP Protocol
fleet.add_ingress_rule(gamelift.Peer.ipv4("1.2.3.4/32"), gamelift.Port.udp(1111))

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).