Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockingStrategies = struct { Monitor BlockingStrategy Off BlockingStrategy }{ "MONITOR", "OFF", }
View Source
var ResourceAttributeValueMatchers = struct { Contains ResourceAttributeValueMatcher DoesNotContain ResourceAttributeValueMatcher DoesNotEndWith ResourceAttributeValueMatcher DoesNotExist ResourceAttributeValueMatcher DoesNotStartWith ResourceAttributeValueMatcher EndsWith ResourceAttributeValueMatcher Equals ResourceAttributeValueMatcher Exists ResourceAttributeValueMatcher NotEquals ResourceAttributeValueMatcher StartsWith ResourceAttributeValueMatcher }{ "CONTAINS", "DOES_NOT_CONTAIN", "DOES_NOT_END_WITH", "DOES_NOT_EXIST", "DOES_NOT_START_WITH", "ENDS_WITH", "EQUALS", "EXISTS", "NOT_EQUALS", "STARTS_WITH", }
Functions ¶
This section is empty.
Types ¶
type AttackHandling ¶
type AttackHandling struct {
BlockingStrategy BlockingStrategy `json:"blockingStrategy"` // Possible Values: `MONITOR`, `OFF`
}
func (*AttackHandling) MarshalHCL ¶
func (me *AttackHandling) MarshalHCL(properties hcl.Properties) error
func (*AttackHandling) UnmarshalHCL ¶
func (me *AttackHandling) UnmarshalHCL(decoder hcl.Decoder) error
type BlockingStrategy ¶
type BlockingStrategy string
type Criteria ¶
type Criteria struct { AttackPattern *string `json:"attackPattern,omitempty"` // Only consider attacks matching the specified pattern. SourceIp *string `json:"sourceIp,omitempty"` // Source IP }
func (*Criteria) MarshalHCL ¶
func (me *Criteria) MarshalHCL(properties hcl.Properties) error
type Metadata ¶
type Metadata struct {
Comment string `json:"comment"`
}
func (*Metadata) MarshalHCL ¶
func (me *Metadata) MarshalHCL(properties hcl.Properties) error
type ResourceAttributeCondition ¶ added in v1.73.0
type ResourceAttributeCondition struct { Matcher ResourceAttributeValueMatcher `json:"matcher"` // Possible Values: `CONTAINS`, `DOES_NOT_CONTAIN`, `DOES_NOT_END_WITH`, `DOES_NOT_EXIST`, `DOES_NOT_START_WITH`, `ENDS_WITH`, `EQUALS`, `EXISTS`, `NOT_EQUALS`, `STARTS_WITH` ResourceAttributeKey string `json:"resourceAttributeKey"` // Resource attribute key ResourceAttributeValue *string `json:"resourceAttributeValue,omitempty"` // Resource attribute value }
func (*ResourceAttributeCondition) HandlePreconditions ¶ added in v1.73.0
func (me *ResourceAttributeCondition) HandlePreconditions() error
func (*ResourceAttributeCondition) MarshalHCL ¶ added in v1.73.0
func (me *ResourceAttributeCondition) MarshalHCL(properties hcl.Properties) error
func (*ResourceAttributeCondition) Schema ¶ added in v1.73.0
func (me *ResourceAttributeCondition) Schema() map[string]*schema.Schema
func (*ResourceAttributeCondition) UnmarshalHCL ¶ added in v1.73.0
func (me *ResourceAttributeCondition) UnmarshalHCL(decoder hcl.Decoder) error
type ResourceAttributeValueMatcher ¶ added in v1.73.0
type ResourceAttributeValueMatcher string
type Settings ¶
type Settings struct { AttackHandling *AttackHandling `json:"attackHandling"` // Step 2: Define attack control for chosen criteria Criteria *Criteria `json:"criteria"` // Step 1: Define criteria. Please specify at least one of source IP or attack pattern. Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`) Metadata *Metadata `json:"metadata"` // Step 3: Leave comment InsertAfter string `json:"-"` }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.