PullThroughCacheRuleArgs

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());
}
}

Import

Use the ecr_repository_prefix to import a Pull Through Cache Rule. For example

$ pulumi import aws:ecr/pullThroughCacheRule:PullThroughCacheRule example ecr-public

Constructors

Link copied to clipboard
constructor(ecrRepositoryPrefix: Output<String>? = null, upstreamRegistryUrl: Output<String>? = null)

Properties

Link copied to clipboard
val ecrRepositoryPrefix: Output<String>? = null

The repository name prefix to use when caching images from the source registry.

Link copied to clipboard
val upstreamRegistryUrl: Output<String>? = null

The registry URL of the upstream public registry to use as the source.

Functions

Link copied to clipboard
open override fun toJava(): PullThroughCacheRuleArgs