import * as core from "@terrascript/core"; export interface PullThroughCacheRuleArgs extends core.ResourceArgs { /** * (Required, Forces new resource) The repository name prefix to use when caching images from the sourc * e registry. */ ecrRepositoryPrefix: string | core.StringOut; /** * (Required, Forces new resource) The registry URL of the upstream public registry to use as the sourc * e. */ upstreamRegistryUrl: string | core.StringOut; } export class PullThroughCacheRule extends core.Resource { /** * (Required, Forces new resource) The repository name prefix to use when caching images from the sourc * e registry. */ @core.attr(String) public ecrRepositoryPrefix!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The registry ID where the repository was created. */ @core.attr(String, { computed: true }) public registryId!: string | core.StringOut; /** * (Required, Forces new resource) The registry URL of the upstream public registry to use as the sourc * e. */ @core.attr(String) public upstreamRegistryUrl!: string | core.StringOut; constructor(name: string, args?: PullThroughCacheRuleArgs) { super(name, "aws_ecr_pull_through_cache_rule", args); } public override getNamespace(): string { return "aws_ecr"; } }