aws_fis_experiment_template

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 Action

type Action struct {
	// ActionId: string, required
	ActionId terra.StringValue `hcl:"action_id,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// StartAfter: set of string, optional
	StartAfter terra.SetValue[terra.StringValue] `hcl:"start_after,attr"`
	// ActionParameter: min=0
	Parameter []ActionParameter `hcl:"parameter,block" validate:"min=0"`
	// ActionTarget: optional
	Target *ActionTarget `hcl:"target,block"`
}

type ActionAttributes

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

func (ActionAttributes) ActionId

func (a ActionAttributes) ActionId() terra.StringValue

func (ActionAttributes) Description

func (a ActionAttributes) Description() terra.StringValue

func (ActionAttributes) InternalRef

func (a ActionAttributes) InternalRef() (terra.Reference, error)

func (ActionAttributes) InternalTokens

func (a ActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionAttributes) InternalWithRef

func (a ActionAttributes) InternalWithRef(ref terra.Reference) ActionAttributes

func (ActionAttributes) Name

func (ActionAttributes) Parameter

func (ActionAttributes) StartAfter

func (ActionAttributes) Target

type ActionParameter

type ActionParameter struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ActionParameterAttributes

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

func (ActionParameterAttributes) InternalRef

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

func (ActionParameterAttributes) InternalTokens

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

func (ActionParameterAttributes) InternalWithRef

func (ActionParameterAttributes) Key

func (ActionParameterAttributes) Value

type ActionParameterState

type ActionParameterState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ActionState

type ActionState struct {
	ActionId    string                 `json:"action_id"`
	Description string                 `json:"description"`
	Name        string                 `json:"name"`
	StartAfter  []string               `json:"start_after"`
	Parameter   []ActionParameterState `json:"parameter"`
	Target      []ActionTargetState    `json:"target"`
}

type ActionTarget

type ActionTarget struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ActionTargetAttributes

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

func (ActionTargetAttributes) InternalRef

func (t ActionTargetAttributes) InternalRef() (terra.Reference, error)

func (ActionTargetAttributes) InternalTokens

func (t ActionTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionTargetAttributes) InternalWithRef

func (ActionTargetAttributes) Key

func (ActionTargetAttributes) Value

type ActionTargetState

type ActionTargetState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Args

type Args struct {
	// Description: string, required
	Description terra.StringValue `hcl:"description,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,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"`
	// Action: min=1
	Action []Action `hcl:"action,block" validate:"min=1"`
	// StopCondition: min=1
	StopCondition []StopCondition `hcl:"stop_condition,block" validate:"min=1"`
	// Target: min=0
	Target []Target `hcl:"target,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_fis_experiment_template.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (afet *Resource) Attributes() awsFisExperimentTemplateAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (afet *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (afet *Resource) State() (*awsFisExperimentTemplateState, bool)

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

func (*Resource) StateMust

func (afet *Resource) StateMust() *awsFisExperimentTemplateState

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

func (*Resource) Type

func (afet *Resource) Type() string

Type returns the Terraform object type for Resource.

type StopCondition

type StopCondition struct {
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type StopConditionAttributes

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

func (StopConditionAttributes) InternalRef

func (sc StopConditionAttributes) InternalRef() (terra.Reference, error)

func (StopConditionAttributes) InternalTokens

func (sc StopConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StopConditionAttributes) InternalWithRef

func (StopConditionAttributes) Source

func (StopConditionAttributes) Value

type StopConditionState

type StopConditionState struct {
	Source string `json:"source"`
	Value  string `json:"value"`
}

type Target

type Target struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceArns: set of string, optional
	ResourceArns terra.SetValue[terra.StringValue] `hcl:"resource_arns,attr"`
	// ResourceType: string, required
	ResourceType terra.StringValue `hcl:"resource_type,attr" validate:"required"`
	// SelectionMode: string, required
	SelectionMode terra.StringValue `hcl:"selection_mode,attr" validate:"required"`
	// TargetFilter: min=0
	Filter []TargetFilter `hcl:"filter,block" validate:"min=0"`
	// TargetResourceTag: min=0,max=50
	ResourceTag []TargetResourceTag `hcl:"resource_tag,block" validate:"min=0,max=50"`
}

type TargetAttributes

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

func (TargetAttributes) Filter

func (TargetAttributes) InternalRef

func (t TargetAttributes) InternalRef() (terra.Reference, error)

func (TargetAttributes) InternalTokens

func (t TargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetAttributes) InternalWithRef

func (t TargetAttributes) InternalWithRef(ref terra.Reference) TargetAttributes

func (TargetAttributes) Name

func (TargetAttributes) ResourceArns

func (t TargetAttributes) ResourceArns() terra.SetValue[terra.StringValue]

func (TargetAttributes) ResourceTag

func (TargetAttributes) ResourceType

func (t TargetAttributes) ResourceType() terra.StringValue

func (TargetAttributes) SelectionMode

func (t TargetAttributes) SelectionMode() terra.StringValue

type TargetFilter

type TargetFilter struct {
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
	// Values: set of string, required
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type TargetFilterAttributes

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

func (TargetFilterAttributes) InternalRef

func (f TargetFilterAttributes) InternalRef() (terra.Reference, error)

func (TargetFilterAttributes) InternalTokens

func (f TargetFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetFilterAttributes) InternalWithRef

func (TargetFilterAttributes) Path

func (TargetFilterAttributes) Values

type TargetFilterState

type TargetFilterState struct {
	Path   string   `json:"path"`
	Values []string `json:"values"`
}

type TargetResourceTag

type TargetResourceTag struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type TargetResourceTagAttributes

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

func (TargetResourceTagAttributes) InternalRef

func (rt TargetResourceTagAttributes) InternalRef() (terra.Reference, error)

func (TargetResourceTagAttributes) InternalTokens

func (rt TargetResourceTagAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetResourceTagAttributes) InternalWithRef

func (TargetResourceTagAttributes) Key

func (TargetResourceTagAttributes) Value

type TargetResourceTagState

type TargetResourceTagState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type TargetState

type TargetState struct {
	Name          string                   `json:"name"`
	ResourceArns  []string                 `json:"resource_arns"`
	ResourceType  string                   `json:"resource_type"`
	SelectionMode string                   `json:"selection_mode"`
	Filter        []TargetFilterState      `json:"filter"`
	ResourceTag   []TargetResourceTagState `json:"resource_tag"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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