aws_config_configuration_recorder

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,attr" validate:"required"`
	// RecordingGroup: optional
	RecordingGroup *RecordingGroup `hcl:"recording_group,block"`
	// RecordingMode: optional
	RecordingMode *RecordingMode `hcl:"recording_mode,block"`
}

Args contains the configurations for aws_config_configuration_recorder.

type RecordingGroup

type RecordingGroup struct {
	// AllSupported: bool, optional
	AllSupported terra.BoolValue `hcl:"all_supported,attr"`
	// IncludeGlobalResourceTypes: bool, optional
	IncludeGlobalResourceTypes terra.BoolValue `hcl:"include_global_resource_types,attr"`
	// ResourceTypes: set of string, optional
	ResourceTypes terra.SetValue[terra.StringValue] `hcl:"resource_types,attr"`
	// RecordingGroupExclusionByResourceTypes: min=0
	ExclusionByResourceTypes []RecordingGroupExclusionByResourceTypes `hcl:"exclusion_by_resource_types,block" validate:"min=0"`
	// RecordingGroupRecordingStrategy: min=0
	RecordingStrategy []RecordingGroupRecordingStrategy `hcl:"recording_strategy,block" validate:"min=0"`
}

type RecordingGroupAttributes

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

func (RecordingGroupAttributes) AllSupported

func (rg RecordingGroupAttributes) AllSupported() terra.BoolValue

func (RecordingGroupAttributes) ExclusionByResourceTypes

func (RecordingGroupAttributes) IncludeGlobalResourceTypes

func (rg RecordingGroupAttributes) IncludeGlobalResourceTypes() terra.BoolValue

func (RecordingGroupAttributes) InternalRef

func (rg RecordingGroupAttributes) InternalRef() (terra.Reference, error)

func (RecordingGroupAttributes) InternalTokens

func (rg RecordingGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecordingGroupAttributes) InternalWithRef

func (RecordingGroupAttributes) RecordingStrategy

func (RecordingGroupAttributes) ResourceTypes

type RecordingGroupExclusionByResourceTypes

type RecordingGroupExclusionByResourceTypes struct {
	// ResourceTypes: set of string, optional
	ResourceTypes terra.SetValue[terra.StringValue] `hcl:"resource_types,attr"`
}

type RecordingGroupExclusionByResourceTypesAttributes

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

func (RecordingGroupExclusionByResourceTypesAttributes) InternalRef

func (RecordingGroupExclusionByResourceTypesAttributes) InternalTokens

func (RecordingGroupExclusionByResourceTypesAttributes) InternalWithRef

func (RecordingGroupExclusionByResourceTypesAttributes) ResourceTypes

type RecordingGroupExclusionByResourceTypesState

type RecordingGroupExclusionByResourceTypesState struct {
	ResourceTypes []string `json:"resource_types"`
}

type RecordingGroupRecordingStrategy

type RecordingGroupRecordingStrategy struct {
	// UseOnly: string, optional
	UseOnly terra.StringValue `hcl:"use_only,attr"`
}

type RecordingGroupRecordingStrategyAttributes

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

func (RecordingGroupRecordingStrategyAttributes) InternalRef

func (RecordingGroupRecordingStrategyAttributes) InternalTokens

func (RecordingGroupRecordingStrategyAttributes) InternalWithRef

func (RecordingGroupRecordingStrategyAttributes) UseOnly

type RecordingGroupRecordingStrategyState

type RecordingGroupRecordingStrategyState struct {
	UseOnly string `json:"use_only"`
}

type RecordingGroupState

type RecordingGroupState struct {
	AllSupported               bool                                          `json:"all_supported"`
	IncludeGlobalResourceTypes bool                                          `json:"include_global_resource_types"`
	ResourceTypes              []string                                      `json:"resource_types"`
	ExclusionByResourceTypes   []RecordingGroupExclusionByResourceTypesState `json:"exclusion_by_resource_types"`
	RecordingStrategy          []RecordingGroupRecordingStrategyState        `json:"recording_strategy"`
}

type RecordingMode

type RecordingMode struct {
	// RecordingFrequency: string, optional
	RecordingFrequency terra.StringValue `hcl:"recording_frequency,attr"`
	// RecordingModeRecordingModeOverride: optional
	RecordingModeOverride *RecordingModeRecordingModeOverride `hcl:"recording_mode_override,block"`
}

type RecordingModeAttributes

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

func (RecordingModeAttributes) InternalRef

func (rm RecordingModeAttributes) InternalRef() (terra.Reference, error)

func (RecordingModeAttributes) InternalTokens

func (rm RecordingModeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecordingModeAttributes) InternalWithRef

func (RecordingModeAttributes) RecordingFrequency

func (rm RecordingModeAttributes) RecordingFrequency() terra.StringValue

func (RecordingModeAttributes) RecordingModeOverride

type RecordingModeRecordingModeOverride

type RecordingModeRecordingModeOverride struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// RecordingFrequency: string, required
	RecordingFrequency terra.StringValue `hcl:"recording_frequency,attr" validate:"required"`
	// ResourceTypes: set of string, required
	ResourceTypes terra.SetValue[terra.StringValue] `hcl:"resource_types,attr" validate:"required"`
}

type RecordingModeRecordingModeOverrideAttributes

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

func (RecordingModeRecordingModeOverrideAttributes) Description

func (RecordingModeRecordingModeOverrideAttributes) InternalRef

func (RecordingModeRecordingModeOverrideAttributes) InternalTokens

func (RecordingModeRecordingModeOverrideAttributes) InternalWithRef

func (RecordingModeRecordingModeOverrideAttributes) RecordingFrequency

func (RecordingModeRecordingModeOverrideAttributes) ResourceTypes

type RecordingModeRecordingModeOverrideState

type RecordingModeRecordingModeOverrideState struct {
	Description        string   `json:"description"`
	RecordingFrequency string   `json:"recording_frequency"`
	ResourceTypes      []string `json:"resource_types"`
}

type RecordingModeState

type RecordingModeState struct {
	RecordingFrequency    string                                    `json:"recording_frequency"`
	RecordingModeOverride []RecordingModeRecordingModeOverrideState `json:"recording_mode_override"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (accr *Resource) Attributes() awsConfigConfigurationRecorderAttributes

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() (*awsConfigConfigurationRecorderState, bool)

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

func (*Resource) StateMust

func (accr *Resource) StateMust() *awsConfigConfigurationRecorderState

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.

Jump to

Keyboard shortcuts

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