aws_ecr_pull_through_cache_rule

Nivis Nix constructor for the aws_ecr_pull_through_cache_rule 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,
  ecr_repository_prefix,
  upstream_registry_url,
  credential_arn ? null,
  custom_role_arn ? null,
  id ? null,
  region ? null,
  upstream_repository_prefix ? null,
  overrides ? {}
}
Required arguments
  • ecr_repository_prefix
  • upstream_registry_url
Optional arguments
  • credential_arn (defaults to null)
  • custom_role_arn (defaults to null)
  • id (defaults to null)
  • region (defaults to null)
  • upstream_repository_prefix (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • registry_id
Example
aws_ecr_pull_through_cache_rule {
  name = "ecr_pull_through_cache_rule";
  ecr_repository_prefix = …;  # required
  upstream_registry_url = …;  # required
}

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