aws_s3_object

Nivis Nix constructor for the aws_s3_object 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,
  bucket,
  key,
  acl ? null,
  bucket_key_enabled ? null,
  cache_control ? null,
  checksum_algorithm ? null,
  content ? null,
  content_base64 ? null,
  content_disposition ? null,
  content_encoding ? null,
  content_language ? null,
  content_type ? null,
  etag ? null,
  force_destroy ? null,
  id ? null,
  kms_key_id ? null,
  metadata ? null,
  object_lock_event_hold ? null,
  object_lock_event_hold_duration_days ? null,
  object_lock_event_hold_duration_years ? null,
  object_lock_legal_hold_status ? null,
  object_lock_mode ? null,
  object_lock_retain_until_date ? null,
  region ? null,
  server_side_encryption ? null,
  source ? null,
  source_hash ? null,
  storage_class ? null,
  tags ? null,
  tags_all ? null,
  website_redirect ? null,
  override_provider ? null,
  overrides ? {}
}
Required arguments
  • bucket
  • key
Optional arguments
  • acl (defaults to null)
  • bucket_key_enabled (defaults to null)
  • cache_control (defaults to null)
  • checksum_algorithm (defaults to null)
  • content (defaults to null)
  • content_base64 (defaults to null)
  • content_disposition (defaults to null)
  • content_encoding (defaults to null)
  • content_language (defaults to null)
  • content_type (defaults to null)
  • etag (defaults to null)
  • force_destroy (defaults to null)
  • id (defaults to null)
  • kms_key_id (defaults to null)
  • metadata (defaults to null)
  • object_lock_event_hold (defaults to null)
  • object_lock_event_hold_duration_days (defaults to null)
  • object_lock_event_hold_duration_years (defaults to null)
  • object_lock_legal_hold_status (defaults to null)
  • object_lock_mode (defaults to null)
  • object_lock_retain_until_date (defaults to null)
  • region (defaults to null)
  • server_side_encryption (defaults to null)
  • source (defaults to null)
  • source_hash (defaults to null)
  • storage_class (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • website_redirect (defaults to null)
  • override_provider (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • checksum_crc32
  • checksum_crc32c
  • checksum_crc64nvme
  • checksum_sha1
  • checksum_sha256
  • version_id
Example
aws_s3_object {
  name = "s3_object";
  bucket = …;  # required
  key = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.