Class ServiceConnect

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.ServiceConnect
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:58.868Z") @Stability(Stable) public class ServiceConnect extends software.amazon.jsii.JsiiObject
ServiceConnect ValueObjectClass having by ContainerDefinition.

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.ecs.*;
 AppProtocol appProtocol;
 ServiceConnect serviceConnect = ServiceConnect.Builder.create(NetworkMode.NONE)
         .containerPort(123)
         // the properties below are optional
         .appProtocol(appProtocol)
         .containerPortRange("containerPortRange")
         .hostPort(123)
         .name("name")
         .protocol(Protocol.TCP)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for ServiceConnect.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    ServiceConnect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ServiceConnect(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The networking mode to use for the containers in the task.
    Port mappings allow containers to access ports on the host container instance to send or receive traffic.
    Judge parameters can be serviceconnect logick.
    void
    Judge serviceconnect parametes are valid.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • ServiceConnect

      protected ServiceConnect(software.amazon.jsii.JsiiObjectRef objRef)
    • ServiceConnect

      protected ServiceConnect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ServiceConnect

      @Stability(Stable) public ServiceConnect(@NotNull NetworkMode networkmode, @NotNull PortMapping pm)
      Parameters:
      networkmode - This parameter is required.
      pm - This parameter is required.
  • Method Details

    • isServiceConnect

      @Stability(Stable) @NotNull public Boolean isServiceConnect()
      Judge parameters can be serviceconnect logick.

      If parameters can be serviceConnect return true.

    • validate

      @Stability(Stable) public void validate()
      Judge serviceconnect parametes are valid.

      If invalid, throw Error.

    • getNetworkmode

      @Stability(Stable) @NotNull public NetworkMode getNetworkmode()
      The networking mode to use for the containers in the task.
    • getPortmapping

      @Stability(Stable) @NotNull public PortMapping getPortmapping()
      Port mappings allow containers to access ports on the host container instance to send or receive traffic.