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.103.1 (build bef2dea)",
date="2024-10-25T14:21:14.674Z")
@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/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionServiceConnect
(NetworkMode networkmode, PortMapping pm) protected
ServiceConnect
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ServiceConnect
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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
validate()
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
- Parameters:
networkmode
- This parameter is required.pm
- This parameter is required.
-
-
Method Details
-
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
The networking mode to use for the containers in the task. -
getPortmapping
Port mappings allow containers to access ports on the host container instance to send or receive traffic.
-