aws_config_remediation_configuration

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 {
	// Automatic: bool, optional
	Automatic terra.BoolValue `hcl:"automatic,attr"`
	// ConfigRuleName: string, required
	ConfigRuleName terra.StringValue `hcl:"config_rule_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaximumAutomaticAttempts: number, optional
	MaximumAutomaticAttempts terra.NumberValue `hcl:"maximum_automatic_attempts,attr"`
	// ResourceType: string, optional
	ResourceType terra.StringValue `hcl:"resource_type,attr"`
	// RetryAttemptSeconds: number, optional
	RetryAttemptSeconds terra.NumberValue `hcl:"retry_attempt_seconds,attr"`
	// TargetId: string, required
	TargetId terra.StringValue `hcl:"target_id,attr" validate:"required"`
	// TargetType: string, required
	TargetType terra.StringValue `hcl:"target_type,attr" validate:"required"`
	// TargetVersion: string, optional
	TargetVersion terra.StringValue `hcl:"target_version,attr"`
	// ExecutionControls: optional
	ExecutionControls *ExecutionControls `hcl:"execution_controls,block"`
	// Parameter: min=0,max=25
	Parameter []Parameter `hcl:"parameter,block" validate:"min=0,max=25"`
}

Args contains the configurations for aws_config_remediation_configuration.

type ExecutionControls

type ExecutionControls struct {
	// ExecutionControlsSsmControls: optional
	SsmControls *ExecutionControlsSsmControls `hcl:"ssm_controls,block"`
}

type ExecutionControlsAttributes

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

func (ExecutionControlsAttributes) InternalRef

func (ec ExecutionControlsAttributes) InternalRef() (terra.Reference, error)

func (ExecutionControlsAttributes) InternalTokens

func (ec ExecutionControlsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExecutionControlsAttributes) InternalWithRef

func (ExecutionControlsAttributes) SsmControls

type ExecutionControlsSsmControls

type ExecutionControlsSsmControls struct {
	// ConcurrentExecutionRatePercentage: number, optional
	ConcurrentExecutionRatePercentage terra.NumberValue `hcl:"concurrent_execution_rate_percentage,attr"`
	// ErrorPercentage: number, optional
	ErrorPercentage terra.NumberValue `hcl:"error_percentage,attr"`
}

type ExecutionControlsSsmControlsAttributes

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

func (ExecutionControlsSsmControlsAttributes) ConcurrentExecutionRatePercentage

func (sc ExecutionControlsSsmControlsAttributes) ConcurrentExecutionRatePercentage() terra.NumberValue

func (ExecutionControlsSsmControlsAttributes) ErrorPercentage

func (ExecutionControlsSsmControlsAttributes) InternalRef

func (ExecutionControlsSsmControlsAttributes) InternalTokens

func (ExecutionControlsSsmControlsAttributes) InternalWithRef

type ExecutionControlsSsmControlsState

type ExecutionControlsSsmControlsState struct {
	ConcurrentExecutionRatePercentage float64 `json:"concurrent_execution_rate_percentage"`
	ErrorPercentage                   float64 `json:"error_percentage"`
}

type ExecutionControlsState

type ExecutionControlsState struct {
	SsmControls []ExecutionControlsSsmControlsState `json:"ssm_controls"`
}

type Parameter

type Parameter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceValue: string, optional
	ResourceValue terra.StringValue `hcl:"resource_value,attr"`
	// StaticValue: string, optional
	StaticValue terra.StringValue `hcl:"static_value,attr"`
	// StaticValues: list of string, optional
	StaticValues terra.ListValue[terra.StringValue] `hcl:"static_values,attr"`
}

type ParameterAttributes

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

func (ParameterAttributes) InternalRef

func (p ParameterAttributes) InternalRef() (terra.Reference, error)

func (ParameterAttributes) InternalTokens

func (p ParameterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ParameterAttributes) InternalWithRef

func (p ParameterAttributes) InternalWithRef(ref terra.Reference) ParameterAttributes

func (ParameterAttributes) Name

func (ParameterAttributes) ResourceValue

func (p ParameterAttributes) ResourceValue() terra.StringValue

func (ParameterAttributes) StaticValue

func (p ParameterAttributes) StaticValue() terra.StringValue

func (ParameterAttributes) StaticValues

type ParameterState

type ParameterState struct {
	Name          string   `json:"name"`
	ResourceValue string   `json:"resource_value"`
	StaticValue   string   `json:"static_value"`
	StaticValues  []string `json:"static_values"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acrc *Resource) Attributes() awsConfigRemediationConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acrc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acrc *Resource) State() (*awsConfigRemediationConfigurationState, bool)

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

func (*Resource) StateMust

func (acrc *Resource) StateMust() *awsConfigRemediationConfigurationState

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

func (*Resource) Type

func (acrc *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