import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Agent resource in Oracle Cloud Infrastructure Cloud Bridge service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/OCB/latest/Agent * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/cloudBridge * * Creates an Agent. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAgent = new oci.cloudbridge.Agent("test_agent", { * agentType: agentAgentType, * agentVersion: agentAgentVersion, * compartmentId: compartmentId, * displayName: agentDisplayName, * environmentId: testEnvironment.id, * osVersion: agentOsVersion, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * Agents can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:CloudBridge/agent:Agent test_agent "id" * ``` */ export declare class Agent extends pulumi.CustomResource { /** * Get an existing Agent 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?: AgentState, opts?: pulumi.CustomResourceOptions): Agent; /** * Returns true if the given object is an instance of Agent. 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 Agent; /** * Resource principal public key. */ readonly agentPubKey: pulumi.Output; /** * Agent identifier. */ readonly agentType: pulumi.Output; /** * Agent identifier. */ readonly agentVersion: pulumi.Output; /** * (Updatable) Compartment identifier. */ readonly compartmentId: pulumi.Output; /** * (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Agent identifier. */ readonly displayName: pulumi.Output; /** * Environment identifier. */ readonly environmentId: pulumi.Output; /** * (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The current heartbeat status of the Agent based on its timeLastSyncReceived value. */ readonly heartBeatStatus: pulumi.Output; /** * A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * OS version. * * ** 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 osVersion: pulumi.Output; /** * List of plugins associated with the agent. */ readonly pluginLists: pulumi.Output; /** * The current state of the Agent. */ readonly state: pulumi.Output; /** * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{orcl-cloud: {free-tier-retain: true}}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time when the Agent was created. An RFC3339 formatted datetime string. */ readonly timeCreated: pulumi.Output; /** * The time since epoch for when the public key will expire. An RFC3339 formatted datetime string. */ readonly timeExpireAgentKeyInMs: pulumi.Output; /** * The time when the last heartbeat of the Agent was noted. An RFC3339 formatted datetime string. */ readonly timeLastSyncReceived: pulumi.Output; /** * The time when the Agent was updated. An RFC3339 formatted datetime string. */ readonly timeUpdated: pulumi.Output; /** * Create a Agent 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: AgentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Agent resources. */ export interface AgentState { /** * Resource principal public key. */ agentPubKey?: pulumi.Input; /** * Agent identifier. */ agentType?: pulumi.Input; /** * Agent identifier. */ agentVersion?: pulumi.Input; /** * (Updatable) Compartment identifier. */ compartmentId?: pulumi.Input; /** * (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Agent identifier. */ displayName?: pulumi.Input; /** * Environment identifier. */ environmentId?: pulumi.Input; /** * (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The current heartbeat status of the Agent based on its timeLastSyncReceived value. */ heartBeatStatus?: pulumi.Input; /** * A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * OS version. * * ** 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 */ osVersion?: pulumi.Input; /** * List of plugins associated with the agent. */ pluginLists?: pulumi.Input[] | undefined>; /** * The current state of the Agent. */ state?: pulumi.Input; /** * The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{orcl-cloud: {free-tier-retain: true}}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time when the Agent was created. An RFC3339 formatted datetime string. */ timeCreated?: pulumi.Input; /** * The time since epoch for when the public key will expire. An RFC3339 formatted datetime string. */ timeExpireAgentKeyInMs?: pulumi.Input; /** * The time when the last heartbeat of the Agent was noted. An RFC3339 formatted datetime string. */ timeLastSyncReceived?: pulumi.Input; /** * The time when the Agent was updated. An RFC3339 formatted datetime string. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Agent resource. */ export interface AgentArgs { /** * Agent identifier. */ agentType: pulumi.Input; /** * Agent identifier. */ agentVersion: pulumi.Input; /** * (Updatable) Compartment identifier. */ compartmentId: pulumi.Input; /** * (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Agent identifier. */ displayName: pulumi.Input; /** * Environment identifier. */ environmentId: pulumi.Input; /** * (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * OS version. * * ** 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 */ osVersion: pulumi.Input; } //# sourceMappingURL=agent.d.ts.map