UNPKG

@pulumi/aws

Version:

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

76 lines 2.71 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.getTrustStoreOutput = exports.getTrustStore = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * > **Note:** `awsAlbTrustStore` is known as `aws.lb.TrustStore`. The functionality is identical. * * Provides information about a Load Balancer Trust Store. * * This data source can prove useful when a module accepts an LB Trust Store as an * input variable and needs to know its attributes. It can also be used to get the ARN of * an LB Trust Store for use in other resources, given LB Trust Store name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const lbTsArn = config.get("lbTsArn") || ""; * const lbTsName = config.get("lbTsName") || ""; * const test = aws.lb.getTrustStore({ * arn: lbTsArn, * name: lbTsName, * }); * ``` */ function getTrustStore(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:lb/getTrustStore:getTrustStore", { "arn": args.arn, "name": args.name, "region": args.region, }, opts); } exports.getTrustStore = getTrustStore; /** * > **Note:** `awsAlbTrustStore` is known as `aws.lb.TrustStore`. The functionality is identical. * * Provides information about a Load Balancer Trust Store. * * This data source can prove useful when a module accepts an LB Trust Store as an * input variable and needs to know its attributes. It can also be used to get the ARN of * an LB Trust Store for use in other resources, given LB Trust Store name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const lbTsArn = config.get("lbTsArn") || ""; * const lbTsName = config.get("lbTsName") || ""; * const test = aws.lb.getTrustStore({ * arn: lbTsArn, * name: lbTsName, * }); * ``` */ function getTrustStoreOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:lb/getTrustStore:getTrustStore", { "arn": args.arn, "name": args.name, "region": args.region, }, opts); } exports.getTrustStoreOutput = getTrustStoreOutput; //# sourceMappingURL=getTrustStore.js.map