aws_lightsail_container_service_deployment_version

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ServiceName: string, required
	ServiceName terra.StringValue `hcl:"service_name,attr" validate:"required"`
	// Container: min=1,max=53
	Container []Container `hcl:"container,block" validate:"min=1,max=53"`
	// PublicEndpoint: optional
	PublicEndpoint *PublicEndpoint `hcl:"public_endpoint,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_lightsail_container_service_deployment_version.

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 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"`
	// PublicEndpointHealthCheck: required
	HealthCheck *PublicEndpointHealthCheck `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 PublicEndpointHealthCheck

type PublicEndpointHealthCheck 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 PublicEndpointHealthCheckAttributes

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

func (PublicEndpointHealthCheckAttributes) HealthyThreshold

func (PublicEndpointHealthCheckAttributes) InternalRef

func (PublicEndpointHealthCheckAttributes) InternalTokens

func (PublicEndpointHealthCheckAttributes) InternalWithRef

func (PublicEndpointHealthCheckAttributes) IntervalSeconds

func (PublicEndpointHealthCheckAttributes) Path

func (PublicEndpointHealthCheckAttributes) SuccessCodes

func (PublicEndpointHealthCheckAttributes) TimeoutSeconds

func (PublicEndpointHealthCheckAttributes) UnhealthyThreshold

func (hc PublicEndpointHealthCheckAttributes) UnhealthyThreshold() terra.NumberValue

type PublicEndpointHealthCheckState

type PublicEndpointHealthCheckState 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 PublicEndpointState

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

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (alcsdv *Resource) Attributes() awsLightsailContainerServiceDeploymentVersionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (alcsdv *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (alcsdv *Resource) State() (*awsLightsailContainerServiceDeploymentVersionState, bool)

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

func (*Resource) StateMust

func (alcsdv *Resource) StateMust() *awsLightsailContainerServiceDeploymentVersionState

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

func (*Resource) Type

func (alcsdv *Resource) Type() string

Type returns the Terraform object type for Resource.

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