aws_config_config_rule

package
v5.45.0 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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InputParameters: string, optional
	InputParameters terra.StringValue `hcl:"input_parameters,attr"`
	// MaximumExecutionFrequency: string, optional
	MaximumExecutionFrequency terra.StringValue `hcl:"maximum_execution_frequency,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,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"`
	// Scope: optional
	Scope *Scope `hcl:"scope,block"`
	// Source: required
	Source *Source `hcl:"source,block" validate:"required"`
}

Args contains the configurations for aws_config_config_rule.

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_config_config_rule.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (accr *Resource) Attributes() awsConfigConfigRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (accr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (accr *Resource) State() (*awsConfigConfigRuleState, bool)

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

func (*Resource) StateMust

func (accr *Resource) StateMust() *awsConfigConfigRuleState

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

func (*Resource) Type

func (accr *Resource) Type() string

Type returns the Terraform object type for Resource.

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"`
	// SourceCustomPolicyDetails: optional
	CustomPolicyDetails *SourceCustomPolicyDetails `hcl:"custom_policy_details,block"`
	// SourceSourceDetail: min=0,max=25
	SourceDetail []SourceSourceDetail `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 SourceCustomPolicyDetails

type SourceCustomPolicyDetails 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 SourceCustomPolicyDetailsAttributes

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

func (SourceCustomPolicyDetailsAttributes) EnableDebugLogDelivery

func (cpd SourceCustomPolicyDetailsAttributes) EnableDebugLogDelivery() terra.BoolValue

func (SourceCustomPolicyDetailsAttributes) InternalRef

func (SourceCustomPolicyDetailsAttributes) InternalTokens

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

func (SourceCustomPolicyDetailsAttributes) InternalWithRef

func (SourceCustomPolicyDetailsAttributes) PolicyRuntime

func (SourceCustomPolicyDetailsAttributes) PolicyText

type SourceCustomPolicyDetailsState

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

type SourceSourceDetail

type SourceSourceDetail 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 SourceSourceDetailAttributes

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

func (SourceSourceDetailAttributes) EventSource

func (SourceSourceDetailAttributes) InternalRef

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

func (SourceSourceDetailAttributes) InternalTokens

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

func (SourceSourceDetailAttributes) InternalWithRef

func (SourceSourceDetailAttributes) MaximumExecutionFrequency

func (sd SourceSourceDetailAttributes) MaximumExecutionFrequency() terra.StringValue

func (SourceSourceDetailAttributes) MessageType

type SourceSourceDetailState

type SourceSourceDetailState 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 []SourceCustomPolicyDetailsState `json:"custom_policy_details"`
	SourceDetail        []SourceSourceDetailState        `json:"source_detail"`
}

Jump to

Keyboard shortcuts

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