import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Host Scan Recipe resource in Oracle Cloud Infrastructure Vulnerability Scanning service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/scanning/latest/HostScanRecipe * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/vulnerability_scanning_service * * Creates a new HostScanRecipe. A recipe determines the types of security issues that you want scanned, and how often to scan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testHostScanRecipe = new oci.vulnerabilityscanning.HostScanRecipe("test_host_scan_recipe", { * agentSettings: { * scanLevel: hostScanRecipeAgentSettingsScanLevel, * agentConfiguration: { * vendor: hostScanRecipeAgentSettingsAgentConfigurationVendor, * cisBenchmarkSettings: { * scanLevel: hostScanRecipeAgentSettingsAgentConfigurationCisBenchmarkSettingsScanLevel, * }, * endpointProtectionSettings: { * scanLevel: hostScanRecipeAgentSettingsAgentConfigurationEndpointProtectionSettingsScanLevel, * }, * shouldUnInstall: hostScanRecipeAgentSettingsAgentConfigurationShouldUnInstall === "true", * vaultSecretId: testSecret.id, * vendorType: hostScanRecipeAgentSettingsAgentConfigurationVendorType, * }, * }, * compartmentId: compartmentId, * portSettings: { * scanLevel: hostScanRecipePortSettingsScanLevel, * }, * schedule: { * type: hostScanRecipeScheduleType, * dayOfWeek: hostScanRecipeScheduleDayOfWeek, * }, * applicationSettings: { * applicationScanRecurrence: hostScanRecipeApplicationSettingsApplicationScanRecurrence, * foldersToScans: [{ * folder: hostScanRecipeApplicationSettingsFoldersToScanFolder, * operatingsystem: hostScanRecipeApplicationSettingsFoldersToScanOperatingsystem, * }], * isEnabled: hostScanRecipeApplicationSettingsIsEnabled === "true", * }, * definedTags: { * "foo-namespace.bar-key": "value", * }, * displayName: hostScanRecipeDisplayName, * freeformTags: { * "bar-key": "value", * }, * }); * ``` * * ## Import * * HostScanRecipes can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:VulnerabilityScanning/hostScanRecipe:HostScanRecipe test_host_scan_recipe "id" * ``` */ export declare class HostScanRecipe extends pulumi.CustomResource { /** * Get an existing HostScanRecipe 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?: HostScanRecipeState, opts?: pulumi.CustomResourceOptions): HostScanRecipe; /** * Returns true if the given object is an instance of HostScanRecipe. 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 HostScanRecipe; /** * (Updatable) Agent scan settings for a host scan */ readonly agentSettings: pulumi.Output; /** * (Updatable) Agent scan settings for an application scan (as a part of a host scan) */ readonly applicationSettings: pulumi.Output; /** * (Updatable) Compartment ID of the scanning config. If no individual hosts are specified, all hosts in this compartment are scanned */ 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) Recipe 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) Port scan settings for a host scan */ readonly portSettings: pulumi.Output; /** * (Updatable) A scanning schedule */ readonly schedule: 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; }>; /** * Date and time the recipe was created, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ readonly timeCreated: pulumi.Output; /** * Date and time the recipe was last updated, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ readonly timeUpdated: pulumi.Output; /** * Create a HostScanRecipe 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: HostScanRecipeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HostScanRecipe resources. */ export interface HostScanRecipeState { /** * (Updatable) Agent scan settings for a host scan */ agentSettings?: pulumi.Input; /** * (Updatable) Agent scan settings for an application scan (as a part of a host scan) */ applicationSettings?: pulumi.Input; /** * (Updatable) Compartment ID of the scanning config. If no individual hosts are specified, all hosts in this compartment are scanned */ 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) Recipe 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) Port scan settings for a host scan */ portSettings?: pulumi.Input; /** * (Updatable) A scanning schedule */ schedule?: pulumi.Input; /** * 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>; /** * Date and time the recipe was created, format as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) */ timeCreated?: pulumi.Input; /** * Date and time the recipe 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 HostScanRecipe resource. */ export interface HostScanRecipeArgs { /** * (Updatable) Agent scan settings for a host scan */ agentSettings: pulumi.Input; /** * (Updatable) Agent scan settings for an application scan (as a part of a host scan) */ applicationSettings?: pulumi.Input; /** * (Updatable) Compartment ID of the scanning config. If no individual hosts are specified, all hosts in this compartment are scanned */ 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) Recipe 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) Port scan settings for a host scan */ portSettings: pulumi.Input; /** * (Updatable) A scanning schedule */ schedule: pulumi.Input; } //# sourceMappingURL=hostScanRecipe.d.ts.map