// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/ecr_pull_through_cache_rule aws_ecr_pull_through_cache_rule}
*/
export class EcrPullThroughCacheRule extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_ecr_pull_through_cache_rule";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ecr_pull_through_cache_rule aws_ecr_pull_through_cache_rule} Resource
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options EcrPullThroughCacheRuleConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_ecr_pull_through_cache_rule',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._ecrRepositoryPrefix = config.ecrRepositoryPrefix;
        this._upstreamRegistryUrl = config.upstreamRegistryUrl;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // ecr_repository_prefix - computed: false, optional: false, required: true
    _ecrRepositoryPrefix;
    get ecrRepositoryPrefix() {
        return this.getStringAttribute('ecr_repository_prefix');
    }
    set ecrRepositoryPrefix(value) {
        this._ecrRepositoryPrefix = value;
    }
    // Temporarily expose input value. Use with caution.
    get ecrRepositoryPrefixInput() {
        return this._ecrRepositoryPrefix;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // registry_id - computed: true, optional: false, required: false
    get registryId() {
        return this.getStringAttribute('registry_id');
    }
    // upstream_registry_url - computed: false, optional: false, required: true
    _upstreamRegistryUrl;
    get upstreamRegistryUrl() {
        return this.getStringAttribute('upstream_registry_url');
    }
    set upstreamRegistryUrl(value) {
        this._upstreamRegistryUrl = value;
    }
    // Temporarily expose input value. Use with caution.
    get upstreamRegistryUrlInput() {
        return this._upstreamRegistryUrl;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            ecr_repository_prefix: cdktf.stringToTerraform(this._ecrRepositoryPrefix),
            upstream_registry_url: cdktf.stringToTerraform(this._upstreamRegistryUrl),
        };
    }
}
//# sourceMappingURL=ecr-pull-through-cache-rule.js.map