import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the License Record resource in Oracle Cloud Infrastructure License Manager service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/licensemanager/latest/LicenseRecord * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/license_manager * * Creates a new license record for the given product license ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testLicenseRecord = new oci.licensemanager.LicenseRecord("test_license_record", { * displayName: licenseRecordDisplayName, * isPerpetual: licenseRecordIsPerpetual === "true", * isUnlimited: licenseRecordIsUnlimited === "true", * productLicenseId: testProductLicense.id, * definedTags: { * "foo-namespace.bar-key": "value", * }, * expirationDate: licenseRecordExpirationDate, * freeformTags: { * "bar-key": "value", * }, * licenseCount: Number(licenseRecordLicenseCount), * productId: testProduct.id, * supportEndDate: licenseRecordSupportEndDate, * }); * ``` * * ## Import * * LicenseRecords can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:LicenseManager/licenseRecord:LicenseRecord test_license_record "id" * ``` */ export declare class LicenseRecord extends pulumi.CustomResource { /** * Get an existing LicenseRecord resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LicenseRecordState, opts?: pulumi.CustomResourceOptions): LicenseRecord; /** * Returns true if the given object is an instance of LicenseRecord. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LicenseRecord; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the license record is created. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) License record name. */ readonly displayName: pulumi.Output; /** * (Updatable) The license record end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` */ readonly expirationDate: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Specifies if the license record term is perpertual. */ readonly isPerpetual: pulumi.Output; /** * (Updatable) Specifies if the license count is unlimited. */ readonly isUnlimited: pulumi.Output; /** * (Updatable) The number of license units added by a user in a license record. Default 1 */ readonly licenseCount: pulumi.Output; /** * The product license unit. */ readonly licenseUnit: pulumi.Output; /** * (Updatable) The license record product ID. */ readonly productId: pulumi.Output; /** * The product license name with which the license record is associated. */ readonly productLicense: pulumi.Output; /** * Unique product license identifier. */ readonly productLicenseId: pulumi.Output; /** * The current license record state. */ readonly state: pulumi.Output; /** * (Updatable) The license record support end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly supportEndDate: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the license record was created. An [RFC 3339](https://tools.ietf.org/html/rfc3339)-formatted datetime string. */ readonly timeCreated: pulumi.Output; /** * The time the license record was updated. An [RFC 3339](https://tools.ietf.org/html/rfc3339)-formatted datetime string. */ readonly timeUpdated: pulumi.Output; /** * Create a LicenseRecord resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LicenseRecordArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LicenseRecord resources. */ export interface LicenseRecordState { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the license record is created. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) License record name. */ displayName?: pulumi.Input; /** * (Updatable) The license record end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` */ expirationDate?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Specifies if the license record term is perpertual. */ isPerpetual?: pulumi.Input; /** * (Updatable) Specifies if the license count is unlimited. */ isUnlimited?: pulumi.Input; /** * (Updatable) The number of license units added by a user in a license record. Default 1 */ licenseCount?: pulumi.Input; /** * The product license unit. */ licenseUnit?: pulumi.Input; /** * (Updatable) The license record product ID. */ productId?: pulumi.Input; /** * The product license name with which the license record is associated. */ productLicense?: pulumi.Input; /** * Unique product license identifier. */ productLicenseId?: pulumi.Input; /** * The current license record state. */ state?: pulumi.Input; /** * (Updatable) The license record support end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ supportEndDate?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the license record was created. An [RFC 3339](https://tools.ietf.org/html/rfc3339)-formatted datetime string. */ timeCreated?: pulumi.Input; /** * The time the license record was updated. An [RFC 3339](https://tools.ietf.org/html/rfc3339)-formatted datetime string. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a LicenseRecord resource. */ export interface LicenseRecordArgs { /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) License record name. */ displayName: pulumi.Input; /** * (Updatable) The license record end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` */ expirationDate?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Specifies if the license record term is perpertual. */ isPerpetual: pulumi.Input; /** * (Updatable) Specifies if the license count is unlimited. */ isUnlimited: pulumi.Input; /** * (Updatable) The number of license units added by a user in a license record. Default 1 */ licenseCount?: pulumi.Input; /** * (Updatable) The license record product ID. */ productId?: pulumi.Input; /** * Unique product license identifier. */ productLicenseId: pulumi.Input; /** * (Updatable) The license record support end date in [RFC 3339](https://tools.ietf.org/html/rfc3339) date format. Example: `2018-09-12` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ supportEndDate?: pulumi.Input; } //# sourceMappingURL=licenseRecord.d.ts.map