import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Host Scan Target resource in Oracle Cloud Infrastructure Vulnerability Scanning service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/scanning/latest/HostScanTarget * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/vulnerability_scanning_service * * Creates a new HostScanTarget. A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testHostScanTarget = new oci.vulnerabilityscanning.HostScanTarget("test_host_scan_target", { * compartmentId: compartmentId, * hostScanRecipeId: testHostScanRecipe.id, * targetCompartmentId: testCompartment.id, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: hostScanTargetDescription, * displayName: hostScanTargetDisplayName, * freeformTags: { * "bar-key": "value", * }, * instanceIds: hostScanTargetInstanceIds, * }); * ``` * * ## Import * * HostScanTargets can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:VulnerabilityScanning/hostScanTarget:HostScanTarget test_host_scan_target "id" * ``` */ export declare class HostScanTarget extends pulumi.CustomResource { /** * Get an existing HostScanTarget 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?: HostScanTargetState, opts?: pulumi.CustomResourceOptions): HostScanTarget; /** * Returns true if the given object is an instance of HostScanTarget. 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 HostScanTarget; /** * (Updatable) Compartment ID of the object (this). */ 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) Target description. */ readonly description: pulumi.Output; /** * (Updatable) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information. */ readonly displayName: 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) ID of the host scan recipe this target applies. */ readonly hostScanRecipeId: pulumi.Output; /** * (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId. */ readonly instanceIds: pulumi.Output; /** * The current state of the config. */ 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; }>; /** * (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment. * * ** 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 targetCompartmentId: pulumi.Output; /** * Date and time the target was created, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ readonly timeCreated: pulumi.Output; /** * Date and time the target was last updated, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ readonly timeUpdated: pulumi.Output; /** * Create a HostScanTarget 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: HostScanTargetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HostScanTarget resources. */ export interface HostScanTargetState { /** * (Updatable) Compartment ID of the object (this). */ 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) Target description. */ description?: pulumi.Input; /** * (Updatable) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information. */ displayName?: 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) ID of the host scan recipe this target applies. */ hostScanRecipeId?: pulumi.Input; /** * (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId. */ instanceIds?: pulumi.Input[] | undefined>; /** * The current state of the config. */ 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>; /** * (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment. * * ** 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 */ targetCompartmentId?: pulumi.Input; /** * Date and time the target was created, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ timeCreated?: pulumi.Input; /** * Date and time the target was last updated, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a HostScanTarget resource. */ export interface HostScanTargetArgs { /** * (Updatable) Compartment ID of the object (this). */ 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) Target description. */ description?: pulumi.Input; /** * (Updatable) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information. */ displayName?: 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) ID of the host scan recipe this target applies. */ hostScanRecipeId: pulumi.Input; /** * (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId. */ instanceIds?: pulumi.Input[] | undefined>; /** * (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment. * * ** 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 */ targetCompartmentId: pulumi.Input; } //# sourceMappingURL=hostScanTarget.d.ts.map