TriggerSchedule
Manages a Trigger Schedule inside a Azure Data Factory.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleFactory = new Azure.DataFactory.Factory("exampleFactory", new Azure.DataFactory.FactoryArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var testPipeline = new Azure.DataFactory.Pipeline("testPipeline", new Azure.DataFactory.PipelineArgs
{
ResourceGroupName = azurerm_resource_group.Test.Name,
DataFactoryName = azurerm_data_factory.Test.Name,
});
var testTriggerSchedule = new Azure.DataFactory.TriggerSchedule("testTriggerSchedule", new Azure.DataFactory.TriggerScheduleArgs
{
DataFactoryName = azurerm_data_factory.Test.Name,
ResourceGroupName = azurerm_resource_group.Test.Name,
PipelineName = testPipeline.Name,
Interval = 5,
Frequency = "Day",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datafactory"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("northeurope"),
})
if err != nil {
return err
}
_, err = datafactory.NewFactory(ctx, "exampleFactory", &datafactory.FactoryArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
testPipeline, err := datafactory.NewPipeline(ctx, "testPipeline", &datafactory.PipelineArgs{
ResourceGroupName: pulumi.String(azurerm_resource_group.Test.Name),
DataFactoryName: pulumi.String(azurerm_data_factory.Test.Name),
})
if err != nil {
return err
}
_, err = datafactory.NewTriggerSchedule(ctx, "testTriggerSchedule", &datafactory.TriggerScheduleArgs{
DataFactoryName: pulumi.String(azurerm_data_factory.Test.Name),
ResourceGroupName: pulumi.String(azurerm_resource_group.Test.Name),
PipelineName: testPipeline.Name,
Interval: pulumi.Int(5),
Frequency: pulumi.String("Day"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="northeurope")
example_factory = azure.datafactory.Factory("exampleFactory",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
test_pipeline = azure.datafactory.Pipeline("testPipeline",
resource_group_name=azurerm_resource_group["test"]["name"],
data_factory_name=azurerm_data_factory["test"]["name"])
test_trigger_schedule = azure.datafactory.TriggerSchedule("testTriggerSchedule",
data_factory_name=azurerm_data_factory["test"]["name"],
resource_group_name=azurerm_resource_group["test"]["name"],
pipeline_name=test_pipeline.name,
interval=5,
frequency="Day")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "northeurope"});
const exampleFactory = new azure.datafactory.Factory("exampleFactory", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const testPipeline = new azure.datafactory.Pipeline("testPipeline", {
resourceGroupName: azurerm_resource_group.test.name,
dataFactoryName: azurerm_data_factory.test.name,
});
const testTriggerSchedule = new azure.datafactory.TriggerSchedule("testTriggerSchedule", {
dataFactoryName: azurerm_data_factory.test.name,
resourceGroupName: azurerm_resource_group.test.name,
pipelineName: testPipeline.name,
interval: 5,
frequency: "Day",
});Create a TriggerSchedule Resource
new TriggerSchedule(name: string, args: TriggerScheduleArgs, opts?: CustomResourceOptions);def TriggerSchedule(resource_name, opts=None, annotations=None, data_factory_name=None, end_time=None, frequency=None, interval=None, name=None, pipeline_name=None, pipeline_parameters=None, resource_group_name=None, start_time=None, __props__=None);func NewTriggerSchedule(ctx *Context, name string, args TriggerScheduleArgs, opts ...ResourceOption) (*TriggerSchedule, error)public TriggerSchedule(string name, TriggerScheduleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TriggerScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TriggerScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TriggerScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TriggerSchedule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TriggerSchedule resource accepts the following input properties:
- Data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- Pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- Resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- Annotations List<string>
List of tags that can be used for describing the Data Factory Schedule Trigger.
- End
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- Interval int
The interval for how often the trigger occurs. This defaults to 1.
- Name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Pipeline
Parameters Dictionary<string, string> The pipeline parameters that the trigger will act upon.
- Start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- Data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- Pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- Resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- Annotations []string
List of tags that can be used for describing the Data Factory Schedule Trigger.
- End
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- Interval int
The interval for how often the trigger occurs. This defaults to 1.
- Name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Pipeline
Parameters map[string]string The pipeline parameters that the trigger will act upon.
- Start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- annotations string[]
List of tags that can be used for describing the Data Factory Schedule Trigger.
- end
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- interval number
The interval for how often the trigger occurs. This defaults to 1.
- name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- pipeline
Parameters {[key: string]: string} The pipeline parameters that the trigger will act upon.
- start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- data_
factory_ strname The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- pipeline_
name str The Data Factory Pipeline name that the trigger will act on.
- resource_
group_ strname The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- annotations List[str]
List of tags that can be used for describing the Data Factory Schedule Trigger.
- end_
time str The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency str
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- interval float
The interval for how often the trigger occurs. This defaults to 1.
- name str
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- pipeline_
parameters Dict[str, str] The pipeline parameters that the trigger will act upon.
- start_
time str The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
Outputs
All input properties are implicitly available as output properties. Additionally, the TriggerSchedule resource produces the following output properties:
Look up an Existing TriggerSchedule Resource
Get an existing TriggerSchedule 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?: TriggerScheduleState, opts?: CustomResourceOptions): TriggerSchedulestatic get(resource_name, id, opts=None, annotations=None, data_factory_name=None, end_time=None, frequency=None, interval=None, name=None, pipeline_name=None, pipeline_parameters=None, resource_group_name=None, start_time=None, __props__=None);func GetTriggerSchedule(ctx *Context, name string, id IDInput, state *TriggerScheduleState, opts ...ResourceOption) (*TriggerSchedule, error)public static TriggerSchedule Get(string name, Input<string> id, TriggerScheduleState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Annotations List<string>
List of tags that can be used for describing the Data Factory Schedule Trigger.
- Data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- End
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- Interval int
The interval for how often the trigger occurs. This defaults to 1.
- Name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- Pipeline
Parameters Dictionary<string, string> The pipeline parameters that the trigger will act upon.
- Resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- Start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- Annotations []string
List of tags that can be used for describing the Data Factory Schedule Trigger.
- Data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- End
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- Frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- Interval int
The interval for how often the trigger occurs. This defaults to 1.
- Name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- Pipeline
Parameters map[string]string The pipeline parameters that the trigger will act upon.
- Resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- Start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- annotations string[]
List of tags that can be used for describing the Data Factory Schedule Trigger.
- data
Factory stringName The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- end
Time string The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency string
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- interval number
The interval for how often the trigger occurs. This defaults to 1.
- name string
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- pipeline
Name string The Data Factory Pipeline name that the trigger will act on.
- pipeline
Parameters {[key: string]: string} The pipeline parameters that the trigger will act upon.
- resource
Group stringName The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- start
Time string The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
- annotations List[str]
List of tags that can be used for describing the Data Factory Schedule Trigger.
- data_
factory_ strname The Data Factory name in which to associate the Schedule Trigger with. Changing this forces a new resource.
- end_
time str The time the Schedule Trigger should end. The time will be represented in UTC.
- frequency str
The trigger freqency. Valid values include
Minute,Hour,Day,Week,Month. Defaults toMinute.- interval float
The interval for how often the trigger occurs. This defaults to 1.
- name str
Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- pipeline_
name str The Data Factory Pipeline name that the trigger will act on.
- pipeline_
parameters Dict[str, str] The pipeline parameters that the trigger will act upon.
- resource_
group_ strname The name of the resource group in which to create the Data Factory Schedule Trigger. Changing this forces a new resource
- start_
time str The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.