Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataSafe.SqlFirewallPolicyManagement
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
Create SqlFirewallPolicyManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlFirewallPolicyManagement(name: string, args?: SqlFirewallPolicyManagementArgs, opts?: CustomResourceOptions);
@overload
def SqlFirewallPolicyManagement(resource_name: str,
args: Optional[SqlFirewallPolicyManagementArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SqlFirewallPolicyManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
allowed_client_ips: Optional[Sequence[str]] = None,
allowed_client_os_usernames: Optional[Sequence[str]] = None,
allowed_client_programs: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
db_user_name: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enforcement_scope: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
sql_firewall_policy_id: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
target_id: Optional[str] = None,
violation_action: Optional[str] = None,
violation_audit: Optional[str] = None)
func NewSqlFirewallPolicyManagement(ctx *Context, name string, args *SqlFirewallPolicyManagementArgs, opts ...ResourceOption) (*SqlFirewallPolicyManagement, error)
public SqlFirewallPolicyManagement(string name, SqlFirewallPolicyManagementArgs? args = null, CustomResourceOptions? opts = null)
public SqlFirewallPolicyManagement(String name, SqlFirewallPolicyManagementArgs args)
public SqlFirewallPolicyManagement(String name, SqlFirewallPolicyManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:SqlFirewallPolicyManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlFirewallPolicyManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlFirewallPolicyManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlFirewallPolicyManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlFirewallPolicyManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlFirewallPolicyManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlFirewallPolicyManagementResource = new Oci.DataSafe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", new()
{
AllowedClientIps = new[]
{
"string",
},
AllowedClientOsUsernames = new[]
{
"string",
},
AllowedClientPrograms = new[]
{
"string",
},
CompartmentId = "string",
DbUserName = "string",
DefinedTags =
{
{ "string", "any" },
},
Description = "string",
DisplayName = "string",
EnforcementScope = "string",
FreeformTags =
{
{ "string", "any" },
},
SqlFirewallPolicyId = "string",
State = "string",
Status = "string",
TargetId = "string",
ViolationAction = "string",
ViolationAudit = "string",
});
example, err := DataSafe.NewSqlFirewallPolicyManagement(ctx, "sqlFirewallPolicyManagementResource", &DataSafe.SqlFirewallPolicyManagementArgs{
AllowedClientIps: pulumi.StringArray{
pulumi.String("string"),
},
AllowedClientOsUsernames: pulumi.StringArray{
pulumi.String("string"),
},
AllowedClientPrograms: pulumi.StringArray{
pulumi.String("string"),
},
CompartmentId: pulumi.String("string"),
DbUserName: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EnforcementScope: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
SqlFirewallPolicyId: pulumi.String("string"),
State: pulumi.String("string"),
Status: pulumi.String("string"),
TargetId: pulumi.String("string"),
ViolationAction: pulumi.String("string"),
ViolationAudit: pulumi.String("string"),
})
var sqlFirewallPolicyManagementResource = new SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", SqlFirewallPolicyManagementArgs.builder()
.allowedClientIps("string")
.allowedClientOsUsernames("string")
.allowedClientPrograms("string")
.compartmentId("string")
.dbUserName("string")
.definedTags(Map.of("string", "any"))
.description("string")
.displayName("string")
.enforcementScope("string")
.freeformTags(Map.of("string", "any"))
.sqlFirewallPolicyId("string")
.state("string")
.status("string")
.targetId("string")
.violationAction("string")
.violationAudit("string")
.build());
sql_firewall_policy_management_resource = oci.data_safe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource",
allowed_client_ips=["string"],
allowed_client_os_usernames=["string"],
allowed_client_programs=["string"],
compartment_id="string",
db_user_name="string",
defined_tags={
"string": "any",
},
description="string",
display_name="string",
enforcement_scope="string",
freeform_tags={
"string": "any",
},
sql_firewall_policy_id="string",
state="string",
status="string",
target_id="string",
violation_action="string",
violation_audit="string")
const sqlFirewallPolicyManagementResource = new oci.datasafe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", {
allowedClientIps: ["string"],
allowedClientOsUsernames: ["string"],
allowedClientPrograms: ["string"],
compartmentId: "string",
dbUserName: "string",
definedTags: {
string: "any",
},
description: "string",
displayName: "string",
enforcementScope: "string",
freeformTags: {
string: "any",
},
sqlFirewallPolicyId: "string",
state: "string",
status: "string",
targetId: "string",
violationAction: "string",
violationAudit: "string",
});
type: oci:DataSafe:SqlFirewallPolicyManagement
properties:
allowedClientIps:
- string
allowedClientOsUsernames:
- string
allowedClientPrograms:
- string
compartmentId: string
dbUserName: string
definedTags:
string: any
description: string
displayName: string
enforcementScope: string
freeformTags:
string: any
sqlFirewallPolicyId: string
state: string
status: string
targetId: string
violationAction: string
violationAudit: string
SqlFirewallPolicyManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SqlFirewallPolicyManagement resource accepts the following input properties:
- Allowed
Client List<string>Ips - Allowed
Client List<string>Os Usernames - Allowed
Client List<string>Programs - Compartment
Id string - Db
User stringName - Dictionary<string, object>
- Description string
- Display
Name string - Enforcement
Scope string - Dictionary<string, object>
- Sql
Firewall stringPolicy Id - State string
- Status string
- Target
Id string - Violation
Action string - Violation
Audit string
- Allowed
Client []stringIps - Allowed
Client []stringOs Usernames - Allowed
Client []stringPrograms - Compartment
Id string - Db
User stringName - map[string]interface{}
- Description string
- Display
Name string - Enforcement
Scope string - map[string]interface{}
- Sql
Firewall stringPolicy Id - State string
- Status string
- Target
Id string - Violation
Action string - Violation
Audit string
- allowed
Client List<String>Ips - allowed
Client List<String>Os Usernames - allowed
Client List<String>Programs - compartment
Id String - db
User StringName - Map<String,Object>
- description String
- display
Name String - enforcement
Scope String - Map<String,Object>
- sql
Firewall StringPolicy Id - state String
- status String
- target
Id String - violation
Action String - violation
Audit String
- allowed
Client string[]Ips - allowed
Client string[]Os Usernames - allowed
Client string[]Programs - compartment
Id string - db
User stringName - {[key: string]: any}
- description string
- display
Name string - enforcement
Scope string - {[key: string]: any}
- sql
Firewall stringPolicy Id - state string
- status string
- target
Id string - violation
Action string - violation
Audit string
- allowed_
client_ Sequence[str]ips - allowed_
client_ Sequence[str]os_ usernames - allowed_
client_ Sequence[str]programs - compartment_
id str - db_
user_ strname - Mapping[str, Any]
- description str
- display_
name str - enforcement_
scope str - Mapping[str, Any]
- sql_
firewall_ strpolicy_ id - state str
- status str
- target_
id str - violation_
action str - violation_
audit str
- allowed
Client List<String>Ips - allowed
Client List<String>Os Usernames - allowed
Client List<String>Programs - compartment
Id String - db
User StringName - Map<Any>
- description String
- display
Name String - enforcement
Scope String - Map<Any>
- sql
Firewall StringPolicy Id - state String
- status String
- target
Id String - violation
Action String - violation
Audit String
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlFirewallPolicyManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Security
Policy stringId - Sql
Level string - Dictionary<string, object>
- Time
Created string - Time
Updated string
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Security
Policy stringId - Sql
Level string - map[string]interface{}
- Time
Created string - Time
Updated string
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - security
Policy StringId - sql
Level String - Map<String,Object>
- time
Created String - time
Updated String
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - security
Policy stringId - sql
Level string - {[key: string]: any}
- time
Created string - time
Updated string
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - security_
policy_ strid - sql_
level str - Mapping[str, Any]
- time_
created str - time_
updated str
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - security
Policy StringId - sql
Level String - Map<Any>
- time
Created String - time
Updated String
Look up Existing SqlFirewallPolicyManagement Resource
Get an existing SqlFirewallPolicyManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SqlFirewallPolicyManagementState, opts?: CustomResourceOptions): SqlFirewallPolicyManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_client_ips: Optional[Sequence[str]] = None,
allowed_client_os_usernames: Optional[Sequence[str]] = None,
allowed_client_programs: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
db_user_name: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enforcement_scope: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
security_policy_id: Optional[str] = None,
sql_firewall_policy_id: Optional[str] = None,
sql_level: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
target_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
violation_action: Optional[str] = None,
violation_audit: Optional[str] = None) -> SqlFirewallPolicyManagement
func GetSqlFirewallPolicyManagement(ctx *Context, name string, id IDInput, state *SqlFirewallPolicyManagementState, opts ...ResourceOption) (*SqlFirewallPolicyManagement, error)
public static SqlFirewallPolicyManagement Get(string name, Input<string> id, SqlFirewallPolicyManagementState? state, CustomResourceOptions? opts = null)
public static SqlFirewallPolicyManagement get(String name, Output<String> id, SqlFirewallPolicyManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Client List<string>Ips - Allowed
Client List<string>Os Usernames - Allowed
Client List<string>Programs - Compartment
Id string - Db
User stringName - Dictionary<string, object>
- Description string
- Display
Name string - Enforcement
Scope string - Dictionary<string, object>
- Lifecycle
Details string - Security
Policy stringId - Sql
Firewall stringPolicy Id - Sql
Level string - State string
- Status string
- Dictionary<string, object>
- Target
Id string - Time
Created string - Time
Updated string - Violation
Action string - Violation
Audit string
- Allowed
Client []stringIps - Allowed
Client []stringOs Usernames - Allowed
Client []stringPrograms - Compartment
Id string - Db
User stringName - map[string]interface{}
- Description string
- Display
Name string - Enforcement
Scope string - map[string]interface{}
- Lifecycle
Details string - Security
Policy stringId - Sql
Firewall stringPolicy Id - Sql
Level string - State string
- Status string
- map[string]interface{}
- Target
Id string - Time
Created string - Time
Updated string - Violation
Action string - Violation
Audit string
- allowed
Client List<String>Ips - allowed
Client List<String>Os Usernames - allowed
Client List<String>Programs - compartment
Id String - db
User StringName - Map<String,Object>
- description String
- display
Name String - enforcement
Scope String - Map<String,Object>
- lifecycle
Details String - security
Policy StringId - sql
Firewall StringPolicy Id - sql
Level String - state String
- status String
- Map<String,Object>
- target
Id String - time
Created String - time
Updated String - violation
Action String - violation
Audit String
- allowed
Client string[]Ips - allowed
Client string[]Os Usernames - allowed
Client string[]Programs - compartment
Id string - db
User stringName - {[key: string]: any}
- description string
- display
Name string - enforcement
Scope string - {[key: string]: any}
- lifecycle
Details string - security
Policy stringId - sql
Firewall stringPolicy Id - sql
Level string - state string
- status string
- {[key: string]: any}
- target
Id string - time
Created string - time
Updated string - violation
Action string - violation
Audit string
- allowed_
client_ Sequence[str]ips - allowed_
client_ Sequence[str]os_ usernames - allowed_
client_ Sequence[str]programs - compartment_
id str - db_
user_ strname - Mapping[str, Any]
- description str
- display_
name str - enforcement_
scope str - Mapping[str, Any]
- lifecycle_
details str - security_
policy_ strid - sql_
firewall_ strpolicy_ id - sql_
level str - state str
- status str
- Mapping[str, Any]
- target_
id str - time_
created str - time_
updated str - violation_
action str - violation_
audit str
- allowed
Client List<String>Ips - allowed
Client List<String>Os Usernames - allowed
Client List<String>Programs - compartment
Id String - db
User StringName - Map<Any>
- description String
- display
Name String - enforcement
Scope String - Map<Any>
- lifecycle
Details String - security
Policy StringId - sql
Firewall StringPolicy Id - sql
Level String - state String
- status String
- Map<Any>
- target
Id String - time
Created String - time
Updated String - violation
Action String - violation
Audit String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi