oci.DataSafe.DataSafeConfiguration
Explore with Pulumi AI
This resource provides the Data Safe Configuration resource in Oracle Cloud Infrastructure Data Safe service.
Enables Data Safe in the tenancy and region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataSafeConfiguration = new oci.datasafe.DataSafeConfiguration("test_data_safe_configuration", {
    isEnabled: dataSafeConfigurationIsEnabled,
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_data_safe_configuration = oci.data_safe.DataSafeConfiguration("test_data_safe_configuration",
    is_enabled=data_safe_configuration_is_enabled,
    compartment_id=compartment_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.NewDataSafeConfiguration(ctx, "test_data_safe_configuration", &datasafe.DataSafeConfigurationArgs{
			IsEnabled:     pulumi.Any(dataSafeConfigurationIsEnabled),
			CompartmentId: pulumi.Any(compartmentId),
		})
		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 testDataSafeConfiguration = new Oci.DataSafe.DataSafeConfiguration("test_data_safe_configuration", new()
    {
        IsEnabled = dataSafeConfigurationIsEnabled,
        CompartmentId = compartmentId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeConfiguration;
import com.pulumi.oci.DataSafe.DataSafeConfigurationArgs;
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 testDataSafeConfiguration = new DataSafeConfiguration("testDataSafeConfiguration", DataSafeConfigurationArgs.builder()
            .isEnabled(dataSafeConfigurationIsEnabled)
            .compartmentId(compartmentId)
            .build());
    }
}
resources:
  testDataSafeConfiguration:
    type: oci:DataSafe:DataSafeConfiguration
    name: test_data_safe_configuration
    properties:
      isEnabled: ${dataSafeConfigurationIsEnabled}
      compartmentId: ${compartmentId}
Create DataSafeConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataSafeConfiguration(name: string, args: DataSafeConfigurationArgs, opts?: CustomResourceOptions);@overload
def DataSafeConfiguration(resource_name: str,
                          args: DataSafeConfigurationArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def DataSafeConfiguration(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          is_enabled: Optional[bool] = None,
                          compartment_id: Optional[str] = None)func NewDataSafeConfiguration(ctx *Context, name string, args DataSafeConfigurationArgs, opts ...ResourceOption) (*DataSafeConfiguration, error)public DataSafeConfiguration(string name, DataSafeConfigurationArgs args, CustomResourceOptions? opts = null)
public DataSafeConfiguration(String name, DataSafeConfigurationArgs args)
public DataSafeConfiguration(String name, DataSafeConfigurationArgs args, CustomResourceOptions options)
type: oci:DataSafe:DataSafeConfiguration
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 DataSafeConfigurationArgs
- 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 DataSafeConfigurationArgs
- 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 DataSafeConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataSafeConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataSafeConfigurationArgs
- 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 dataSafeConfigurationResource = new Oci.DataSafe.DataSafeConfiguration("dataSafeConfigurationResource", new()
{
    IsEnabled = false,
    CompartmentId = "string",
});
example, err := datasafe.NewDataSafeConfiguration(ctx, "dataSafeConfigurationResource", &datasafe.DataSafeConfigurationArgs{
	IsEnabled:     pulumi.Bool(false),
	CompartmentId: pulumi.String("string"),
})
var dataSafeConfigurationResource = new DataSafeConfiguration("dataSafeConfigurationResource", DataSafeConfigurationArgs.builder()
    .isEnabled(false)
    .compartmentId("string")
    .build());
data_safe_configuration_resource = oci.data_safe.DataSafeConfiguration("dataSafeConfigurationResource",
    is_enabled=False,
    compartment_id="string")
const dataSafeConfigurationResource = new oci.datasafe.DataSafeConfiguration("dataSafeConfigurationResource", {
    isEnabled: false,
    compartmentId: "string",
});
type: oci:DataSafe:DataSafeConfiguration
properties:
    compartmentId: string
    isEnabled: false
DataSafeConfiguration 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 DataSafeConfiguration resource accepts the following input properties:
- IsEnabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- CompartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- IsEnabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- CompartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- isEnabled Boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- compartmentId String
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- isEnabled boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- compartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- is_enabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- compartment_id str
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- isEnabled Boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- compartmentId String
- (Updatable) A filter to return only resources that match the specified compartment OCID.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataSafeConfiguration resource produces the following output properties:
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- GlobalSettings List<DataSafe Configuration Global Setting> 
- Details of the tenancy level global settings in Data Safe.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- GlobalSettings []DataSafe Configuration Global Setting 
- Details of the tenancy level global settings in Data Safe.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings List<ConfigurationGlobal Setting> 
- Details of the tenancy level global settings in Data Safe.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
- dataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings DataSafe Configuration Global Setting[] 
- Details of the tenancy level global settings in Data Safe.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of Data Safe.
- timeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url string
- The URL of the Data Safe service.
- data_safe_ strnat_ gateway_ ip_ address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- global_settings Sequence[DataSafe Configuration Global Setting] 
- Details of the tenancy level global settings in Data Safe.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of Data Safe.
- time_enabled str
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url str
- The URL of the Data Safe service.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings List<Property Map>
- Details of the tenancy level global settings in Data Safe.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
Look up Existing DataSafeConfiguration Resource
Get an existing DataSafeConfiguration 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?: DataSafeConfigurationState, opts?: CustomResourceOptions): DataSafeConfiguration@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        data_safe_nat_gateway_ip_address: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        global_settings: Optional[Sequence[DataSafeConfigurationGlobalSettingArgs]] = None,
        is_enabled: Optional[bool] = None,
        state: Optional[str] = None,
        time_enabled: Optional[str] = None,
        url: Optional[str] = None) -> DataSafeConfigurationfunc GetDataSafeConfiguration(ctx *Context, name string, id IDInput, state *DataSafeConfigurationState, opts ...ResourceOption) (*DataSafeConfiguration, error)public static DataSafeConfiguration Get(string name, Input<string> id, DataSafeConfigurationState? state, CustomResourceOptions? opts = null)public static DataSafeConfiguration get(String name, Output<String> id, DataSafeConfigurationState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:DataSafeConfiguration    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.
- CompartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- GlobalSettings List<DataSafe Configuration Global Setting> 
- Details of the tenancy level global settings in Data Safe.
- IsEnabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- CompartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- GlobalSettings []DataSafe Configuration Global Setting Args 
- Details of the tenancy level global settings in Data Safe.
- IsEnabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- compartmentId String
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings List<ConfigurationGlobal Setting> 
- Details of the tenancy level global settings in Data Safe.
- isEnabled Boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
- compartmentId string
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- dataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings DataSafe Configuration Global Setting[] 
- Details of the tenancy level global settings in Data Safe.
- isEnabled boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- state string
- The current state of Data Safe.
- timeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url string
- The URL of the Data Safe service.
- compartment_id str
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- data_safe_ strnat_ gateway_ ip_ address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- global_settings Sequence[DataSafe Configuration Global Setting Args] 
- Details of the tenancy level global settings in Data Safe.
- is_enabled bool
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- state str
- The current state of Data Safe.
- time_enabled str
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url str
- The URL of the Data Safe service.
- compartmentId String
- (Updatable) A filter to return only resources that match the specified compartment OCID.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
- globalSettings List<Property Map>
- Details of the tenancy level global settings in Data Safe.
- isEnabled Boolean
- (Updatable) Indicates if Data Safe is enabled. - ** 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 
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
Supporting Types
DataSafeConfigurationGlobalSetting, DataSafeConfigurationGlobalSettingArgs          
- IsPaid boolUsage 
- The paid usage option chosen by the customer admin.
- OfflineRetention intPeriod 
- The offline retention period in months.
- OnlineRetention intPeriod 
- The online retention period in months.
- IsPaid boolUsage 
- The paid usage option chosen by the customer admin.
- OfflineRetention intPeriod 
- The offline retention period in months.
- OnlineRetention intPeriod 
- The online retention period in months.
- isPaid BooleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention IntegerPeriod 
- The offline retention period in months.
- onlineRetention IntegerPeriod 
- The online retention period in months.
- isPaid booleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention numberPeriod 
- The offline retention period in months.
- onlineRetention numberPeriod 
- The online retention period in months.
- is_paid_ boolusage 
- The paid usage option chosen by the customer admin.
- offline_retention_ intperiod 
- The offline retention period in months.
- online_retention_ intperiod 
- The online retention period in months.
- isPaid BooleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention NumberPeriod 
- The offline retention period in months.
- onlineRetention NumberPeriod 
- The online retention period in months.
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 ociTerraform Provider.