-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnWebACLProps.go
58 lines (55 loc) · 2.39 KB
/
CfnWebACLProps.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package awswaf
// Properties for defining a `CfnWebACL`.
//
// 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"
//
// cfnWebACLProps := &CfnWebACLProps{
// DefaultAction: &WafActionProperty{
// Type: jsii.String("type"),
// },
// MetricName: jsii.String("metricName"),
// Name: jsii.String("name"),
//
// // the properties below are optional
// Rules: []interface{}{
// &ActivatedRuleProperty{
// Priority: jsii.Number(123),
// RuleId: jsii.String("ruleId"),
//
// // the properties below are optional
// Action: &WafActionProperty{
// Type: jsii.String("type"),
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html
//
type CfnWebACLProps struct {
// The action to perform if none of the `Rules` contained in the `WebACL` match.
//
// The action is specified by the `WafAction` object.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-defaultaction
//
DefaultAction interface{} `field:"required" json:"defaultAction" yaml:"defaultAction"`
// The name of the metrics for this `WebACL` .
//
// The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF , including "All" and "Default_Action." You can't change `MetricName` after you create the `WebACL` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-metricname
//
MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
// A friendly name or description of the `WebACL` .
//
// You can't change the name of a `WebACL` after you create it.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// An array that contains the action for each `Rule` in a `WebACL` , the priority of the `Rule` , and the ID of the `Rule` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-rules
//
Rules interface{} `field:"optional" json:"rules" yaml:"rules"`
}