import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Security Assessment Finding resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/SecurityAssessmentFinding * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Patches one or more findings in the specified template baseline type security assessment. Use it to modify max allowed risk level in template baseline. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSecurityAssessmentFinding = new oci.datasafe.SecurityAssessmentFinding("test_security_assessment_finding", { * securityAssessmentId: testSecurityAssessment.id, * patchOperations: [{ * operation: securityAssessmentFindingPatchOperationsOperation, * selection: securityAssessmentFindingPatchOperationsSelection, * value: securityAssessmentFindingPatchOperationsValue, * }], * }); * ``` * * ## Import * * SecurityAssessmentFindings can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/securityAssessmentFinding:SecurityAssessmentFinding test_security_assessment_finding "securityAssessments/{securityAssessmentId}/findings" * ``` */ export declare class SecurityAssessmentFinding extends pulumi.CustomResource { /** * Get an existing SecurityAssessmentFinding 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?: SecurityAssessmentFindingState, opts?: pulumi.CustomResourceOptions): SecurityAssessmentFinding; /** * Returns true if the given object is an instance of SecurityAssessmentFinding. 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 SecurityAssessmentFinding; /** * The OCID of the assessment that generated this finding. */ readonly assessmentId: pulumi.Output; /** * The category to which the finding belongs to. */ readonly category: pulumi.Output; /** * The details of the finding. Provides detailed information to explain the finding summary, typically results from the assessed database, followed by any recommendations for changes. */ readonly details: pulumi.Output; /** * Determines if this risk level has changed on the target database since the last time 'severity' was modified by user. */ readonly hasTargetDbRiskLevelChanged: pulumi.Output; /** * Determines if this risk level was modified by user. */ readonly isRiskModified: pulumi.Output; /** * Indicates whether a given finding is marked as topFinding or not. */ readonly isTopFinding: pulumi.Output; /** * User provided reason for accepting or modifying this finding if they choose to do so. */ readonly justification: pulumi.Output; /** * The unique finding key. This is a system-generated identifier. To get the finding key for a finding, use ListFindings. */ readonly key: pulumi.Output; /** * Details about the current state of the finding. */ readonly lifecycleDetails: pulumi.Output; /** * Provides a recommended approach to take to remediate the finding reported. */ readonly oneline: pulumi.Output; /** * The severity of the finding as determined by security assessment. This cannot be modified by user. */ readonly oracleDefinedSeverity: pulumi.Output; /** * (Updatable) */ readonly patchOperations: pulumi.Output; /** * Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, a STIG rule, or a GDPR Article/Recital. */ readonly references: pulumi.Output; /** * The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. */ readonly remarks: pulumi.Output; /** * ** 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 securityAssessmentId: pulumi.Output; /** * The severity of the finding as determined by security assessment and is same as oracleDefinedSeverity, unless modified by user. */ readonly severity: pulumi.Output; /** * The current state of the finding. */ readonly state: pulumi.Output; /** * The brief summary of the finding. When the finding is informational, the summary typically reports only the number of data elements that were examined. */ readonly summary: pulumi.Output; /** * The OCID of the target database. */ readonly targetId: pulumi.Output; /** * The date and time the risk level of finding was last updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * The time until which the change in severity(deferred / modified) of this finding is valid. */ readonly timeValidUntil: pulumi.Output; /** * The short title for the finding. */ readonly title: pulumi.Output; /** * Create a SecurityAssessmentFinding 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: SecurityAssessmentFindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityAssessmentFinding resources. */ export interface SecurityAssessmentFindingState { /** * The OCID of the assessment that generated this finding. */ assessmentId?: pulumi.Input; /** * The category to which the finding belongs to. */ category?: pulumi.Input; /** * The details of the finding. Provides detailed information to explain the finding summary, typically results from the assessed database, followed by any recommendations for changes. */ details?: pulumi.Input[] | undefined>; /** * Determines if this risk level has changed on the target database since the last time 'severity' was modified by user. */ hasTargetDbRiskLevelChanged?: pulumi.Input; /** * Determines if this risk level was modified by user. */ isRiskModified?: pulumi.Input; /** * Indicates whether a given finding is marked as topFinding or not. */ isTopFinding?: pulumi.Input; /** * User provided reason for accepting or modifying this finding if they choose to do so. */ justification?: pulumi.Input; /** * The unique finding key. This is a system-generated identifier. To get the finding key for a finding, use ListFindings. */ key?: pulumi.Input; /** * Details about the current state of the finding. */ lifecycleDetails?: pulumi.Input; /** * Provides a recommended approach to take to remediate the finding reported. */ oneline?: pulumi.Input; /** * The severity of the finding as determined by security assessment. This cannot be modified by user. */ oracleDefinedSeverity?: pulumi.Input; /** * (Updatable) */ patchOperations?: pulumi.Input[] | undefined>; /** * Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, a STIG rule, or a GDPR Article/Recital. */ references?: pulumi.Input[] | undefined>; /** * The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. */ remarks?: pulumi.Input; /** * ** 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 */ securityAssessmentId?: pulumi.Input; /** * The severity of the finding as determined by security assessment and is same as oracleDefinedSeverity, unless modified by user. */ severity?: pulumi.Input; /** * The current state of the finding. */ state?: pulumi.Input; /** * The brief summary of the finding. When the finding is informational, the summary typically reports only the number of data elements that were examined. */ summary?: pulumi.Input; /** * The OCID of the target database. */ targetId?: pulumi.Input; /** * The date and time the risk level of finding was last updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeUpdated?: pulumi.Input; /** * The time until which the change in severity(deferred / modified) of this finding is valid. */ timeValidUntil?: pulumi.Input; /** * The short title for the finding. */ title?: pulumi.Input; } /** * The set of arguments for constructing a SecurityAssessmentFinding resource. */ export interface SecurityAssessmentFindingArgs { /** * (Updatable) */ patchOperations?: pulumi.Input[] | undefined>; /** * ** 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 */ securityAssessmentId: pulumi.Input; } //# sourceMappingURL=securityAssessmentFinding.d.ts.map