@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
80 lines • 2.65 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.getServerCertificateOutput = exports.getServerCertificate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to lookup information about IAM Server Certificates.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const my_domain = aws.iam.getServerCertificate({
* namePrefix: "my-domain.org",
* latest: true,
* });
* const elb = new aws.elb.LoadBalancer("elb", {
* name: "my-domain-elb",
* listeners: [{
* instancePort: 8000,
* instanceProtocol: "https",
* lbPort: 443,
* lbProtocol: "https",
* sslCertificateId: my_domain.then(my_domain => my_domain.arn),
* }],
* });
* ```
*/
function getServerCertificate(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:iam/getServerCertificate:getServerCertificate", {
"latest": args.latest,
"name": args.name,
"namePrefix": args.namePrefix,
"pathPrefix": args.pathPrefix,
}, opts);
}
exports.getServerCertificate = getServerCertificate;
/**
* Use this data source to lookup information about IAM Server Certificates.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const my_domain = aws.iam.getServerCertificate({
* namePrefix: "my-domain.org",
* latest: true,
* });
* const elb = new aws.elb.LoadBalancer("elb", {
* name: "my-domain-elb",
* listeners: [{
* instancePort: 8000,
* instanceProtocol: "https",
* lbPort: 443,
* lbProtocol: "https",
* sslCertificateId: my_domain.then(my_domain => my_domain.arn),
* }],
* });
* ```
*/
function getServerCertificateOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:iam/getServerCertificate:getServerCertificate", {
"latest": args.latest,
"name": args.name,
"namePrefix": args.namePrefix,
"pathPrefix": args.pathPrefix,
}, opts);
}
exports.getServerCertificateOutput = getServerCertificateOutput;
//# sourceMappingURL=getServerCertificate.js.map