1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. IotIotDomainChangeDataRetentionPeriod
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIotDomainChangeDataRetentionPeriod = new oci.oci.IotIotDomainChangeDataRetentionPeriod("test_iot_domain_change_data_retention_period", {
        dataRetentionPeriodInDays: iotDomainChangeDataRetentionPeriodDataRetentionPeriodInDays,
        iotDomainId: testIotDomain.id,
        type: iotDomainChangeDataRetentionPeriodType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_iot_domain_change_data_retention_period = oci.oci.IotIotDomainChangeDataRetentionPeriod("test_iot_domain_change_data_retention_period",
        data_retention_period_in_days=iot_domain_change_data_retention_period_data_retention_period_in_days,
        iot_domain_id=test_iot_domain["id"],
        type=iot_domain_change_data_retention_period_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.NewIotIotDomainChangeDataRetentionPeriod(ctx, "test_iot_domain_change_data_retention_period", &oci.IotIotDomainChangeDataRetentionPeriodArgs{
    			DataRetentionPeriodInDays: pulumi.Any(iotDomainChangeDataRetentionPeriodDataRetentionPeriodInDays),
    			IotDomainId:               pulumi.Any(testIotDomain.Id),
    			Type:                      pulumi.Any(iotDomainChangeDataRetentionPeriodType),
    		})
    		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 testIotDomainChangeDataRetentionPeriod = new Oci.Oci.IotIotDomainChangeDataRetentionPeriod("test_iot_domain_change_data_retention_period", new()
        {
            DataRetentionPeriodInDays = iotDomainChangeDataRetentionPeriodDataRetentionPeriodInDays,
            IotDomainId = testIotDomain.Id,
            Type = iotDomainChangeDataRetentionPeriodType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.IotIotDomainChangeDataRetentionPeriod;
    import com.pulumi.oci.oci.IotIotDomainChangeDataRetentionPeriodArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 testIotDomainChangeDataRetentionPeriod = new IotIotDomainChangeDataRetentionPeriod("testIotDomainChangeDataRetentionPeriod", IotIotDomainChangeDataRetentionPeriodArgs.builder()
                .dataRetentionPeriodInDays(iotDomainChangeDataRetentionPeriodDataRetentionPeriodInDays)
                .iotDomainId(testIotDomain.id())
                .type(iotDomainChangeDataRetentionPeriodType)
                .build());
    
        }
    }
    
    resources:
      testIotDomainChangeDataRetentionPeriod:
        type: oci:oci:IotIotDomainChangeDataRetentionPeriod
        name: test_iot_domain_change_data_retention_period
        properties:
          dataRetentionPeriodInDays: ${iotDomainChangeDataRetentionPeriodDataRetentionPeriodInDays}
          iotDomainId: ${testIotDomain.id}
          type: ${iotDomainChangeDataRetentionPeriodType}
    

    Create IotIotDomainChangeDataRetentionPeriod Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IotIotDomainChangeDataRetentionPeriod(name: string, args: IotIotDomainChangeDataRetentionPeriodArgs, opts?: CustomResourceOptions);
    @overload
    def IotIotDomainChangeDataRetentionPeriod(resource_name: str,
                                              args: IotIotDomainChangeDataRetentionPeriodArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IotIotDomainChangeDataRetentionPeriod(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              data_retention_period_in_days: Optional[int] = None,
                                              iot_domain_id: Optional[str] = None,
                                              type: Optional[str] = None)
    func NewIotIotDomainChangeDataRetentionPeriod(ctx *Context, name string, args IotIotDomainChangeDataRetentionPeriodArgs, opts ...ResourceOption) (*IotIotDomainChangeDataRetentionPeriod, error)
    public IotIotDomainChangeDataRetentionPeriod(string name, IotIotDomainChangeDataRetentionPeriodArgs args, CustomResourceOptions? opts = null)
    public IotIotDomainChangeDataRetentionPeriod(String name, IotIotDomainChangeDataRetentionPeriodArgs args)
    public IotIotDomainChangeDataRetentionPeriod(String name, IotIotDomainChangeDataRetentionPeriodArgs args, CustomResourceOptions options)
    
    type: oci:oci:IotIotDomainChangeDataRetentionPeriod
    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 IotIotDomainChangeDataRetentionPeriodArgs
    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 IotIotDomainChangeDataRetentionPeriodArgs
    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 IotIotDomainChangeDataRetentionPeriodArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IotIotDomainChangeDataRetentionPeriodArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IotIotDomainChangeDataRetentionPeriodArgs
    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 iotIotDomainChangeDataRetentionPeriodResource = new Oci.Oci.IotIotDomainChangeDataRetentionPeriod("iotIotDomainChangeDataRetentionPeriodResource", new()
    {
        DataRetentionPeriodInDays = 0,
        IotDomainId = "string",
        Type = "string",
    });
    
    example, err := oci.NewIotIotDomainChangeDataRetentionPeriod(ctx, "iotIotDomainChangeDataRetentionPeriodResource", &oci.IotIotDomainChangeDataRetentionPeriodArgs{
    	DataRetentionPeriodInDays: pulumi.Int(0),
    	IotDomainId:               pulumi.String("string"),
    	Type:                      pulumi.String("string"),
    })
    
    var iotIotDomainChangeDataRetentionPeriodResource = new IotIotDomainChangeDataRetentionPeriod("iotIotDomainChangeDataRetentionPeriodResource", IotIotDomainChangeDataRetentionPeriodArgs.builder()
        .dataRetentionPeriodInDays(0)
        .iotDomainId("string")
        .type("string")
        .build());
    
    iot_iot_domain_change_data_retention_period_resource = oci.oci.IotIotDomainChangeDataRetentionPeriod("iotIotDomainChangeDataRetentionPeriodResource",
        data_retention_period_in_days=0,
        iot_domain_id="string",
        type="string")
    
    const iotIotDomainChangeDataRetentionPeriodResource = new oci.oci.IotIotDomainChangeDataRetentionPeriod("iotIotDomainChangeDataRetentionPeriodResource", {
        dataRetentionPeriodInDays: 0,
        iotDomainId: "string",
        type: "string",
    });
    
    type: oci:oci:IotIotDomainChangeDataRetentionPeriod
    properties:
        dataRetentionPeriodInDays: 0
        iotDomainId: string
        type: string
    

    IotIotDomainChangeDataRetentionPeriod 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 IotIotDomainChangeDataRetentionPeriod resource accepts the following input properties:

    DataRetentionPeriodInDays int
    The duration (in days) for which data will be retained in the IoT domain.
    IotDomainId string
    The OCID of the IoT domain.
    Type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    DataRetentionPeriodInDays int
    The duration (in days) for which data will be retained in the IoT domain.
    IotDomainId string
    The OCID of the IoT domain.
    Type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays Integer
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId String
    The OCID of the IoT domain.
    type String

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays number
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId string
    The OCID of the IoT domain.
    type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    data_retention_period_in_days int
    The duration (in days) for which data will be retained in the IoT domain.
    iot_domain_id str
    The OCID of the IoT domain.
    type str

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays Number
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId String
    The OCID of the IoT domain.
    type String

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IotIotDomainChangeDataRetentionPeriod resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IotIotDomainChangeDataRetentionPeriod Resource

    Get an existing IotIotDomainChangeDataRetentionPeriod 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?: IotIotDomainChangeDataRetentionPeriodState, opts?: CustomResourceOptions): IotIotDomainChangeDataRetentionPeriod
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_retention_period_in_days: Optional[int] = None,
            iot_domain_id: Optional[str] = None,
            type: Optional[str] = None) -> IotIotDomainChangeDataRetentionPeriod
    func GetIotIotDomainChangeDataRetentionPeriod(ctx *Context, name string, id IDInput, state *IotIotDomainChangeDataRetentionPeriodState, opts ...ResourceOption) (*IotIotDomainChangeDataRetentionPeriod, error)
    public static IotIotDomainChangeDataRetentionPeriod Get(string name, Input<string> id, IotIotDomainChangeDataRetentionPeriodState? state, CustomResourceOptions? opts = null)
    public static IotIotDomainChangeDataRetentionPeriod get(String name, Output<String> id, IotIotDomainChangeDataRetentionPeriodState state, CustomResourceOptions options)
    resources:  _:    type: oci:oci:IotIotDomainChangeDataRetentionPeriod    get:      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:
    DataRetentionPeriodInDays int
    The duration (in days) for which data will be retained in the IoT domain.
    IotDomainId string
    The OCID of the IoT domain.
    Type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    DataRetentionPeriodInDays int
    The duration (in days) for which data will be retained in the IoT domain.
    IotDomainId string
    The OCID of the IoT domain.
    Type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays Integer
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId String
    The OCID of the IoT domain.
    type String

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays number
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId string
    The OCID of the IoT domain.
    type string

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    data_retention_period_in_days int
    The duration (in days) for which data will be retained in the IoT domain.
    iot_domain_id str
    The OCID of the IoT domain.
    type str

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    dataRetentionPeriodInDays Number
    The duration (in days) for which data will be retained in the IoT domain.
    iotDomainId String
    The OCID of the IoT domain.
    type String

    The type of data retention period to apply. Allowed values are RAW_DATA, REJECTED_DATA, HISTORIZED_DATA, and RAW_COMMAND_DATA.

    ** 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

    Import

    Import is not supported for this resource.

    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
    Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate