aws-cdk-lib.aws_lightsail.CfnContainer.PortInfoProperty

interface PortInfoProperty

LanguageType name
.NETAmazon.CDK.AWS.Lightsail.CfnContainer.PortInfoProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnContainer_PortInfoProperty
Javasoftware.amazon.awscdk.services.lightsail.CfnContainer.PortInfoProperty
Pythonaws_cdk.aws_lightsail.CfnContainer.PortInfoProperty
TypeScript aws-cdk-lib » aws_lightsail » 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.

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 portInfoProperty: lightsail.CfnContainer.PortInfoProperty = {
  port: 'port',
  protocol: 'protocol',
};

Properties

NameTypeDescription
port?stringThe open firewall ports of the container.
protocol?stringThe protocol name for the open ports.

port?

Type: string (optional)

The open firewall ports of the container.


protocol?

Type: string (optional)

The protocol name for the open ports.

Allowed values : HTTP | HTTPS | TCP | UDP