aws_guardduty_filter

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DetectorId: string, required
	DetectorId terra.StringValue `hcl:"detector_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Rank: number, required
	Rank terra.NumberValue `hcl:"rank,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// FindingCriteria: required
	FindingCriteria *FindingCriteria `hcl:"finding_criteria,block" validate:"required"`
}

Args contains the configurations for aws_guardduty_filter.

type FindingCriteria

type FindingCriteria struct {
	// FindingCriteriaCriterion: min=1
	Criterion []FindingCriteriaCriterion `hcl:"criterion,block" validate:"min=1"`
}

type FindingCriteriaAttributes

type FindingCriteriaAttributes struct {
	// contains filtered or unexported fields
}

func (FindingCriteriaAttributes) Criterion

func (FindingCriteriaAttributes) InternalRef

func (fc FindingCriteriaAttributes) InternalRef() (terra.Reference, error)

func (FindingCriteriaAttributes) InternalTokens

func (fc FindingCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FindingCriteriaAttributes) InternalWithRef

type FindingCriteriaCriterion

type FindingCriteriaCriterion struct {
	// Equals: list of string, optional
	Equals terra.ListValue[terra.StringValue] `hcl:"equals,attr"`
	// Field: string, required
	Field terra.StringValue `hcl:"field,attr" validate:"required"`
	// GreaterThan: string, optional
	GreaterThan terra.StringValue `hcl:"greater_than,attr"`
	// GreaterThanOrEqual: string, optional
	GreaterThanOrEqual terra.StringValue `hcl:"greater_than_or_equal,attr"`
	// LessThan: string, optional
	LessThan terra.StringValue `hcl:"less_than,attr"`
	// LessThanOrEqual: string, optional
	LessThanOrEqual terra.StringValue `hcl:"less_than_or_equal,attr"`
	// NotEquals: list of string, optional
	NotEquals terra.ListValue[terra.StringValue] `hcl:"not_equals,attr"`
}

type FindingCriteriaCriterionAttributes

type FindingCriteriaCriterionAttributes struct {
	// contains filtered or unexported fields
}

func (FindingCriteriaCriterionAttributes) Equals

func (FindingCriteriaCriterionAttributes) Field

func (FindingCriteriaCriterionAttributes) GreaterThan

func (FindingCriteriaCriterionAttributes) GreaterThanOrEqual

func (c FindingCriteriaCriterionAttributes) GreaterThanOrEqual() terra.StringValue

func (FindingCriteriaCriterionAttributes) InternalRef

func (FindingCriteriaCriterionAttributes) InternalTokens

func (FindingCriteriaCriterionAttributes) InternalWithRef

func (FindingCriteriaCriterionAttributes) LessThan

func (FindingCriteriaCriterionAttributes) LessThanOrEqual

func (FindingCriteriaCriterionAttributes) NotEquals

type FindingCriteriaCriterionState

type FindingCriteriaCriterionState struct {
	Equals             []string `json:"equals"`
	Field              string   `json:"field"`
	GreaterThan        string   `json:"greater_than"`
	GreaterThanOrEqual string   `json:"greater_than_or_equal"`
	LessThan           string   `json:"less_than"`
	LessThanOrEqual    string   `json:"less_than_or_equal"`
	NotEquals          []string `json:"not_equals"`
}

type FindingCriteriaState

type FindingCriteriaState struct {
	Criterion []FindingCriteriaCriterionState `json:"criterion"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_guardduty_filter.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agf *Resource) Attributes() awsGuarddutyFilterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (agf *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (agf *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (agf *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (agf *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (agf *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agf *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agf *Resource) State() (*awsGuarddutyFilterState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (agf *Resource) StateMust() *awsGuarddutyFilterState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (agf *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL