interface ContainerPortRangeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GameLift.Mixins.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgamelift/mixins#CfnContainerGroupDefinitionPropsMixin_ContainerPortRangeProperty |
Java | software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
Python | aws_cdk.mixins_preview.aws_gamelift.mixins.CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_gamelift » mixins » 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 { mixins as gamelift_mixins } from '@aws-cdk/mixins-preview/aws-gamelift';
const containerPortRangeProperty: gamelift_mixins.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