Class CfnContainer.PortInfoProperty
PortInfo
is a property of the Container property. It describes the ports to open and the protocols to use for a container on a Amazon Lightsail container service.
Inheritance
System.Object
CfnContainer.PortInfoProperty
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortInfoProperty : Object, CfnContainer.IPortInfoProperty
Syntax (vb)
Public Class PortInfoProperty
Inherits Object
Implements CfnContainer.IPortInfoProperty
Remarks
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 portInfoProperty = new PortInfoProperty {
Port = "port",
Protocol = "protocol"
};
Synopsis
Constructors
PortInfoProperty() |
Properties
Port | The open firewall ports of the container. |
Protocol | The protocol name for the open ports. |
Constructors
PortInfoProperty()
public PortInfoProperty()
Properties
Port
The open firewall ports of the container.
public string Port { get; set; }
Property Value
System.String
Remarks
Protocol
The protocol name for the open ports.
public string Protocol { get; set; }
Property Value
System.String
Remarks
Allowed values : HTTP
| HTTPS
| TCP
| UDP