aws_storagegateway_file_system_association

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 {
	// AuditDestinationArn: string, optional
	AuditDestinationArn terra.StringValue `hcl:"audit_destination_arn,attr"`
	// GatewayArn: string, required
	GatewayArn terra.StringValue `hcl:"gateway_arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LocationArn: string, required
	LocationArn terra.StringValue `hcl:"location_arn,attr" validate:"required"`
	// Password: string, required
	Password terra.StringValue `hcl:"password,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"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
	// CacheAttributes: optional
	CacheAttributes *CacheAttributes `hcl:"cache_attributes,block"`
}

Args contains the configurations for aws_storagegateway_file_system_association.

type CacheAttributes

type CacheAttributes struct {
	// CacheStaleTimeoutInSeconds: number, optional
	CacheStaleTimeoutInSeconds terra.NumberValue `hcl:"cache_stale_timeout_in_seconds,attr"`
}

type CacheAttributesAttributes

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

func (CacheAttributesAttributes) CacheStaleTimeoutInSeconds

func (ca CacheAttributesAttributes) CacheStaleTimeoutInSeconds() terra.NumberValue

func (CacheAttributesAttributes) InternalRef

func (ca CacheAttributesAttributes) InternalRef() (terra.Reference, error)

func (CacheAttributesAttributes) InternalTokens

func (ca CacheAttributesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CacheAttributesAttributes) InternalWithRef

type CacheAttributesState

type CacheAttributesState struct {
	CacheStaleTimeoutInSeconds float64 `json:"cache_stale_timeout_in_seconds"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asfsa *Resource) Attributes() awsStoragegatewayFileSystemAssociationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asfsa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asfsa *Resource) State() (*awsStoragegatewayFileSystemAssociationState, bool)

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

func (*Resource) StateMust

func (asfsa *Resource) StateMust() *awsStoragegatewayFileSystemAssociationState

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

func (*Resource) Type

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