@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
52 lines • 2.02 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPullThroughCacheRuleOutput = exports.getPullThroughCacheRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecrPublic = aws.ecr.getPullThroughCacheRule({
* ecrRepositoryPrefix: "ecr-public",
* });
* ```
*/
function getPullThroughCacheRule(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ecr/getPullThroughCacheRule:getPullThroughCacheRule", {
"ecrRepositoryPrefix": args.ecrRepositoryPrefix,
"region": args.region,
}, opts);
}
exports.getPullThroughCacheRule = 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const ecrPublic = aws.ecr.getPullThroughCacheRule({
* ecrRepositoryPrefix: "ecr-public",
* });
* ```
*/
function getPullThroughCacheRuleOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ecr/getPullThroughCacheRule:getPullThroughCacheRule", {
"ecrRepositoryPrefix": args.ecrRepositoryPrefix,
"region": args.region,
}, opts);
}
exports.getPullThroughCacheRuleOutput = getPullThroughCacheRuleOutput;
//# sourceMappingURL=getPullThroughCacheRule.js.map
;