Peer
- class aws_cdk.aws_gamelift_alpha.Peer
Bases:
object
(experimental) Peer object factories.
The static methods on this object can be used to create peer objects which represent a connection partner in inbound permission rules.
Use this object if you need to represent connection partners using plain IP addresses.
- Stability:
experimental
- 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))
- Stability:
experimental
Static Methods