lambda library
AWS Lambda.
Classes
-
AppConstant<
T> -
A value the Stack hands to application code as a
static constin 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 constmembers 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. - AwsLambdaAlias
-
Factory wrapper for
aws_lambda_alias. - AwsLambdaCapacityProvider
-
Factory wrapper for
aws_lambda_capacity_provider. - AwsLambdaCodeSigningConfig
-
Factory wrapper for
aws_lambda_code_signing_config. - AwsLambdaEventSourceMapping
-
Factory wrapper for
aws_lambda_event_source_mapping. - AwsLambdaFunction
-
Factory wrapper for
aws_lambda_function. - AwsLambdaFunctionEventInvokeConfig
-
Factory wrapper for
aws_lambda_function_event_invoke_config. - AwsLambdaFunctionRecursionConfig
-
Factory wrapper for
aws_lambda_function_recursion_config. - AwsLambdaFunctionScalingConfig
-
Factory wrapper for
aws_lambda_function_scaling_config. - AwsLambdaFunctionUrl
-
Factory wrapper for
aws_lambda_function_url. - AwsLambdaInvocation
-
Factory wrapper for
aws_lambda_invocation. - AwsLambdaLayerVersion
-
Factory wrapper for
aws_lambda_layer_version. - AwsLambdaLayerVersionPermission
-
Factory wrapper for
aws_lambda_layer_version_permission. - AwsLambdaPermission
-
Factory wrapper for
aws_lambda_permission. - AwsLambdaProvisionedConcurrencyConfig
-
Factory wrapper for
aws_lambda_provisioned_concurrency_config. - AwsLambdaResourcePolicy
-
Factory wrapper for
aws_lambda_resource_policy. - AwsLambdaRuntimeManagementConfig
-
Factory wrapper for
aws_lambda_runtime_management_config. - DartDefineOutput
-
An
outputwhose value is the client build's--dart-definefile, registered withStack.addDartDefineOutput. - Data
-
Base of every user-instantiable Terraform
datablock. - DataAwsLambdaAlias
-
Factory wrapper for
aws_lambda_alias. - DataAwsLambdaCodeSigningConfig
-
Factory wrapper for
aws_lambda_code_signing_config. - DataAwsLambdaFunction
-
Factory wrapper for
aws_lambda_function. - DataAwsLambdaFunctions
-
Factory wrapper for
aws_lambda_functions. - DataAwsLambdaFunctionUrl
-
Factory wrapper for
aws_lambda_function_url. - DataAwsLambdaInvocation
-
Factory wrapper for
aws_lambda_invocation. - DataAwsLambdaLayerVersion
-
Factory wrapper for
aws_lambda_layer_version. -
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_changescovers: every attribute, or the listed ones. - InvalidDartDefineOutput
-
An output of
Stack.addDartDefineOutputthat 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
lifecycleblock Terraform rejects: a data source (or one of its attributes) inreplaceTriggeredBy,allinside IgnoreChanges.of, or a condition with an empty error message. - InvalidMoveTarget
-
A
movedblock whosetonames no resource of the Stack. - InvalidTimeout
-
A negative
timeoutsduration. - LambdaAliasRoutingConfig
-
Typed helper for the
routing_configblock ofaws_lambda_alias(derived from provider schema). - LambdaCapacityProviderPermissionsConfig
-
Typed helper for the
permissions_configblock ofaws_lambda_capacity_provider(derived from provider schema). - LambdaCapacityProviderVpcConfig
-
Typed helper for the
vpc_configblock ofaws_lambda_capacity_provider(derived from provider schema). - LambdaCodeSigningConfigAllowedPublishers
-
Typed helper for the
allowed_publishersblock ofaws_lambda_code_signing_config(derived from provider schema). - LambdaCodeSigningConfigPolicies
-
Typed helper for the
policiesblock ofaws_lambda_code_signing_config(derived from provider schema). - LambdaEventSourceMappingAccessConfig
-
Typed helper for the
amazon_managed_kafka_event_source_config.schema_registry_config.access_configblock ofaws_lambda_event_source_mapping(derived from provider schema). Shared by every block of this shape in the resource. - LambdaEventSourceMappingAmazonManagedKafkaEventSourceConfig
-
Typed helper for the
amazon_managed_kafka_event_source_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingAmazonManagedKafkaEventSourceConfigChoice
-
The LambdaEventSourceMappingManagedKafkaEventSourceConfig.amazonManagedKafkaEventSourceConfig choice: sets
amazon_managed_kafka_event_source_config. - LambdaEventSourceMappingDestinationConfig
-
Typed helper for the
destination_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingDocumentDbEventSourceConfig
-
Typed helper for the
document_db_event_source_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingEventSource
-
Exactly one of
event_source_arn,self_managed_event_sourceonaws_lambda_event_source_mapping: the provider rejects none and more than one, so each variant sets one of them. - LambdaEventSourceMappingEventSourceArn
-
The LambdaEventSourceMappingEventSource.eventSourceArn choice: sets
event_source_arn. - LambdaEventSourceMappingFilter
-
Typed helper for the
filter_criteria.filterblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingFilterCriteria
-
Typed helper for the
filter_criteriablock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingManagedKafkaEventSourceConfig
-
At most one of
amazon_managed_kafka_event_source_config,self_managed_kafka_event_source_configonaws_lambda_event_source_mapping: the provider rejects more than one, so each variant sets one of them and a null choice sets none. - LambdaEventSourceMappingMetricsConfig
-
Typed helper for the
metrics_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingOnFailure
-
Typed helper for the
destination_config.on_failureblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingProvisionedPollerConfig
-
Typed helper for the
provisioned_poller_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingScalingConfig
-
Typed helper for the
scaling_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingSchemaRegistryConfig
-
Typed helper for the
amazon_managed_kafka_event_source_config.schema_registry_configblock ofaws_lambda_event_source_mapping(derived from provider schema). Shared by every block of this shape in the resource. - LambdaEventSourceMappingSchemaValidationConfig
-
Typed helper for the
amazon_managed_kafka_event_source_config.schema_registry_config.schema_validation_configblock ofaws_lambda_event_source_mapping(derived from provider schema). Shared by every block of this shape in the resource. - LambdaEventSourceMappingSelfManagedEventSource
-
Typed helper for the
self_managed_event_sourceblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingSelfManagedEventSourceChoice
-
The LambdaEventSourceMappingEventSource.selfManagedEventSource choice: sets
self_managed_event_source. - LambdaEventSourceMappingSelfManagedKafkaEventSourceConfig
-
Typed helper for the
self_managed_kafka_event_source_configblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaEventSourceMappingSelfManagedKafkaEventSourceConfigChoice
-
The LambdaEventSourceMappingManagedKafkaEventSourceConfig.selfManagedKafkaEventSourceConfig choice: sets
self_managed_kafka_event_source_config. - LambdaEventSourceMappingSourceAccessConfiguration
-
Typed helper for the
source_access_configurationblock ofaws_lambda_event_source_mapping(derived from provider schema). - LambdaFunctionCapacityProviderConfig
-
Typed helper for the
capacity_provider_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionCode
-
Exactly one of
filename,image_uri,s3_bucketonaws_lambda_function: the provider rejects none and more than one, so each variant sets one of them. - LambdaFunctionCodeFilename
-
The LambdaFunctionCode.filename choice: sets
filename. - LambdaFunctionCodeImageUri
-
The LambdaFunctionCode.imageUri choice: sets
image_uri. - LambdaFunctionCodeS3Bucket
-
The LambdaFunctionCode.s3Bucket choice: sets
s3_bucket. - LambdaFunctionDeadLetterConfig
-
Typed helper for the
dead_letter_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionDurableConfig
-
Typed helper for the
durable_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionEnvironment
-
Typed helper for the
environmentblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionEphemeralStorage
-
Typed helper for the
ephemeral_storageblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionEventInvokeConfigDestinationConfig
-
Typed helper for the
destination_configblock ofaws_lambda_function_event_invoke_config(derived from provider schema). - LambdaFunctionEventInvokeConfigOnFailure
-
Typed helper for the
destination_config.on_failureblock ofaws_lambda_function_event_invoke_config(derived from provider schema). - LambdaFunctionEventInvokeConfigOnSuccess
-
Typed helper for the
destination_config.on_successblock ofaws_lambda_function_event_invoke_config(derived from provider schema). - LambdaFunctionFileSystemConfig
-
Typed helper for the
file_system_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionImageConfig
-
Typed helper for the
image_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionLambdaManagedInstancesCapacityProviderConfig
-
Typed helper for the
capacity_provider_config.lambda_managed_instances_capacity_provider_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionLoggingConfig
-
Typed helper for the
logging_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionScalingConfig
-
Typed helper for the
function_scaling_configblock ofaws_lambda_function_scaling_config(derived from provider schema). - LambdaFunctionSnapStart
-
Typed helper for the
snap_startblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionTenancyConfig
-
Typed helper for the
tenancy_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionTracingConfig
-
Typed helper for the
tracing_configblock ofaws_lambda_function(derived from provider schema). - LambdaFunctionUrlCors
-
Typed helper for the
corsblock ofaws_lambda_function_url(derived from provider schema). - LambdaFunctionVpcConfig
-
Typed helper for the
vpc_configblock ofaws_lambda_function(derived from provider schema). - LambdaPermissionStatementId
-
At most one of
statement_id,statement_id_prefixonaws_lambda_permission: the provider rejects more than one, so each variant sets one of them and a null choice sets none. - LambdaPermissionStatementIdChoice
-
The LambdaPermissionStatementId.statementId choice: sets
statement_id. - LambdaPermissionStatementIdPrefix
-
The LambdaPermissionStatementId.statementIdPrefix choice: sets
statement_id_prefix. - LifecycleCondition
-
A
preconditionorpostconditionblock: 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 (
googleforgoogle_pubsub_topic), the one itsprovidermeta-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.replaceTriggeredBylists: a resource of the Stack or an attribute getter of one.Resourceand TfRef implement it; synth reports a data source or a data-source attribute as anInvalidLifecycle. - 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, andLocalBackend; anything else implements this interface in the caller. TheStackonly stores the value and exposes a discriminator for synth'sterraform { backend ... }emitter. - StackProvider
-
Coordination interface between
Stack(in this package) and concrete providers (e.g.GoogleProviderinterradart_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(...)ormap(...). - 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 withStack.addOutput. - TfPrimitiveType
-
string,number,boolorany. -
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.variableorvar.<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.refwhose 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
resourceblock or adatablock in Terraform JSON.
Extension Types
- LambdaCodeSigningConfigUntrustedArtifactOnDeployment
-
untrusted_artifact_on_deployment— derived from the provider schema description. - LambdaEventSourceMappingAccessConfigType
-
type— derived from the provider schema description. - LambdaEventSourceMappingAttribute
-
attribute— derived from the provider schema description. - LambdaEventSourceMappingEventRecordFormat
-
event_record_format— derived from the provider schema description. - LambdaEventSourceMappingFullDocument
-
full_document— derived from the provider schema description. - LambdaEventSourceMappingFunctionResponseTypes
-
Lambda Event Source Mapping Function Response enum for
function_response_types. - LambdaEventSourceMappingMetrics
-
metrics— derived from the provider schema description. - LambdaEventSourceMappingStartingPosition
-
Lambda Event Source Mapping Starting enum for
starting_position. - LambdaEventSourceMappingType
-
type— derived from the provider schema description. - LambdaFunctionApplicationLogLevel
-
application_log_level— derived from the provider schema description. - LambdaFunctionApplyOn
-
apply_on— derived from the provider schema description. - LambdaFunctionArchitectures
-
Lambda Function enum for
architectures. - LambdaFunctionLogFormat
-
log_format— derived from the provider schema description. - LambdaFunctionMode
-
mode— derived from the provider schema description. - LambdaFunctionPackageType
-
Lambda Function Package enum for
package_type. - LambdaFunctionPublishTo
-
Lambda Function Publish enum for
publish_to. - LambdaFunctionRecursionConfigRecursiveLoop
-
Lambda Function Recursion Config Recursive enum for
recursive_loop. - LambdaFunctionRuntime
-
Lambda Function enum for
runtime. - LambdaFunctionSystemLogLevel
-
system_log_level— derived from the provider schema description. - LambdaFunctionTenantIsolationMode
-
tenant_isolation_mode— derived from the provider schema description. - LambdaFunctionUrlAuthorizationType
-
Lambda Function Url Authorization enum for
authorization_type. - LambdaFunctionUrlInvokeMode
-
Lambda Function Url Invoke enum for
invoke_mode. - LambdaInvocationLifecycleScope
-
Lambda Invocation Lifecycle enum for
lifecycle_scope. - LambdaLayerVersionCompatibleArchitectures
-
Lambda Layer Version Compatible enum for
compatible_architectures. - LambdaLayerVersionCompatibleRuntimes
-
Lambda Layer Version Compatible enum for
compatible_runtimes. - LambdaPermissionFunctionUrlAuthType
-
Lambda Permission Function Url Auth enum for
function_url_auth_type. - LambdaRuntimeManagementConfigUpdateRuntimeOn
-
Lambda Runtime Management Config Update Runtime enum for
update_runtime_on. - OutputEnvironment
-
The environment
Stack.outputEnvironmentreturns: 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").
Exceptions / Errors
- DuplicateModuleError
-
A
ModuleCallregistered twice under one name. - DuplicateResourceError
-
Thrown by
Stack.addwhen an entry with the same(kind, terraformType, localName)triple is registered twice. - SynthException
-
Thrown by
Stack.synth()andStack.writeTo()when the Stack has one or more SynthIssues. Nothing is written.