azure-native.datashare.ScheduledTrigger
Explore with Pulumi AI
A type of trigger based on schedule Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
Example Usage
Triggers_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var scheduledTrigger = new AzureNative.DataShare.ScheduledTrigger("scheduledTrigger", new()
    {
        AccountName = "Account1",
        Kind = "ScheduleBased",
        RecurrenceInterval = AzureNative.DataShare.RecurrenceInterval.Day,
        ResourceGroupName = "SampleResourceGroup",
        ShareSubscriptionName = "ShareSubscription1",
        SynchronizationMode = AzureNative.DataShare.SynchronizationMode.Incremental,
        SynchronizationTime = "2018-11-14T04:47:52.9614956Z",
        TriggerName = "Trigger1",
    });
});
package main
import (
	datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datashare.NewScheduledTrigger(ctx, "scheduledTrigger", &datashare.ScheduledTriggerArgs{
			AccountName:           pulumi.String("Account1"),
			Kind:                  pulumi.String("ScheduleBased"),
			RecurrenceInterval:    pulumi.String(datashare.RecurrenceIntervalDay),
			ResourceGroupName:     pulumi.String("SampleResourceGroup"),
			ShareSubscriptionName: pulumi.String("ShareSubscription1"),
			SynchronizationMode:   pulumi.String(datashare.SynchronizationModeIncremental),
			SynchronizationTime:   pulumi.String("2018-11-14T04:47:52.9614956Z"),
			TriggerName:           pulumi.String("Trigger1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datashare.ScheduledTrigger;
import com.pulumi.azurenative.datashare.ScheduledTriggerArgs;
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 scheduledTrigger = new ScheduledTrigger("scheduledTrigger", ScheduledTriggerArgs.builder()
            .accountName("Account1")
            .kind("ScheduleBased")
            .recurrenceInterval("Day")
            .resourceGroupName("SampleResourceGroup")
            .shareSubscriptionName("ShareSubscription1")
            .synchronizationMode("Incremental")
            .synchronizationTime("2018-11-14T04:47:52.9614956Z")
            .triggerName("Trigger1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledTrigger = new azure_native.datashare.ScheduledTrigger("scheduledTrigger", {
    accountName: "Account1",
    kind: "ScheduleBased",
    recurrenceInterval: azure_native.datashare.RecurrenceInterval.Day,
    resourceGroupName: "SampleResourceGroup",
    shareSubscriptionName: "ShareSubscription1",
    synchronizationMode: azure_native.datashare.SynchronizationMode.Incremental,
    synchronizationTime: "2018-11-14T04:47:52.9614956Z",
    triggerName: "Trigger1",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_trigger = azure_native.datashare.ScheduledTrigger("scheduledTrigger",
    account_name="Account1",
    kind="ScheduleBased",
    recurrence_interval=azure_native.datashare.RecurrenceInterval.DAY,
    resource_group_name="SampleResourceGroup",
    share_subscription_name="ShareSubscription1",
    synchronization_mode=azure_native.datashare.SynchronizationMode.INCREMENTAL,
    synchronization_time="2018-11-14T04:47:52.9614956Z",
    trigger_name="Trigger1")
resources:
  scheduledTrigger:
    type: azure-native:datashare:ScheduledTrigger
    properties:
      accountName: Account1
      kind: ScheduleBased
      recurrenceInterval: Day
      resourceGroupName: SampleResourceGroup
      shareSubscriptionName: ShareSubscription1
      synchronizationMode: Incremental
      synchronizationTime: 2018-11-14T04:47:52.9614956Z
      triggerName: Trigger1
Create ScheduledTrigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduledTrigger(name: string, args: ScheduledTriggerArgs, opts?: CustomResourceOptions);@overload
def ScheduledTrigger(resource_name: str,
                     args: ScheduledTriggerArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def ScheduledTrigger(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_name: Optional[str] = None,
                     recurrence_interval: Optional[Union[str, RecurrenceInterval]] = None,
                     resource_group_name: Optional[str] = None,
                     share_subscription_name: Optional[str] = None,
                     synchronization_time: Optional[str] = None,
                     synchronization_mode: Optional[Union[str, SynchronizationMode]] = None,
                     trigger_name: Optional[str] = None)func NewScheduledTrigger(ctx *Context, name string, args ScheduledTriggerArgs, opts ...ResourceOption) (*ScheduledTrigger, error)public ScheduledTrigger(string name, ScheduledTriggerArgs args, CustomResourceOptions? opts = null)
public ScheduledTrigger(String name, ScheduledTriggerArgs args)
public ScheduledTrigger(String name, ScheduledTriggerArgs args, CustomResourceOptions options)
type: azure-native:datashare:ScheduledTrigger
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 ScheduledTriggerArgs
- 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 ScheduledTriggerArgs
- 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 ScheduledTriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledTriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduledTriggerArgs
- 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 scheduledTriggerResource = new AzureNative.DataShare.ScheduledTrigger("scheduledTriggerResource", new()
{
    AccountName = "string",
    Kind = "string",
    RecurrenceInterval = "string",
    ResourceGroupName = "string",
    ShareSubscriptionName = "string",
    SynchronizationTime = "string",
    SynchronizationMode = "string",
    TriggerName = "string",
});
example, err := datashare.NewScheduledTrigger(ctx, "scheduledTriggerResource", &datashare.ScheduledTriggerArgs{
	AccountName:           pulumi.String("string"),
	Kind:                  pulumi.String("string"),
	RecurrenceInterval:    pulumi.String("string"),
	ResourceGroupName:     pulumi.String("string"),
	ShareSubscriptionName: pulumi.String("string"),
	SynchronizationTime:   pulumi.String("string"),
	SynchronizationMode:   pulumi.String("string"),
	TriggerName:           pulumi.String("string"),
})
var scheduledTriggerResource = new ScheduledTrigger("scheduledTriggerResource", ScheduledTriggerArgs.builder()
    .accountName("string")
    .kind("string")
    .recurrenceInterval("string")
    .resourceGroupName("string")
    .shareSubscriptionName("string")
    .synchronizationTime("string")
    .synchronizationMode("string")
    .triggerName("string")
    .build());
scheduled_trigger_resource = azure_native.datashare.ScheduledTrigger("scheduledTriggerResource",
    account_name="string",
    kind="string",
    recurrence_interval="string",
    resource_group_name="string",
    share_subscription_name="string",
    synchronization_time="string",
    synchronization_mode="string",
    trigger_name="string")
const scheduledTriggerResource = new azure_native.datashare.ScheduledTrigger("scheduledTriggerResource", {
    accountName: "string",
    kind: "string",
    recurrenceInterval: "string",
    resourceGroupName: "string",
    shareSubscriptionName: "string",
    synchronizationTime: "string",
    synchronizationMode: "string",
    triggerName: "string",
});
type: azure-native:datashare:ScheduledTrigger
properties:
    accountName: string
    kind: string
    recurrenceInterval: string
    resourceGroupName: string
    shareSubscriptionName: string
    synchronizationMode: string
    synchronizationTime: string
    triggerName: string
ScheduledTrigger 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 ScheduledTrigger resource accepts the following input properties:
- AccountName string
- The name of the share account.
- RecurrenceInterval string | Pulumi.Azure Native. Data Share. Recurrence Interval 
- Recurrence Interval
- ResourceGroup stringName 
- The resource group name.
- string
- The name of the share subscription which will hold the data set sink.
- SynchronizationTime string
- Synchronization time
- SynchronizationMode string | Pulumi.Azure Native. Data Share. Synchronization Mode 
- Synchronization mode
- TriggerName string
- The name of the trigger.
- AccountName string
- The name of the share account.
- RecurrenceInterval string | RecurrenceInterval 
- Recurrence Interval
- ResourceGroup stringName 
- The resource group name.
- string
- The name of the share subscription which will hold the data set sink.
- SynchronizationTime string
- Synchronization time
- SynchronizationMode string | SynchronizationMode 
- Synchronization mode
- TriggerName string
- The name of the trigger.
- accountName String
- The name of the share account.
- recurrenceInterval String | RecurrenceInterval 
- Recurrence Interval
- resourceGroup StringName 
- The resource group name.
- String
- The name of the share subscription which will hold the data set sink.
- synchronizationTime String
- Synchronization time
- synchronizationMode String | SynchronizationMode 
- Synchronization mode
- triggerName String
- The name of the trigger.
- accountName string
- The name of the share account.
- recurrenceInterval string | RecurrenceInterval 
- Recurrence Interval
- resourceGroup stringName 
- The resource group name.
- string
- The name of the share subscription which will hold the data set sink.
- synchronizationTime string
- Synchronization time
- synchronizationMode string | SynchronizationMode 
- Synchronization mode
- triggerName string
- The name of the trigger.
- account_name str
- The name of the share account.
- recurrence_interval str | RecurrenceInterval 
- Recurrence Interval
- resource_group_ strname 
- The resource group name.
- str
- The name of the share subscription which will hold the data set sink.
- synchronization_time str
- Synchronization time
- synchronization_mode str | SynchronizationMode 
- Synchronization mode
- trigger_name str
- The name of the trigger.
- accountName String
- The name of the share account.
- recurrenceInterval String | "Hour" | "Day"
- Recurrence Interval
- resourceGroup StringName 
- The resource group name.
- String
- The name of the share subscription which will hold the data set sink.
- synchronizationTime String
- Synchronization time
- synchronizationMode String | "Incremental" | "FullSync" 
- Synchronization mode
- triggerName String
- The name of the trigger.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledTrigger resource produces the following output properties:
- CreatedAt string
- Time at which the trigger was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- ProvisioningState string
- Gets the provisioning state
- SystemData Pulumi.Azure Native. Data Share. Outputs. System Data Response 
- System Data of the Azure resource.
- TriggerStatus string
- Gets the trigger state
- Type string
- Type of the azure resource
- UserName string
- Name of the user who created the trigger.
- CreatedAt string
- Time at which the trigger was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- ProvisioningState string
- Gets the provisioning state
- SystemData SystemData Response 
- System Data of the Azure resource.
- TriggerStatus string
- Gets the trigger state
- Type string
- Type of the azure resource
- UserName string
- Name of the user who created the trigger.
- createdAt String
- Time at which the trigger was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provisioningState String
- Gets the provisioning state
- systemData SystemData Response 
- System Data of the Azure resource.
- triggerStatus String
- Gets the trigger state
- type String
- Type of the azure resource
- userName String
- Name of the user who created the trigger.
- createdAt string
- Time at which the trigger was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the azure resource
- provisioningState string
- Gets the provisioning state
- systemData SystemData Response 
- System Data of the Azure resource.
- triggerStatus string
- Gets the trigger state
- type string
- Type of the azure resource
- userName string
- Name of the user who created the trigger.
- created_at str
- Time at which the trigger was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the azure resource
- provisioning_state str
- Gets the provisioning state
- system_data SystemData Response 
- System Data of the Azure resource.
- trigger_status str
- Gets the trigger state
- type str
- Type of the azure resource
- user_name str
- Name of the user who created the trigger.
- createdAt String
- Time at which the trigger was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provisioningState String
- Gets the provisioning state
- systemData Property Map
- System Data of the Azure resource.
- triggerStatus String
- Gets the trigger state
- type String
- Type of the azure resource
- userName String
- Name of the user who created the trigger.
Supporting Types
RecurrenceInterval, RecurrenceIntervalArgs    
- Hour
- Hour
- Day
- Day
- RecurrenceInterval Hour 
- Hour
- RecurrenceInterval Day 
- Day
- Hour
- Hour
- Day
- Day
- Hour
- Hour
- Day
- Day
- HOUR
- Hour
- DAY
- Day
- "Hour"
- Hour
- "Day"
- Day
SynchronizationMode, SynchronizationModeArgs    
- Incremental
- Incremental
- FullSync 
- FullSync
- SynchronizationMode Incremental 
- Incremental
- SynchronizationMode Full Sync 
- FullSync
- Incremental
- Incremental
- FullSync 
- FullSync
- Incremental
- Incremental
- FullSync 
- FullSync
- INCREMENTAL
- Incremental
- FULL_SYNC
- FullSync
- "Incremental"
- Incremental
- "FullSync" 
- FullSync
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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 type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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:datashare:ScheduledTrigger Trigger1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0