aws_batch_compute_environment

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 {
	// ComputeEnvironmentName: string, optional
	ComputeEnvironmentName terra.StringValue `hcl:"compute_environment_name,attr"`
	// ComputeEnvironmentNamePrefix: string, optional
	ComputeEnvironmentNamePrefix terra.StringValue `hcl:"compute_environment_name_prefix,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ServiceRole: string, optional
	ServiceRole terra.StringValue `hcl:"service_role,attr"`
	// State: string, optional
	State terra.StringValue `hcl:"state,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"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ComputeResources: optional
	ComputeResources *ComputeResources `hcl:"compute_resources,block"`
	// EksConfiguration: optional
	EksConfiguration *EksConfiguration `hcl:"eks_configuration,block"`
}

Args contains the configurations for aws_batch_compute_environment.

type ComputeResources

type ComputeResources struct {
	// AllocationStrategy: string, optional
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr"`
	// BidPercentage: number, optional
	BidPercentage terra.NumberValue `hcl:"bid_percentage,attr"`
	// DesiredVcpus: number, optional
	DesiredVcpus terra.NumberValue `hcl:"desired_vcpus,attr"`
	// Ec2KeyPair: string, optional
	Ec2KeyPair terra.StringValue `hcl:"ec2_key_pair,attr"`
	// ImageId: string, optional
	ImageId terra.StringValue `hcl:"image_id,attr"`
	// InstanceRole: string, optional
	InstanceRole terra.StringValue `hcl:"instance_role,attr"`
	// InstanceType: set of string, optional
	InstanceType terra.SetValue[terra.StringValue] `hcl:"instance_type,attr"`
	// MaxVcpus: number, required
	MaxVcpus terra.NumberValue `hcl:"max_vcpus,attr" validate:"required"`
	// MinVcpus: number, optional
	MinVcpus terra.NumberValue `hcl:"min_vcpus,attr"`
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// SpotIamFleetRole: string, optional
	SpotIamFleetRole terra.StringValue `hcl:"spot_iam_fleet_role,attr"`
	// Subnets: set of string, required
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ComputeResourcesEc2Configuration: optional
	Ec2Configuration *ComputeResourcesEc2Configuration `hcl:"ec2_configuration,block"`
	// ComputeResourcesLaunchTemplate: optional
	LaunchTemplate *ComputeResourcesLaunchTemplate `hcl:"launch_template,block"`
}

type ComputeResourcesAttributes

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

func (ComputeResourcesAttributes) AllocationStrategy

func (cr ComputeResourcesAttributes) AllocationStrategy() terra.StringValue

func (ComputeResourcesAttributes) BidPercentage

func (cr ComputeResourcesAttributes) BidPercentage() terra.NumberValue

func (ComputeResourcesAttributes) DesiredVcpus

func (cr ComputeResourcesAttributes) DesiredVcpus() terra.NumberValue

func (ComputeResourcesAttributes) Ec2Configuration

func (ComputeResourcesAttributes) Ec2KeyPair

func (ComputeResourcesAttributes) ImageId

func (ComputeResourcesAttributes) InstanceRole

func (cr ComputeResourcesAttributes) InstanceRole() terra.StringValue

func (ComputeResourcesAttributes) InstanceType

func (ComputeResourcesAttributes) InternalRef

func (cr ComputeResourcesAttributes) InternalRef() (terra.Reference, error)

func (ComputeResourcesAttributes) InternalTokens

func (cr ComputeResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ComputeResourcesAttributes) InternalWithRef

func (ComputeResourcesAttributes) LaunchTemplate

func (ComputeResourcesAttributes) MaxVcpus

func (ComputeResourcesAttributes) MinVcpus

func (ComputeResourcesAttributes) SecurityGroupIds

func (ComputeResourcesAttributes) SpotIamFleetRole

func (cr ComputeResourcesAttributes) SpotIamFleetRole() terra.StringValue

func (ComputeResourcesAttributes) Subnets

func (ComputeResourcesAttributes) Tags

func (ComputeResourcesAttributes) Type

type ComputeResourcesEc2Configuration

type ComputeResourcesEc2Configuration struct {
	// ImageIdOverride: string, optional
	ImageIdOverride terra.StringValue `hcl:"image_id_override,attr"`
	// ImageType: string, optional
	ImageType terra.StringValue `hcl:"image_type,attr"`
}

type ComputeResourcesEc2ConfigurationAttributes

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

func (ComputeResourcesEc2ConfigurationAttributes) ImageIdOverride

func (ComputeResourcesEc2ConfigurationAttributes) ImageType

func (ComputeResourcesEc2ConfigurationAttributes) InternalRef

func (ComputeResourcesEc2ConfigurationAttributes) InternalTokens

func (ComputeResourcesEc2ConfigurationAttributes) InternalWithRef

type ComputeResourcesEc2ConfigurationState

type ComputeResourcesEc2ConfigurationState struct {
	ImageIdOverride string `json:"image_id_override"`
	ImageType       string `json:"image_type"`
}

type ComputeResourcesLaunchTemplate

type ComputeResourcesLaunchTemplate struct {
	// LaunchTemplateId: string, optional
	LaunchTemplateId terra.StringValue `hcl:"launch_template_id,attr"`
	// LaunchTemplateName: string, optional
	LaunchTemplateName terra.StringValue `hcl:"launch_template_name,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type ComputeResourcesLaunchTemplateAttributes

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

func (ComputeResourcesLaunchTemplateAttributes) InternalRef

func (ComputeResourcesLaunchTemplateAttributes) InternalTokens

func (ComputeResourcesLaunchTemplateAttributes) InternalWithRef

func (ComputeResourcesLaunchTemplateAttributes) LaunchTemplateId

func (ComputeResourcesLaunchTemplateAttributes) LaunchTemplateName

func (ComputeResourcesLaunchTemplateAttributes) Version

type ComputeResourcesLaunchTemplateState

type ComputeResourcesLaunchTemplateState struct {
	LaunchTemplateId   string `json:"launch_template_id"`
	LaunchTemplateName string `json:"launch_template_name"`
	Version            string `json:"version"`
}

type ComputeResourcesState

type ComputeResourcesState struct {
	AllocationStrategy string                                  `json:"allocation_strategy"`
	BidPercentage      float64                                 `json:"bid_percentage"`
	DesiredVcpus       float64                                 `json:"desired_vcpus"`
	Ec2KeyPair         string                                  `json:"ec2_key_pair"`
	ImageId            string                                  `json:"image_id"`
	InstanceRole       string                                  `json:"instance_role"`
	InstanceType       []string                                `json:"instance_type"`
	MaxVcpus           float64                                 `json:"max_vcpus"`
	MinVcpus           float64                                 `json:"min_vcpus"`
	SecurityGroupIds   []string                                `json:"security_group_ids"`
	SpotIamFleetRole   string                                  `json:"spot_iam_fleet_role"`
	Subnets            []string                                `json:"subnets"`
	Tags               map[string]string                       `json:"tags"`
	Type               string                                  `json:"type"`
	Ec2Configuration   []ComputeResourcesEc2ConfigurationState `json:"ec2_configuration"`
	LaunchTemplate     []ComputeResourcesLaunchTemplateState   `json:"launch_template"`
}

type DataArgs

type DataArgs struct {
	// ComputeEnvironmentName: string, required
	ComputeEnvironmentName terra.StringValue `hcl:"compute_environment_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_batch_compute_environment.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_batch_compute_environment.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (abce *DataSource) Attributes() dataAwsBatchComputeEnvironmentAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (abce *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (abce *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type EksConfiguration

type EksConfiguration struct {
	// EksClusterArn: string, required
	EksClusterArn terra.StringValue `hcl:"eks_cluster_arn,attr" validate:"required"`
	// KubernetesNamespace: string, required
	KubernetesNamespace terra.StringValue `hcl:"kubernetes_namespace,attr" validate:"required"`
}

type EksConfigurationAttributes

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

func (EksConfigurationAttributes) EksClusterArn

func (ec EksConfigurationAttributes) EksClusterArn() terra.StringValue

func (EksConfigurationAttributes) InternalRef

func (ec EksConfigurationAttributes) InternalRef() (terra.Reference, error)

func (EksConfigurationAttributes) InternalTokens

func (ec EksConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EksConfigurationAttributes) InternalWithRef

func (EksConfigurationAttributes) KubernetesNamespace

func (ec EksConfigurationAttributes) KubernetesNamespace() terra.StringValue

type EksConfigurationState

type EksConfigurationState struct {
	EksClusterArn       string `json:"eks_cluster_arn"`
	KubernetesNamespace string `json:"kubernetes_namespace"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (abce *Resource) Attributes() awsBatchComputeEnvironmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (abce *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (abce *Resource) State() (*awsBatchComputeEnvironmentState, bool)

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

func (*Resource) StateMust

func (abce *Resource) StateMust() *awsBatchComputeEnvironmentState

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

func (*Resource) Type

func (abce *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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