aws_resourcegroups_group

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"`
	// 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"`
	// Configuration: min=0
	Configuration []Configuration `hcl:"configuration,block" validate:"min=0"`
	// ResourceQuery: optional
	ResourceQuery *ResourceQuery `hcl:"resource_query,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_resourcegroups_group.

type Configuration

type Configuration struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ConfigurationParameters: min=0
	Parameters []ConfigurationParameters `hcl:"parameters,block" validate:"min=0"`
}

type ConfigurationAttributes

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

func (ConfigurationAttributes) InternalRef

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

func (ConfigurationAttributes) InternalTokens

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

func (ConfigurationAttributes) InternalWithRef

func (ConfigurationAttributes) Parameters

func (ConfigurationAttributes) Type

type ConfigurationParameters

type ConfigurationParameters struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type ConfigurationParametersAttributes

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

func (ConfigurationParametersAttributes) InternalRef

func (ConfigurationParametersAttributes) InternalTokens

func (ConfigurationParametersAttributes) InternalWithRef

func (ConfigurationParametersAttributes) Name

func (ConfigurationParametersAttributes) Values

type ConfigurationParametersState

type ConfigurationParametersState struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

type ConfigurationState

type ConfigurationState struct {
	Type       string                         `json:"type"`
	Parameters []ConfigurationParametersState `json:"parameters"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arg *Resource) Attributes() awsResourcegroupsGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (arg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (arg *Resource) State() (*awsResourcegroupsGroupState, bool)

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

func (*Resource) StateMust

func (arg *Resource) StateMust() *awsResourcegroupsGroupState

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

func (*Resource) Type

func (arg *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourceQuery

type ResourceQuery struct {
	// Query: string, required
	Query terra.StringValue `hcl:"query,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type ResourceQueryAttributes

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

func (ResourceQueryAttributes) InternalRef

func (rq ResourceQueryAttributes) InternalRef() (terra.Reference, error)

func (ResourceQueryAttributes) InternalTokens

func (rq ResourceQueryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourceQueryAttributes) InternalWithRef

func (ResourceQueryAttributes) Query

func (ResourceQueryAttributes) Type

type ResourceQueryState

type ResourceQueryState struct {
	Query string `json:"query"`
	Type  string `json:"type"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,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) 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"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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