-
Notifications
You must be signed in to change notification settings - Fork 17
/
PolicyViolationBeta1.go
58 lines (55 loc) · 2.02 KB
/
PolicyViolationBeta1.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 awscdk
// Violation produced by the validation plugin.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import cdk "github.com/aws/aws-cdk-go/awscdk"
//
// policyViolationBeta1 := &PolicyViolationBeta1{
// Description: jsii.String("description"),
// RuleName: jsii.String("ruleName"),
// ViolatingResources: []policyViolatingResourceBeta1{
// &policyViolatingResourceBeta1{
// Locations: []*string{
// jsii.String("locations"),
// },
// ResourceLogicalId: jsii.String("resourceLogicalId"),
// TemplatePath: jsii.String("templatePath"),
// },
// },
//
// // the properties below are optional
// Fix: jsii.String("fix"),
// RuleMetadata: map[string]*string{
// "ruleMetadataKey": jsii.String("ruleMetadata"),
// },
// Severity: jsii.String("severity"),
// }
//
type PolicyViolationBeta1 struct {
// The description of the violation.
Description *string `field:"required" json:"description" yaml:"description"`
// The name of the rule.
RuleName *string `field:"required" json:"ruleName" yaml:"ruleName"`
// The resources violating this rule.
ViolatingResources *[]*PolicyViolatingResourceBeta1 `field:"required" json:"violatingResources" yaml:"violatingResources"`
// How to fix the violation.
// Default: - no fix is provided.
//
Fix *string `field:"optional" json:"fix" yaml:"fix"`
// Additional metadata to include with the rule results.
//
// This can be used to provide additional information that is
// plugin specific. The data provided here will be rendered as is.
// Default: - no rule metadata.
//
RuleMetadata *map[string]*string `field:"optional" json:"ruleMetadata" yaml:"ruleMetadata"`
// The severity of the violation, only used for reporting purposes.
//
// This is useful for helping the user discriminate between warnings,
// errors, information, etc.
// Default: - no severity.
//
Severity *string `field:"optional" json:"severity" yaml:"severity"`
}