UNPKG

@pulumi/aws

Version:

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

131 lines (130 loc) 4.59 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This resource can be used to get data on a received license using an ARN. This can be helpful for pulling in data on a license from the AWS marketplace and sharing that license with another account. * * ## Example Usage * * The following shows getting the received license data using and ARN. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.licensemanager.getReceivedLicense({ * licenseArn: "arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0", * }); * ``` */ export declare function getReceivedLicense(args: GetReceivedLicenseArgs, opts?: pulumi.InvokeOptions): Promise<GetReceivedLicenseResult>; /** * A collection of arguments for invoking getReceivedLicense. */ export interface GetReceivedLicenseArgs { /** * The ARN of the received license you want data for. */ licenseArn: string; /** * 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 getReceivedLicense. */ export interface GetReceivedLicenseResult { /** * Granted license beneficiary. This is in the form of the ARN of the root user of the account. */ readonly beneficiary: string; /** * Configuration for consumption of the license. Detailed below */ readonly consumptionConfigurations: outputs.licensemanager.GetReceivedLicenseConsumptionConfiguration[]; /** * Creation time of the granted license in RFC 3339 format. */ readonly createTime: string; /** * License entitlements. Detailed below */ readonly entitlements: outputs.licensemanager.GetReceivedLicenseEntitlement[]; /** * Home Region of the granted license. */ readonly homeRegion: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Granted license issuer. Detailed below */ readonly issuers: outputs.licensemanager.GetReceivedLicenseIssuer[]; /** * Amazon Resource Name (ARN) of the license. */ readonly licenseArn: string; /** * Granted license metadata. This is in the form of a set of all meta data. Detailed below */ readonly licenseMetadatas: outputs.licensemanager.GetReceivedLicenseLicenseMetadata[]; /** * License name. */ readonly licenseName: string; /** * Product name. * * `productSku ` - Product SKU. */ readonly productName: string; readonly productSku: string; /** * Granted license received metadata. Detailed below */ readonly receivedMetadatas: outputs.licensemanager.GetReceivedLicenseReceivedMetadata[]; readonly region: string; /** * Granted license status. */ readonly status: string; /** * Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below */ readonly validities: outputs.licensemanager.GetReceivedLicenseValidity[]; /** * Version of the granted license. */ readonly version: string; } /** * This resource can be used to get data on a received license using an ARN. This can be helpful for pulling in data on a license from the AWS marketplace and sharing that license with another account. * * ## Example Usage * * The following shows getting the received license data using and ARN. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.licensemanager.getReceivedLicense({ * licenseArn: "arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0", * }); * ``` */ export declare function getReceivedLicenseOutput(args: GetReceivedLicenseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReceivedLicenseResult>; /** * A collection of arguments for invoking getReceivedLicense. */ export interface GetReceivedLicenseOutputArgs { /** * The ARN of the received license you want data for. */ licenseArn: pulumi.Input<string>; /** * 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>; }