aws_backup_selection

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 {
	// IamRoleArn: string, required
	IamRoleArn terra.StringValue `hcl:"iam_role_arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NotResources: set of string, optional
	NotResources terra.SetValue[terra.StringValue] `hcl:"not_resources,attr"`
	// PlanId: string, required
	PlanId terra.StringValue `hcl:"plan_id,attr" validate:"required"`
	// Resources: set of string, optional
	Resources terra.SetValue[terra.StringValue] `hcl:"resources,attr"`
	// Condition: min=0
	Condition []Condition `hcl:"condition,block" validate:"min=0"`
	// SelectionTag: min=0
	SelectionTag []SelectionTag `hcl:"selection_tag,block" validate:"min=0"`
}

Args contains the configurations for aws_backup_selection.

type Condition

type Condition struct {
	// ConditionStringEquals: min=0
	StringEquals []ConditionStringEquals `hcl:"string_equals,block" validate:"min=0"`
	// ConditionStringLike: min=0
	StringLike []ConditionStringLike `hcl:"string_like,block" validate:"min=0"`
	// ConditionStringNotEquals: min=0
	StringNotEquals []ConditionStringNotEquals `hcl:"string_not_equals,block" validate:"min=0"`
	// ConditionStringNotLike: min=0
	StringNotLike []ConditionStringNotLike `hcl:"string_not_like,block" validate:"min=0"`
}

type ConditionAttributes

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

func (ConditionAttributes) InternalRef

func (c ConditionAttributes) InternalRef() (terra.Reference, error)

func (ConditionAttributes) InternalTokens

func (c ConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionAttributes) InternalWithRef

func (c ConditionAttributes) InternalWithRef(ref terra.Reference) ConditionAttributes

func (ConditionAttributes) StringEquals

func (ConditionAttributes) StringLike

func (ConditionAttributes) StringNotEquals

func (ConditionAttributes) StringNotLike

type ConditionState

type ConditionState struct {
	StringEquals    []ConditionStringEqualsState    `json:"string_equals"`
	StringLike      []ConditionStringLikeState      `json:"string_like"`
	StringNotEquals []ConditionStringNotEqualsState `json:"string_not_equals"`
	StringNotLike   []ConditionStringNotLikeState   `json:"string_not_like"`
}

type ConditionStringEquals

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

type ConditionStringEqualsAttributes

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

func (ConditionStringEqualsAttributes) InternalRef

func (ConditionStringEqualsAttributes) InternalTokens

func (se ConditionStringEqualsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionStringEqualsAttributes) InternalWithRef

func (ConditionStringEqualsAttributes) Key

func (ConditionStringEqualsAttributes) Value

type ConditionStringEqualsState

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

type ConditionStringLike

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

type ConditionStringLikeAttributes

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

func (ConditionStringLikeAttributes) InternalRef

func (sl ConditionStringLikeAttributes) InternalRef() (terra.Reference, error)

func (ConditionStringLikeAttributes) InternalTokens

func (sl ConditionStringLikeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionStringLikeAttributes) InternalWithRef

func (ConditionStringLikeAttributes) Key

func (ConditionStringLikeAttributes) Value

type ConditionStringLikeState

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

type ConditionStringNotEquals

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

type ConditionStringNotEqualsAttributes

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

func (ConditionStringNotEqualsAttributes) InternalRef

func (ConditionStringNotEqualsAttributes) InternalTokens

func (sne ConditionStringNotEqualsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionStringNotEqualsAttributes) InternalWithRef

func (ConditionStringNotEqualsAttributes) Key

func (ConditionStringNotEqualsAttributes) Value

type ConditionStringNotEqualsState

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

type ConditionStringNotLike

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

type ConditionStringNotLikeAttributes

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

func (ConditionStringNotLikeAttributes) InternalRef

func (ConditionStringNotLikeAttributes) InternalTokens

func (snl ConditionStringNotLikeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionStringNotLikeAttributes) InternalWithRef

func (ConditionStringNotLikeAttributes) Key

func (ConditionStringNotLikeAttributes) Value

type ConditionStringNotLikeState

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

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// PlanId: string, required
	PlanId terra.StringValue `hcl:"plan_id,attr" validate:"required"`
	// SelectionId: string, required
	SelectionId terra.StringValue `hcl:"selection_id,attr" validate:"required"`
}

DataArgs contains the configurations for aws_backup_selection.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_backup_selection.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (abs *DataSource) Attributes() dataAwsBackupSelectionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (abs *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (abs *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (abs *DataSource) LocalName() string

LocalName returns the local name for DataSource.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (abs *Resource) Attributes() awsBackupSelectionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (abs *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (abs *Resource) State() (*awsBackupSelectionState, bool)

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

func (*Resource) StateMust

func (abs *Resource) StateMust() *awsBackupSelectionState

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

func (*Resource) Type

func (abs *Resource) Type() string

Type returns the Terraform object type for Resource.

type SelectionTag

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

type SelectionTagAttributes

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

func (SelectionTagAttributes) InternalRef

func (st SelectionTagAttributes) InternalRef() (terra.Reference, error)

func (SelectionTagAttributes) InternalTokens

func (st SelectionTagAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SelectionTagAttributes) InternalWithRef

func (SelectionTagAttributes) Key

func (SelectionTagAttributes) Type

func (SelectionTagAttributes) Value

type SelectionTagState

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

Jump to

Keyboard shortcuts

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