@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
64 lines • 2.3 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.getReceivedLicensesOutput = exports.getReceivedLicenses = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can be used to get a set of license ARNs matching a filter.
*
* ## Example Usage
*
* The following shows getting all license ARNs issued from the AWS marketplace. Providing no filter, would provide all license ARNs for the entire account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.licensemanager.getReceivedLicenses({
* filters: [{
* name: "IssuerName",
* values: ["AWS/Marketplace"],
* }],
* });
* ```
*/
function getReceivedLicenses(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:licensemanager/getReceivedLicenses:getReceivedLicenses", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getReceivedLicenses = getReceivedLicenses;
/**
* This resource can be used to get a set of license ARNs matching a filter.
*
* ## Example Usage
*
* The following shows getting all license ARNs issued from the AWS marketplace. Providing no filter, would provide all license ARNs for the entire account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.licensemanager.getReceivedLicenses({
* filters: [{
* name: "IssuerName",
* values: ["AWS/Marketplace"],
* }],
* });
* ```
*/
function getReceivedLicensesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:licensemanager/getReceivedLicenses:getReceivedLicenses", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getReceivedLicensesOutput = getReceivedLicensesOutput;
//# sourceMappingURL=getReceivedLicenses.js.map
;