autoscaling library

AWS EC2 Auto Scaling and launch configurations.

Classes

AppConstant<T>
A value the Stack hands to application code as a static const in the generated AppExports file — known when synth runs, so the app compiles against it.
AppExports
Where synth writes the Dart file application code imports: the Stack's constants, as the static const members of <name>Constants, and a typed reader of its Terraform outputs, <name>Outputs.
AttributeRef<T>
Public for sealed pattern matching, but constructor is private — only TfRef.attribute() may construct instances.
AutoscalingAttachmentTarget
Exactly one of elb, lb_target_group_arn on aws_autoscaling_attachment: the provider rejects none and more than one, so each variant sets one of them.
AutoscalingAttachmentTargetElb
The AutoscalingAttachmentTarget.elb choice: sets elb.
AutoscalingAttachmentTargetLbTargetGroupArn
The AutoscalingAttachmentTarget.lbTargetGroupArn choice: sets lb_target_group_arn.
AutoscalingGroupAcceleratorCount
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.accelerator_count block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupAcceleratorTotalMemoryMib
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.accelerator_total_memory_mib block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupAlarmSpecification
Typed helper for the instance_refresh.preferences.alarm_specification block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupAvailabilityZoneDistribution
Typed helper for the availability_zone_distribution block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupBaselineEbsBandwidthMbps
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.baseline_ebs_bandwidth_mbps block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupCapacityReservationSpecification
Typed helper for the capacity_reservation_specification block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupCapacityReservationTarget
At most one of capacity_reservation_ids, capacity_reservation_resource_group_arns on the capacity_reservation_specification.capacity_reservation_target block of aws_autoscaling_group: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingGroupCapacityReservationTargetCapacityReservationIds
The AutoscalingGroupCapacityReservationTarget.capacityReservationIds choice: sets capacity_reservation_ids.
AutoscalingGroupCapacityReservationTargetCapacityReservationResourceGroupArns
The AutoscalingGroupCapacityReservationTarget.capacityReservationResourceGroupArns choice: sets capacity_reservation_resource_group_arns.
AutoscalingGroupIdentifier
At most one of id, name on the launch_template block of aws_autoscaling_group: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingGroupIdentifierId
The AutoscalingGroupIdentifier.id choice: sets id.
AutoscalingGroupIdentifierName
The AutoscalingGroupIdentifier.name choice: sets name.
AutoscalingGroupInitialLifecycleHook
Typed helper for the initial_lifecycle_hook block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceLifecyclePolicy
Typed helper for the instance_lifecycle_policy block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceMaintenancePolicy
Typed helper for the instance_maintenance_policy block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceRefresh
Typed helper for the instance_refresh block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceRequirements
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceReusePolicy
Typed helper for the warm_pool.instance_reuse_policy block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstancesDistribution
Typed helper for the mixed_instances_policy.instances_distribution block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupInstanceSource
Exactly one of launch_configuration, launch_template, mixed_instances_policy on aws_autoscaling_group: the provider rejects none and more than one, so each variant sets one of them.
AutoscalingGroupInstanceSourceLaunchConfiguration
The AutoscalingGroupInstanceSource.launchConfiguration choice: sets launch_configuration.
AutoscalingGroupInstanceSourceLaunchTemplate
The AutoscalingGroupInstanceSource.launchTemplate choice: sets launch_template.
AutoscalingGroupInstanceSourceMixedInstancesPolicy
The AutoscalingGroupInstanceSource.mixedInstancesPolicy choice: sets mixed_instances_policy.
AutoscalingGroupLaunchTemplate
Typed helper for the launch_template block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupLaunchTemplateSpecification
Typed helper for the mixed_instances_policy.launch_template.launch_template_specification block of aws_autoscaling_group (derived from provider schema). Shared by every block of this shape in the resource.
AutoscalingGroupMemoryGibPerVcpu
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.memory_gib_per_vcpu block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupMemoryMib
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.memory_mib block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupMixedInstancesPolicy
Typed helper for the mixed_instances_policy block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupMixedInstancesPolicyLaunchTemplate
Typed helper for the mixed_instances_policy.launch_template block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupName
At most one of name, name_prefix on aws_autoscaling_group: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingGroupNameChoice
The AutoscalingGroupName.name choice: sets name.
AutoscalingGroupNamePrefix
The AutoscalingGroupName.namePrefix choice: sets name_prefix.
AutoscalingGroupNetworkBandwidthGbps
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.network_bandwidth_gbps block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupNetworkInterfaceCount
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.network_interface_count block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupOverride
Typed helper for the mixed_instances_policy.launch_template.override block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupPlacement
At most one of availability_zones, vpc_zone_identifier on aws_autoscaling_group: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingGroupPlacementAvailabilityZones
The AutoscalingGroupPlacement.availabilityZones choice: sets availability_zones.
AutoscalingGroupPlacementVpcZoneIdentifier
The AutoscalingGroupPlacement.vpcZoneIdentifier choice: sets vpc_zone_identifier.
AutoscalingGroupPreferences
Typed helper for the instance_refresh.preferences block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupRetentionTriggers
Typed helper for the instance_lifecycle_policy.retention_triggers block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupTag
Typed helper for the tag block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupTagTag
Typed helper for the tag block of aws_autoscaling_group_tag (derived from provider schema).
AutoscalingGroupTotalLocalStorageGb
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.total_local_storage_gb block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupTrafficSource
Typed helper for the traffic_source block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupVcpuCount
Typed helper for the mixed_instances_policy.launch_template.override.instance_requirements.vcpu_count block of aws_autoscaling_group (derived from provider schema).
AutoscalingGroupWarmPool
Typed helper for the warm_pool block of aws_autoscaling_group (derived from provider schema).
AutoscalingPolicyAdjustment
At most one of scaling_adjustment, step_adjustment on aws_autoscaling_policy: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingPolicyCustomizedCapacityMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.customized_capacity_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyCustomizedLoadMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.customized_load_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyCustomizedMetricSpecification
Typed helper for the target_tracking_configuration.customized_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyCustomizedScalingMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.customized_scaling_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyCustomizedScalingMetricSpecificationChoice
The AutoscalingPolicyScalingMetricSpecification.customizedScalingMetricSpecification choice: sets customized_scaling_metric_specification.
AutoscalingPolicyDimensions
Typed helper for the target_tracking_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensions block of aws_autoscaling_policy (derived from provider schema). Shared by every block of this shape in the resource.
AutoscalingPolicyMetric
Typed helper for the target_tracking_configuration.customized_metric_specification.metrics.metric_stat.metric block of aws_autoscaling_policy (derived from provider schema). Shared by every block of this shape in the resource.
AutoscalingPolicyMetricDataQueries
Typed helper for the predictive_scaling_configuration.metric_specification.customized_capacity_metric_specification.metric_data_queries block of aws_autoscaling_policy (derived from provider schema). Shared by every block of this shape in the resource.
AutoscalingPolicyMetricDataQueriesMetricStat
Typed helper for the predictive_scaling_configuration.metric_specification.customized_capacity_metric_specification.metric_data_queries.metric_stat block of aws_autoscaling_policy (derived from provider schema). Shared by every block of this shape in the resource.
AutoscalingPolicyMetricDimension
Typed helper for the target_tracking_configuration.customized_metric_specification.metric_dimension block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyMetrics
Typed helper for the target_tracking_configuration.customized_metric_specification.metrics block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyMetricStat
Typed helper for the target_tracking_configuration.customized_metric_specification.metrics.metric_stat block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredefinedLoadMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.predefined_load_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredefinedMetricPairSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.predefined_metric_pair_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredefinedMetricSpecification
Typed helper for the target_tracking_configuration.predefined_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredefinedScalingMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification.predefined_scaling_metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredefinedScalingMetricSpecificationChoice
The AutoscalingPolicyScalingMetricSpecification.predefinedScalingMetricSpecification choice: sets predefined_scaling_metric_specification.
AutoscalingPolicyPredictiveScalingConfiguration
Typed helper for the predictive_scaling_configuration block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyPredictiveScalingConfigurationMetricSpecification
Typed helper for the predictive_scaling_configuration.metric_specification block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyScalingAdjustment
The AutoscalingPolicyAdjustment.scalingAdjustment choice: sets scaling_adjustment.
AutoscalingPolicyScalingMetricSpecification
At most one of customized_scaling_metric_specification, predefined_scaling_metric_specification on the predictive_scaling_configuration.metric_specification block of aws_autoscaling_policy: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingPolicyStepAdjustment
Typed helper for the step_adjustment block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyStepAdjustmentChoice
The AutoscalingPolicyAdjustment.stepAdjustment choice: sets step_adjustment.
AutoscalingPolicyTargetTrackingConfiguration
Typed helper for the target_tracking_configuration block of aws_autoscaling_policy (derived from provider schema).
AutoscalingPolicyTargetTrackingConfigurationCustomizedMetricSpecification
The AutoscalingPolicyTargetTrackingConfigurationMetricSpecification.customizedMetricSpecification choice: sets customized_metric_specification.
AutoscalingPolicyTargetTrackingConfigurationMetricSpecification
At most one of customized_metric_specification, predefined_metric_specification on the target_tracking_configuration block of aws_autoscaling_policy: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
AutoscalingPolicyTargetTrackingConfigurationPredefinedMetricSpecification
The AutoscalingPolicyTargetTrackingConfigurationMetricSpecification.predefinedMetricSpecification choice: sets predefined_metric_specification.
AutoscalingTrafficSourceAttachmentTrafficSource
Typed helper for the traffic_source block of aws_autoscaling_traffic_source_attachment (derived from provider schema).
AwsAutoscalingAttachment
Factory wrapper for aws_autoscaling_attachment.
AwsAutoscalingGroup
Factory wrapper for aws_autoscaling_group.
AwsAutoscalingGroupTag
Factory wrapper for aws_autoscaling_group_tag.
AwsAutoscalingLifecycleHook
Factory wrapper for aws_autoscaling_lifecycle_hook.
AwsAutoscalingNotification
Factory wrapper for aws_autoscaling_notification.
AwsAutoscalingPolicy
Factory wrapper for aws_autoscaling_policy.
AwsAutoscalingSchedule
Factory wrapper for aws_autoscaling_schedule.
AwsAutoscalingTrafficSourceAttachment
Factory wrapper for aws_autoscaling_traffic_source_attachment.
AwsLaunchConfiguration
Factory wrapper for aws_launch_configuration.
DartDefineOutput
An output whose value is the client build's --dart-define file, registered with Stack.addDartDefineOutput.
Data
Base of every user-instantiable Terraform data block.
DataAutoscalingGroupsFilter
Typed helper for the filter block of aws_autoscaling_groups (derived from provider schema).
DataAwsAutoscalingGroup
Factory wrapper for aws_autoscaling_group.
DataAwsAutoscalingGroups
Factory wrapper for aws_autoscaling_groups.
DataAwsLaunchConfiguration
Factory wrapper for aws_launch_configuration.
DataRef<T>
Public for sealed pattern matching, but constructor is private — only TfRef.data() may construct instances.
EnvironmentConstant
The AppConstant.fromEnvironment choice.
GcsBackend
terraform { backend "gcs" { ... } } configuration.
IgnoreAllChanges
IgnoreChanges.all.
IgnoreAttributes
IgnoreChanges.of.
IgnoreChanges
What ignore_changes covers: every attribute, or the listed ones.
InvalidDartDefineOutput
An output of Stack.addDartDefineOutput that cannot carry what it names: an output that is not registered, is sensitive or has no environment value, two outputs read from one variable, or no output at all.
InvalidLifecycle
A lifecycle block Terraform rejects: a data source (or one of its attributes) in replaceTriggeredBy, all inside IgnoreChanges.of, or a condition with an empty error message.
InvalidMoveTarget
A moved block whose to names no resource of the Stack.
InvalidTimeout
A negative timeouts duration.
LaunchConfigurationEbsBlockDevice
Typed helper for the ebs_block_device block of aws_launch_configuration (derived from provider schema).
LaunchConfigurationEphemeralBlockDevice
Typed helper for the ephemeral_block_device block of aws_launch_configuration (derived from provider schema).
LaunchConfigurationMetadataOptions
Typed helper for the metadata_options block of aws_launch_configuration (derived from provider schema).
LaunchConfigurationName
At most one of name, name_prefix on aws_launch_configuration: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
LaunchConfigurationNameChoice
The LaunchConfigurationName.name choice: sets name.
LaunchConfigurationNamePrefix
The LaunchConfigurationName.namePrefix choice: sets name_prefix.
LaunchConfigurationRootBlockDevice
Typed helper for the root_block_device block of aws_launch_configuration (derived from provider schema).
LaunchConfigurationUserData
At most one of user_data, user_data_base64 on aws_launch_configuration: the provider rejects more than one, so each variant sets one of them and a null choice sets none.
LaunchConfigurationUserDataBase64
The LaunchConfigurationUserData.userDataBase64 choice: sets user_data_base64.
LaunchConfigurationUserDataChoice
The LaunchConfigurationUserData.userData choice: sets user_data.
LifecycleCondition
A precondition or postcondition block: Terraform fails the plan (LifecycleCondition.pre) or the apply (LifecycleCondition.post) with errorMessage when condition is false.
LifecycleOptions
lifecycle { ... } block on a resource.
LocalBackend
terraform { backend "local" { ... } } configuration.
MissingProvider
A block needs a provider configuration the Stack does not register: the provider its type implies (google for google_pubsub_topic), the one its provider meta-argument names, or one a module call passes on.
ModuleCall
A module "<localName>" { ... } call as a Dart value.
NoProviders
The Stack registers no provider, but declares resources or data sources.
ProviderConflict
Two provider registrations Terraform rejects together: two defaults of one name, a repeated alias, an alias that is not an identifier, or configurations of one name with different source / version constraints.
RefConstant<T>
The AppConstant.ref choice.
ReplaceTrigger
What lifecycle.replaceTriggeredBy lists: a resource of the Stack or an attribute getter of one. Resource and TfRef implement it; synth reports a data source or a data-source attribute as an InvalidLifecycle.
Resource
Base of every user-instantiable Terraform resource.
ResourceRef
Public for sealed pattern matching, but constructor is private — only TfRef.resource() may construct instances.
S3Backend
terraform { backend "s3" { ... } } configuration.
Sensitive<T>
What an argument Terraform marks sensitive takes: a variable, an expression or an attribute getter — a value Terraform resolves, never a Dart literal that would be written into main.tf.json.
SensitiveLiteral
A sensitive field is set to a literal, which would write the secret in plain text into main.tf.json.
Stack
User-extended IaC composition root.
StackBackend
Lightweight backend hook. Core ships GcsBackend, S3Backend, and LocalBackend; anything else implements this interface in the caller. The Stack only stores the value and exposes a discriminator for synth's terraform { backend ... } emitter.
StackProvider
Coordination interface between Stack (in this package) and concrete providers (e.g. GoogleProvider in terradart_google). Concrete providers implement every getter using their baked-in constants from Stage 2 codegen.
SynthIssue
One reason a Stack cannot be synthesized.
SynthResult
Bundle returned by StackSynth.synth.
TfAddressed
Anything that exposes a Terraform address, e.g. google_pubsub_topic.orders.
TfArg<T>
A Terraform argument: a Dart-side literal, a reference to another block's attribute (TfRef), a variable or a raw expression.
TfArgExpression<T>
A raw Terraform expression — the tf.json template string, verbatim.
TfArgLiteral<T>
TfArgVariable<T>
TfCollectionType
list(...), set(...) or map(...).
TfMoved
One moved { from = ... to = ... } block: the state object at from now belongs to the resource at to, so a rename does not become a destroy-and-create.
TfObjectType
object({ ... }).
TfOptionalType
optional(<type>[, <default>]).
TfOutput<T>
An output "<name>" { value = ... } block, registered with Stack.addOutput.
TfPrimitiveType
string, number, bool or any.
TfRef<T>
A Terraform-side reference: an attribute of a resource (AttributeRef) or a data source (DataRef), or a whole resource (ResourceRef).
TfTimeouts
timeouts { ... } on a resource or data source: how long Terraform waits for each operation before giving up.
TfTupleType
tuple([...]).
TfType
A Terraform type constraint: string, list(number), object({ name = string }).
TfVariable
One variable "<name>" { ... } declaration.
UndeclaredVariable
A TfArg.variable or var.<name> in an expression names a variable the Stack does not declare.
UnregisteredReference
A block references another block that was never registered on the Stack: built, but not passed to add(...) / addModule(...).
UnresolvableConstant
An AppConstant.ref whose value is not known at synth: the attribute is not set to a literal, is sensitive, does not match the constant's type, or belongs to a block that is not registered.
ValueConstant<T>
The AppConstant.value choice.

Enums

ResourceKind
Whether a Stack entry is a resource block or a data block in Terraform JSON.

Extension Types

AutoscalingGroupAcceleratorManufacturers
accelerator_manufacturers — derived from the provider schema description.
AutoscalingGroupAcceleratorNames
accelerator_names — derived from the provider schema description.
AutoscalingGroupAcceleratorTypes
accelerator_types — derived from the provider schema description.
AutoscalingGroupBareMetal
bare_metal — derived from the provider schema description.
AutoscalingGroupBurstablePerformance
burstable_performance — derived from the provider schema description.
AutoscalingGroupCapacityDistributionStrategy
capacity_distribution_strategy — derived from the provider schema description.
AutoscalingGroupCapacityReservationPreference
capacity_reservation_preference — derived from the provider schema description.
AutoscalingGroupCpuManufacturers
cpu_manufacturers — derived from the provider schema description.
AutoscalingGroupDefaultResult
default_result — derived from the provider schema description.
AutoscalingGroupDesiredCapacityType
Autoscaling Group Desired Capacity enum for desired_capacity_type.
AutoscalingGroupInstanceGenerations
instance_generations — derived from the provider schema description.
AutoscalingGroupLifecycleTransition
lifecycle_transition — derived from the provider schema description.
AutoscalingGroupLocalStorage
local_storage — derived from the provider schema description.
AutoscalingGroupLocalStorageTypes
local_storage_types — derived from the provider schema description.
AutoscalingGroupPoolState
pool_state — derived from the provider schema description.
AutoscalingGroupScaleInProtectedInstances
scale_in_protected_instances — derived from the provider schema description.
AutoscalingGroupStandbyInstances
standby_instances — derived from the provider schema description.
AutoscalingGroupStrategy
strategy — derived from the provider schema description.
AutoscalingGroupTerminateHookAbandon
terminate_hook_abandon — derived from the provider schema description.
AutoscalingLifecycleHookDefaultResult
Autoscaling Lifecycle Hook Default enum for default_result.
AutoscalingLifecycleHookLifecycleTransition
Autoscaling Lifecycle Hook Lifecycle enum for lifecycle_transition.
AutoscalingPolicyMaxCapacityBreachBehavior
max_capacity_breach_behavior — derived from the provider schema description.
AutoscalingPolicyMode
mode — derived from the provider schema description.
AutoscalingPolicyPredefinedLoadMetricSpecificationPredefinedMetricType
predefined_metric_type — derived from the provider schema description.
AutoscalingPolicyPredefinedMetricPairSpecificationPredefinedMetricType
predefined_metric_type — derived from the provider schema description.
AutoscalingPolicyPredefinedScalingMetricSpecificationPredefinedMetricType
predefined_metric_type — derived from the provider schema description.
AutoscalingPolicyType
Autoscaling Policy enum for policy_type.
LaunchConfigurationHttpEndpoint
http_endpoint — derived from the provider schema description.
LaunchConfigurationHttpTokens
http_tokens — derived from the provider schema description.
OutputEnvironment
The environment Stack.outputEnvironment returns: each variable and its value, in registration order.
RefTo
A reference to a resource of type R, for an argument that names another resource (network, vpc_id, role_arn, ...).

Extensions

RefToList on TfArg<List<RefTo<R>>>
A list-valued reference argument (security_group_ids, subnet_ids): a literal list of RefTos, or one value that is the whole list (TfArg.variable('subnet_ids'), TfArg.expression(...)).
TerraformDurationExt on Duration
Converts a Dart Duration into a Terraform duration string ("604800s").

Constants

terradartManifestVariable → const String
The environment variable the terradart command sets to the file runStack and runEnvironments describe what they wrote in.

Functions

runEnvironments<E extends Enum>(List<String> args, List<E> environments, Stack build(E env), {String dir(E env)?, String? workspace(E env)?, List<String> backendConfig(E env)?}) → Future<void>
The entry point of a project with one Stack per environment. The environments are the members of an enum of the project's own — any names, each carrying its values — so the Stack takes a typed env and derives everything per environment from it, its backend included:
runStack(List<String> args, Stack build(), {String out = 'tf-out'}) → Future<void>
The entry point of a project with one Stack: writes it to out.

Exceptions / Errors

DuplicateModuleError
A ModuleCall registered twice under one name.
DuplicateResourceError
Thrown by Stack.add when an entry with the same (kind, terraformType, localName) triple is registered twice.
SynthException
Thrown by Stack.synth() and Stack.writeTo() when the Stack has one or more SynthIssues. Nothing is written.