aws_opsworks_custom_layer

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 {
	// AutoAssignElasticIps: bool, optional
	AutoAssignElasticIps terra.BoolValue `hcl:"auto_assign_elastic_ips,attr"`
	// AutoAssignPublicIps: bool, optional
	AutoAssignPublicIps terra.BoolValue `hcl:"auto_assign_public_ips,attr"`
	// AutoHealing: bool, optional
	AutoHealing terra.BoolValue `hcl:"auto_healing,attr"`
	// CustomConfigureRecipes: list of string, optional
	CustomConfigureRecipes terra.ListValue[terra.StringValue] `hcl:"custom_configure_recipes,attr"`
	// CustomDeployRecipes: list of string, optional
	CustomDeployRecipes terra.ListValue[terra.StringValue] `hcl:"custom_deploy_recipes,attr"`
	// CustomInstanceProfileArn: string, optional
	CustomInstanceProfileArn terra.StringValue `hcl:"custom_instance_profile_arn,attr"`
	// CustomJson: string, optional
	CustomJson terra.StringValue `hcl:"custom_json,attr"`
	// CustomSecurityGroupIds: set of string, optional
	CustomSecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"custom_security_group_ids,attr"`
	// CustomSetupRecipes: list of string, optional
	CustomSetupRecipes terra.ListValue[terra.StringValue] `hcl:"custom_setup_recipes,attr"`
	// CustomShutdownRecipes: list of string, optional
	CustomShutdownRecipes terra.ListValue[terra.StringValue] `hcl:"custom_shutdown_recipes,attr"`
	// CustomUndeployRecipes: list of string, optional
	CustomUndeployRecipes terra.ListValue[terra.StringValue] `hcl:"custom_undeploy_recipes,attr"`
	// DrainElbOnShutdown: bool, optional
	DrainElbOnShutdown terra.BoolValue `hcl:"drain_elb_on_shutdown,attr"`
	// ElasticLoadBalancer: string, optional
	ElasticLoadBalancer terra.StringValue `hcl:"elastic_load_balancer,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstallUpdatesOnBoot: bool, optional
	InstallUpdatesOnBoot terra.BoolValue `hcl:"install_updates_on_boot,attr"`
	// InstanceShutdownTimeout: number, optional
	InstanceShutdownTimeout terra.NumberValue `hcl:"instance_shutdown_timeout,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ShortName: string, required
	ShortName terra.StringValue `hcl:"short_name,attr" validate:"required"`
	// StackId: string, required
	StackId terra.StringValue `hcl:"stack_id,attr" validate:"required"`
	// SystemPackages: set of string, optional
	SystemPackages terra.SetValue[terra.StringValue] `hcl:"system_packages,attr"`
	// 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"`
	// UseEbsOptimizedInstances: bool, optional
	UseEbsOptimizedInstances terra.BoolValue `hcl:"use_ebs_optimized_instances,attr"`
	// CloudwatchConfiguration: optional
	CloudwatchConfiguration *CloudwatchConfiguration `hcl:"cloudwatch_configuration,block"`
	// EbsVolume: min=0
	EbsVolume []EbsVolume `hcl:"ebs_volume,block" validate:"min=0"`
	// LoadBasedAutoScaling: optional
	LoadBasedAutoScaling *LoadBasedAutoScaling `hcl:"load_based_auto_scaling,block"`
}

Args contains the configurations for aws_opsworks_custom_layer.

type CloudwatchConfiguration

type CloudwatchConfiguration struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// CloudwatchConfigurationLogStreams: min=0
	LogStreams []CloudwatchConfigurationLogStreams `hcl:"log_streams,block" validate:"min=0"`
}

type CloudwatchConfigurationAttributes

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

func (CloudwatchConfigurationAttributes) Enabled

func (CloudwatchConfigurationAttributes) InternalRef

func (CloudwatchConfigurationAttributes) InternalTokens

func (cc CloudwatchConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CloudwatchConfigurationAttributes) InternalWithRef

func (CloudwatchConfigurationAttributes) LogStreams

type CloudwatchConfigurationLogStreams

type CloudwatchConfigurationLogStreams struct {
	// BatchCount: number, optional
	BatchCount terra.NumberValue `hcl:"batch_count,attr"`
	// BatchSize: number, optional
	BatchSize terra.NumberValue `hcl:"batch_size,attr"`
	// BufferDuration: number, optional
	BufferDuration terra.NumberValue `hcl:"buffer_duration,attr"`
	// DatetimeFormat: string, optional
	DatetimeFormat terra.StringValue `hcl:"datetime_format,attr"`
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
	// File: string, required
	File terra.StringValue `hcl:"file,attr" validate:"required"`
	// FileFingerprintLines: string, optional
	FileFingerprintLines terra.StringValue `hcl:"file_fingerprint_lines,attr"`
	// InitialPosition: string, optional
	InitialPosition terra.StringValue `hcl:"initial_position,attr"`
	// LogGroupName: string, required
	LogGroupName terra.StringValue `hcl:"log_group_name,attr" validate:"required"`
	// MultilineStartPattern: string, optional
	MultilineStartPattern terra.StringValue `hcl:"multiline_start_pattern,attr"`
	// TimeZone: string, optional
	TimeZone terra.StringValue `hcl:"time_zone,attr"`
}

type CloudwatchConfigurationLogStreamsAttributes

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

func (CloudwatchConfigurationLogStreamsAttributes) BatchCount

func (CloudwatchConfigurationLogStreamsAttributes) BatchSize

func (CloudwatchConfigurationLogStreamsAttributes) BufferDuration

func (CloudwatchConfigurationLogStreamsAttributes) DatetimeFormat

func (CloudwatchConfigurationLogStreamsAttributes) Encoding

func (CloudwatchConfigurationLogStreamsAttributes) File

func (CloudwatchConfigurationLogStreamsAttributes) FileFingerprintLines

func (CloudwatchConfigurationLogStreamsAttributes) InitialPosition

func (CloudwatchConfigurationLogStreamsAttributes) InternalRef

func (CloudwatchConfigurationLogStreamsAttributes) InternalTokens

func (CloudwatchConfigurationLogStreamsAttributes) InternalWithRef

func (CloudwatchConfigurationLogStreamsAttributes) LogGroupName

func (CloudwatchConfigurationLogStreamsAttributes) MultilineStartPattern

func (CloudwatchConfigurationLogStreamsAttributes) TimeZone

type CloudwatchConfigurationLogStreamsState

type CloudwatchConfigurationLogStreamsState struct {
	BatchCount            float64 `json:"batch_count"`
	BatchSize             float64 `json:"batch_size"`
	BufferDuration        float64 `json:"buffer_duration"`
	DatetimeFormat        string  `json:"datetime_format"`
	Encoding              string  `json:"encoding"`
	File                  string  `json:"file"`
	FileFingerprintLines  string  `json:"file_fingerprint_lines"`
	InitialPosition       string  `json:"initial_position"`
	LogGroupName          string  `json:"log_group_name"`
	MultilineStartPattern string  `json:"multiline_start_pattern"`
	TimeZone              string  `json:"time_zone"`
}

type CloudwatchConfigurationState

type CloudwatchConfigurationState struct {
	Enabled    bool                                     `json:"enabled"`
	LogStreams []CloudwatchConfigurationLogStreamsState `json:"log_streams"`
}

type EbsVolume

type EbsVolume struct {
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// MountPoint: string, required
	MountPoint terra.StringValue `hcl:"mount_point,attr" validate:"required"`
	// NumberOfDisks: number, required
	NumberOfDisks terra.NumberValue `hcl:"number_of_disks,attr" validate:"required"`
	// RaidLevel: string, optional
	RaidLevel terra.StringValue `hcl:"raid_level,attr"`
	// Size: number, required
	Size terra.NumberValue `hcl:"size,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type EbsVolumeAttributes

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

func (EbsVolumeAttributes) Encrypted

func (ev EbsVolumeAttributes) Encrypted() terra.BoolValue

func (EbsVolumeAttributes) InternalRef

func (ev EbsVolumeAttributes) InternalRef() (terra.Reference, error)

func (EbsVolumeAttributes) InternalTokens

func (ev EbsVolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EbsVolumeAttributes) InternalWithRef

func (ev EbsVolumeAttributes) InternalWithRef(ref terra.Reference) EbsVolumeAttributes

func (EbsVolumeAttributes) Iops

func (EbsVolumeAttributes) MountPoint

func (ev EbsVolumeAttributes) MountPoint() terra.StringValue

func (EbsVolumeAttributes) NumberOfDisks

func (ev EbsVolumeAttributes) NumberOfDisks() terra.NumberValue

func (EbsVolumeAttributes) RaidLevel

func (ev EbsVolumeAttributes) RaidLevel() terra.StringValue

func (EbsVolumeAttributes) Size

func (EbsVolumeAttributes) Type

type EbsVolumeState

type EbsVolumeState struct {
	Encrypted     bool    `json:"encrypted"`
	Iops          float64 `json:"iops"`
	MountPoint    string  `json:"mount_point"`
	NumberOfDisks float64 `json:"number_of_disks"`
	RaidLevel     string  `json:"raid_level"`
	Size          float64 `json:"size"`
	Type          string  `json:"type"`
}

type LoadBasedAutoScaling

type LoadBasedAutoScaling struct {
	// Enable: bool, optional
	Enable terra.BoolValue `hcl:"enable,attr"`
	// LoadBasedAutoScalingDownscaling: optional
	Downscaling *LoadBasedAutoScalingDownscaling `hcl:"downscaling,block"`
	// LoadBasedAutoScalingUpscaling: optional
	Upscaling *LoadBasedAutoScalingUpscaling `hcl:"upscaling,block"`
}

type LoadBasedAutoScalingAttributes

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

func (LoadBasedAutoScalingAttributes) Downscaling

func (LoadBasedAutoScalingAttributes) Enable

func (LoadBasedAutoScalingAttributes) InternalRef

func (lbas LoadBasedAutoScalingAttributes) InternalRef() (terra.Reference, error)

func (LoadBasedAutoScalingAttributes) InternalTokens

func (lbas LoadBasedAutoScalingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadBasedAutoScalingAttributes) InternalWithRef

func (LoadBasedAutoScalingAttributes) Upscaling

type LoadBasedAutoScalingDownscaling

type LoadBasedAutoScalingDownscaling struct {
	// Alarms: list of string, optional
	Alarms terra.ListValue[terra.StringValue] `hcl:"alarms,attr"`
	// CpuThreshold: number, optional
	CpuThreshold terra.NumberValue `hcl:"cpu_threshold,attr"`
	// IgnoreMetricsTime: number, optional
	IgnoreMetricsTime terra.NumberValue `hcl:"ignore_metrics_time,attr"`
	// InstanceCount: number, optional
	InstanceCount terra.NumberValue `hcl:"instance_count,attr"`
	// LoadThreshold: number, optional
	LoadThreshold terra.NumberValue `hcl:"load_threshold,attr"`
	// MemoryThreshold: number, optional
	MemoryThreshold terra.NumberValue `hcl:"memory_threshold,attr"`
	// ThresholdsWaitTime: number, optional
	ThresholdsWaitTime terra.NumberValue `hcl:"thresholds_wait_time,attr"`
}

type LoadBasedAutoScalingDownscalingAttributes

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

func (LoadBasedAutoScalingDownscalingAttributes) Alarms

func (LoadBasedAutoScalingDownscalingAttributes) CpuThreshold

func (LoadBasedAutoScalingDownscalingAttributes) IgnoreMetricsTime

func (LoadBasedAutoScalingDownscalingAttributes) InstanceCount

func (LoadBasedAutoScalingDownscalingAttributes) InternalRef

func (LoadBasedAutoScalingDownscalingAttributes) InternalTokens

func (LoadBasedAutoScalingDownscalingAttributes) InternalWithRef

func (LoadBasedAutoScalingDownscalingAttributes) LoadThreshold

func (LoadBasedAutoScalingDownscalingAttributes) MemoryThreshold

func (LoadBasedAutoScalingDownscalingAttributes) ThresholdsWaitTime

type LoadBasedAutoScalingDownscalingState

type LoadBasedAutoScalingDownscalingState struct {
	Alarms             []string `json:"alarms"`
	CpuThreshold       float64  `json:"cpu_threshold"`
	IgnoreMetricsTime  float64  `json:"ignore_metrics_time"`
	InstanceCount      float64  `json:"instance_count"`
	LoadThreshold      float64  `json:"load_threshold"`
	MemoryThreshold    float64  `json:"memory_threshold"`
	ThresholdsWaitTime float64  `json:"thresholds_wait_time"`
}

type LoadBasedAutoScalingState

type LoadBasedAutoScalingState struct {
	Enable      bool                                   `json:"enable"`
	Downscaling []LoadBasedAutoScalingDownscalingState `json:"downscaling"`
	Upscaling   []LoadBasedAutoScalingUpscalingState   `json:"upscaling"`
}

type LoadBasedAutoScalingUpscaling

type LoadBasedAutoScalingUpscaling struct {
	// Alarms: list of string, optional
	Alarms terra.ListValue[terra.StringValue] `hcl:"alarms,attr"`
	// CpuThreshold: number, optional
	CpuThreshold terra.NumberValue `hcl:"cpu_threshold,attr"`
	// IgnoreMetricsTime: number, optional
	IgnoreMetricsTime terra.NumberValue `hcl:"ignore_metrics_time,attr"`
	// InstanceCount: number, optional
	InstanceCount terra.NumberValue `hcl:"instance_count,attr"`
	// LoadThreshold: number, optional
	LoadThreshold terra.NumberValue `hcl:"load_threshold,attr"`
	// MemoryThreshold: number, optional
	MemoryThreshold terra.NumberValue `hcl:"memory_threshold,attr"`
	// ThresholdsWaitTime: number, optional
	ThresholdsWaitTime terra.NumberValue `hcl:"thresholds_wait_time,attr"`
}

type LoadBasedAutoScalingUpscalingAttributes

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

func (LoadBasedAutoScalingUpscalingAttributes) Alarms

func (LoadBasedAutoScalingUpscalingAttributes) CpuThreshold

func (LoadBasedAutoScalingUpscalingAttributes) IgnoreMetricsTime

func (LoadBasedAutoScalingUpscalingAttributes) InstanceCount

func (LoadBasedAutoScalingUpscalingAttributes) InternalRef

func (LoadBasedAutoScalingUpscalingAttributes) InternalTokens

func (LoadBasedAutoScalingUpscalingAttributes) InternalWithRef

func (LoadBasedAutoScalingUpscalingAttributes) LoadThreshold

func (LoadBasedAutoScalingUpscalingAttributes) MemoryThreshold

func (LoadBasedAutoScalingUpscalingAttributes) ThresholdsWaitTime

type LoadBasedAutoScalingUpscalingState

type LoadBasedAutoScalingUpscalingState struct {
	Alarms             []string `json:"alarms"`
	CpuThreshold       float64  `json:"cpu_threshold"`
	IgnoreMetricsTime  float64  `json:"ignore_metrics_time"`
	InstanceCount      float64  `json:"instance_count"`
	LoadThreshold      float64  `json:"load_threshold"`
	MemoryThreshold    float64  `json:"memory_threshold"`
	ThresholdsWaitTime float64  `json:"thresholds_wait_time"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aocl *Resource) Attributes() awsOpsworksCustomLayerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aocl *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aocl *Resource) State() (*awsOpsworksCustomLayerState, bool)

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

func (*Resource) StateMust

func (aocl *Resource) StateMust() *awsOpsworksCustomLayerState

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

func (*Resource) Type

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