UNPKG

@pulumi/aws

Version:

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

66 lines 2.31 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.getLicenseGrantsOutput = exports.getLicenseGrants = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource can be used to get a set of license grant ARNs matching a filter. * * ## Example Usage * * The following shows getting all license grant ARNs granted to your account. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getCallerIdentity({}); * const test = current.then(current => aws.licensemanager.getLicenseGrants({ * filters: [{ * name: "GranteePrincipalARN", * values: [`arn:aws:iam::${current.accountId}:root`], * }], * })); * ``` */ function getLicenseGrants(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:licensemanager/getLicenseGrants:getLicenseGrants", { "filters": args.filters, "region": args.region, }, opts); } exports.getLicenseGrants = getLicenseGrants; /** * This resource can be used to get a set of license grant ARNs matching a filter. * * ## Example Usage * * The following shows getting all license grant ARNs granted to your account. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getCallerIdentity({}); * const test = current.then(current => aws.licensemanager.getLicenseGrants({ * filters: [{ * name: "GranteePrincipalARN", * values: [`arn:aws:iam::${current.accountId}:root`], * }], * })); * ``` */ function getLicenseGrantsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:licensemanager/getLicenseGrants:getLicenseGrants", { "filters": args.filters, "region": args.region, }, opts); } exports.getLicenseGrantsOutput = getLicenseGrantsOutput; //# sourceMappingURL=getLicenseGrants.js.map