-
Notifications
You must be signed in to change notification settings - Fork 17
/
PortProps.go
34 lines (31 loc) · 1.06 KB
/
PortProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package awsec2
// Properties to create a port range.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// portProps := &PortProps{
// Protocol: awscdk.Aws_ec2.Protocol_ALL,
// StringRepresentation: jsii.String("stringRepresentation"),
//
// // the properties below are optional
// FromPort: jsii.Number(123),
// ToPort: jsii.Number(123),
// }
//
type PortProps struct {
// The protocol for the range.
Protocol Protocol `field:"required" json:"protocol" yaml:"protocol"`
// String representation for this object.
StringRepresentation *string `field:"required" json:"stringRepresentation" yaml:"stringRepresentation"`
// The starting port for the range.
// Default: - Not included in the rule.
//
FromPort *float64 `field:"optional" json:"fromPort" yaml:"fromPort"`
// The ending port for the range.
// Default: - Not included in the rule.
//
ToPort *float64 `field:"optional" json:"toPort" yaml:"toPort"`
}