oci.RecoveryMod.ProtectionPolicy
Explore with Pulumi AI
This resource provides the Protection Policy resource in Oracle Cloud Infrastructure Recovery service.
Creates a new Protection Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProtectionPolicy = new oci.recoverymod.ProtectionPolicy("testProtectionPolicy", {
backupRetentionPeriodInDays: _var.protection_policy_backup_retention_period_in_days,
compartmentId: _var.compartment_id,
displayName: _var.protection_policy_display_name,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_protection_policy = oci.recovery_mod.ProtectionPolicy("testProtectionPolicy",
backup_retention_period_in_days=var["protection_policy_backup_retention_period_in_days"],
compartment_id=var["compartment_id"],
display_name=var["protection_policy_display_name"],
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/RecoveryMod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := RecoveryMod.NewProtectionPolicy(ctx, "testProtectionPolicy", &RecoveryMod.ProtectionPolicyArgs{
BackupRetentionPeriodInDays: pulumi.Any(_var.Protection_policy_backup_retention_period_in_days),
CompartmentId: pulumi.Any(_var.Compartment_id),
DisplayName: pulumi.Any(_var.Protection_policy_display_name),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
})
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 testProtectionPolicy = new Oci.RecoveryMod.ProtectionPolicy("testProtectionPolicy", new()
{
BackupRetentionPeriodInDays = @var.Protection_policy_backup_retention_period_in_days,
CompartmentId = @var.Compartment_id,
DisplayName = @var.Protection_policy_display_name,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.RecoveryMod.ProtectionPolicy;
import com.pulumi.oci.RecoveryMod.ProtectionPolicyArgs;
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 testProtectionPolicy = new ProtectionPolicy("testProtectionPolicy", ProtectionPolicyArgs.builder()
.backupRetentionPeriodInDays(var_.protection_policy_backup_retention_period_in_days())
.compartmentId(var_.compartment_id())
.displayName(var_.protection_policy_display_name())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testProtectionPolicy:
type: oci:RecoveryMod:ProtectionPolicy
properties:
#Required
backupRetentionPeriodInDays: ${var.protection_policy_backup_retention_period_in_days}
compartmentId: ${var.compartment_id}
displayName: ${var.protection_policy_display_name}
#Optional
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
Create ProtectionPolicy Resource
new ProtectionPolicy(name: string, args: ProtectionPolicyArgs, opts?: CustomResourceOptions);
@overload
def ProtectionPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_retention_period_in_days: Optional[int] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None)
@overload
def ProtectionPolicy(resource_name: str,
args: ProtectionPolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewProtectionPolicy(ctx *Context, name string, args ProtectionPolicyArgs, opts ...ResourceOption) (*ProtectionPolicy, error)
public ProtectionPolicy(string name, ProtectionPolicyArgs args, CustomResourceOptions? opts = null)
public ProtectionPolicy(String name, ProtectionPolicyArgs args)
public ProtectionPolicy(String name, ProtectionPolicyArgs args, CustomResourceOptions options)
type: oci:RecoveryMod:ProtectionPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProtectionPolicyArgs
- 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 ProtectionPolicyArgs
- 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 ProtectionPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProtectionPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProtectionPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ProtectionPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ProtectionPolicy resource accepts the following input properties:
- Backup
Retention intPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- Compartment
Id string - (Updatable) Compartment Identifier
- Display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Backup
Retention intPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- Compartment
Id string - (Updatable) Compartment Identifier
- Display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- backup
Retention IntegerPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id String - (Updatable) Compartment Identifier
- display
Name String - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- backup
Retention numberPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id string - (Updatable) Compartment Identifier
- display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- backup_
retention_ intperiod_ in_ days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment_
id str - (Updatable) Compartment Identifier
- display_
name str - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- backup
Retention NumberPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id String - (Updatable) Compartment Identifier
- display
Name String - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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 ProtectionPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Predefined boolPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- State string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Predefined boolPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- State string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Predefined BooleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details String - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state String
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Predefined booleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
predefined_ boolpolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle_
details str - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state str
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time_
created str - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time_
updated str - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Predefined BooleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details String - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state String
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
Look up Existing ProtectionPolicy Resource
Get an existing ProtectionPolicy 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?: ProtectionPolicyState, opts?: CustomResourceOptions): ProtectionPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_retention_period_in_days: Optional[int] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_predefined_policy: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ProtectionPolicy
func GetProtectionPolicy(ctx *Context, name string, id IDInput, state *ProtectionPolicyState, opts ...ResourceOption) (*ProtectionPolicy, error)
public static ProtectionPolicy Get(string name, Input<string> id, ProtectionPolicyState? state, CustomResourceOptions? opts = null)
public static ProtectionPolicy get(String name, Output<String> id, ProtectionPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Retention intPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- Compartment
Id string - (Updatable) Compartment Identifier
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Is
Predefined boolPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- State string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Backup
Retention intPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- Compartment
Id string - (Updatable) Compartment Identifier
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Is
Predefined boolPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- State string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- backup
Retention IntegerPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id String - (Updatable) Compartment Identifier
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name String - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- is
Predefined BooleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details String - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state String
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- backup
Retention numberPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id string - (Updatable) Compartment Identifier
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name string - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- is
Predefined booleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details string - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state string
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created string - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated string - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- backup_
retention_ intperiod_ in_ days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment_
id str - (Updatable) Compartment Identifier
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display_
name str - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- is_
predefined_ boolpolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle_
details str - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state str
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time_
created str - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time_
updated str - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- backup
Retention NumberPeriod In Days - (Updatable) The maximum number of days to retain backups for a protected database.
- compartment
Id String - (Updatable) Compartment Identifier
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name String - (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- is
Predefined BooleanPolicy - Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
- lifecycle
Details String - Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
- state String
- The current state of the protection policy. Allowed values are:
- CREATING
- UPDATING
- ACTIVE
- DELETING
- DELETED
- FAILED
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
Import
ProtectionPolicies can be imported using the id
, e.g.
$ pulumi import oci:RecoveryMod/protectionPolicy:ProtectionPolicy test_protection_policy "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.