aws_db_snapshotNivis Nix constructor for the aws_db_snapshot resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
db_instance_identifier,
db_snapshot_identifier,
id ? null,
region ? null,
shared_accounts ? null,
tags ? null,
tags_all ? null,
timeouts ? null,
overrides ? {}
}Required arguments
db_instance_identifierdb_snapshot_identifier
Optional arguments
id(defaults tonull)region(defaults tonull)shared_accounts(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
allocated_storageavailability_zonedb_snapshot_arnencryptedengineengine_versioniopskms_key_idlicense_modeloption_group_nameportsnapshot_typesource_db_snapshot_identifiersource_regionstatusstorage_typevpc_id
Example
aws_db_snapshot {
name = "db_snapshot";
db_instance_identifier = …; # required
db_snapshot_identifier = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.