aws_m2_environment

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 {
	// ApplyChangesDuringMaintenanceWindow: bool, optional
	ApplyChangesDuringMaintenanceWindow terra.BoolValue `hcl:"apply_changes_during_maintenance_window,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EngineType: string, required
	EngineType terra.StringValue `hcl:"engine_type,attr" validate:"required"`
	// EngineVersion: string, optional
	EngineVersion terra.StringValue `hcl:"engine_version,attr"`
	// ForceUpdate: bool, optional
	ForceUpdate terra.BoolValue `hcl:"force_update,attr"`
	// InstanceType: string, required
	InstanceType terra.StringValue `hcl:"instance_type,attr" validate:"required"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PreferredMaintenanceWindow: string, optional
	PreferredMaintenanceWindow terra.StringValue `hcl:"preferred_maintenance_window,attr"`
	// PubliclyAccessible: bool, optional
	PubliclyAccessible terra.BoolValue `hcl:"publicly_accessible,attr"`
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// SubnetIds: set of string, optional
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// HighAvailabilityConfig: min=0
	HighAvailabilityConfig []HighAvailabilityConfig `hcl:"high_availability_config,block" validate:"min=0"`
	// StorageConfiguration: min=0
	StorageConfiguration []StorageConfiguration `hcl:"storage_configuration,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_m2_environment.

type HighAvailabilityConfig

type HighAvailabilityConfig struct {
	// DesiredCapacity: number, required
	DesiredCapacity terra.NumberValue `hcl:"desired_capacity,attr" validate:"required"`
}

type HighAvailabilityConfigAttributes

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

func (HighAvailabilityConfigAttributes) DesiredCapacity

func (hac HighAvailabilityConfigAttributes) DesiredCapacity() terra.NumberValue

func (HighAvailabilityConfigAttributes) InternalRef

func (HighAvailabilityConfigAttributes) InternalTokens

func (hac HighAvailabilityConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HighAvailabilityConfigAttributes) InternalWithRef

type HighAvailabilityConfigState

type HighAvailabilityConfigState struct {
	DesiredCapacity float64 `json:"desired_capacity"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ame *Resource) Attributes() awsM2EnvironmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ame *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ame *Resource) State() (*awsM2EnvironmentState, bool)

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

func (*Resource) StateMust

func (ame *Resource) StateMust() *awsM2EnvironmentState

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

func (*Resource) Type

func (ame *Resource) Type() string

Type returns the Terraform object type for Resource.

type StorageConfiguration

type StorageConfiguration struct {
	// StorageConfigurationEfs: min=0
	Efs []StorageConfigurationEfs `hcl:"efs,block" validate:"min=0"`
	// StorageConfigurationFsx: min=0
	Fsx []StorageConfigurationFsx `hcl:"fsx,block" validate:"min=0"`
}

type StorageConfigurationAttributes

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

func (StorageConfigurationAttributes) Efs

func (StorageConfigurationAttributes) Fsx

func (StorageConfigurationAttributes) InternalRef

func (StorageConfigurationAttributes) InternalTokens

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

func (StorageConfigurationAttributes) InternalWithRef

type StorageConfigurationEfs

type StorageConfigurationEfs struct {
	// FileSystemId: string, required
	FileSystemId terra.StringValue `hcl:"file_system_id,attr" validate:"required"`
	// MountPoint: string, required
	MountPoint terra.StringValue `hcl:"mount_point,attr" validate:"required"`
}

type StorageConfigurationEfsAttributes

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

func (StorageConfigurationEfsAttributes) FileSystemId

func (StorageConfigurationEfsAttributes) InternalRef

func (StorageConfigurationEfsAttributes) InternalTokens

func (StorageConfigurationEfsAttributes) InternalWithRef

func (StorageConfigurationEfsAttributes) MountPoint

type StorageConfigurationEfsState

type StorageConfigurationEfsState struct {
	FileSystemId string `json:"file_system_id"`
	MountPoint   string `json:"mount_point"`
}

type StorageConfigurationFsx

type StorageConfigurationFsx struct {
	// FileSystemId: string, required
	FileSystemId terra.StringValue `hcl:"file_system_id,attr" validate:"required"`
	// MountPoint: string, required
	MountPoint terra.StringValue `hcl:"mount_point,attr" validate:"required"`
}

type StorageConfigurationFsxAttributes

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

func (StorageConfigurationFsxAttributes) FileSystemId

func (StorageConfigurationFsxAttributes) InternalRef

func (StorageConfigurationFsxAttributes) InternalTokens

func (StorageConfigurationFsxAttributes) InternalWithRef

func (StorageConfigurationFsxAttributes) MountPoint

type StorageConfigurationFsxState

type StorageConfigurationFsxState struct {
	FileSystemId string `json:"file_system_id"`
	MountPoint   string `json:"mount_point"`
}

type StorageConfigurationState

type StorageConfigurationState struct {
	Efs []StorageConfigurationEfsState `json:"efs"`
	Fsx []StorageConfigurationFsxState `json:"fsx"`
}

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