oci.DataSafe.TargetAlertPolicyAssociation
Explore with Pulumi AI
This resource provides the Target Alert Policy Association resource in Oracle Cloud Infrastructure Data Safe service.
Creates a new target-alert policy association to track a alert policy applied on target.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetAlertPolicyAssociation = new oci.datasafe.TargetAlertPolicyAssociation("test_target_alert_policy_association", {
    compartmentId: compartmentId,
    isEnabled: targetAlertPolicyAssociationIsEnabled,
    policyId: testPolicy.id,
    targetId: testTarget.id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: targetAlertPolicyAssociationDescription,
    displayName: targetAlertPolicyAssociationDisplayName,
    freeformTags: {
        Department: "Finance",
    },
});
import pulumi
import pulumi_oci as oci
test_target_alert_policy_association = oci.data_safe.TargetAlertPolicyAssociation("test_target_alert_policy_association",
    compartment_id=compartment_id,
    is_enabled=target_alert_policy_association_is_enabled,
    policy_id=test_policy["id"],
    target_id=test_target["id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=target_alert_policy_association_description,
    display_name=target_alert_policy_association_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.NewTargetAlertPolicyAssociation(ctx, "test_target_alert_policy_association", &datasafe.TargetAlertPolicyAssociationArgs{
			CompartmentId: pulumi.Any(compartmentId),
			IsEnabled:     pulumi.Any(targetAlertPolicyAssociationIsEnabled),
			PolicyId:      pulumi.Any(testPolicy.Id),
			TargetId:      pulumi.Any(testTarget.Id),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			Description: pulumi.Any(targetAlertPolicyAssociationDescription),
			DisplayName: pulumi.Any(targetAlertPolicyAssociationDisplayName),
			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 testTargetAlertPolicyAssociation = new Oci.DataSafe.TargetAlertPolicyAssociation("test_target_alert_policy_association", new()
    {
        CompartmentId = compartmentId,
        IsEnabled = targetAlertPolicyAssociationIsEnabled,
        PolicyId = testPolicy.Id,
        TargetId = testTarget.Id,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = targetAlertPolicyAssociationDescription,
        DisplayName = targetAlertPolicyAssociationDisplayName,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.TargetAlertPolicyAssociation;
import com.pulumi.oci.DataSafe.TargetAlertPolicyAssociationArgs;
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 testTargetAlertPolicyAssociation = new TargetAlertPolicyAssociation("testTargetAlertPolicyAssociation", TargetAlertPolicyAssociationArgs.builder()
            .compartmentId(compartmentId)
            .isEnabled(targetAlertPolicyAssociationIsEnabled)
            .policyId(testPolicy.id())
            .targetId(testTarget.id())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(targetAlertPolicyAssociationDescription)
            .displayName(targetAlertPolicyAssociationDisplayName)
            .freeformTags(Map.of("Department", "Finance"))
            .build());
    }
}
resources:
  testTargetAlertPolicyAssociation:
    type: oci:DataSafe:TargetAlertPolicyAssociation
    name: test_target_alert_policy_association
    properties:
      compartmentId: ${compartmentId}
      isEnabled: ${targetAlertPolicyAssociationIsEnabled}
      policyId: ${testPolicy.id}
      targetId: ${testTarget.id}
      definedTags:
        Operations.CostCenter: '42'
      description: ${targetAlertPolicyAssociationDescription}
      displayName: ${targetAlertPolicyAssociationDisplayName}
      freeformTags:
        Department: Finance
Create TargetAlertPolicyAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetAlertPolicyAssociation(name: string, args: TargetAlertPolicyAssociationArgs, opts?: CustomResourceOptions);@overload
def TargetAlertPolicyAssociation(resource_name: str,
                                 args: TargetAlertPolicyAssociationArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def TargetAlertPolicyAssociation(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 compartment_id: Optional[str] = None,
                                 is_enabled: Optional[bool] = None,
                                 policy_id: Optional[str] = None,
                                 target_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)func NewTargetAlertPolicyAssociation(ctx *Context, name string, args TargetAlertPolicyAssociationArgs, opts ...ResourceOption) (*TargetAlertPolicyAssociation, error)public TargetAlertPolicyAssociation(string name, TargetAlertPolicyAssociationArgs args, CustomResourceOptions? opts = null)
public TargetAlertPolicyAssociation(String name, TargetAlertPolicyAssociationArgs args)
public TargetAlertPolicyAssociation(String name, TargetAlertPolicyAssociationArgs args, CustomResourceOptions options)
type: oci:DataSafe:TargetAlertPolicyAssociation
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 TargetAlertPolicyAssociationArgs
- 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 TargetAlertPolicyAssociationArgs
- 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 TargetAlertPolicyAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetAlertPolicyAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetAlertPolicyAssociationArgs
- 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 targetAlertPolicyAssociationResource = new Oci.DataSafe.TargetAlertPolicyAssociation("targetAlertPolicyAssociationResource", new()
{
    CompartmentId = "string",
    IsEnabled = false,
    PolicyId = "string",
    TargetId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
});
example, err := datasafe.NewTargetAlertPolicyAssociation(ctx, "targetAlertPolicyAssociationResource", &datasafe.TargetAlertPolicyAssociationArgs{
	CompartmentId: pulumi.String("string"),
	IsEnabled:     pulumi.Bool(false),
	PolicyId:      pulumi.String("string"),
	TargetId:      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 targetAlertPolicyAssociationResource = new TargetAlertPolicyAssociation("targetAlertPolicyAssociationResource", TargetAlertPolicyAssociationArgs.builder()
    .compartmentId("string")
    .isEnabled(false)
    .policyId("string")
    .targetId("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .build());
target_alert_policy_association_resource = oci.data_safe.TargetAlertPolicyAssociation("targetAlertPolicyAssociationResource",
    compartment_id="string",
    is_enabled=False,
    policy_id="string",
    target_id="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    })
const targetAlertPolicyAssociationResource = new oci.datasafe.TargetAlertPolicyAssociation("targetAlertPolicyAssociationResource", {
    compartmentId: "string",
    isEnabled: false,
    policyId: "string",
    targetId: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
});
type: oci:DataSafe:TargetAlertPolicyAssociation
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    isEnabled: false
    policyId: string
    targetId: string
TargetAlertPolicyAssociation 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 TargetAlertPolicyAssociation resource accepts the following input properties:
- CompartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- IsEnabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- PolicyId string
- The OCID of the alert policy.
- TargetId string
- The OCID of the target. - ** 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 
- 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) Describes the target-alert policy association.
- DisplayName string
- (Updatable) The display name of the target-alert policy association.
- 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"}
- CompartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- IsEnabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- PolicyId string
- The OCID of the alert policy.
- TargetId string
- The OCID of the target. - ** 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 
- 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) Describes the target-alert policy association.
- DisplayName string
- (Updatable) The display name of the target-alert policy association.
- 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"}
- compartmentId String
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- isEnabled Boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- policyId String
- The OCID of the alert policy.
- targetId String
- The OCID of the target. - ** 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 
- 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) Describes the target-alert policy association.
- displayName String
- (Updatable) The display name of the target-alert policy association.
- 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"}
- compartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- isEnabled boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- policyId string
- The OCID of the alert policy.
- targetId string
- The OCID of the target. - ** 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 
- {[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) Describes the target-alert policy association.
- displayName string
- (Updatable) The display name of the target-alert policy association.
- {[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"}
- compartment_id str
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- is_enabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- policy_id str
- The OCID of the alert policy.
- target_id str
- The OCID of the target. - ** 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 
- 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) Describes the target-alert policy association.
- display_name str
- (Updatable) The display name of the target-alert policy association.
- 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"}
- compartmentId String
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- isEnabled Boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- policyId String
- The OCID of the alert policy.
- targetId String
- The OCID of the target. - ** 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 
- 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) Describes the target-alert policy association.
- displayName String
- (Updatable) The display name of the target-alert policy association.
- 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 TargetAlertPolicyAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- State string
- The current state of the target-alert policy association.
- 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.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- State string
- The current state of the target-alert policy association.
- 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.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- state String
- The current state of the target-alert policy association.
- 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.
- lifecycleDetails string
- Details about the current state of the target-alert policy association.
- state string
- The current state of the target-alert policy association.
- {[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.
- lifecycle_details str
- Details about the current state of the target-alert policy association.
- state str
- The current state of the target-alert policy association.
- 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.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- state String
- The current state of the target-alert policy association.
- 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 TargetAlertPolicyAssociation Resource
Get an existing TargetAlertPolicyAssociation 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?: TargetAlertPolicyAssociationState, opts?: CustomResourceOptions): TargetAlertPolicyAssociation@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = 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_enabled: Optional[bool] = None,
        lifecycle_details: Optional[str] = None,
        policy_id: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        target_id: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> TargetAlertPolicyAssociationfunc GetTargetAlertPolicyAssociation(ctx *Context, name string, id IDInput, state *TargetAlertPolicyAssociationState, opts ...ResourceOption) (*TargetAlertPolicyAssociation, error)public static TargetAlertPolicyAssociation Get(string name, Input<string> id, TargetAlertPolicyAssociationState? state, CustomResourceOptions? opts = null)public static TargetAlertPolicyAssociation get(String name, Output<String> id, TargetAlertPolicyAssociationState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:TargetAlertPolicyAssociation    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CompartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- 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) Describes the target-alert policy association.
- DisplayName string
- (Updatable) The display name of the target-alert policy association.
- 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"}
- IsEnabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- PolicyId string
- The OCID of the alert policy.
- State string
- The current state of the target-alert policy association.
- 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"}
- TargetId string
- The OCID of the target. - ** 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 
- 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.
- CompartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- 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) Describes the target-alert policy association.
- DisplayName string
- (Updatable) The display name of the target-alert policy association.
- 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"}
- IsEnabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- LifecycleDetails string
- Details about the current state of the target-alert policy association.
- PolicyId string
- The OCID of the alert policy.
- State string
- The current state of the target-alert policy association.
- 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"}
- TargetId string
- The OCID of the target. - ** 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 
- 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.
- compartmentId String
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- 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) Describes the target-alert policy association.
- displayName String
- (Updatable) The display name of the target-alert policy association.
- 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"}
- isEnabled Boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- policyId String
- The OCID of the alert policy.
- state String
- The current state of the target-alert policy association.
- 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"}
- targetId String
- The OCID of the target. - ** 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 
- 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.
- compartmentId string
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- {[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) Describes the target-alert policy association.
- displayName string
- (Updatable) The display name of the target-alert policy association.
- {[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"}
- isEnabled boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- lifecycleDetails string
- Details about the current state of the target-alert policy association.
- policyId string
- The OCID of the alert policy.
- state string
- The current state of the target-alert policy association.
- {[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"}
- targetId string
- The OCID of the target. - ** 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 
- 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.
- compartment_id str
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- 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) Describes the target-alert policy association.
- display_name str
- (Updatable) The display name of the target-alert policy association.
- 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_enabled bool
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- lifecycle_details str
- Details about the current state of the target-alert policy association.
- policy_id str
- The OCID of the alert policy.
- state str
- The current state of the target-alert policy association.
- 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"}
- target_id str
- The OCID of the target. - ** 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 
- 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.
- compartmentId String
- (Updatable) The OCID of the compartment where the target-alert policy association is created.
- 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) Describes the target-alert policy association.
- displayName String
- (Updatable) The display name of the target-alert policy association.
- 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"}
- isEnabled Boolean
- (Updatable) Indicates if the target-alert policy association is enabled or disabled.
- lifecycleDetails String
- Details about the current state of the target-alert policy association.
- policyId String
- The OCID of the alert policy.
- state String
- The current state of the target-alert policy association.
- 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"}
- targetId String
- The OCID of the target. - ** 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 
- 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.
Import
TargetAlertPolicyAssociations can be imported using the id, e.g.
$ pulumi import oci:DataSafe/targetAlertPolicyAssociation:TargetAlertPolicyAssociation test_target_alert_policy_association "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 ociTerraform Provider.