Class CfnContainer.ContainerServiceDeploymentProperty
ContainerServiceDeployment
is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainer.ContainerServiceDeploymentProperty : CfnContainer.IContainerServiceDeploymentProperty
Syntax (vb)
Public Class CfnContainer.ContainerServiceDeploymentProperty Implements CfnContainer.IContainerServiceDeploymentProperty
Remarks
A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var containerServiceDeploymentProperty = new ContainerServiceDeploymentProperty {
Containers = new [] { new ContainerProperty {
Command = new [] { "command" },
ContainerName = "containerName",
Environment = new [] { new EnvironmentVariableProperty {
Value = "value",
Variable = "variable"
} },
Image = "image",
Ports = new [] { new PortInfoProperty {
Port = "port",
Protocol = "protocol"
} }
} },
PublicEndpoint = new PublicEndpointProperty {
ContainerName = "containerName",
ContainerPort = 123,
HealthCheckConfig = new HealthCheckConfigProperty {
HealthyThreshold = 123,
IntervalSeconds = 123,
Path = "path",
SuccessCodes = "successCodes",
TimeoutSeconds = 123,
UnhealthyThreshold = 123
}
}
};
Synopsis
Constructors
ContainerServiceDeploymentProperty() |
|
Properties
Containers | An object that describes the configuration for the containers of the deployment. |
PublicEndpoint | An object that describes the endpoint of the deployment. |
Constructors
ContainerServiceDeploymentProperty()
ContainerServiceDeployment
is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.
public ContainerServiceDeploymentProperty()
Remarks
A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var containerServiceDeploymentProperty = new ContainerServiceDeploymentProperty {
Containers = new [] { new ContainerProperty {
Command = new [] { "command" },
ContainerName = "containerName",
Environment = new [] { new EnvironmentVariableProperty {
Value = "value",
Variable = "variable"
} },
Image = "image",
Ports = new [] { new PortInfoProperty {
Port = "port",
Protocol = "protocol"
} }
} },
PublicEndpoint = new PublicEndpointProperty {
ContainerName = "containerName",
ContainerPort = 123,
HealthCheckConfig = new HealthCheckConfigProperty {
HealthyThreshold = 123,
IntervalSeconds = 123,
Path = "path",
SuccessCodes = "successCodes",
TimeoutSeconds = 123,
UnhealthyThreshold = 123
}
}
};
Properties
Containers
An object that describes the configuration for the containers of the deployment.
public object? Containers { get; set; }
Property Value
Remarks
PublicEndpoint
An object that describes the endpoint of the deployment.
public object? PublicEndpoint { get; set; }