Class CfnContainerGroupDefinition.PortConfigurationProperty
Defines the ports on a container.
Inherited Members
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainerGroupDefinition.PortConfigurationProperty : CfnContainerGroupDefinition.IPortConfigurationProperty
Syntax (vb)
Public Class CfnContainerGroupDefinition.PortConfigurationProperty Implements CfnContainerGroupDefinition.IPortConfigurationProperty
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.GameLift;
var portConfigurationProperty = new PortConfigurationProperty {
ContainerPortRanges = new [] { new ContainerPortRangeProperty {
FromPort = 123,
Protocol = "protocol",
ToPort = 123
} }
};
Synopsis
Constructors
| PortConfigurationProperty() | Defines the ports on a container. |
Properties
| ContainerPortRanges | Specifies one or more ranges of ports on a container. |
Constructors
PortConfigurationProperty()
Defines the ports on a container.
public PortConfigurationProperty()
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.GameLift;
var portConfigurationProperty = new PortConfigurationProperty {
ContainerPortRanges = new [] { new ContainerPortRangeProperty {
FromPort = 123,
Protocol = "protocol",
ToPort = 123
} }
};
Properties
ContainerPortRanges
Specifies one or more ranges of ports on a container.
public object ContainerPortRanges { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnContainerGroupDefinition.IContainerPortRangeProperty)[]