aws-cdk-lib.aws_lightsail.CfnContainer.ContainerServiceDeploymentProperty

interface ContainerServiceDeploymentProperty

LanguageType name
.NETAmazon.CDK.AWS.Lightsail.CfnContainer.ContainerServiceDeploymentProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnContainer_ContainerServiceDeploymentProperty
Javasoftware.amazon.awscdk.services.lightsail.CfnContainer.ContainerServiceDeploymentProperty
Pythonaws_cdk.aws_lightsail.CfnContainer.ContainerServiceDeploymentProperty
TypeScript aws-cdk-lib » aws_lightsail » CfnContainer » ContainerServiceDeploymentProperty

ContainerServiceDeployment is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.

A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.

Example

// 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 containerServiceDeploymentProperty: lightsail.CfnContainer.ContainerServiceDeploymentProperty = {
  containers: [{
    command: ['command'],
    containerName: 'containerName',
    environment: [{
      value: 'value',
      variable: 'variable',
    }],
    image: 'image',
    ports: [{
      port: 'port',
      protocol: 'protocol',
    }],
  }],
  publicEndpoint: {
    containerName: 'containerName',
    containerPort: 123,
    healthCheckConfig: {
      healthyThreshold: 123,
      intervalSeconds: 123,
      path: 'path',
      successCodes: 'successCodes',
      timeoutSeconds: 123,
      unhealthyThreshold: 123,
    },
  },
};

Properties

NameTypeDescription
containers?IResolvable | IResolvable | ContainerProperty[]An object that describes the configuration for the containers of the deployment.
publicEndpoint?IResolvable | PublicEndpointPropertyAn object that describes the endpoint of the deployment.

containers?

Type: IResolvable | IResolvable | ContainerProperty[] (optional)

An object that describes the configuration for the containers of the deployment.


publicEndpoint?

Type: IResolvable | PublicEndpointProperty (optional)

An object that describes the endpoint of the deployment.