azure-native-v2.databasewatcher.AlertRuleResource
Explore with Pulumi AI
Concrete proxy resource types can be created by aliasing this type using a specific property type. Azure REST API version: 2024-07-19-preview.
Other available API versions: 2024-10-01-preview.
Create AlertRuleResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertRuleResource(name: string, args: AlertRuleResourceArgs, opts?: CustomResourceOptions);
@overload
def AlertRuleResource(resource_name: str,
args: AlertRuleResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertRuleResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_rule_resource_id: Optional[str] = None,
alert_rule_template_id: Optional[str] = None,
alert_rule_template_version: Optional[str] = None,
created_with_properties: Optional[Union[str, AlertRuleCreationProperties]] = None,
creation_time: Optional[str] = None,
resource_group_name: Optional[str] = None,
watcher_name: Optional[str] = None,
alert_rule_resource_name: Optional[str] = None)
func NewAlertRuleResource(ctx *Context, name string, args AlertRuleResourceArgs, opts ...ResourceOption) (*AlertRuleResource, error)
public AlertRuleResource(string name, AlertRuleResourceArgs args, CustomResourceOptions? opts = null)
public AlertRuleResource(String name, AlertRuleResourceArgs args)
public AlertRuleResource(String name, AlertRuleResourceArgs args, CustomResourceOptions options)
type: azure-native:databasewatcher:AlertRuleResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AlertRuleResourceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AlertRuleResourceArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AlertRuleResourceArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AlertRuleResourceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AlertRuleResourceArgs - 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 alertRuleResourceResource = new AzureNative.Databasewatcher.AlertRuleResource("alertRuleResourceResource", new()
{
AlertRuleResourceId = "string",
AlertRuleTemplateId = "string",
AlertRuleTemplateVersion = "string",
CreatedWithProperties = "string",
CreationTime = "string",
ResourceGroupName = "string",
WatcherName = "string",
AlertRuleResourceName = "string",
});
example, err := databasewatcher.NewAlertRuleResource(ctx, "alertRuleResourceResource", &databasewatcher.AlertRuleResourceArgs{
AlertRuleResourceId: "string",
AlertRuleTemplateId: "string",
AlertRuleTemplateVersion: "string",
CreatedWithProperties: "string",
CreationTime: "string",
ResourceGroupName: "string",
WatcherName: "string",
AlertRuleResourceName: "string",
})
var alertRuleResourceResource = new AlertRuleResource("alertRuleResourceResource", AlertRuleResourceArgs.builder()
.alertRuleResourceId("string")
.alertRuleTemplateId("string")
.alertRuleTemplateVersion("string")
.createdWithProperties("string")
.creationTime("string")
.resourceGroupName("string")
.watcherName("string")
.alertRuleResourceName("string")
.build());
alert_rule_resource_resource = azure_native.databasewatcher.AlertRuleResource("alertRuleResourceResource",
alert_rule_resource_id=string,
alert_rule_template_id=string,
alert_rule_template_version=string,
created_with_properties=string,
creation_time=string,
resource_group_name=string,
watcher_name=string,
alert_rule_resource_name=string)
const alertRuleResourceResource = new azure_native.databasewatcher.AlertRuleResource("alertRuleResourceResource", {
alertRuleResourceId: "string",
alertRuleTemplateId: "string",
alertRuleTemplateVersion: "string",
createdWithProperties: "string",
creationTime: "string",
resourceGroupName: "string",
watcherName: "string",
alertRuleResourceName: "string",
});
type: azure-native:databasewatcher:AlertRuleResource
properties:
alertRuleResourceId: string
alertRuleResourceName: string
alertRuleTemplateId: string
alertRuleTemplateVersion: string
createdWithProperties: string
creationTime: string
resourceGroupName: string
watcherName: string
AlertRuleResource 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 AlertRuleResource resource accepts the following input properties:
- Alert
Rule Resource Id This property is required. string - The resource ID of the alert rule resource.
- Alert
Rule Template Id This property is required. string - The template ID associated with alert rule resource.
- Alert
Rule Template Version This property is required. string - The alert rule template version.
- Created
With Properties This property is required. string | Pulumi.Azure Native. Database Watcher. Alert Rule Creation Properties - The properties with which the alert rule resource was created.
- Creation
Time This property is required. string - The creation time of the alert rule resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Watcher
Name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- Alert
Rule Resource Name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
- Alert
Rule Resource Id This property is required. string - The resource ID of the alert rule resource.
- Alert
Rule Template Id This property is required. string - The template ID associated with alert rule resource.
- Alert
Rule Template Version This property is required. string - The alert rule template version.
- Created
With Properties This property is required. string | AlertRule Creation Properties - The properties with which the alert rule resource was created.
- Creation
Time This property is required. string - The creation time of the alert rule resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Watcher
Name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- Alert
Rule Resource Name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
- alert
Rule Resource Id This property is required. String - The resource ID of the alert rule resource.
- alert
Rule Template Id This property is required. String - The template ID associated with alert rule resource.
- alert
Rule Template Version This property is required. String - The alert rule template version.
- created
With Properties This property is required. String | AlertRule Creation Properties - The properties with which the alert rule resource was created.
- creation
Time This property is required. String - The creation time of the alert rule resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- watcher
Name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- alert
Rule Resource Name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
- alert
Rule Resource Id This property is required. string - The resource ID of the alert rule resource.
- alert
Rule Template Id This property is required. string - The template ID associated with alert rule resource.
- alert
Rule Template Version This property is required. string - The alert rule template version.
- created
With Properties This property is required. string | AlertRule Creation Properties - The properties with which the alert rule resource was created.
- creation
Time This property is required. string - The creation time of the alert rule resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- watcher
Name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- alert
Rule Resource Name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
- alert_
rule_ resource_ id This property is required. str - The resource ID of the alert rule resource.
- alert_
rule_ template_ id This property is required. str - The template ID associated with alert rule resource.
- alert_
rule_ template_ version This property is required. str - The alert rule template version.
- created_
with_ properties This property is required. str | AlertRule Creation Properties - The properties with which the alert rule resource was created.
- creation_
time This property is required. str - The creation time of the alert rule resource.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- watcher_
name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- alert_
rule_ resource_ name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
- alert
Rule Resource Id This property is required. String - The resource ID of the alert rule resource.
- alert
Rule Template Id This property is required. String - The template ID associated with alert rule resource.
- alert
Rule Template Version This property is required. String - The alert rule template version.
- created
With Properties This property is required. String | "CreatedWith Action Group" | "None" - The properties with which the alert rule resource was created.
- creation
Time This property is required. String - The creation time of the alert rule resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- watcher
Name This property is required. Changes to this property will trigger replacement.
- The database watcher name.
- alert
Rule Resource Name Changes to this property will trigger replacement.
- The alert rule proxy resource name.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertRuleResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the alert rule resource.
- System
Data Pulumi.Azure Native. Database Watcher. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the alert rule resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the alert rule resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the alert rule resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the alert rule resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the alert rule resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AlertRuleCreationProperties, AlertRuleCreationPropertiesArgs
- Created
With Action Group - CreatedWithActionGroupThe alert rule was created with an action group.
- None
- NoneThe alert rule was created with no properties.
- Alert
Rule Creation Properties Created With Action Group - CreatedWithActionGroupThe alert rule was created with an action group.
- Alert
Rule Creation Properties None - NoneThe alert rule was created with no properties.
- Created
With Action Group - CreatedWithActionGroupThe alert rule was created with an action group.
- None
- NoneThe alert rule was created with no properties.
- Created
With Action Group - CreatedWithActionGroupThe alert rule was created with an action group.
- None
- NoneThe alert rule was created with no properties.
- CREATED_WITH_ACTION_GROUP
- CreatedWithActionGroupThe alert rule was created with an action group.
- NONE
- NoneThe alert rule was created with no properties.
- "Created
With Action Group" - CreatedWithActionGroupThe alert rule was created with an action group.
- "None"
- NoneThe alert rule was created with no properties.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databasewatcher:AlertRuleResource testAlert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/alertRuleResources/{alertRuleResourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0