1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. AlertPolicy
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.AlertPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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=[{
            "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AlertPolicy resource accepts the following input properties:

    AlertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    CompartmentId 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

    AlertPolicyRuleDetails List<AlertPolicyAlertPolicyRuleDetail>
    The details of the alert policy rule.
    DefinedTags 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.
    DisplayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    FreeformTags 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"}
    AlertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    CompartmentId 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

    AlertPolicyRuleDetails []AlertPolicyAlertPolicyRuleDetailArgs
    The details of the alert policy rule.
    DefinedTags 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.
    DisplayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    FreeformTags 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"}
    alertPolicyType String
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId 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

    alertPolicyRuleDetails List<AlertPolicyAlertPolicyRuleDetail>
    The details of the alert policy rule.
    definedTags 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.
    displayName String
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags 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"}
    alertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId 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

    alertPolicyRuleDetails AlertPolicyAlertPolicyRuleDetail[]
    The details of the alert policy rule.
    definedTags {[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.
    displayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags {[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_type str
    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_rule_details Sequence[datasafe.AlertPolicyAlertPolicyRuleDetailArgs]
    The details of the alert policy rule.
    defined_tags 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.
    freeform_tags 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"}
    alertPolicyType String
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId 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

    alertPolicyRuleDetails List<Property Map>
    The details of the alert policy rule.
    definedTags 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.
    displayName String
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags 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.
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    LifecycleDetails string
    Details about the current state of the alert policy.
    State string
    The current state of the alert.
    SystemTags 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"}
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated 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.
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    LifecycleDetails string
    Details about the current state of the alert policy.
    State string
    The current state of the alert.
    SystemTags 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"}
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated 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.
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails String
    Details about the current state of the alert policy.
    state String
    The current state of the alert.
    systemTags 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"}
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated 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.
    isUserDefined boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails string
    Details about the current state of the alert policy.
    state string
    The current state of the alert.
    systemTags {[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"}
    timeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated 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_defined bool
    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.
    system_tags 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.
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails String
    Details about the current state of the alert policy.
    state String
    The current state of the alert.
    systemTags 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"}
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated 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.
    The following state arguments are supported:
    AlertPolicyRuleDetails List<AlertPolicyAlertPolicyRuleDetail>
    The details of the alert policy rule.
    AlertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the alert policy.
    DefinedTags 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.
    DisplayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    FreeformTags 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"}
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    LifecycleDetails 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.
    SystemTags 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"}
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    AlertPolicyRuleDetails []AlertPolicyAlertPolicyRuleDetailArgs
    The details of the alert policy rule.
    AlertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the alert policy.
    DefinedTags 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.
    DisplayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    FreeformTags 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"}
    IsUserDefined bool
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    LifecycleDetails 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.
    SystemTags 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"}
    TimeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    TimeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    alertPolicyRuleDetails List<AlertPolicyAlertPolicyRuleDetail>
    The details of the alert policy rule.
    alertPolicyType String
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the alert policy.
    definedTags 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.
    displayName String
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags 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"}
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails 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.
    systemTags 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"}
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated String
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    alertPolicyRuleDetails AlertPolicyAlertPolicyRuleDetail[]
    The details of the alert policy rule.
    alertPolicyType string
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId string
    (Updatable) The OCID of the compartment where you want to create the alert policy.
    definedTags {[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.
    displayName string
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags {[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"}
    isUserDefined boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails 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.
    systemTags {[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"}
    timeCreated string
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated string
    Last date and time the alert policy was updated, in the format defined by RFC3339.
    alert_policy_rule_details Sequence[datasafe.AlertPolicyAlertPolicyRuleDetailArgs]
    The details of the alert policy rule.
    alert_policy_type str
    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.
    defined_tags 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.
    freeform_tags 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_defined bool
    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.
    system_tags 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.
    alertPolicyRuleDetails List<Property Map>
    The details of the alert policy rule.
    alertPolicyType String
    Indicates the Data Safe feature the alert policy belongs to
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the alert policy.
    definedTags 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.
    displayName String
    (Updatable) The display name of the alert policy. The name does not have to be unique, and it's changeable.
    freeformTags 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"}
    isUserDefined Boolean
    Indicates if the alert policy is user-defined (true) or pre-defined (false).
    lifecycleDetails 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.
    systemTags 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"}
    timeCreated String
    Creation date and time of the alert policy, in the format defined by RFC3339.
    timeUpdated 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.
    DisplayName 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.
    DisplayName 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.
    displayName 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.
    displayName 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.
    displayName 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi