package awsappmesh // An object representing a virtual node or virtual router listener port mapping. // // 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" // // portMappingProperty := &PortMappingProperty{ // Port: jsii.Number(123), // Protocol: jsii.String("protocol"), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html // type CfnVirtualNode_PortMappingProperty struct { // The port used for the port mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-port // Port *float64 `field:"required" json:"port" yaml:"port"` // The protocol used for the port mapping. // // Specify `http` , `http2` , `grpc` , or `tcp` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` }