import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Target resource in Oracle Cloud Infrastructure Cloud Guard service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/cloud-guard/latest/Target * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/certificatesguard * * Creates a target (Target resource), using parameters passed in a CreateTargetDetails resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTarget = new oci.cloudguard.Target("test_target", { * compartmentId: compartmentId, * displayName: targetDisplayName, * targetResourceId: testResource.id, * targetResourceType: targetTargetResourceType, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: targetDescription, * freeformTags: { * "bar-key": "value", * }, * state: targetState, * targetDetectorRecipes: [{ * detectorRecipeId: testDetectorRecipe.id, * detectorRules: [{ * details: { * conditionGroups: [{ * compartmentId: compartmentId, * condition: targetTargetDetectorRecipesDetectorRulesDetailsConditionGroupsCondition, * }], * }, * detectorRuleId: testRule.id, * }], * }], * targetResponderRecipes: [{ * responderRecipeId: testResponderRecipe.id, * responderRules: [{ * details: { * condition: targetTargetResponderRecipesResponderRulesDetailsCondition, * configurations: [{ * configKey: targetTargetResponderRecipesResponderRulesDetailsConfigurationsConfigKey, * name: targetTargetResponderRecipesResponderRulesDetailsConfigurationsName, * value: targetTargetResponderRecipesResponderRulesDetailsConfigurationsValue, * }], * mode: targetTargetResponderRecipesResponderRulesDetailsMode, * }, * responderRuleId: testRule.id, * }], * }], * }); * ``` * * ## Import * * Targets can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:CloudGuard/target:Target test_target "id" * ``` */ export declare class Target extends pulumi.CustomResource { /** * Get an existing Target 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?: TargetState, opts?: pulumi.CustomResourceOptions): Target; /** * Returns true if the given object is an instance of Target. 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 Target; /** * Compartment OCID where the resource 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; }>; /** * The target description. * * Avoid entering confidential information. */ readonly description: pulumi.Output; /** * (Updatable) Display name for the target. * * 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"}` * * Avoid entering confidential information. */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * List of inherited compartments */ readonly inheritedByCompartments: pulumi.Output; /** * A message describing the current lifecycle state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE] */ readonly lifecyleDetails: pulumi.Output; /** * Total number of recipes attached to target */ readonly recipeCount: pulumi.Output; /** * (Updatable) The enablement state of the detector rule */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). System tags can be viewed by users, but can only be created by the system. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * Details specific to the target type. */ readonly targetDetails: pulumi.Output; /** * (Updatable) List of detector recipes to attach to target */ readonly targetDetectorRecipes: pulumi.Output; /** * Resource ID which the target uses to monitor */ readonly targetResourceId: pulumi.Output; /** * Type of resource that target support (COMPARTMENT/FACLOUD) */ readonly targetResourceType: pulumi.Output; /** * (Updatable) List of responder recipes to attach to target */ readonly targetResponderRecipes: pulumi.Output; /** * The date and time the target was created. Format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time the target was last updated. Format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * Create a Target 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: TargetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Target resources. */ export interface TargetState { /** * Compartment OCID where the resource 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>; /** * The target description. * * Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Display name for the target. * * 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"}` * * Avoid entering confidential information. */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * List of inherited compartments */ inheritedByCompartments?: pulumi.Input[] | undefined>; /** * A message describing the current lifecycle state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE] */ lifecyleDetails?: pulumi.Input; /** * Total number of recipes attached to target */ recipeCount?: pulumi.Input; /** * (Updatable) The enablement state of the detector rule */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). System tags can be viewed by users, but can only be created by the system. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Details specific to the target type. */ targetDetails?: pulumi.Input[] | undefined>; /** * (Updatable) List of detector recipes to attach to target */ targetDetectorRecipes?: pulumi.Input[] | undefined>; /** * Resource ID which the target uses to monitor */ targetResourceId?: pulumi.Input; /** * Type of resource that target support (COMPARTMENT/FACLOUD) */ targetResourceType?: pulumi.Input; /** * (Updatable) List of responder recipes to attach to target */ targetResponderRecipes?: pulumi.Input[] | undefined>; /** * The date and time the target was created. Format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time the target was last updated. Format defined by RFC3339. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Target resource. */ export interface TargetArgs { /** * Compartment OCID where the resource 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>; /** * The target description. * * Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Display name for the target. * * 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"}` * * Avoid entering confidential information. */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The enablement state of the detector rule */ state?: pulumi.Input; /** * (Updatable) List of detector recipes to attach to target */ targetDetectorRecipes?: pulumi.Input[] | undefined>; /** * Resource ID which the target uses to monitor */ targetResourceId: pulumi.Input; /** * Type of resource that target support (COMPARTMENT/FACLOUD) */ targetResourceType: pulumi.Input; /** * (Updatable) List of responder recipes to attach to target */ targetResponderRecipes?: pulumi.Input[] | undefined>; } //# sourceMappingURL=target.d.ts.map