ecsservice

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 Alarms

type Alarms struct {
	// AlarmNames: set of string, required
	AlarmNames terra.SetValue[terra.StringValue] `hcl:"alarm_names,attr" validate:"required"`
	// Enable: bool, required
	Enable terra.BoolValue `hcl:"enable,attr" validate:"required"`
	// Rollback: bool, required
	Rollback terra.BoolValue `hcl:"rollback,attr" validate:"required"`
}

type AlarmsAttributes

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

func (AlarmsAttributes) AlarmNames

func (AlarmsAttributes) Enable

func (a AlarmsAttributes) Enable() terra.BoolValue

func (AlarmsAttributes) InternalRef

func (a AlarmsAttributes) InternalRef() (terra.Reference, error)

func (AlarmsAttributes) InternalTokens

func (a AlarmsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AlarmsAttributes) InternalWithRef

func (a AlarmsAttributes) InternalWithRef(ref terra.Reference) AlarmsAttributes

func (AlarmsAttributes) Rollback

func (a AlarmsAttributes) Rollback() terra.BoolValue

type AlarmsState

type AlarmsState struct {
	AlarmNames []string `json:"alarm_names"`
	Enable     bool     `json:"enable"`
	Rollback   bool     `json:"rollback"`
}

type CapacityProviderStrategy

type CapacityProviderStrategy struct {
	// Base: number, optional
	Base terra.NumberValue `hcl:"base,attr"`
	// CapacityProvider: string, required
	CapacityProvider terra.StringValue `hcl:"capacity_provider,attr" validate:"required"`
	// Weight: number, optional
	Weight terra.NumberValue `hcl:"weight,attr"`
}

type CapacityProviderStrategyAttributes

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

func (CapacityProviderStrategyAttributes) Base

func (CapacityProviderStrategyAttributes) CapacityProvider

func (cps CapacityProviderStrategyAttributes) CapacityProvider() terra.StringValue

func (CapacityProviderStrategyAttributes) InternalRef

func (CapacityProviderStrategyAttributes) InternalTokens

func (cps CapacityProviderStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CapacityProviderStrategyAttributes) InternalWithRef

func (CapacityProviderStrategyAttributes) Weight

type CapacityProviderStrategyState

type CapacityProviderStrategyState struct {
	Base             float64 `json:"base"`
	CapacityProvider string  `json:"capacity_provider"`
	Weight           float64 `json:"weight"`
}

type ClientAlias

type ClientAlias struct {
	// DnsName: string, optional
	DnsName terra.StringValue `hcl:"dns_name,attr"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
}

type ClientAliasAttributes

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

func (ClientAliasAttributes) DnsName

func (ClientAliasAttributes) InternalRef

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

func (ClientAliasAttributes) InternalTokens

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

func (ClientAliasAttributes) InternalWithRef

func (ClientAliasAttributes) Port

type ClientAliasState

type ClientAliasState struct {
	DnsName string  `json:"dns_name"`
	Port    float64 `json:"port"`
}

type DeploymentCircuitBreaker

type DeploymentCircuitBreaker struct {
	// Enable: bool, required
	Enable terra.BoolValue `hcl:"enable,attr" validate:"required"`
	// Rollback: bool, required
	Rollback terra.BoolValue `hcl:"rollback,attr" validate:"required"`
}

type DeploymentCircuitBreakerAttributes

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

func (DeploymentCircuitBreakerAttributes) Enable

func (DeploymentCircuitBreakerAttributes) InternalRef

func (DeploymentCircuitBreakerAttributes) InternalTokens

func (dcb DeploymentCircuitBreakerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeploymentCircuitBreakerAttributes) InternalWithRef

func (DeploymentCircuitBreakerAttributes) Rollback

type DeploymentCircuitBreakerState

type DeploymentCircuitBreakerState struct {
	Enable   bool `json:"enable"`
	Rollback bool `json:"rollback"`
}

type DeploymentController

type DeploymentController struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type DeploymentControllerAttributes

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

func (DeploymentControllerAttributes) InternalRef

func (DeploymentControllerAttributes) InternalTokens

func (dc DeploymentControllerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeploymentControllerAttributes) InternalWithRef

func (DeploymentControllerAttributes) Type

type DeploymentControllerState

type DeploymentControllerState struct {
	Type string `json:"type"`
}

type LoadBalancer

type LoadBalancer 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"`
	// ElbName: string, optional
	ElbName terra.StringValue `hcl:"elb_name,attr"`
	// TargetGroupArn: string, optional
	TargetGroupArn terra.StringValue `hcl:"target_group_arn,attr"`
}

type LoadBalancerAttributes

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

func (LoadBalancerAttributes) ContainerName

func (lb LoadBalancerAttributes) ContainerName() terra.StringValue

func (LoadBalancerAttributes) ContainerPort

func (lb LoadBalancerAttributes) ContainerPort() terra.NumberValue

func (LoadBalancerAttributes) ElbName

func (LoadBalancerAttributes) InternalRef

func (lb LoadBalancerAttributes) InternalRef() (terra.Reference, error)

func (LoadBalancerAttributes) InternalTokens

func (lb LoadBalancerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadBalancerAttributes) InternalWithRef

func (LoadBalancerAttributes) TargetGroupArn

func (lb LoadBalancerAttributes) TargetGroupArn() terra.StringValue

type LoadBalancerState

type LoadBalancerState struct {
	ContainerName  string  `json:"container_name"`
	ContainerPort  float64 `json:"container_port"`
	ElbName        string  `json:"elb_name"`
	TargetGroupArn string  `json:"target_group_arn"`
}

type LogConfiguration

type LogConfiguration struct {
	// LogDriver: string, required
	LogDriver terra.StringValue `hcl:"log_driver,attr" validate:"required"`
	// Options: map of string, optional
	Options terra.MapValue[terra.StringValue] `hcl:"options,attr"`
	// SecretOption: min=0
	SecretOption []SecretOption `hcl:"secret_option,block" validate:"min=0"`
}

type LogConfigurationAttributes

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

func (LogConfigurationAttributes) InternalRef

func (lc LogConfigurationAttributes) InternalRef() (terra.Reference, error)

func (LogConfigurationAttributes) InternalTokens

func (lc LogConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LogConfigurationAttributes) InternalWithRef

func (LogConfigurationAttributes) LogDriver

func (LogConfigurationAttributes) Options

func (LogConfigurationAttributes) SecretOption

type LogConfigurationState

type LogConfigurationState struct {
	LogDriver    string              `json:"log_driver"`
	Options      map[string]string   `json:"options"`
	SecretOption []SecretOptionState `json:"secret_option"`
}

type NetworkConfiguration

type NetworkConfiguration struct {
	// AssignPublicIp: bool, optional
	AssignPublicIp terra.BoolValue `hcl:"assign_public_ip,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// Subnets: set of string, required
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,attr" validate:"required"`
}

type NetworkConfigurationAttributes

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

func (NetworkConfigurationAttributes) AssignPublicIp

func (nc NetworkConfigurationAttributes) AssignPublicIp() terra.BoolValue

func (NetworkConfigurationAttributes) InternalRef

func (NetworkConfigurationAttributes) InternalTokens

func (nc NetworkConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkConfigurationAttributes) InternalWithRef

func (NetworkConfigurationAttributes) SecurityGroups

func (NetworkConfigurationAttributes) Subnets

type NetworkConfigurationState

type NetworkConfigurationState struct {
	AssignPublicIp bool     `json:"assign_public_ip"`
	SecurityGroups []string `json:"security_groups"`
	Subnets        []string `json:"subnets"`
}

type OrderedPlacementStrategy

type OrderedPlacementStrategy struct {
	// Field: string, optional
	Field terra.StringValue `hcl:"field,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type OrderedPlacementStrategyAttributes

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

func (OrderedPlacementStrategyAttributes) Field

func (OrderedPlacementStrategyAttributes) InternalRef

func (OrderedPlacementStrategyAttributes) InternalTokens

func (ops OrderedPlacementStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrderedPlacementStrategyAttributes) InternalWithRef

func (OrderedPlacementStrategyAttributes) Type

type OrderedPlacementStrategyState

type OrderedPlacementStrategyState struct {
	Field string `json:"field"`
	Type  string `json:"type"`
}

type PlacementConstraints

type PlacementConstraints struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type PlacementConstraintsAttributes

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

func (PlacementConstraintsAttributes) Expression

func (PlacementConstraintsAttributes) InternalRef

func (PlacementConstraintsAttributes) InternalTokens

func (pc PlacementConstraintsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PlacementConstraintsAttributes) InternalWithRef

func (PlacementConstraintsAttributes) Type

type PlacementConstraintsState

type PlacementConstraintsState struct {
	Expression string `json:"expression"`
	Type       string `json:"type"`
}

type SecretOption

type SecretOption struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ValueFrom: string, required
	ValueFrom terra.StringValue `hcl:"value_from,attr" validate:"required"`
}

type SecretOptionAttributes

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

func (SecretOptionAttributes) InternalRef

func (so SecretOptionAttributes) InternalRef() (terra.Reference, error)

func (SecretOptionAttributes) InternalTokens

func (so SecretOptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SecretOptionAttributes) InternalWithRef

func (SecretOptionAttributes) Name

func (SecretOptionAttributes) ValueFrom

func (so SecretOptionAttributes) ValueFrom() terra.StringValue

type SecretOptionState

type SecretOptionState struct {
	Name      string `json:"name"`
	ValueFrom string `json:"value_from"`
}

type Service

type Service struct {
	// DiscoveryName: string, optional
	DiscoveryName terra.StringValue `hcl:"discovery_name,attr"`
	// IngressPortOverride: number, optional
	IngressPortOverride terra.NumberValue `hcl:"ingress_port_override,attr"`
	// PortName: string, required
	PortName terra.StringValue `hcl:"port_name,attr" validate:"required"`
	// ClientAlias: optional
	ClientAlias *ClientAlias `hcl:"client_alias,block"`
}

type ServiceAttributes

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

func (ServiceAttributes) ClientAlias

func (ServiceAttributes) DiscoveryName

func (s ServiceAttributes) DiscoveryName() terra.StringValue

func (ServiceAttributes) IngressPortOverride

func (s ServiceAttributes) IngressPortOverride() terra.NumberValue

func (ServiceAttributes) InternalRef

func (s ServiceAttributes) InternalRef() (terra.Reference, error)

func (ServiceAttributes) InternalTokens

func (s ServiceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServiceAttributes) InternalWithRef

func (s ServiceAttributes) InternalWithRef(ref terra.Reference) ServiceAttributes

func (ServiceAttributes) PortName

func (s ServiceAttributes) PortName() terra.StringValue

type ServiceConnectConfiguration

type ServiceConnectConfiguration struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// LogConfiguration: optional
	LogConfiguration *LogConfiguration `hcl:"log_configuration,block"`
	// Service: min=0
	Service []Service `hcl:"service,block" validate:"min=0"`
}

type ServiceConnectConfigurationAttributes

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

func (ServiceConnectConfigurationAttributes) Enabled

func (ServiceConnectConfigurationAttributes) InternalRef

func (ServiceConnectConfigurationAttributes) InternalTokens

func (ServiceConnectConfigurationAttributes) InternalWithRef

func (ServiceConnectConfigurationAttributes) LogConfiguration

func (ServiceConnectConfigurationAttributes) Namespace

func (ServiceConnectConfigurationAttributes) Service

type ServiceConnectConfigurationState

type ServiceConnectConfigurationState struct {
	Enabled          bool                    `json:"enabled"`
	Namespace        string                  `json:"namespace"`
	LogConfiguration []LogConfigurationState `json:"log_configuration"`
	Service          []ServiceState          `json:"service"`
}

type ServiceRegistries

type ServiceRegistries struct {
	// ContainerName: string, optional
	ContainerName terra.StringValue `hcl:"container_name,attr"`
	// ContainerPort: number, optional
	ContainerPort terra.NumberValue `hcl:"container_port,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// RegistryArn: string, required
	RegistryArn terra.StringValue `hcl:"registry_arn,attr" validate:"required"`
}

type ServiceRegistriesAttributes

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

func (ServiceRegistriesAttributes) ContainerName

func (sr ServiceRegistriesAttributes) ContainerName() terra.StringValue

func (ServiceRegistriesAttributes) ContainerPort

func (sr ServiceRegistriesAttributes) ContainerPort() terra.NumberValue

func (ServiceRegistriesAttributes) InternalRef

func (sr ServiceRegistriesAttributes) InternalRef() (terra.Reference, error)

func (ServiceRegistriesAttributes) InternalTokens

func (sr ServiceRegistriesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServiceRegistriesAttributes) InternalWithRef

func (ServiceRegistriesAttributes) Port

func (ServiceRegistriesAttributes) RegistryArn

type ServiceRegistriesState

type ServiceRegistriesState struct {
	ContainerName string  `json:"container_name"`
	ContainerPort float64 `json:"container_port"`
	Port          float64 `json:"port"`
	RegistryArn   string  `json:"registry_arn"`
}

type ServiceState

type ServiceState struct {
	DiscoveryName       string             `json:"discovery_name"`
	IngressPortOverride float64            `json:"ingress_port_override"`
	PortName            string             `json:"port_name"`
	ClientAlias         []ClientAliasState `json:"client_alias"`
}

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