Pull Through Cache Rule Args
data class PullThroughCacheRuleArgs(val ecrRepositoryPrefix: Output<String>? = null, val upstreamRegistryUrl: Output<String>? = null) : ConvertibleToJava<PullThroughCacheRuleArgs>
Provides an Elastic Container Registry Pull Through Cache Rule. More information about pull through cache rules, including the set of supported upstream repositories, see Using pull through cache rules.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.PullThroughCacheRule;
import com.pulumi.aws.ecr.PullThroughCacheRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new PullThroughCacheRule("example", PullThroughCacheRuleArgs.builder()
.ecrRepositoryPrefix("ecr-public")
.upstreamRegistryUrl("public.ecr.aws")
.build());
}
}
Content copied to clipboard
Import
Use the ecr_repository_prefix
to import a Pull Through Cache Rule. For example
$ pulumi import aws:ecr/pullThroughCacheRule:PullThroughCacheRule example ecr-public
Content copied to clipboard