1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataSafe
  6. SubsettingPolicySubsettingRule
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.3.1
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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    SubsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    SubsettingPolicyId string

    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
    DisplayName string
    (Updatable) The display name of the subset rule
    PeerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    (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 SubsettingPolicySubsettingRuleScopeArgs
    (Updatable) The scope of the subset rule
    SubsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
    (Updatable) The details of the subset rule
    SubsettingPolicyId string

    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
    DisplayName string
    (Updatable) The display name of the subset rule
    PeerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    (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_entry object
    (Updatable) The details of the subset rule
    subsetting_policy_id string

    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_action string
    (Updatable) Strategy to be applied while processing peer tables
    related_tables_propagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode string
    (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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    subsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    subsettingPolicyId String

    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
    displayName String
    (Updatable) The display name of the subset rule
    peerTablesAction String
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    (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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    subsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    subsettingPolicyId string

    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
    displayName string
    (Updatable) The display name of the subset rule
    peerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode string
    (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 SubsettingPolicySubsettingRuleScopeArgs
    (Updatable) The scope of the subset rule
    subset_rule_entry SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
    (Updatable) The details of the subset rule
    subsetting_policy_id str

    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_action str
    (Updatable) Strategy to be applied while processing peer tables
    related_tables_propagation str
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode str
    (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
    subsetRuleEntry Property Map
    (Updatable) The details of the subset rule
    subsettingPolicyId String

    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
    displayName String
    (Updatable) The display name of the subset rule
    peerTablesAction String
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    (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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy

    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) -> SubsettingPolicySubsettingRule
    func 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.
    The following state arguments are supported:
    Description string
    (Updatable) The description of the subset rule
    DisplayName 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
    PeerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    (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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    SubsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    SubsettingPolicyId string

    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
    DisplayName 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
    PeerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    (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 SubsettingPolicySubsettingRuleScopeArgs
    (Updatable) The scope of the subset rule
    SubsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
    (Updatable) The details of the subset rule
    SubsettingPolicyId string

    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_action string
    (Updatable) Strategy to be applied while processing peer tables
    related_tables_propagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode string
    (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_entry object
    (Updatable) The details of the subset rule
    subsetting_policy_id string

    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
    displayName 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
    peerTablesAction String
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    (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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    subsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    subsettingPolicyId String

    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
    displayName 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
    peerTablesAction string
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation string
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode string
    (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 SubsettingPolicySubsettingRuleScope
    (Updatable) The scope of the subset rule
    subsetRuleEntry SubsettingPolicySubsettingRuleSubsetRuleEntry
    (Updatable) The details of the subset rule
    subsettingPolicyId string

    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_action str
    (Updatable) Strategy to be applied while processing peer tables
    related_tables_propagation str
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode str
    (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 SubsettingPolicySubsettingRuleScopeArgs
    (Updatable) The scope of the subset rule
    subset_rule_entry SubsettingPolicySubsettingRuleSubsetRuleEntryArgs
    (Updatable) The details of the subset rule
    subsetting_policy_id str

    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
    displayName 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
    peerTablesAction String
    (Updatable) Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    (Updatable) Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    (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
    subsetRuleEntry Property Map
    (Updatable) The details of the subset rule
    subsettingPolicyId String

    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

    SchemaName string
    (Updatable) The name of the schema containing the specific object to be subsetted
    ScopeType string
    (Updatable) Scope of a subsetting rule
    Object string
    (Updatable) The name of the specific object (e.g., table) to be subsetted
    SchemaName string
    (Updatable) The name of the schema containing the specific object to be subsetted
    ScopeType 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
    schemaName String
    (Updatable) The name of the schema containing the specific object to be subsetted
    scopeType String
    (Updatable) Scope of a subsetting rule
    object String
    (Updatable) The name of the specific object (e.g., table) to be subsetted
    schemaName string
    (Updatable) The name of the schema containing the specific object to be subsetted
    scopeType 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
    schemaName String
    (Updatable) The name of the schema containing the specific object to be subsetted
    scopeType String
    (Updatable) Scope of a subsetting rule
    object String
    (Updatable) The name of the specific object (e.g., table) to be subsetted

    SubsettingPolicySubsettingRuleSubsetRuleEntry, SubsettingPolicySubsettingRuleSubsetRuleEntryArgs

    RuleType string
    (Updatable) type of subset rule
    Condition string
    (Updatable) The SQL WHERE clause condition used to filter rows for the subset
    PartitionsLists 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)
    SubPartitionsLists List<string>
    (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
    RuleType string
    (Updatable) type of subset rule
    Condition string
    (Updatable) The SQL WHERE clause condition used to filter rows for the subset
    PartitionsLists []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)
    SubPartitionsLists []string
    (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_lists list(string)
    (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
    ruleType String
    (Updatable) type of subset rule
    condition String
    (Updatable) The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists 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)
    subPartitionsLists List<String>
    (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
    ruleType string
    (Updatable) type of subset rule
    condition string
    (Updatable) The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists 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)
    subPartitionsLists string[]
    (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_lists Sequence[str]
    (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
    ruleType String
    (Updatable) type of subset rule
    condition String
    (Updatable) The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists 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)
    subPartitionsLists List<String>
    (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 oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.3.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial