-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnSecurityProfile_BehaviorProperty.go
86 lines (83 loc) · 3.72 KB
/
CfnSecurityProfile_BehaviorProperty.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package awsiot
// A Device Defender security profile behavior.
//
// 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"
//
// behaviorProperty := &BehaviorProperty{
// Name: jsii.String("name"),
//
// // the properties below are optional
// Criteria: &BehaviorCriteriaProperty{
// ComparisonOperator: jsii.String("comparisonOperator"),
// ConsecutiveDatapointsToAlarm: jsii.Number(123),
// ConsecutiveDatapointsToClear: jsii.Number(123),
// DurationSeconds: jsii.Number(123),
// MlDetectionConfig: &MachineLearningDetectionConfigProperty{
// ConfidenceLevel: jsii.String("confidenceLevel"),
// },
// StatisticalThreshold: &StatisticalThresholdProperty{
// Statistic: jsii.String("statistic"),
// },
// Value: &MetricValueProperty{
// Cidrs: []*string{
// jsii.String("cidrs"),
// },
// Count: jsii.String("count"),
// Number: jsii.Number(123),
// Numbers: []interface{}{
// jsii.Number(123),
// },
// Ports: []interface{}{
// jsii.Number(123),
// },
// Strings: []*string{
// jsii.String("strings"),
// },
// },
// },
// ExportMetric: jsii.Boolean(false),
// Metric: jsii.String("metric"),
// MetricDimension: &MetricDimensionProperty{
// DimensionName: jsii.String("dimensionName"),
//
// // the properties below are optional
// Operator: jsii.String("operator"),
// },
// SuppressAlerts: jsii.Boolean(false),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html
//
type CfnSecurityProfile_BehaviorProperty struct {
// The name you've given to the behavior.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// The criteria that determine if a device is behaving normally in regard to the `metric` .
//
// > In the AWS IoT console, you can choose to be sent an alert through Amazon SNS when AWS IoT Device Defender detects that a device is behaving anomalously.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-criteria
//
Criteria interface{} `field:"optional" json:"criteria" yaml:"criteria"`
// Value indicates exporting metrics related to the behavior when it is true.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-exportmetric
//
ExportMetric interface{} `field:"optional" json:"exportMetric" yaml:"exportMetric"`
// What is measured by the behavior.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-metric
//
Metric *string `field:"optional" json:"metric" yaml:"metric"`
// The dimension of the metric.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-metricdimension
//
MetricDimension interface{} `field:"optional" json:"metricDimension" yaml:"metricDimension"`
// The alert status.
//
// If you set the value to `true` , alerts will be suppressed.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-securityprofile-behavior.html#cfn-iot-securityprofile-behavior-suppressalerts
//
SuppressAlerts interface{} `field:"optional" json:"suppressAlerts" yaml:"suppressAlerts"`
}