UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

56 lines 2.38 kB
"use strict"; // *** 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"); /** * Get information on a Certificate issued by a AWS Certificate Manager Private Certificate Authority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.acmpca.getCertificate({ * arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23", * certificateAuthorityArn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012", * }); * ``` */ function getCertificate(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:acmpca/getCertificate:getCertificate", { "arn": args.arn, "certificateAuthorityArn": args.certificateAuthorityArn, "region": args.region, }, opts); } exports.getCertificate = getCertificate; /** * Get information on a Certificate issued by a AWS Certificate Manager Private Certificate Authority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.acmpca.getCertificate({ * arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23", * certificateAuthorityArn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012", * }); * ``` */ function getCertificateOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:acmpca/getCertificate:getCertificate", { "arn": args.arn, "certificateAuthorityArn": args.certificateAuthorityArn, "region": args.region, }, opts); } exports.getCertificateOutput = getCertificateOutput; //# sourceMappingURL=getCertificate.js.map