UNPKG

@pulumi/aws

Version:

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

87 lines (86 loc) 2.95 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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`], * }], * })); * ``` */ export declare function getLicenseGrants(args?: GetLicenseGrantsArgs, opts?: pulumi.InvokeOptions): Promise<GetLicenseGrantsResult>; /** * A collection of arguments for invoking getLicenseGrants. */ export interface GetLicenseGrantsArgs { /** * Custom filter block as described below. */ filters?: inputs.licensemanager.GetLicenseGrantsFilter[]; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getLicenseGrants. */ export interface GetLicenseGrantsResult { /** * List of all the license grant ARNs found. */ readonly arns: string[]; readonly filters?: outputs.licensemanager.GetLicenseGrantsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; } /** * 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`], * }], * })); * ``` */ export declare function getLicenseGrantsOutput(args?: GetLicenseGrantsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLicenseGrantsResult>; /** * A collection of arguments for invoking getLicenseGrants. */ export interface GetLicenseGrantsOutputArgs { /** * Custom filter block as described below. */ filters?: pulumi.Input<pulumi.Input<inputs.licensemanager.GetLicenseGrantsFilterArgs>[]>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }