@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
92 lines • 3.14 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.getCertificateOutput = exports.getCertificate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ARN of a certificate in AWS Certificate Manager (ACM).
* You can reference the certificate by domain or tags without having to hard code the ARNs as input.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* // Find a certificate that is issued
* const issued = aws.acm.getCertificate({
* domain: "tf.example.com",
* statuses: ["ISSUED"],
* });
* // Find a certificate issued by (not imported into) ACM
* const amazonIssued = aws.acm.getCertificate({
* domain: "tf.example.com",
* types: ["AMAZON_ISSUED"],
* mostRecent: true,
* });
* // Find a RSA 4096 bit certificate
* const rsa4096 = aws.acm.getCertificate({
* domain: "tf.example.com",
* keyTypes: ["RSA_4096"],
* });
* ```
*/
function getCertificate(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:acm/getCertificate:getCertificate", {
"domain": args.domain,
"keyTypes": args.keyTypes,
"mostRecent": args.mostRecent,
"region": args.region,
"statuses": args.statuses,
"tags": args.tags,
"types": args.types,
}, opts);
}
exports.getCertificate = getCertificate;
/**
* Use this data source to get the ARN of a certificate in AWS Certificate Manager (ACM).
* You can reference the certificate by domain or tags without having to hard code the ARNs as input.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* // Find a certificate that is issued
* const issued = aws.acm.getCertificate({
* domain: "tf.example.com",
* statuses: ["ISSUED"],
* });
* // Find a certificate issued by (not imported into) ACM
* const amazonIssued = aws.acm.getCertificate({
* domain: "tf.example.com",
* types: ["AMAZON_ISSUED"],
* mostRecent: true,
* });
* // Find a RSA 4096 bit certificate
* const rsa4096 = aws.acm.getCertificate({
* domain: "tf.example.com",
* keyTypes: ["RSA_4096"],
* });
* ```
*/
function getCertificateOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:acm/getCertificate:getCertificate", {
"domain": args.domain,
"keyTypes": args.keyTypes,
"mostRecent": args.mostRecent,
"region": args.region,
"statuses": args.statuses,
"tags": args.tags,
"types": args.types,
}, opts);
}
exports.getCertificateOutput = getCertificateOutput;
//# sourceMappingURL=getCertificate.js.map