-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnListener_DefaultActionProperty.go
43 lines (40 loc) · 1.62 KB
/
CfnListener_DefaultActionProperty.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
34
35
36
37
38
39
40
41
42
package awsvpclattice
// The action for the default rule.
//
// Each listener has a default rule. The default rule is used if no other rules match.
//
// 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"
//
// defaultActionProperty := &DefaultActionProperty{
// FixedResponse: &FixedResponseProperty{
// StatusCode: jsii.Number(123),
// },
// Forward: &ForwardProperty{
// TargetGroups: []interface{}{
// &WeightedTargetGroupProperty{
// TargetGroupIdentifier: jsii.String("targetGroupIdentifier"),
//
// // the properties below are optional
// Weight: jsii.Number(123),
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-listener-defaultaction.html
//
type CfnListener_DefaultActionProperty struct {
// Describes an action that returns a custom HTTP response.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-listener-defaultaction.html#cfn-vpclattice-listener-defaultaction-fixedresponse
//
FixedResponse interface{} `field:"optional" json:"fixedResponse" yaml:"fixedResponse"`
// Describes a forward action.
//
// You can use forward actions to route requests to one or more target groups.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-listener-defaultaction.html#cfn-vpclattice-listener-defaultaction-forward
//
Forward interface{} `field:"optional" json:"forward" yaml:"forward"`
}