aws_ecs_task_set

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 {
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// ExternalId: string, optional
	ExternalId terra.StringValue `hcl:"external_id,attr"`
	// ForceDelete: bool, optional
	ForceDelete terra.BoolValue `hcl:"force_delete,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LaunchType: string, optional
	LaunchType terra.StringValue `hcl:"launch_type,attr"`
	// PlatformVersion: string, optional
	PlatformVersion terra.StringValue `hcl:"platform_version,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
	// 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"`
	// TaskDefinition: string, required
	TaskDefinition terra.StringValue `hcl:"task_definition,attr" validate:"required"`
	// WaitUntilStable: bool, optional
	WaitUntilStable terra.BoolValue `hcl:"wait_until_stable,attr"`
	// WaitUntilStableTimeout: string, optional
	WaitUntilStableTimeout terra.StringValue `hcl:"wait_until_stable_timeout,attr"`
	// CapacityProviderStrategy: min=0
	CapacityProviderStrategy []CapacityProviderStrategy `hcl:"capacity_provider_strategy,block" validate:"min=0"`
	// LoadBalancer: min=0
	LoadBalancer []LoadBalancer `hcl:"load_balancer,block" validate:"min=0"`
	// NetworkConfiguration: optional
	NetworkConfiguration *NetworkConfiguration `hcl:"network_configuration,block"`
	// Scale: optional
	Scale *Scale `hcl:"scale,block"`
	// ServiceRegistries: optional
	ServiceRegistries *ServiceRegistries `hcl:"service_registries,block"`
}

Args contains the configurations for aws_ecs_task_set.

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, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

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 LoadBalancer

type LoadBalancer struct {
	// ContainerName: string, required
	ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"`
	// ContainerPort: number, optional
	ContainerPort terra.NumberValue `hcl:"container_port,attr"`
	// LoadBalancerName: string, optional
	LoadBalancerName terra.StringValue `hcl:"load_balancer_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) InternalRef

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

func (LoadBalancerAttributes) InternalTokens

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

func (LoadBalancerAttributes) InternalWithRef

func (LoadBalancerAttributes) LoadBalancerName

func (lb LoadBalancerAttributes) LoadBalancerName() terra.StringValue

func (LoadBalancerAttributes) TargetGroupArn

func (lb LoadBalancerAttributes) TargetGroupArn() terra.StringValue

type LoadBalancerState

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

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aets *Resource) Attributes() awsEcsTaskSetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aets *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aets *Resource) State() (*awsEcsTaskSetState, bool)

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

func (*Resource) StateMust

func (aets *Resource) StateMust() *awsEcsTaskSetState

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

func (*Resource) Type

func (aets *Resource) Type() string

Type returns the Terraform object type for Resource.

type Scale

type Scale struct {
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// Value: number, optional
	Value terra.NumberValue `hcl:"value,attr"`
}

type ScaleAttributes

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

func (ScaleAttributes) InternalRef

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

func (ScaleAttributes) InternalTokens

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

func (ScaleAttributes) InternalWithRef

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

func (ScaleAttributes) Unit

func (ScaleAttributes) Value

func (s ScaleAttributes) Value() terra.NumberValue

type ScaleState

type ScaleState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

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"`
}

Jump to

Keyboard shortcuts

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