interface ContainerPortRangeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.GameLift.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsgamelift#CfnContainerGroupDefinitionPropsMixin_ContainerPortRangeProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
Python | aws_cdk.cfn_property_mixins.aws_gamelift.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_gamelift » CfnContainerGroupDefinitionPropsMixin » ContainerPortRangeProperty |
A set of one or more port numbers that can be opened on the container, and the supported network protocol.
Part of: ContainerPortConfiguration
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from '@aws-cdk/cfn-property-mixins';
const containerPortRangeProperty: gamelift.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty = {
fromPort: 123,
protocol: 'protocol',
toPort: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| from | number | A starting value for the range of allowed port numbers. |
| protocol? | string | The network protocol that these ports support. |
| to | number | An ending value for the range of allowed port numbers. |
fromPort?
Type:
number
(optional)
A starting value for the range of allowed port numbers.
protocol?
Type:
string
(optional)
The network protocol that these ports support.
toPort?
Type:
number
(optional)
An ending value for the range of allowed port numbers.
Port numbers are end-inclusive. This value must be equal to or greater than FromPort .

.NET
Go
Java
Python
TypeScript