import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Management Agent Install Key resource in Oracle Cloud Infrastructure Management Agent service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/management-agent/latest/ManagementAgentInstallKey * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/management_agent * * User creates a new install key as part of this API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagementAgentInstallKey = new oci.managementagent.ManagementAgentInstallKey("test_management_agent_install_key", { * compartmentId: compartmentId, * displayName: managementAgentInstallKeyDisplayName, * allowedKeyInstallCount: Number(managementAgentInstallKeyAllowedKeyInstallCount), * isUnlimited: managementAgentInstallKeyIsUnlimited === "true", * timeExpires: managementAgentInstallKeyTimeExpires, * }); * ``` * * ## Import * * ManagementAgentInstallKeys can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ManagementAgent/managementAgentInstallKey:ManagementAgentInstallKey test_management_agent_install_key "id" * ``` */ export declare class ManagementAgentInstallKey extends pulumi.CustomResource { /** * Get an existing ManagementAgentInstallKey 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?: ManagementAgentInstallKeyState, opts?: pulumi.CustomResourceOptions): ManagementAgentInstallKey; /** * Returns true if the given object is an instance of ManagementAgentInstallKey. 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 ManagementAgentInstallKey; /** * Total number of install for this keys */ readonly allowedKeyInstallCount: pulumi.Output; /** * Compartment Identifier */ readonly compartmentId: pulumi.Output; /** * Principal id of user who created the Agent Install key */ readonly createdByPrincipalId: pulumi.Output; /** * Total number of install for this keys */ readonly currentKeyInstallCount: pulumi.Output; /** * 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) Management Agent install Key Name */ readonly displayName: pulumi.Output; /** * 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; }>; /** * If set to true, the install key has no expiration date or usage limit. Defaults to false */ readonly isUnlimited: pulumi.Output; /** * Management Agent Install Key */ readonly key: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * Status of Key */ readonly state: 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 when Management Agent install Key was created. An RFC3339 formatted date time string */ readonly timeCreated: pulumi.Output; /** * date after which key would expire after creation * * ** 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 timeExpires: pulumi.Output; /** * The time when Management Agent install Key was updated. An RFC3339 formatted date time string */ readonly timeUpdated: pulumi.Output; /** * Create a ManagementAgentInstallKey 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: ManagementAgentInstallKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagementAgentInstallKey resources. */ export interface ManagementAgentInstallKeyState { /** * Total number of install for this keys */ allowedKeyInstallCount?: pulumi.Input; /** * Compartment Identifier */ compartmentId?: pulumi.Input; /** * Principal id of user who created the Agent Install key */ createdByPrincipalId?: pulumi.Input; /** * Total number of install for this keys */ currentKeyInstallCount?: pulumi.Input; /** * 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) Management Agent install Key Name */ displayName?: pulumi.Input; /** * 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>; /** * If set to true, the install key has no expiration date or usage limit. Defaults to false */ isUnlimited?: pulumi.Input; /** * Management Agent Install Key */ key?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * Status of Key */ state?: 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 when Management Agent install Key was created. An RFC3339 formatted date time string */ timeCreated?: pulumi.Input; /** * date after which key would expire after creation * * ** 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 */ timeExpires?: pulumi.Input; /** * The time when Management Agent install Key was updated. An RFC3339 formatted date time string */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a ManagementAgentInstallKey resource. */ export interface ManagementAgentInstallKeyArgs { /** * Total number of install for this keys */ allowedKeyInstallCount?: pulumi.Input; /** * Compartment Identifier */ compartmentId: pulumi.Input; /** * (Updatable) Management Agent install Key Name */ displayName: pulumi.Input; /** * If set to true, the install key has no expiration date or usage limit. Defaults to false */ isUnlimited?: pulumi.Input; /** * date after which key would expire after creation * * ** 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 */ timeExpires?: pulumi.Input; } //# sourceMappingURL=managementAgentInstallKey.d.ts.map