Interface IngressRule

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IngressRule.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:13:07.835Z") @Stability(Experimental) public interface IngressRule extends software.amazon.jsii.JsiiSerializable
(experimental) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an instance in a fleet.

New game sessions are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges.

Fleets with custom game builds must have permissions explicitly set. For Realtime Servers fleets, GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.gamelift.alpha.*;
 IPeer peer;
 Port port;
 IngressRule ingressRule = IngressRule.builder()
         .port(port)
         .source(peer)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for IngressRule
    static final class 
    An implementation for IngressRule
  • Method Summary

    Modifier and Type
    Method
    Description
     
    (experimental) The port range used for ingress traffic.
    (experimental) A range of allowed IP addresses .

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getPort

      @Stability(Experimental) @NotNull Port getPort()
      (experimental) The port range used for ingress traffic.
    • getSource

      @Stability(Experimental) @NotNull IPeer getSource()
      (experimental) A range of allowed IP addresses .
    • builder

      @Stability(Experimental) static IngressRule.Builder builder()
      Returns:
      a IngressRule.Builder of IngressRule