package awselasticloadbalancingv2 // Basic properties for defining a rule on a listener. // // 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" // // var applicationTargetGroup applicationTargetGroup // var listenerAction listenerAction // var listenerCondition listenerCondition // // baseApplicationListenerRuleProps := &BaseApplicationListenerRuleProps{ // Priority: jsii.Number(123), // // // the properties below are optional // Action: listenerAction, // Conditions: []*listenerCondition{ // listenerCondition, // }, // TargetGroups: []iApplicationTargetGroup{ // applicationTargetGroup, // }, // } // type BaseApplicationListenerRuleProps struct { // Priority of the rule. // // The rule with the lowest priority will be used for every request. // // Priorities must be unique. Priority *float64 `field:"required" json:"priority" yaml:"priority"` // Action to perform when requests are received. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. Action ListenerAction `field:"optional" json:"action" yaml:"action"` // Rule applies if matches the conditions. // See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html // Conditions *[]ListenerCondition `field:"optional" json:"conditions" yaml:"conditions"` // Target groups to forward requests to. // // Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. // // Implies a `forward` action. TargetGroups *[]IApplicationTargetGroup `field:"optional" json:"targetGroups" yaml:"targetGroups"` }