published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
This resource provides the Subsetting Policy Subsetting Rule resource in Oracle Cloud Infrastructure Data Safe service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/SubsettingRule
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe
Details to create a new subsetting rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubsettingPolicySubsettingRule = new oci.datasafe.SubsettingPolicySubsettingRule("test_subsetting_policy_subsetting_rule", {
scope: {
schemaName: subsettingPolicySubsettingRuleScopeSchemaName,
scopeType: subsettingPolicySubsettingRuleScopeScopeType,
object: subsettingPolicySubsettingRuleScopeObject,
},
subsetRuleEntry: {
ruleType: subsettingPolicySubsettingRuleSubsetRuleEntryRuleType,
condition: subsettingPolicySubsettingRuleSubsetRuleEntryCondition,
partitionsLists: subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList,
percent: subsettingPolicySubsettingRuleSubsetRuleEntryPercent,
subPartitionsLists: subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList,
},
subsettingPolicyId: testSubsettingPolicy.id,
description: subsettingPolicySubsettingRuleDescription,
displayName: subsettingPolicySubsettingRuleDisplayName,
peerTablesAction: subsettingPolicySubsettingRulePeerTablesAction,
relatedTablesPropagation: subsettingPolicySubsettingRuleRelatedTablesPropagation,
ruleCombinationMode: subsettingPolicySubsettingRuleRuleCombinationMode,
});
import pulumi
import pulumi_oci as oci
test_subsetting_policy_subsetting_rule = oci.datasafe.SubsettingPolicySubsettingRule("test_subsetting_policy_subsetting_rule",
scope={
"schema_name": subsetting_policy_subsetting_rule_scope_schema_name,
"scope_type": subsetting_policy_subsetting_rule_scope_scope_type,
"object": subsetting_policy_subsetting_rule_scope_object,
},
subset_rule_entry={
"rule_type": subsetting_policy_subsetting_rule_subset_rule_entry_rule_type,
"condition": subsetting_policy_subsetting_rule_subset_rule_entry_condition,
"partitions_lists": subsetting_policy_subsetting_rule_subset_rule_entry_partitions_list,
"percent": subsetting_policy_subsetting_rule_subset_rule_entry_percent,
"sub_partitions_lists": subsetting_policy_subsetting_rule_subset_rule_entry_sub_partitions_list,
},
subsetting_policy_id=test_subsetting_policy["id"],
description=subsetting_policy_subsetting_rule_description,
display_name=subsetting_policy_subsetting_rule_display_name,
peer_tables_action=subsetting_policy_subsetting_rule_peer_tables_action,
related_tables_propagation=subsetting_policy_subsetting_rule_related_tables_propagation,
rule_combination_mode=subsetting_policy_subsetting_rule_rule_combination_mode)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/datasafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasafe.NewSubsettingPolicySubsettingRule(ctx, "test_subsetting_policy_subsetting_rule", &datasafe.SubsettingPolicySubsettingRuleArgs{
Scope: &datasafe.SubsettingPolicySubsettingRuleScopeArgs{
SchemaName: pulumi.Any(subsettingPolicySubsettingRuleScopeSchemaName),
ScopeType: pulumi.Any(subsettingPolicySubsettingRuleScopeScopeType),
Object: pulumi.Any(subsettingPolicySubsettingRuleScopeObject),
},
SubsetRuleEntry: &datasafe.SubsettingPolicySubsettingRuleSubsetRuleEntryArgs{
RuleType: pulumi.Any(subsettingPolicySubsettingRuleSubsetRuleEntryRuleType),
Condition: pulumi.Any(subsettingPolicySubsettingRuleSubsetRuleEntryCondition),
PartitionsLists: pulumi.Any(subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList),
Percent: pulumi.Any(subsettingPolicySubsettingRuleSubsetRuleEntryPercent),
SubPartitionsLists: pulumi.Any(subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList),
},
SubsettingPolicyId: pulumi.Any(testSubsettingPolicy.Id),
Description: pulumi.Any(subsettingPolicySubsettingRuleDescription),
DisplayName: pulumi.Any(subsettingPolicySubsettingRuleDisplayName),
PeerTablesAction: pulumi.Any(subsettingPolicySubsettingRulePeerTablesAction),
RelatedTablesPropagation: pulumi.Any(subsettingPolicySubsettingRuleRelatedTablesPropagation),
RuleCombinationMode: pulumi.Any(subsettingPolicySubsettingRuleRuleCombinationMode),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSubsettingPolicySubsettingRule = new Oci.DataSafe.SubsettingPolicySubsettingRule("test_subsetting_policy_subsetting_rule", new()
{
Scope = new Oci.DataSafe.Inputs.SubsettingPolicySubsettingRuleScopeArgs
{
SchemaName = subsettingPolicySubsettingRuleScopeSchemaName,
ScopeType = subsettingPolicySubsettingRuleScopeScopeType,
Object = subsettingPolicySubsettingRuleScopeObject,
},
SubsetRuleEntry = new Oci.DataSafe.Inputs.SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
{
RuleType = subsettingPolicySubsettingRuleSubsetRuleEntryRuleType,
Condition = subsettingPolicySubsettingRuleSubsetRuleEntryCondition,
PartitionsLists = subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList,
Percent = subsettingPolicySubsettingRuleSubsetRuleEntryPercent,
SubPartitionsLists = subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList,
},
SubsettingPolicyId = testSubsettingPolicy.Id,
Description = subsettingPolicySubsettingRuleDescription,
DisplayName = subsettingPolicySubsettingRuleDisplayName,
PeerTablesAction = subsettingPolicySubsettingRulePeerTablesAction,
RelatedTablesPropagation = subsettingPolicySubsettingRuleRelatedTablesPropagation,
RuleCombinationMode = subsettingPolicySubsettingRuleRuleCombinationMode,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.SubsettingPolicySubsettingRule;
import com.pulumi.oci.DataSafe.SubsettingPolicySubsettingRuleArgs;
import com.pulumi.oci.DataSafe.inputs.SubsettingPolicySubsettingRuleScopeArgs;
import com.pulumi.oci.DataSafe.inputs.SubsettingPolicySubsettingRuleSubsetRuleEntryArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testSubsettingPolicySubsettingRule = new SubsettingPolicySubsettingRule("testSubsettingPolicySubsettingRule", SubsettingPolicySubsettingRuleArgs.builder()
.scope(SubsettingPolicySubsettingRuleScopeArgs.builder()
.schemaName(subsettingPolicySubsettingRuleScopeSchemaName)
.scopeType(subsettingPolicySubsettingRuleScopeScopeType)
.object(subsettingPolicySubsettingRuleScopeObject)
.build())
.subsetRuleEntry(SubsettingPolicySubsettingRuleSubsetRuleEntryArgs.builder()
.ruleType(subsettingPolicySubsettingRuleSubsetRuleEntryRuleType)
.condition(subsettingPolicySubsettingRuleSubsetRuleEntryCondition)
.partitionsLists(subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList)
.percent(subsettingPolicySubsettingRuleSubsetRuleEntryPercent)
.subPartitionsLists(subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList)
.build())
.subsettingPolicyId(testSubsettingPolicy.get("id"))
.description(subsettingPolicySubsettingRuleDescription)
.displayName(subsettingPolicySubsettingRuleDisplayName)
.peerTablesAction(subsettingPolicySubsettingRulePeerTablesAction)
.relatedTablesPropagation(subsettingPolicySubsettingRuleRelatedTablesPropagation)
.ruleCombinationMode(subsettingPolicySubsettingRuleRuleCombinationMode)
.build());
}
}
resources:
testSubsettingPolicySubsettingRule:
type: oci:DataSafe:SubsettingPolicySubsettingRule
name: test_subsetting_policy_subsetting_rule
properties:
scope:
schemaName: ${subsettingPolicySubsettingRuleScopeSchemaName}
scopeType: ${subsettingPolicySubsettingRuleScopeScopeType}
object: ${subsettingPolicySubsettingRuleScopeObject}
subsetRuleEntry:
ruleType: ${subsettingPolicySubsettingRuleSubsetRuleEntryRuleType}
condition: ${subsettingPolicySubsettingRuleSubsetRuleEntryCondition}
partitionsLists: ${subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList}
percent: ${subsettingPolicySubsettingRuleSubsetRuleEntryPercent}
subPartitionsLists: ${subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList}
subsettingPolicyId: ${testSubsettingPolicy.id}
description: ${subsettingPolicySubsettingRuleDescription}
displayName: ${subsettingPolicySubsettingRuleDisplayName}
peerTablesAction: ${subsettingPolicySubsettingRulePeerTablesAction}
relatedTablesPropagation: ${subsettingPolicySubsettingRuleRelatedTablesPropagation}
ruleCombinationMode: ${subsettingPolicySubsettingRuleRuleCombinationMode}
terraform {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
resource "oci_data_safe_subsetting_policy_subsetting_rule" "test_subsetting_policy_subsetting_rule" {
lifecycle {
create_before_destroy = true
}
scope = {
schema_name = subsettingPolicySubsettingRuleScopeSchemaName
scope_type = subsettingPolicySubsettingRuleScopeScopeType
object = subsettingPolicySubsettingRuleScopeObject
}
#Required
#Optional
subset_rule_entry = {
rule_type = subsettingPolicySubsettingRuleSubsetRuleEntryRuleType
condition = subsettingPolicySubsettingRuleSubsetRuleEntryCondition
partitions_lists = subsettingPolicySubsettingRuleSubsetRuleEntryPartitionsList
percent = subsettingPolicySubsettingRuleSubsetRuleEntryPercent
sub_partitions_lists = subsettingPolicySubsettingRuleSubsetRuleEntrySubPartitionsList
}
#Required
#Optional
subsetting_policy_id = testSubsettingPolicy.id
description = subsettingPolicySubsettingRuleDescription
display_name = subsettingPolicySubsettingRuleDisplayName
peer_tables_action = subsettingPolicySubsettingRulePeerTablesAction
related_tables_propagation = subsettingPolicySubsettingRuleRelatedTablesPropagation
rule_combination_mode = subsettingPolicySubsettingRuleRuleCombinationMode
}
Create SubsettingPolicySubsettingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SubsettingPolicySubsettingRule(name: string, args: SubsettingPolicySubsettingRuleArgs, opts?: CustomResourceOptions);@overload
def SubsettingPolicySubsettingRule(resource_name: str,
args: SubsettingPolicySubsettingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SubsettingPolicySubsettingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[SubsettingPolicySubsettingRuleScopeArgs] = None,
subset_rule_entry: Optional[SubsettingPolicySubsettingRuleSubsetRuleEntryArgs] = None,
subsetting_policy_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
peer_tables_action: Optional[str] = None,
related_tables_propagation: Optional[str] = None,
rule_combination_mode: Optional[str] = None)func NewSubsettingPolicySubsettingRule(ctx *Context, name string, args SubsettingPolicySubsettingRuleArgs, opts ...ResourceOption) (*SubsettingPolicySubsettingRule, error)public SubsettingPolicySubsettingRule(string name, SubsettingPolicySubsettingRuleArgs args, CustomResourceOptions? opts = null)
public SubsettingPolicySubsettingRule(String name, SubsettingPolicySubsettingRuleArgs args)
public SubsettingPolicySubsettingRule(String name, SubsettingPolicySubsettingRuleArgs args, CustomResourceOptions options)
type: oci:DataSafe:SubsettingPolicySubsettingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_data_safe_subsetting_policy_subsetting_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SubsettingPolicySubsettingRuleArgs
- 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 SubsettingPolicySubsettingRuleArgs
- 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 SubsettingPolicySubsettingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubsettingPolicySubsettingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubsettingPolicySubsettingRuleArgs
- 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 subsettingPolicySubsettingRuleResource = new Oci.DataSafe.SubsettingPolicySubsettingRule("subsettingPolicySubsettingRuleResource", new()
{
Scope = new Oci.DataSafe.Inputs.SubsettingPolicySubsettingRuleScopeArgs
{
SchemaName = "string",
ScopeType = "string",
Object = "string",
},
SubsetRuleEntry = new Oci.DataSafe.Inputs.SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
{
RuleType = "string",
Condition = "string",
PartitionsLists = new[]
{
"string",
},
Percent = 0,
SubPartitionsLists = new[]
{
"string",
},
},
SubsettingPolicyId = "string",
Description = "string",
DisplayName = "string",
PeerTablesAction = "string",
RelatedTablesPropagation = "string",
RuleCombinationMode = "string",
});
example, err := datasafe.NewSubsettingPolicySubsettingRule(ctx, "subsettingPolicySubsettingRuleResource", &datasafe.SubsettingPolicySubsettingRuleArgs{
Scope: &datasafe.SubsettingPolicySubsettingRuleScopeArgs{
SchemaName: pulumi.String("string"),
ScopeType: pulumi.String("string"),
Object: pulumi.String("string"),
},
SubsetRuleEntry: &datasafe.SubsettingPolicySubsettingRuleSubsetRuleEntryArgs{
RuleType: pulumi.String("string"),
Condition: pulumi.String("string"),
PartitionsLists: pulumi.StringArray{
pulumi.String("string"),
},
Percent: pulumi.Int(0),
SubPartitionsLists: pulumi.StringArray{
pulumi.String("string"),
},
},
SubsettingPolicyId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
PeerTablesAction: pulumi.String("string"),
RelatedTablesPropagation: pulumi.String("string"),
RuleCombinationMode: pulumi.String("string"),
})
resource "oci_data_safe_subsetting_policy_subsetting_rule" "subsettingPolicySubsettingRuleResource" {
lifecycle {
create_before_destroy = true
}
scope = {
schema_name = "string"
scope_type = "string"
object = "string"
}
subset_rule_entry = {
rule_type = "string"
condition = "string"
partitions_lists = ["string"]
percent = 0
sub_partitions_lists = ["string"]
}
subsetting_policy_id = "string"
description = "string"
display_name = "string"
peer_tables_action = "string"
related_tables_propagation = "string"
rule_combination_mode = "string"
}
var subsettingPolicySubsettingRuleResource = new SubsettingPolicySubsettingRule("subsettingPolicySubsettingRuleResource", SubsettingPolicySubsettingRuleArgs.builder()
.scope(SubsettingPolicySubsettingRuleScopeArgs.builder()
.schemaName("string")
.scopeType("string")
.object("string")
.build())
.subsetRuleEntry(SubsettingPolicySubsettingRuleSubsetRuleEntryArgs.builder()
.ruleType("string")
.condition("string")
.partitionsLists("string")
.percent(0)
.subPartitionsLists("string")
.build())
.subsettingPolicyId("string")
.description("string")
.displayName("string")
.peerTablesAction("string")
.relatedTablesPropagation("string")
.ruleCombinationMode("string")
.build());
subsetting_policy_subsetting_rule_resource = oci.datasafe.SubsettingPolicySubsettingRule("subsettingPolicySubsettingRuleResource",
scope={
"schema_name": "string",
"scope_type": "string",
"object": "string",
},
subset_rule_entry={
"rule_type": "string",
"condition": "string",
"partitions_lists": ["string"],
"percent": 0,
"sub_partitions_lists": ["string"],
},
subsetting_policy_id="string",
description="string",
display_name="string",
peer_tables_action="string",
related_tables_propagation="string",
rule_combination_mode="string")
const subsettingPolicySubsettingRuleResource = new oci.datasafe.SubsettingPolicySubsettingRule("subsettingPolicySubsettingRuleResource", {
scope: {
schemaName: "string",
scopeType: "string",
object: "string",
},
subsetRuleEntry: {
ruleType: "string",
condition: "string",
partitionsLists: ["string"],
percent: 0,
subPartitionsLists: ["string"],
},
subsettingPolicyId: "string",
description: "string",
displayName: "string",
peerTablesAction: "string",
relatedTablesPropagation: "string",
ruleCombinationMode: "string",
});
type: oci:DataSafe:SubsettingPolicySubsettingRule
properties:
description: string
displayName: string
peerTablesAction: string
relatedTablesPropagation: string
ruleCombinationMode: string
scope:
object: string
schemaName: string
scopeType: string
subsetRuleEntry:
condition: string
partitionsLists:
- string
percent: 0
ruleType: string
subPartitionsLists:
- string
subsettingPolicyId: string
SubsettingPolicySubsettingRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SubsettingPolicySubsettingRule resource accepts the following input properties:
- Scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- Subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- Subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- Description string
- (Updatable) The description of the subset rule
- Display
Name string - (Updatable) The display name of the subset rule
- Peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- Scope
Subsetting
Policy Subsetting Rule Scope Args - (Updatable) The scope of the subset rule
- Subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry Args - (Updatable) The details of the subset rule
- Subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- Description string
- (Updatable) The description of the subset rule
- Display
Name string - (Updatable) The display name of the subset rule
- Peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope object
- (Updatable) The scope of the subset rule
- subset_
rule_ objectentry - (Updatable) The details of the subset rule
- subsetting_
policy_ stringid The OCID of the subsetting policy.
** 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
- description string
- (Updatable) The description of the subset rule
- display_
name string - (Updatable) The display name of the subset rule
- peer_
tables_ stringaction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ stringmode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- subsetting
Policy StringId The OCID of the subsetting policy.
** 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
- description String
- (Updatable) The description of the subset rule
- display
Name String - (Updatable) The display name of the subset rule
- peer
Tables StringAction - (Updatable) Strategy to be applied while processing peer tables
- String
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- description string
- (Updatable) The description of the subset rule
- display
Name string - (Updatable) The display name of the subset rule
- peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope Args - (Updatable) The scope of the subset rule
- subset_
rule_ Subsettingentry Policy Subsetting Rule Subset Rule Entry Args - (Updatable) The details of the subset rule
- subsetting_
policy_ strid The OCID of the subsetting policy.
** 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
- description str
- (Updatable) The description of the subset rule
- display_
name str - (Updatable) The display name of the subset rule
- peer_
tables_ straction - (Updatable) Strategy to be applied while processing peer tables
- str
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ strmode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope Property Map
- (Updatable) The scope of the subset rule
- subset
Rule Property MapEntry - (Updatable) The details of the subset rule
- subsetting
Policy StringId The OCID of the subsetting policy.
** 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
- description String
- (Updatable) The description of the subset rule
- display
Name String - (Updatable) The display name of the subset rule
- peer
Tables StringAction - (Updatable) Strategy to be applied while processing peer tables
- String
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the SubsettingPolicySubsettingRule resource produces the following output properties:
Look up Existing SubsettingPolicySubsettingRule Resource
Get an existing SubsettingPolicySubsettingRule 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?: SubsettingPolicySubsettingRuleState, opts?: CustomResourceOptions): SubsettingPolicySubsettingRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
key: Optional[str] = None,
peer_tables_action: Optional[str] = None,
related_tables_propagation: Optional[str] = None,
rule_combination_mode: Optional[str] = None,
scope: Optional[SubsettingPolicySubsettingRuleScopeArgs] = None,
subset_rule_entry: Optional[SubsettingPolicySubsettingRuleSubsetRuleEntryArgs] = None,
subsetting_policy_id: Optional[str] = None) -> SubsettingPolicySubsettingRulefunc GetSubsettingPolicySubsettingRule(ctx *Context, name string, id IDInput, state *SubsettingPolicySubsettingRuleState, opts ...ResourceOption) (*SubsettingPolicySubsettingRule, error)public static SubsettingPolicySubsettingRule Get(string name, Input<string> id, SubsettingPolicySubsettingRuleState? state, CustomResourceOptions? opts = null)public static SubsettingPolicySubsettingRule get(String name, Output<String> id, SubsettingPolicySubsettingRuleState state, CustomResourceOptions options)resources: _: type: oci:DataSafe:SubsettingPolicySubsettingRule get: id: ${id}import {
to = oci_data_safe_subsetting_policy_subsetting_rule.example
id = "${id}"
}
- 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.
- Description string
- (Updatable) The description of the subset rule
- Display
Name string - (Updatable) The display name of the subset rule
- Key string
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- Peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- Scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- Subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- Subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- Description string
- (Updatable) The description of the subset rule
- Display
Name string - (Updatable) The display name of the subset rule
- Key string
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- Peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- Scope
Subsetting
Policy Subsetting Rule Scope Args - (Updatable) The scope of the subset rule
- Subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry Args - (Updatable) The details of the subset rule
- Subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- description string
- (Updatable) The description of the subset rule
- display_
name string - (Updatable) The display name of the subset rule
- key string
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- peer_
tables_ stringaction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ stringmode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope object
- (Updatable) The scope of the subset rule
- subset_
rule_ objectentry - (Updatable) The details of the subset rule
- subsetting_
policy_ stringid The OCID of the subsetting policy.
** 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
- description String
- (Updatable) The description of the subset rule
- display
Name String - (Updatable) The display name of the subset rule
- key String
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- peer
Tables StringAction - (Updatable) Strategy to be applied while processing peer tables
- String
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- subsetting
Policy StringId The OCID of the subsetting policy.
** 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
- description string
- (Updatable) The description of the subset rule
- display
Name string - (Updatable) The display name of the subset rule
- key string
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- peer
Tables stringAction - (Updatable) Strategy to be applied while processing peer tables
- string
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination stringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope - (Updatable) The scope of the subset rule
- subset
Rule SubsettingEntry Policy Subsetting Rule Subset Rule Entry - (Updatable) The details of the subset rule
- subsetting
Policy stringId The OCID of the subsetting policy.
** 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
- description str
- (Updatable) The description of the subset rule
- display_
name str - (Updatable) The display name of the subset rule
- key str
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- peer_
tables_ straction - (Updatable) Strategy to be applied while processing peer tables
- str
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ strmode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope
Subsetting
Policy Subsetting Rule Scope Args - (Updatable) The scope of the subset rule
- subset_
rule_ Subsettingentry Policy Subsetting Rule Subset Rule Entry Args - (Updatable) The details of the subset rule
- subsetting_
policy_ strid The OCID of the subsetting policy.
** 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
- description String
- (Updatable) The description of the subset rule
- display
Name String - (Updatable) The display name of the subset rule
- key String
- The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
- peer
Tables StringAction - (Updatable) Strategy to be applied while processing peer tables
- String
- (Updatable) Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - (Updatable) Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
- scope Property Map
- (Updatable) The scope of the subset rule
- subset
Rule Property MapEntry - (Updatable) The details of the subset rule
- subsetting
Policy StringId The OCID of the subsetting policy.
** 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
Supporting Types
SubsettingPolicySubsettingRuleScope, SubsettingPolicySubsettingRuleScopeArgs
- Schema
Name string - (Updatable) The name of the schema containing the specific object to be subsetted
- Scope
Type string - (Updatable) Scope of a subsetting rule
- Object string
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- Schema
Name string - (Updatable) The name of the schema containing the specific object to be subsetted
- Scope
Type string - (Updatable) Scope of a subsetting rule
- Object string
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- schema_
name string - (Updatable) The name of the schema containing the specific object to be subsetted
- scope_
type string - (Updatable) Scope of a subsetting rule
- object string
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- schema
Name String - (Updatable) The name of the schema containing the specific object to be subsetted
- scope
Type String - (Updatable) Scope of a subsetting rule
- object String
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- schema
Name string - (Updatable) The name of the schema containing the specific object to be subsetted
- scope
Type string - (Updatable) Scope of a subsetting rule
- object string
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- schema_
name str - (Updatable) The name of the schema containing the specific object to be subsetted
- scope_
type str - (Updatable) Scope of a subsetting rule
- object str
- (Updatable) The name of the specific object (e.g., table) to be subsetted
- schema
Name String - (Updatable) The name of the schema containing the specific object to be subsetted
- scope
Type String - (Updatable) Scope of a subsetting rule
- object String
- (Updatable) The name of the specific object (e.g., table) to be subsetted
SubsettingPolicySubsettingRuleSubsetRuleEntry, SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
- Rule
Type string - (Updatable) type of subset rule
- Condition string
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- Partitions
Lists List<string> - (Updatable) A list of partition names which are to be part of the subset data
- Percent int
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- Sub
Partitions List<string>Lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- Rule
Type string - (Updatable) type of subset rule
- Condition string
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- Partitions
Lists []string - (Updatable) A list of partition names which are to be part of the subset data
- Percent int
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- Sub
Partitions []stringLists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- rule_
type string - (Updatable) type of subset rule
- condition string
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- partitions_
lists list(string) - (Updatable) A list of partition names which are to be part of the subset data
- percent number
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- sub_
partitions_ list(string)lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- rule
Type String - (Updatable) type of subset rule
- condition String
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- partitions
Lists List<String> - (Updatable) A list of partition names which are to be part of the subset data
- percent Integer
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- sub
Partitions List<String>Lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- rule
Type string - (Updatable) type of subset rule
- condition string
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- partitions
Lists string[] - (Updatable) A list of partition names which are to be part of the subset data
- percent number
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- sub
Partitions string[]Lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- rule_
type str - (Updatable) type of subset rule
- condition str
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- partitions_
lists Sequence[str] - (Updatable) A list of partition names which are to be part of the subset data
- percent int
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- sub_
partitions_ Sequence[str]lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
- rule
Type String - (Updatable) type of subset rule
- condition String
- (Updatable) The SQL WHERE clause condition used to filter rows for the subset
- partitions
Lists List<String> - (Updatable) A list of partition names which are to be part of the subset data
- percent Number
- (Updatable) The percentage of rows to retain in the subset (between 0 and 100)
- sub
Partitions List<String>Lists - (Updatable) A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
Import
SubsettingPolicySubsettingRules can be imported using the id, e.g.
$ pulumi import oci:DataSafe/subsettingPolicySubsettingRule:SubsettingPolicySubsettingRule test_subsetting_policy_subsetting_rule "subsettingPolicies/{subsettingPolicyId}/subsettingRules/{subsettingRuleKey}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Tuesday, Oct 13, 2026 by Pulumi