getPullThroughCacheRule

The ECR Pull Through Cache Rule data source allows the upstream registry URL and registry ID to be retrieved for a Pull Through Cache Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.EcrFunctions;
import com.pulumi.aws.ecr.inputs.GetPullThroughCacheRuleArgs;
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) {
final var ecrPublic = EcrFunctions.getPullThroughCacheRule(GetPullThroughCacheRuleArgs.builder()
.ecrRepositoryPrefix("ecr-public")
.build());
}
}

Return

A collection of values returned by getPullThroughCacheRule.

Parameters

argument

A collection of arguments for invoking getPullThroughCacheRule.


Return

A collection of values returned by getPullThroughCacheRule.

See also

Parameters

ecrRepositoryPrefix

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


Return

A collection of values returned by getPullThroughCacheRule.

See also

Parameters

argument

Builder for com.pulumi.aws.ecr.kotlin.inputs.GetPullThroughCacheRulePlainArgs.