Documentation
¶
Index ¶
- type Args
- type ComputeResources
- type ComputeResourcesAttributes
- func (cr ComputeResourcesAttributes) AllocationStrategy() terra.StringValue
- func (cr ComputeResourcesAttributes) BidPercentage() terra.NumberValue
- func (cr ComputeResourcesAttributes) DesiredVcpus() terra.NumberValue
- func (cr ComputeResourcesAttributes) Ec2Configuration() terra.ListValue[ComputeResourcesEc2ConfigurationAttributes]
- func (cr ComputeResourcesAttributes) Ec2KeyPair() terra.StringValue
- func (cr ComputeResourcesAttributes) ImageId() terra.StringValue
- func (cr ComputeResourcesAttributes) InstanceRole() terra.StringValue
- func (cr ComputeResourcesAttributes) InstanceType() terra.SetValue[terra.StringValue]
- func (cr ComputeResourcesAttributes) InternalRef() (terra.Reference, error)
- func (cr ComputeResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cr ComputeResourcesAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesAttributes
- func (cr ComputeResourcesAttributes) LaunchTemplate() terra.ListValue[ComputeResourcesLaunchTemplateAttributes]
- func (cr ComputeResourcesAttributes) MaxVcpus() terra.NumberValue
- func (cr ComputeResourcesAttributes) MinVcpus() terra.NumberValue
- func (cr ComputeResourcesAttributes) SecurityGroupIds() terra.SetValue[terra.StringValue]
- func (cr ComputeResourcesAttributes) SpotIamFleetRole() terra.StringValue
- func (cr ComputeResourcesAttributes) Subnets() terra.SetValue[terra.StringValue]
- func (cr ComputeResourcesAttributes) Tags() terra.MapValue[terra.StringValue]
- func (cr ComputeResourcesAttributes) Type() terra.StringValue
- type ComputeResourcesEc2Configuration
- type ComputeResourcesEc2ConfigurationAttributes
- func (ec ComputeResourcesEc2ConfigurationAttributes) ImageIdOverride() terra.StringValue
- func (ec ComputeResourcesEc2ConfigurationAttributes) ImageType() terra.StringValue
- func (ec ComputeResourcesEc2ConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (ec ComputeResourcesEc2ConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ec ComputeResourcesEc2ConfigurationAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesEc2ConfigurationAttributes
- type ComputeResourcesEc2ConfigurationState
- type ComputeResourcesLaunchTemplate
- type ComputeResourcesLaunchTemplateAttributes
- func (lt ComputeResourcesLaunchTemplateAttributes) InternalRef() (terra.Reference, error)
- func (lt ComputeResourcesLaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lt ComputeResourcesLaunchTemplateAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesLaunchTemplateAttributes
- func (lt ComputeResourcesLaunchTemplateAttributes) LaunchTemplateId() terra.StringValue
- func (lt ComputeResourcesLaunchTemplateAttributes) LaunchTemplateName() terra.StringValue
- func (lt ComputeResourcesLaunchTemplateAttributes) Version() terra.StringValue
- type ComputeResourcesLaunchTemplateState
- type ComputeResourcesState
- type DataArgs
- type DataSource
- type EksConfiguration
- type EksConfigurationAttributes
- func (ec EksConfigurationAttributes) EksClusterArn() terra.StringValue
- func (ec EksConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (ec EksConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ec EksConfigurationAttributes) InternalWithRef(ref terra.Reference) EksConfigurationAttributes
- func (ec EksConfigurationAttributes) KubernetesNamespace() terra.StringValue
- type EksConfigurationState
- type Resource
- func (abce *Resource) Attributes() awsBatchComputeEnvironmentAttributes
- func (abce *Resource) Configuration() interface{}
- func (abce *Resource) DependOn() terra.Reference
- func (abce *Resource) Dependencies() terra.Dependencies
- func (abce *Resource) ImportState(state io.Reader) error
- func (abce *Resource) LifecycleManagement() *terra.Lifecycle
- func (abce *Resource) LocalName() string
- func (abce *Resource) State() (*awsBatchComputeEnvironmentState, bool)
- func (abce *Resource) StateMust() *awsBatchComputeEnvironmentState
- func (abce *Resource) Type() string
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 (cr ComputeResourcesAttributes) Ec2Configuration() terra.ListValue[ComputeResourcesEc2ConfigurationAttributes]
func (ComputeResourcesAttributes) Ec2KeyPair ¶
func (cr ComputeResourcesAttributes) Ec2KeyPair() terra.StringValue
func (ComputeResourcesAttributes) ImageId ¶
func (cr ComputeResourcesAttributes) ImageId() terra.StringValue
func (ComputeResourcesAttributes) InstanceRole ¶
func (cr ComputeResourcesAttributes) InstanceRole() terra.StringValue
func (ComputeResourcesAttributes) InstanceType ¶
func (cr ComputeResourcesAttributes) InstanceType() terra.SetValue[terra.StringValue]
func (ComputeResourcesAttributes) InternalRef ¶
func (cr ComputeResourcesAttributes) InternalRef() (terra.Reference, error)
func (ComputeResourcesAttributes) InternalTokens ¶
func (cr ComputeResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ComputeResourcesAttributes) InternalWithRef ¶
func (cr ComputeResourcesAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesAttributes
func (ComputeResourcesAttributes) LaunchTemplate ¶
func (cr ComputeResourcesAttributes) LaunchTemplate() terra.ListValue[ComputeResourcesLaunchTemplateAttributes]
func (ComputeResourcesAttributes) MaxVcpus ¶
func (cr ComputeResourcesAttributes) MaxVcpus() terra.NumberValue
func (ComputeResourcesAttributes) MinVcpus ¶
func (cr ComputeResourcesAttributes) MinVcpus() terra.NumberValue
func (ComputeResourcesAttributes) SecurityGroupIds ¶
func (cr ComputeResourcesAttributes) SecurityGroupIds() terra.SetValue[terra.StringValue]
func (ComputeResourcesAttributes) SpotIamFleetRole ¶
func (cr ComputeResourcesAttributes) SpotIamFleetRole() terra.StringValue
func (ComputeResourcesAttributes) Subnets ¶
func (cr ComputeResourcesAttributes) Subnets() terra.SetValue[terra.StringValue]
func (ComputeResourcesAttributes) Tags ¶
func (cr ComputeResourcesAttributes) Tags() terra.MapValue[terra.StringValue]
func (ComputeResourcesAttributes) Type ¶
func (cr ComputeResourcesAttributes) Type() terra.StringValue
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 (ec ComputeResourcesEc2ConfigurationAttributes) ImageIdOverride() terra.StringValue
func (ComputeResourcesEc2ConfigurationAttributes) ImageType ¶
func (ec ComputeResourcesEc2ConfigurationAttributes) ImageType() terra.StringValue
func (ComputeResourcesEc2ConfigurationAttributes) InternalRef ¶
func (ec ComputeResourcesEc2ConfigurationAttributes) InternalRef() (terra.Reference, error)
func (ComputeResourcesEc2ConfigurationAttributes) InternalTokens ¶
func (ec ComputeResourcesEc2ConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ComputeResourcesEc2ConfigurationAttributes) InternalWithRef ¶
func (ec ComputeResourcesEc2ConfigurationAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesEc2ConfigurationAttributes
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 (lt ComputeResourcesLaunchTemplateAttributes) InternalRef() (terra.Reference, error)
func (ComputeResourcesLaunchTemplateAttributes) InternalTokens ¶
func (lt ComputeResourcesLaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ComputeResourcesLaunchTemplateAttributes) InternalWithRef ¶
func (lt ComputeResourcesLaunchTemplateAttributes) InternalWithRef(ref terra.Reference) ComputeResourcesLaunchTemplateAttributes
func (ComputeResourcesLaunchTemplateAttributes) LaunchTemplateId ¶
func (lt ComputeResourcesLaunchTemplateAttributes) LaunchTemplateId() terra.StringValue
func (ComputeResourcesLaunchTemplateAttributes) LaunchTemplateName ¶
func (lt ComputeResourcesLaunchTemplateAttributes) LaunchTemplateName() terra.StringValue
func (ComputeResourcesLaunchTemplateAttributes) Version ¶
func (lt ComputeResourcesLaunchTemplateAttributes) Version() terra.StringValue
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 ¶
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 (ec EksConfigurationAttributes) InternalWithRef(ref terra.Reference) EksConfigurationAttributes
func (EksConfigurationAttributes) KubernetesNamespace ¶
func (ec EksConfigurationAttributes) KubernetesNamespace() terra.StringValue
type EksConfigurationState ¶
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 (*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) Dependencies ¶
func (abce *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.