import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Sql Firewall Policy resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/SqlFirewallPolicy * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Updates the SQL Firewall policy. * * ## Import * * SqlFirewallPolicies can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/sqlFirewallPolicy:SqlFirewallPolicy test_sql_firewall_policy "id" * ``` */ export declare class SqlFirewallPolicy extends pulumi.CustomResource { /** * Get an existing SqlFirewallPolicy 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?: SqlFirewallPolicyState, opts?: pulumi.CustomResourceOptions): SqlFirewallPolicy; /** * Returns true if the given object is an instance of SqlFirewallPolicy. 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 SqlFirewallPolicy; /** * (Updatable) List of allowed ip addresses for the SQL Firewall policy. */ readonly allowedClientIps: pulumi.Output; /** * (Updatable) List of allowed operating system user names for the SQL Firewall policy. */ readonly allowedClientOsUsernames: pulumi.Output; /** * (Updatable) List of allowed client programs for the SQL Firewall policy. */ readonly allowedClientPrograms: pulumi.Output; /** * (Updatable) The OCID of the compartment containing the SQL Firewall policy. */ readonly compartmentId: pulumi.Output; /** * The database user name. */ readonly dbUserName: pulumi.Output; /** * (Updatable) Defined 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) Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The description of the SQL Firewall policy. */ readonly description: pulumi.Output; /** * (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable. */ readonly displayName: pulumi.Output; /** * (Updatable) Specifies the SQL Firewall policy enforcement option. */ readonly enforcementScope: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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; }>; /** * Details about the current state of the SQL Firewall policy in Data Safe. */ readonly lifecycleDetails: pulumi.Output; /** * The OCID of the security policy corresponding to the SQL Firewall policy. */ readonly securityPolicyId: pulumi.Output; /** * The OCID of the SQL Firewall policy resource. */ readonly sqlFirewallPolicyId: pulumi.Output; /** * Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. */ readonly sqlLevel: pulumi.Output; /** * The current state of the SQL Firewall policy. */ readonly state: pulumi.Output; /** * (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled. */ readonly status: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time that the SQL Firewall policy was created, in the format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations. */ readonly violationAction: pulumi.Output; /** * (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations. * * ** 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 violationAudit: pulumi.Output; /** * Create a SqlFirewallPolicy 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: SqlFirewallPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SqlFirewallPolicy resources. */ export interface SqlFirewallPolicyState { /** * (Updatable) List of allowed ip addresses for the SQL Firewall policy. */ allowedClientIps?: pulumi.Input[] | undefined>; /** * (Updatable) List of allowed operating system user names for the SQL Firewall policy. */ allowedClientOsUsernames?: pulumi.Input[] | undefined>; /** * (Updatable) List of allowed client programs for the SQL Firewall policy. */ allowedClientPrograms?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the compartment containing the SQL Firewall policy. */ compartmentId?: pulumi.Input; /** * The database user name. */ dbUserName?: pulumi.Input; /** * (Updatable) Defined 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) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description of the SQL Firewall policy. */ description?: pulumi.Input; /** * (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable. */ displayName?: pulumi.Input; /** * (Updatable) Specifies the SQL Firewall policy enforcement option. */ enforcementScope?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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>; /** * Details about the current state of the SQL Firewall policy in Data Safe. */ lifecycleDetails?: pulumi.Input; /** * The OCID of the security policy corresponding to the SQL Firewall policy. */ securityPolicyId?: pulumi.Input; /** * The OCID of the SQL Firewall policy resource. */ sqlFirewallPolicyId?: pulumi.Input; /** * Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. */ sqlLevel?: pulumi.Input; /** * The current state of the SQL Firewall policy. */ state?: pulumi.Input; /** * (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled. */ status?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time that the SQL Firewall policy was created, in the format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339. */ timeUpdated?: pulumi.Input; /** * (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations. */ violationAction?: pulumi.Input; /** * (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations. * * ** 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 */ violationAudit?: pulumi.Input; } /** * The set of arguments for constructing a SqlFirewallPolicy resource. */ export interface SqlFirewallPolicyArgs { /** * (Updatable) List of allowed ip addresses for the SQL Firewall policy. */ allowedClientIps?: pulumi.Input[] | undefined>; /** * (Updatable) List of allowed operating system user names for the SQL Firewall policy. */ allowedClientOsUsernames?: pulumi.Input[] | undefined>; /** * (Updatable) List of allowed client programs for the SQL Firewall policy. */ allowedClientPrograms?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the compartment containing the SQL Firewall policy. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined 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) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description of the SQL Firewall policy. */ description?: pulumi.Input; /** * (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable. */ displayName?: pulumi.Input; /** * (Updatable) Specifies the SQL Firewall policy enforcement option. */ enforcementScope?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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 OCID of the SQL Firewall policy resource. */ sqlFirewallPolicyId: pulumi.Input; /** * (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled. */ status?: pulumi.Input; /** * (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations. */ violationAction?: pulumi.Input; /** * (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations. * * ** 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 */ violationAudit?: pulumi.Input; } //# sourceMappingURL=sqlFirewallPolicy.d.ts.map