oci.DataSafe.AlertPolicy
Explore with Pulumi AI
This resource provides the Alert Policy resource in Oracle Cloud Infrastructure Data Safe service.
Creates a new user-defined alert policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAlertPolicy = new oci.datasafe.AlertPolicy("test_alert_policy", {
alertPolicyType: alertPolicyAlertPolicyType,
compartmentId: compartmentId,
severity: alertPolicySeverity,
alertPolicyRuleDetails: [{
expression: alertPolicyAlertPolicyRuleDetailsExpression,
description: alertPolicyAlertPolicyRuleDetailsDescription,
displayName: alertPolicyAlertPolicyRuleDetailsDisplayName,
}],
definedTags: {
"Operations.CostCenter": "42",
},
description: alertPolicyDescription,
displayName: alertPolicyDisplayName,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_alert_policy = oci.data_safe.AlertPolicy("test_alert_policy",
alert_policy_type=alert_policy_alert_policy_type,
compartment_id=compartment_id,
severity=alert_policy_severity,
alert_policy_rule_details=[{
"expression": alert_policy_alert_policy_rule_details_expression,
"description": alert_policy_alert_policy_rule_details_description,
"display_name": alert_policy_alert_policy_rule_details_display_name,
}],
defined_tags={
"Operations.CostCenter": "42",
},
description=alert_policy_description,
display_name=alert_policy_display_name,
freeform_tags={
"Department": "Finance",
})
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.NewAlertPolicy(ctx, "test_alert_policy", &DataSafe.AlertPolicyArgs{
AlertPolicyType: pulumi.Any(alertPolicyAlertPolicyType),
CompartmentId: pulumi.Any(compartmentId),
Severity: pulumi.Any(alertPolicySeverity),
AlertPolicyRuleDetails: datasafe.AlertPolicyAlertPolicyRuleDetailArray{
&datasafe.AlertPolicyAlertPolicyRuleDetailArgs{
Expression: pulumi.Any(alertPolicyAlertPolicyRuleDetailsExpression),
Description: pulumi.Any(alertPolicyAlertPolicyRuleDetailsDescription),
DisplayName: pulumi.Any(alertPolicyAlertPolicyRuleDetailsDisplayName),
},
},
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(alertPolicyDescription),
DisplayName: pulumi.Any(alertPolicyDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
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 testAlertPolicy = new Oci.DataSafe.AlertPolicy("test_alert_policy", new()
{
AlertPolicyType = alertPolicyAlertPolicyType,
CompartmentId = compartmentId,
Severity = alertPolicySeverity,
AlertPolicyRuleDetails = new[]
{
new Oci.DataSafe.Inputs.AlertPolicyAlertPolicyRuleDetailArgs
{
Expression = alertPolicyAlertPolicyRuleDetailsExpression,
Description = alertPolicyAlertPolicyRuleDetailsDescription,
DisplayName = alertPolicyAlertPolicyRuleDetailsDisplayName,
},
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = alertPolicyDescription,
DisplayName = alertPolicyDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.AlertPolicy;
import com.pulumi.oci.DataSafe.AlertPolicyArgs;
import com.pulumi.oci.DataSafe.inputs.AlertPolicyAlertPolicyRuleDetailArgs;
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 testAlertPolicy = new AlertPolicy("testAlertPolicy", AlertPolicyArgs.builder()
.alertPolicyType(alertPolicyAlertPolicyType)
.compartmentId(compartmentId)
.severity(alertPolicySeverity)
.alertPolicyRuleDetails(AlertPolicyAlertPolicyRuleDetailArgs.builder()
.expression(alertPolicyAlertPolicyRuleDetailsExpression)
.description(alertPolicyAlertPolicyRuleDetailsDescription)
.displayName(alertPolicyAlertPolicyRuleDetailsDisplayName)
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(alertPolicyDescription)
.displayName(alertPolicyDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testAlertPolicy:
type: oci:DataSafe:AlertPolicy
name: test_alert_policy
properties:
alertPolicyType: ${alertPolicyAlertPolicyType}
compartmentId: ${compartmentId}
severity: ${alertPolicySeverity}
alertPolicyRuleDetails:
- expression: ${alertPolicyAlertPolicyRuleDetailsExpression}
description: ${alertPolicyAlertPolicyRuleDetailsDescription}
displayName: ${alertPolicyAlertPolicyRuleDetailsDisplayName}
definedTags:
Operations.CostCenter: '42'
description: ${alertPolicyDescription}
displayName: ${alertPolicyDisplayName}
freeformTags:
Department: Finance
Create AlertPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertPolicy(name: string, args: AlertPolicyArgs, opts?: CustomResourceOptions);
@overload
def AlertPolicy(resource_name: str,
args: AlertPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_policy_type: Optional[str] = None,
compartment_id: Optional[str] = None,
severity: Optional[str] = None,
alert_policy_rule_details: Optional[Sequence[_datasafe.AlertPolicyAlertPolicyRuleDetailArgs]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewAlertPolicy(ctx *Context, name string, args AlertPolicyArgs, opts ...ResourceOption) (*AlertPolicy, error)
public AlertPolicy(string name, AlertPolicyArgs args, CustomResourceOptions? opts = null)
public AlertPolicy(String name, AlertPolicyArgs args)
public AlertPolicy(String name, AlertPolicyArgs args, CustomResourceOptions options)
type: oci:DataSafe:AlertPolicy
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 AlertPolicyArgs
- 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 AlertPolicyArgs
- 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 AlertPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertPolicyArgs
- 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 alertPolicyResource = new Oci.DataSafe.AlertPolicy("alertPolicyResource", new()
{
AlertPolicyType = "string",
CompartmentId = "string",
Severity = "string",
AlertPolicyRuleDetails = new[]
{
new Oci.DataSafe.Inputs.AlertPolicyAlertPolicyRuleDetailArgs
{
Expression = "string",
Description = "string",
DisplayName = "string",
},
},
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := DataSafe.NewAlertPolicy(ctx, "alertPolicyResource", &DataSafe.AlertPolicyArgs{
AlertPolicyType: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
Severity: pulumi.String("string"),
AlertPolicyRuleDetails: datasafe.AlertPolicyAlertPolicyRuleDetailArray{
&datasafe.AlertPolicyAlertPolicyRuleDetailArgs{
Expression: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var alertPolicyResource = new AlertPolicy("alertPolicyResource", AlertPolicyArgs.builder()
.alertPolicyType("string")
.compartmentId("string")
.severity("string")
.alertPolicyRuleDetails(AlertPolicyAlertPolicyRuleDetailArgs.builder()
.expression("string")
.description("string")
.displayName("string")
.build())
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.build());
alert_policy_resource = oci.data_safe.AlertPolicy("alertPolicyResource",
alert_policy_type="string",
compartment_id="string",
severity="string",
alert_policy_rule_details=[oci.data_safe.AlertPolicyAlertPolicyRuleDetailArgs(
expression="string",
description="string",
display_name="string",
)],
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
})
const alertPolicyResource = new oci.datasafe.AlertPolicy("alertPolicyResource", {
alertPolicyType: "string",
compartmentId: "string",
severity: "string",
alertPolicyRuleDetails: [{
expression: "string",
description: "string",
displayName: "string",
}],
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:DataSafe:AlertPolicy
properties:
alertPolicyRuleDetails:
- description: string
displayName: string
expression: string
alertPolicyType: string
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
severity: string
AlertPolicy 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 AlertPolicy resource accepts the following input properties:
- Alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Severity string
(Updatable) Severity level of the alert raised by this 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
- Alert
Policy List<AlertRule Details Policy Alert Policy Rule Detail> - The details of the alert policy rule.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the alert policy.
- Display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (Updatable) 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"}
- Alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Severity string
(Updatable) Severity level of the alert raised by this 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
- Alert
Policy []AlertRule Details Policy Alert Policy Rule Detail Args - The details of the alert policy rule.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the alert policy.
- Display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- map[string]string
- (Updatable) 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"}
- alert
Policy StringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the alert policy.
- severity String
(Updatable) Severity level of the alert raised by this 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
- alert
Policy List<AlertRule Details Policy Alert Policy Rule Detail> - The details of the alert policy rule.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the alert policy.
- display
Name String - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (Updatable) 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"}
- alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- severity string
(Updatable) Severity level of the alert raised by this 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
- alert
Policy AlertRule Details Policy Alert Policy Rule Detail[] - The details of the alert policy rule.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the alert policy.
- display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (Updatable) 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"}
- alert_
policy_ strtype - Indicates the Data Safe feature the alert policy belongs to
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the alert policy.
- severity str
(Updatable) Severity level of the alert raised by this 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
- alert_
policy_ Sequence[datasafe.rule_ details Alert Policy Alert Policy Rule Detail Args] - The details of the alert policy rule.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the alert policy.
- display_
name str - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (Updatable) 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"}
- alert
Policy StringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the alert policy.
- severity String
(Updatable) Severity level of the alert raised by this 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
- alert
Policy List<Property Map>Rule Details - The details of the alert policy rule.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the alert policy.
- display
Name String - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Map<String>
- (Updatable) 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"}
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- Lifecycle
Details string - Details about the current state of the alert policy.
- State string
- The current state of the alert.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- Lifecycle
Details string - Details about the current state of the alert policy.
- State string
- The current state of the alert.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details String - Details about the current state of the alert policy.
- state String
- The current state of the alert.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
- id string
- The provider-assigned unique ID for this managed resource.
- is
User booleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details string - Details about the current state of the alert policy.
- state string
- The current state of the alert.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
user_ booldefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle_
details str - Details about the current state of the alert policy.
- state str
- The current state of the alert.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - Creation date and time of the alert policy, in the format defined by RFC3339.
- time_
updated str - Last date and time the alert policy was updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details String - Details about the current state of the alert policy.
- state String
- The current state of the alert.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
Look up Existing AlertPolicy Resource
Get an existing AlertPolicy 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?: AlertPolicyState, opts?: CustomResourceOptions): AlertPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_policy_rule_details: Optional[Sequence[_datasafe.AlertPolicyAlertPolicyRuleDetailArgs]] = None,
alert_policy_type: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_user_defined: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
severity: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> AlertPolicy
func GetAlertPolicy(ctx *Context, name string, id IDInput, state *AlertPolicyState, opts ...ResourceOption) (*AlertPolicy, error)
public static AlertPolicy Get(string name, Input<string> id, AlertPolicyState? state, CustomResourceOptions? opts = null)
public static AlertPolicy get(String name, Output<String> id, AlertPolicyState 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.
- Alert
Policy List<AlertRule Details Policy Alert Policy Rule Detail> - The details of the alert policy rule.
- Alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the alert policy.
- Display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Dictionary<string, string>
- (Updatable) 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"}
- Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- Lifecycle
Details string - Details about the current state of the alert policy.
- Severity string
(Updatable) Severity level of the alert raised by this 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
- State string
- The current state of the alert.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- Alert
Policy []AlertRule Details Policy Alert Policy Rule Detail Args - The details of the alert policy rule.
- Alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the alert policy.
- Display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- map[string]string
- (Updatable) 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"}
- Is
User boolDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- Lifecycle
Details string - Details about the current state of the alert policy.
- Severity string
(Updatable) Severity level of the alert raised by this 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
- State string
- The current state of the alert.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- Time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert
Policy List<AlertRule Details Policy Alert Policy Rule Detail> - The details of the alert policy rule.
- alert
Policy StringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the alert policy.
- display
Name String - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Map<String,String>
- (Updatable) 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"}
- is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details String - Details about the current state of the alert policy.
- severity String
(Updatable) Severity level of the alert raised by this 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
- state String
- The current state of the alert.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert
Policy AlertRule Details Policy Alert Policy Rule Detail[] - The details of the alert policy rule.
- alert
Policy stringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the alert policy.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the alert policy.
- display
Name string - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- {[key: string]: string}
- (Updatable) 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"}
- is
User booleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details string - Details about the current state of the alert policy.
- severity string
(Updatable) Severity level of the alert raised by this 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
- state string
- The current state of the alert.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated string - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert_
policy_ Sequence[datasafe.rule_ details Alert Policy Alert Policy Rule Detail Args] - The details of the alert policy rule.
- alert_
policy_ strtype - Indicates the Data Safe feature the alert policy belongs to
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the alert policy.
- display_
name str - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Mapping[str, str]
- (Updatable) 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"}
- is_
user_ booldefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle_
details str - Details about the current state of the alert policy.
- severity str
(Updatable) Severity level of the alert raised by this 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
- state str
- The current state of the alert.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - Creation date and time of the alert policy, in the format defined by RFC3339.
- time_
updated str - Last date and time the alert policy was updated, in the format defined by RFC3339.
- alert
Policy List<Property Map>Rule Details - The details of the alert policy rule.
- alert
Policy StringType - Indicates the Data Safe feature the alert policy belongs to
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the alert policy.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the alert policy.
- display
Name String - (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
- Map<String>
- (Updatable) 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"}
- is
User BooleanDefined - Indicates if the alert policy is user-defined (true) or pre-defined (false).
- lifecycle
Details String - Details about the current state of the alert policy.
- severity String
(Updatable) Severity level of the alert raised by this 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
- state String
- The current state of the alert.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Creation date and time of the alert policy, in the format defined by RFC3339.
- time
Updated String - Last date and time the alert policy was updated, in the format defined by RFC3339.
Supporting Types
AlertPolicyAlertPolicyRuleDetail, AlertPolicyAlertPolicyRuleDetailArgs
- Expression string
- The conditional expression of the alert policy rule which evaluates to boolean value.
- Description string
- Describes the alert policy rule.
- Display
Name string - The display name of the alert policy rule.
- Expression string
- The conditional expression of the alert policy rule which evaluates to boolean value.
- Description string
- Describes the alert policy rule.
- Display
Name string - The display name of the alert policy rule.
- expression String
- The conditional expression of the alert policy rule which evaluates to boolean value.
- description String
- Describes the alert policy rule.
- display
Name String - The display name of the alert policy rule.
- expression string
- The conditional expression of the alert policy rule which evaluates to boolean value.
- description string
- Describes the alert policy rule.
- display
Name string - The display name of the alert policy rule.
- expression str
- The conditional expression of the alert policy rule which evaluates to boolean value.
- description str
- Describes the alert policy rule.
- display_
name str - The display name of the alert policy rule.
- expression String
- The conditional expression of the alert policy rule which evaluates to boolean value.
- description String
- Describes the alert policy rule.
- display
Name String - The display name of the alert policy rule.
Import
AlertPolicies can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/alertPolicy:AlertPolicy test_alert_policy "id"
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.