configconfigrule

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPolicyDetails

type CustomPolicyDetails struct {
	// EnableDebugLogDelivery: bool, optional
	EnableDebugLogDelivery terra.BoolValue `hcl:"enable_debug_log_delivery,attr"`
	// PolicyRuntime: string, required
	PolicyRuntime terra.StringValue `hcl:"policy_runtime,attr" validate:"required"`
	// PolicyText: string, required
	PolicyText terra.StringValue `hcl:"policy_text,attr" validate:"required"`
}

type CustomPolicyDetailsAttributes

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

func (CustomPolicyDetailsAttributes) EnableDebugLogDelivery

func (cpd CustomPolicyDetailsAttributes) EnableDebugLogDelivery() terra.BoolValue

func (CustomPolicyDetailsAttributes) InternalRef

func (cpd CustomPolicyDetailsAttributes) InternalRef() (terra.Reference, error)

func (CustomPolicyDetailsAttributes) InternalTokens

func (cpd CustomPolicyDetailsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomPolicyDetailsAttributes) InternalWithRef

func (CustomPolicyDetailsAttributes) PolicyRuntime

func (cpd CustomPolicyDetailsAttributes) PolicyRuntime() terra.StringValue

func (CustomPolicyDetailsAttributes) PolicyText

type CustomPolicyDetailsState

type CustomPolicyDetailsState struct {
	EnableDebugLogDelivery bool   `json:"enable_debug_log_delivery"`
	PolicyRuntime          string `json:"policy_runtime"`
	PolicyText             string `json:"policy_text"`
}

type Scope

type Scope struct {
	// ComplianceResourceId: string, optional
	ComplianceResourceId terra.StringValue `hcl:"compliance_resource_id,attr"`
	// ComplianceResourceTypes: set of string, optional
	ComplianceResourceTypes terra.SetValue[terra.StringValue] `hcl:"compliance_resource_types,attr"`
	// TagKey: string, optional
	TagKey terra.StringValue `hcl:"tag_key,attr"`
	// TagValue: string, optional
	TagValue terra.StringValue `hcl:"tag_value,attr"`
}

type ScopeAttributes

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

func (ScopeAttributes) ComplianceResourceId

func (s ScopeAttributes) ComplianceResourceId() terra.StringValue

func (ScopeAttributes) ComplianceResourceTypes

func (s ScopeAttributes) ComplianceResourceTypes() terra.SetValue[terra.StringValue]

func (ScopeAttributes) InternalRef

func (s ScopeAttributes) InternalRef() (terra.Reference, error)

func (ScopeAttributes) InternalTokens

func (s ScopeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScopeAttributes) InternalWithRef

func (s ScopeAttributes) InternalWithRef(ref terra.Reference) ScopeAttributes

func (ScopeAttributes) TagKey

func (s ScopeAttributes) TagKey() terra.StringValue

func (ScopeAttributes) TagValue

func (s ScopeAttributes) TagValue() terra.StringValue

type ScopeState

type ScopeState struct {
	ComplianceResourceId    string   `json:"compliance_resource_id"`
	ComplianceResourceTypes []string `json:"compliance_resource_types"`
	TagKey                  string   `json:"tag_key"`
	TagValue                string   `json:"tag_value"`
}

type Source

type Source struct {
	// Owner: string, required
	Owner terra.StringValue `hcl:"owner,attr" validate:"required"`
	// SourceIdentifier: string, optional
	SourceIdentifier terra.StringValue `hcl:"source_identifier,attr"`
	// CustomPolicyDetails: optional
	CustomPolicyDetails *CustomPolicyDetails `hcl:"custom_policy_details,block"`
	// SourceDetail: min=0,max=25
	SourceDetail []SourceDetail `hcl:"source_detail,block" validate:"min=0,max=25"`
}

type SourceAttributes

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

func (SourceAttributes) CustomPolicyDetails

func (SourceAttributes) InternalRef

func (s SourceAttributes) InternalRef() (terra.Reference, error)

func (SourceAttributes) InternalTokens

func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceAttributes) InternalWithRef

func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes

func (SourceAttributes) Owner

func (SourceAttributes) SourceDetail

func (SourceAttributes) SourceIdentifier

func (s SourceAttributes) SourceIdentifier() terra.StringValue

type SourceDetail

type SourceDetail struct {
	// EventSource: string, optional
	EventSource terra.StringValue `hcl:"event_source,attr"`
	// MaximumExecutionFrequency: string, optional
	MaximumExecutionFrequency terra.StringValue `hcl:"maximum_execution_frequency,attr"`
	// MessageType: string, optional
	MessageType terra.StringValue `hcl:"message_type,attr"`
}

type SourceDetailAttributes

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

func (SourceDetailAttributes) EventSource

func (sd SourceDetailAttributes) EventSource() terra.StringValue

func (SourceDetailAttributes) InternalRef

func (sd SourceDetailAttributes) InternalRef() (terra.Reference, error)

func (SourceDetailAttributes) InternalTokens

func (sd SourceDetailAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceDetailAttributes) InternalWithRef

func (SourceDetailAttributes) MaximumExecutionFrequency

func (sd SourceDetailAttributes) MaximumExecutionFrequency() terra.StringValue

func (SourceDetailAttributes) MessageType

func (sd SourceDetailAttributes) MessageType() terra.StringValue

type SourceDetailState

type SourceDetailState struct {
	EventSource               string `json:"event_source"`
	MaximumExecutionFrequency string `json:"maximum_execution_frequency"`
	MessageType               string `json:"message_type"`
}

type SourceState

type SourceState struct {
	Owner               string                     `json:"owner"`
	SourceIdentifier    string                     `json:"source_identifier"`
	CustomPolicyDetails []CustomPolicyDetailsState `json:"custom_policy_details"`
	SourceDetail        []SourceDetailState        `json:"source_detail"`
}

Jump to

Keyboard shortcuts

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