package awsappmesh


// An object that represents the action to take if a match is determined.
//
// 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"
//
//   httpGatewayRouteActionProperty := &HttpGatewayRouteActionProperty{
//   	Target: &GatewayRouteTargetProperty{
//   		VirtualService: &GatewayRouteVirtualServiceProperty{
//   			VirtualServiceName: jsii.String("virtualServiceName"),
//   		},
//
//   		// the properties below are optional
//   		Port: jsii.Number(123),
//   	},
//
//   	// the properties below are optional
//   	Rewrite: &HttpGatewayRouteRewriteProperty{
//   		Hostname: &GatewayRouteHostnameRewriteProperty{
//   			DefaultTargetHostname: jsii.String("defaultTargetHostname"),
//   		},
//   		Path: &HttpGatewayRoutePathRewriteProperty{
//   			Exact: jsii.String("exact"),
//   		},
//   		Prefix: &HttpGatewayRoutePrefixRewriteProperty{
//   			DefaultPrefix: jsii.String("defaultPrefix"),
//   			Value: jsii.String("value"),
//   		},
//   	},
//   }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteaction.html
//
type CfnGatewayRoute_HttpGatewayRouteActionProperty struct {
	// An object that represents the target that traffic is routed to when a request matches the gateway route.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteaction.html#cfn-appmesh-gatewayroute-httpgatewayrouteaction-target
	//
	Target interface{} `field:"required" json:"target" yaml:"target"`
	// The gateway route action to rewrite.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteaction.html#cfn-appmesh-gatewayroute-httpgatewayrouteaction-rewrite
	//
	Rewrite interface{} `field:"optional" json:"rewrite" yaml:"rewrite"`
}

