lightsailcontainerservicedeploymentversion

package
v0.0.0-...-964ba77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// Command: list of string, optional
	Command terra.ListValue[terra.StringValue] `hcl:"command,attr"`
	// ContainerName: string, required
	ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"`
	// Environment: map of string, optional
	Environment terra.MapValue[terra.StringValue] `hcl:"environment,attr"`
	// Image: string, required
	Image terra.StringValue `hcl:"image,attr" validate:"required"`
	// Ports: map of string, optional
	Ports terra.MapValue[terra.StringValue] `hcl:"ports,attr"`
}

type ContainerAttributes

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

func (ContainerAttributes) Command

func (ContainerAttributes) ContainerName

func (c ContainerAttributes) ContainerName() terra.StringValue

func (ContainerAttributes) Environment

func (ContainerAttributes) Image

func (ContainerAttributes) InternalRef

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

func (ContainerAttributes) InternalTokens

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

func (ContainerAttributes) InternalWithRef

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

func (ContainerAttributes) Ports

type ContainerState

type ContainerState struct {
	Command       []string          `json:"command"`
	ContainerName string            `json:"container_name"`
	Environment   map[string]string `json:"environment"`
	Image         string            `json:"image"`
	Ports         map[string]string `json:"ports"`
}

type HealthCheck

type HealthCheck struct {
	// HealthyThreshold: number, optional
	HealthyThreshold terra.NumberValue `hcl:"healthy_threshold,attr"`
	// IntervalSeconds: number, optional
	IntervalSeconds terra.NumberValue `hcl:"interval_seconds,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// SuccessCodes: string, optional
	SuccessCodes terra.StringValue `hcl:"success_codes,attr"`
	// TimeoutSeconds: number, optional
	TimeoutSeconds terra.NumberValue `hcl:"timeout_seconds,attr"`
	// UnhealthyThreshold: number, optional
	UnhealthyThreshold terra.NumberValue `hcl:"unhealthy_threshold,attr"`
}

type HealthCheckAttributes

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

func (HealthCheckAttributes) HealthyThreshold

func (hc HealthCheckAttributes) HealthyThreshold() terra.NumberValue

func (HealthCheckAttributes) InternalRef

func (hc HealthCheckAttributes) InternalRef() (terra.Reference, error)

func (HealthCheckAttributes) InternalTokens

func (hc HealthCheckAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HealthCheckAttributes) InternalWithRef

func (HealthCheckAttributes) IntervalSeconds

func (hc HealthCheckAttributes) IntervalSeconds() terra.NumberValue

func (HealthCheckAttributes) Path

func (HealthCheckAttributes) SuccessCodes

func (hc HealthCheckAttributes) SuccessCodes() terra.StringValue

func (HealthCheckAttributes) TimeoutSeconds

func (hc HealthCheckAttributes) TimeoutSeconds() terra.NumberValue

func (HealthCheckAttributes) UnhealthyThreshold

func (hc HealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type HealthCheckState

type HealthCheckState struct {
	HealthyThreshold   float64 `json:"healthy_threshold"`
	IntervalSeconds    float64 `json:"interval_seconds"`
	Path               string  `json:"path"`
	SuccessCodes       string  `json:"success_codes"`
	TimeoutSeconds     float64 `json:"timeout_seconds"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

type PublicEndpoint

type PublicEndpoint struct {
	// ContainerName: string, required
	ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"`
	// ContainerPort: number, required
	ContainerPort terra.NumberValue `hcl:"container_port,attr" validate:"required"`
	// HealthCheck: required
	HealthCheck *HealthCheck `hcl:"health_check,block" validate:"required"`
}

type PublicEndpointAttributes

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

func (PublicEndpointAttributes) ContainerName

func (pe PublicEndpointAttributes) ContainerName() terra.StringValue

func (PublicEndpointAttributes) ContainerPort

func (pe PublicEndpointAttributes) ContainerPort() terra.NumberValue

func (PublicEndpointAttributes) HealthCheck

func (PublicEndpointAttributes) InternalRef

func (pe PublicEndpointAttributes) InternalRef() (terra.Reference, error)

func (PublicEndpointAttributes) InternalTokens

func (pe PublicEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PublicEndpointAttributes) InternalWithRef

type PublicEndpointState

type PublicEndpointState struct {
	ContainerName string             `json:"container_name"`
	ContainerPort float64            `json:"container_port"`
	HealthCheck   []HealthCheckState `json:"health_check"`
}

type Timeouts

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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
}

Jump to

Keyboard shortcuts

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