Class CfnService.ServiceRegistryProperty.Jsii$Proxy

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

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

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnService.ServiceRegistryProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnService.ServiceRegistryProperty.Builder.
  • Method Details

    • getContainerName

      public final String getContainerName()
      Description copied from interface: CfnService.ServiceRegistryProperty
      The container name value to be used for your service discovery service.

      It's already specified in the task definition. If the task definition that your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition that your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value. However, you can't specify both.

      Specified by:
      getContainerName in interface CfnService.ServiceRegistryProperty
    • getContainerPort

      public final Number getContainerPort()
      Description copied from interface: CfnService.ServiceRegistryProperty
      The port value to be used for your service discovery service.

      It's already specified in the task definition. If the task definition your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value. However, you can't specify both.

      Specified by:
      getContainerPort in interface CfnService.ServiceRegistryProperty
    • getPort

      public final Number getPort()
      Description copied from interface: CfnService.ServiceRegistryProperty
      The port value used if your service discovery service specified an SRV record.

      This field might be used if both the awsvpc network mode and SRV records are used.

      Specified by:
      getPort in interface CfnService.ServiceRegistryProperty
    • getRegistryArn

      public final String getRegistryArn()
      Description copied from interface: CfnService.ServiceRegistryProperty
      The Amazon Resource Name (ARN) of the service registry.

      The currently supported service registry is AWS Cloud Map . For more information, see CreateService .

      Specified by:
      getRegistryArn in interface CfnService.ServiceRegistryProperty
    • $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