Class CfnService.ServiceConnectServiceProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.CfnService.ServiceConnectServiceProperty.Jsii$Proxy
All Implemented Interfaces:
CfnService.ServiceConnectServiceProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnService.ServiceConnectServiceProperty

@Stability(Stable) @Internal public static final class CfnService.ServiceConnectServiceProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnService.ServiceConnectServiceProperty
  • Constructor Details

  • Method Details

    • getPortName

      public final String getPortName()
      Description copied from interface: CfnService.ServiceConnectServiceProperty
      The portName must match the name of one of the portMappings from all the containers in the task definition of this Amazon ECS service.
      Specified by:
      getPortName in interface CfnService.ServiceConnectServiceProperty
    • getClientAliases

      public final Object getClientAliases()
      Description copied from interface: CfnService.ServiceConnectServiceProperty
      The list of client aliases for this Service Connect service.

      You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.

      Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.

      Each name and port mapping must be unique within the namespace.

      For each ServiceConnectService , you must provide at least one clientAlias with one port .

      Specified by:
      getClientAliases in interface CfnService.ServiceConnectServiceProperty
    • getDiscoveryName

      public final String getDiscoveryName()
      Description copied from interface: CfnService.ServiceConnectServiceProperty
      The discoveryName is the name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service.

      This must be unique within the AWS Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.

      If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace .

      Specified by:
      getDiscoveryName in interface CfnService.ServiceConnectServiceProperty
    • getIngressPortOverride

      public final Number getIngressPortOverride()
      Description copied from interface: CfnService.ServiceConnectServiceProperty
      The port number for the Service Connect proxy to listen on.

      Use the value of this field to bypass the proxy for traffic on the port number specified in the named portMapping in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.

      In awsvpc mode and Fargate, the default value is the container port number. The container port number is in the portMapping in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.

      Specified by:
      getIngressPortOverride in interface CfnService.ServiceConnectServiceProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object