aws_ecs_task_definition

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 {
	// ContainerDefinitions: string, required
	ContainerDefinitions terra.StringValue `hcl:"container_definitions,attr" validate:"required"`
	// Cpu: string, optional
	Cpu terra.StringValue `hcl:"cpu,attr"`
	// ExecutionRoleArn: string, optional
	ExecutionRoleArn terra.StringValue `hcl:"execution_role_arn,attr"`
	// Family: string, required
	Family terra.StringValue `hcl:"family,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IpcMode: string, optional
	IpcMode terra.StringValue `hcl:"ipc_mode,attr"`
	// Memory: string, optional
	Memory terra.StringValue `hcl:"memory,attr"`
	// NetworkMode: string, optional
	NetworkMode terra.StringValue `hcl:"network_mode,attr"`
	// PidMode: string, optional
	PidMode terra.StringValue `hcl:"pid_mode,attr"`
	// RequiresCompatibilities: set of string, optional
	RequiresCompatibilities terra.SetValue[terra.StringValue] `hcl:"requires_compatibilities,attr"`
	// SkipDestroy: bool, optional
	SkipDestroy terra.BoolValue `hcl:"skip_destroy,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"`
	// TaskRoleArn: string, optional
	TaskRoleArn terra.StringValue `hcl:"task_role_arn,attr"`
	// TrackLatest: bool, optional
	TrackLatest terra.BoolValue `hcl:"track_latest,attr"`
	// EphemeralStorage: optional
	EphemeralStorage *EphemeralStorage `hcl:"ephemeral_storage,block"`
	// InferenceAccelerator: min=0
	InferenceAccelerator []InferenceAccelerator `hcl:"inference_accelerator,block" validate:"min=0"`
	// PlacementConstraints: min=0,max=10
	PlacementConstraints []PlacementConstraints `hcl:"placement_constraints,block" validate:"min=0,max=10"`
	// ProxyConfiguration: optional
	ProxyConfiguration *ProxyConfiguration `hcl:"proxy_configuration,block"`
	// RuntimePlatform: optional
	RuntimePlatform *RuntimePlatform `hcl:"runtime_platform,block"`
	// Volume: min=0
	Volume []Volume `hcl:"volume,block" validate:"min=0"`
}

Args contains the configurations for aws_ecs_task_definition.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// TaskDefinition: string, required
	TaskDefinition terra.StringValue `hcl:"task_definition,attr" validate:"required"`
}

DataArgs contains the configurations for aws_ecs_task_definition.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_ecs_task_definition.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aetd *DataSource) Attributes() dataAwsEcsTaskDefinitionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (aetd *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aetd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aetd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type EphemeralStorage

type EphemeralStorage struct {
	// SizeInGib: number, required
	SizeInGib terra.NumberValue `hcl:"size_in_gib,attr" validate:"required"`
}

type EphemeralStorageAttributes

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

func (EphemeralStorageAttributes) InternalRef

func (es EphemeralStorageAttributes) InternalRef() (terra.Reference, error)

func (EphemeralStorageAttributes) InternalTokens

func (es EphemeralStorageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EphemeralStorageAttributes) InternalWithRef

func (EphemeralStorageAttributes) SizeInGib

type EphemeralStorageState

type EphemeralStorageState struct {
	SizeInGib float64 `json:"size_in_gib"`
}

type InferenceAccelerator

type InferenceAccelerator struct {
	// DeviceName: string, required
	DeviceName terra.StringValue `hcl:"device_name,attr" validate:"required"`
	// DeviceType: string, required
	DeviceType terra.StringValue `hcl:"device_type,attr" validate:"required"`
}

type InferenceAcceleratorAttributes

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

func (InferenceAcceleratorAttributes) DeviceName

func (InferenceAcceleratorAttributes) DeviceType

func (InferenceAcceleratorAttributes) InternalRef

func (InferenceAcceleratorAttributes) InternalTokens

func (ia InferenceAcceleratorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InferenceAcceleratorAttributes) InternalWithRef

type InferenceAcceleratorState

type InferenceAcceleratorState struct {
	DeviceName string `json:"device_name"`
	DeviceType string `json:"device_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 ProxyConfiguration

type ProxyConfiguration struct {
	// ContainerName: string, required
	ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"`
	// Properties: map of string, optional
	Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type ProxyConfigurationAttributes

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

func (ProxyConfigurationAttributes) ContainerName

func (pc ProxyConfigurationAttributes) ContainerName() terra.StringValue

func (ProxyConfigurationAttributes) InternalRef

func (pc ProxyConfigurationAttributes) InternalRef() (terra.Reference, error)

func (ProxyConfigurationAttributes) InternalTokens

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

func (ProxyConfigurationAttributes) InternalWithRef

func (ProxyConfigurationAttributes) Properties

func (ProxyConfigurationAttributes) Type

type ProxyConfigurationState

type ProxyConfigurationState struct {
	ContainerName string            `json:"container_name"`
	Properties    map[string]string `json:"properties"`
	Type          string            `json:"type"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aetd *Resource) Attributes() awsEcsTaskDefinitionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aetd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aetd *Resource) State() (*awsEcsTaskDefinitionState, bool)

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

func (*Resource) StateMust

func (aetd *Resource) StateMust() *awsEcsTaskDefinitionState

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

func (*Resource) Type

func (aetd *Resource) Type() string

Type returns the Terraform object type for Resource.

type RuntimePlatform

type RuntimePlatform struct {
	// CpuArchitecture: string, optional
	CpuArchitecture terra.StringValue `hcl:"cpu_architecture,attr"`
	// OperatingSystemFamily: string, optional
	OperatingSystemFamily terra.StringValue `hcl:"operating_system_family,attr"`
}

type RuntimePlatformAttributes

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

func (RuntimePlatformAttributes) CpuArchitecture

func (rp RuntimePlatformAttributes) CpuArchitecture() terra.StringValue

func (RuntimePlatformAttributes) InternalRef

func (rp RuntimePlatformAttributes) InternalRef() (terra.Reference, error)

func (RuntimePlatformAttributes) InternalTokens

func (rp RuntimePlatformAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuntimePlatformAttributes) InternalWithRef

func (RuntimePlatformAttributes) OperatingSystemFamily

func (rp RuntimePlatformAttributes) OperatingSystemFamily() terra.StringValue

type RuntimePlatformState

type RuntimePlatformState struct {
	CpuArchitecture       string `json:"cpu_architecture"`
	OperatingSystemFamily string `json:"operating_system_family"`
}

type Volume

type Volume struct {
	// HostPath: string, optional
	HostPath terra.StringValue `hcl:"host_path,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// VolumeDockerVolumeConfiguration: optional
	DockerVolumeConfiguration *VolumeDockerVolumeConfiguration `hcl:"docker_volume_configuration,block"`
	// VolumeEfsVolumeConfiguration: optional
	EfsVolumeConfiguration *VolumeEfsVolumeConfiguration `hcl:"efs_volume_configuration,block"`
	// VolumeFsxWindowsFileServerVolumeConfiguration: optional
	FsxWindowsFileServerVolumeConfiguration *VolumeFsxWindowsFileServerVolumeConfiguration `hcl:"fsx_windows_file_server_volume_configuration,block"`
}

type VolumeAttributes

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

func (VolumeAttributes) DockerVolumeConfiguration

func (VolumeAttributes) EfsVolumeConfiguration

func (VolumeAttributes) HostPath

func (v VolumeAttributes) HostPath() terra.StringValue

func (VolumeAttributes) InternalRef

func (v VolumeAttributes) InternalRef() (terra.Reference, error)

func (VolumeAttributes) InternalTokens

func (v VolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VolumeAttributes) InternalWithRef

func (v VolumeAttributes) InternalWithRef(ref terra.Reference) VolumeAttributes

func (VolumeAttributes) Name

type VolumeDockerVolumeConfiguration

type VolumeDockerVolumeConfiguration struct {
	// Autoprovision: bool, optional
	Autoprovision terra.BoolValue `hcl:"autoprovision,attr"`
	// Driver: string, optional
	Driver terra.StringValue `hcl:"driver,attr"`
	// DriverOpts: map of string, optional
	DriverOpts terra.MapValue[terra.StringValue] `hcl:"driver_opts,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Scope: string, optional
	Scope terra.StringValue `hcl:"scope,attr"`
}

type VolumeDockerVolumeConfigurationAttributes

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

func (VolumeDockerVolumeConfigurationAttributes) Autoprovision

func (VolumeDockerVolumeConfigurationAttributes) Driver

func (VolumeDockerVolumeConfigurationAttributes) DriverOpts

func (VolumeDockerVolumeConfigurationAttributes) InternalRef

func (VolumeDockerVolumeConfigurationAttributes) InternalTokens

func (VolumeDockerVolumeConfigurationAttributes) InternalWithRef

func (VolumeDockerVolumeConfigurationAttributes) Labels

func (VolumeDockerVolumeConfigurationAttributes) Scope

type VolumeDockerVolumeConfigurationState

type VolumeDockerVolumeConfigurationState struct {
	Autoprovision bool              `json:"autoprovision"`
	Driver        string            `json:"driver"`
	DriverOpts    map[string]string `json:"driver_opts"`
	Labels        map[string]string `json:"labels"`
	Scope         string            `json:"scope"`
}

type VolumeEfsVolumeConfiguration

type VolumeEfsVolumeConfiguration struct {
	// FileSystemId: string, required
	FileSystemId terra.StringValue `hcl:"file_system_id,attr" validate:"required"`
	// RootDirectory: string, optional
	RootDirectory terra.StringValue `hcl:"root_directory,attr"`
	// TransitEncryption: string, optional
	TransitEncryption terra.StringValue `hcl:"transit_encryption,attr"`
	// TransitEncryptionPort: number, optional
	TransitEncryptionPort terra.NumberValue `hcl:"transit_encryption_port,attr"`
	// VolumeEfsVolumeConfigurationAuthorizationConfig: optional
	AuthorizationConfig *VolumeEfsVolumeConfigurationAuthorizationConfig `hcl:"authorization_config,block"`
}

type VolumeEfsVolumeConfigurationAttributes

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

func (VolumeEfsVolumeConfigurationAttributes) AuthorizationConfig

func (VolumeEfsVolumeConfigurationAttributes) FileSystemId

func (VolumeEfsVolumeConfigurationAttributes) InternalRef

func (VolumeEfsVolumeConfigurationAttributes) InternalTokens

func (VolumeEfsVolumeConfigurationAttributes) InternalWithRef

func (VolumeEfsVolumeConfigurationAttributes) RootDirectory

func (VolumeEfsVolumeConfigurationAttributes) TransitEncryption

func (VolumeEfsVolumeConfigurationAttributes) TransitEncryptionPort

func (evc VolumeEfsVolumeConfigurationAttributes) TransitEncryptionPort() terra.NumberValue

type VolumeEfsVolumeConfigurationAuthorizationConfig

type VolumeEfsVolumeConfigurationAuthorizationConfig struct {
	// AccessPointId: string, optional
	AccessPointId terra.StringValue `hcl:"access_point_id,attr"`
	// Iam: string, optional
	Iam terra.StringValue `hcl:"iam,attr"`
}

type VolumeEfsVolumeConfigurationAuthorizationConfigAttributes

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

func (VolumeEfsVolumeConfigurationAuthorizationConfigAttributes) AccessPointId

func (VolumeEfsVolumeConfigurationAuthorizationConfigAttributes) Iam

func (VolumeEfsVolumeConfigurationAuthorizationConfigAttributes) InternalRef

func (VolumeEfsVolumeConfigurationAuthorizationConfigAttributes) InternalTokens

func (VolumeEfsVolumeConfigurationAuthorizationConfigAttributes) InternalWithRef

type VolumeEfsVolumeConfigurationAuthorizationConfigState

type VolumeEfsVolumeConfigurationAuthorizationConfigState struct {
	AccessPointId string `json:"access_point_id"`
	Iam           string `json:"iam"`
}

type VolumeEfsVolumeConfigurationState

type VolumeEfsVolumeConfigurationState struct {
	FileSystemId          string                                                 `json:"file_system_id"`
	RootDirectory         string                                                 `json:"root_directory"`
	TransitEncryption     string                                                 `json:"transit_encryption"`
	TransitEncryptionPort float64                                                `json:"transit_encryption_port"`
	AuthorizationConfig   []VolumeEfsVolumeConfigurationAuthorizationConfigState `json:"authorization_config"`
}

type VolumeFsxWindowsFileServerVolumeConfiguration

type VolumeFsxWindowsFileServerVolumeConfiguration struct {
	// FileSystemId: string, required
	FileSystemId terra.StringValue `hcl:"file_system_id,attr" validate:"required"`
	// RootDirectory: string, required
	RootDirectory terra.StringValue `hcl:"root_directory,attr" validate:"required"`
	// VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig: required
	AuthorizationConfig *VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig `hcl:"authorization_config,block" validate:"required"`
}

type VolumeFsxWindowsFileServerVolumeConfigurationAttributes

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

func (VolumeFsxWindowsFileServerVolumeConfigurationAttributes) FileSystemId

func (VolumeFsxWindowsFileServerVolumeConfigurationAttributes) InternalRef

func (VolumeFsxWindowsFileServerVolumeConfigurationAttributes) InternalTokens

func (VolumeFsxWindowsFileServerVolumeConfigurationAttributes) InternalWithRef

func (VolumeFsxWindowsFileServerVolumeConfigurationAttributes) RootDirectory

type VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig

type VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig struct {
	// CredentialsParameter: string, required
	CredentialsParameter terra.StringValue `hcl:"credentials_parameter,attr" validate:"required"`
	// Domain: string, required
	Domain terra.StringValue `hcl:"domain,attr" validate:"required"`
}

type VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes

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

func (VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes) CredentialsParameter

func (VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes) Domain

func (VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes) InternalRef

func (VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes) InternalTokens

func (VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigAttributes) InternalWithRef

type VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigState

type VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigState struct {
	CredentialsParameter string `json:"credentials_parameter"`
	Domain               string `json:"domain"`
}

type VolumeFsxWindowsFileServerVolumeConfigurationState

type VolumeFsxWindowsFileServerVolumeConfigurationState struct {
	FileSystemId        string                                                                  `json:"file_system_id"`
	RootDirectory       string                                                                  `json:"root_directory"`
	AuthorizationConfig []VolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigState `json:"authorization_config"`
}

type VolumeState

type VolumeState struct {
	HostPath                                string                                               `json:"host_path"`
	Name                                    string                                               `json:"name"`
	DockerVolumeConfiguration               []VolumeDockerVolumeConfigurationState               `json:"docker_volume_configuration"`
	EfsVolumeConfiguration                  []VolumeEfsVolumeConfigurationState                  `json:"efs_volume_configuration"`
	FsxWindowsFileServerVolumeConfiguration []VolumeFsxWindowsFileServerVolumeConfigurationState `json:"fsx_windows_file_server_volume_configuration"`
}

Jump to

Keyboard shortcuts

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