Show / Hide Table of Contents

Class CfnContainer.ContainerProperty

Container is a property of the ContainerServiceDeployment property. It describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

Inheritance
object
CfnContainer.ContainerProperty
Implements
CfnContainer.IContainerProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainer.ContainerProperty : CfnContainer.IContainerProperty
Syntax (vb)
Public Class CfnContainer.ContainerProperty Implements CfnContainer.IContainerProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html

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 containerProperty = 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"
                 } }
             };

Synopsis

Constructors

ContainerProperty()

Container is a property of the ContainerServiceDeployment property. It describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

Properties

Command

The launch command for the container.

ContainerName

The name of the container.

Environment

The environment variables of the container.

Image

The name of the image used for the container.

Ports

An object that describes the open firewall ports and protocols of the container.

Constructors

ContainerProperty()

Container is a property of the ContainerServiceDeployment property. It describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

public ContainerProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html

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 containerProperty = 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"
                 } }
             };

Properties

Command

The launch command for the container.

public string[]? Command { get; set; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html#cfn-lightsail-container-container-command

ContainerName

The name of the container.

public string? ContainerName { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html#cfn-lightsail-container-container-containername

Environment

The environment variables of the container.

public object? Environment { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html#cfn-lightsail-container-container-environment

Image

The name of the image used for the container.

public string? Image { get; set; }
Property Value

string

Remarks

Container images that are sourced from (registered and stored on) your container service start with a colon ( : ). For example, if your container service name is container-service-1 , the container image label is mystaticsite , and you want to use the third version ( 3 ) of the registered container image, then you should specify :container-service-1.mystaticsite.3 . To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest ). Your container service will automatically use the highest numbered version of the registered container image.

Container images that are sourced from a public registry like Docker Hub don’t start with a colon. For example, nginx:latest or nginx .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html#cfn-lightsail-container-container-image

Ports

An object that describes the open firewall ports and protocols of the container.

public object? Ports { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-container-container.html#cfn-lightsail-container-container-ports

Implements

CfnContainer.IContainerProperty
Back to top Generated by DocFX