Skip to content
v2.273.0

PublicEndpointProperty Struct ​

PublicEndpoint is a property of the ContainerServiceDeployment property. It describes describes the settings of the public endpoint of a container on a container service.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const publicEndpointProperty: lightsail.CfnContainer.PublicEndpointProperty = {
  containerName: 'containerName',
  containerPort: 123,
  healthCheckConfig: {
    healthyThreshold: 123,
    intervalSeconds: 123,
    path: 'path',
    successCodes: 'successCodes',
    timeoutSeconds: 123,
    unhealthyThreshold: 123,
  },
};

Properties ​

containerNamestringcontainer_namestrcontainerNameStringContainerNamestringContainerName*string#
The name of the container entry of the deployment that the endpoint configuration applies to.
containerPortnumbercontainer_portint | floatcontainerPortNumberContainerPortdoubleContainerPort*float64#
The port of the specified container to which traffic is forwarded to.
healthCheckConfigIResolvable | CfnContainer.HealthCheckConfigPropertyhealth_check_configtyping.Union[IResolvable, HealthCheckConfigProperty]healthCheckConfigIResolvableHealthCheckConfigIResolvableHealthCheckConfiginterface{}#
An object that describes the health check configuration of the container.