snowflake.Task
Explore with Pulumi AI
Import
format is database name | schema name | task name
$ pulumi import snowflake:index/task:Task example 'dbName|schemaName|taskName'
Create Task Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Task(name: string, args: TaskArgs, opts?: CustomResourceOptions);
@overload
def Task(resource_name: str,
args: TaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Task(resource_name: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
sql_statement: Optional[str] = None,
schema: Optional[str] = None,
enabled: Optional[bool] = None,
afters: Optional[Sequence[str]] = None,
error_integration: Optional[str] = None,
name: Optional[str] = None,
schedule: Optional[str] = None,
comment: Optional[str] = None,
session_parameters: Optional[Mapping[str, str]] = None,
allow_overlapping_execution: Optional[bool] = None,
suspend_task_after_num_failures: Optional[int] = None,
user_task_managed_initial_warehouse_size: Optional[str] = None,
user_task_timeout_ms: Optional[int] = None,
warehouse: Optional[str] = None,
when: Optional[str] = None)
func NewTask(ctx *Context, name string, args TaskArgs, opts ...ResourceOption) (*Task, error)
public Task(string name, TaskArgs args, CustomResourceOptions? opts = null)
type: snowflake:Task
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 TaskArgs
- 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 TaskArgs
- 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 TaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaskArgs
- 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 taskResource = new Snowflake.Task("taskResource", new()
{
Database = "string",
SqlStatement = "string",
Schema = "string",
Enabled = false,
Afters = new[]
{
"string",
},
ErrorIntegration = "string",
Name = "string",
Schedule = "string",
Comment = "string",
SessionParameters =
{
{ "string", "string" },
},
AllowOverlappingExecution = false,
SuspendTaskAfterNumFailures = 0,
UserTaskManagedInitialWarehouseSize = "string",
UserTaskTimeoutMs = 0,
Warehouse = "string",
When = "string",
});
example, err := snowflake.NewTask(ctx, "taskResource", &snowflake.TaskArgs{
Database: pulumi.String("string"),
SqlStatement: pulumi.String("string"),
Schema: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Afters: pulumi.StringArray{
pulumi.String("string"),
},
ErrorIntegration: pulumi.String("string"),
Name: pulumi.String("string"),
Schedule: pulumi.String("string"),
Comment: pulumi.String("string"),
SessionParameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
AllowOverlappingExecution: pulumi.Bool(false),
SuspendTaskAfterNumFailures: pulumi.Int(0),
UserTaskManagedInitialWarehouseSize: pulumi.String("string"),
UserTaskTimeoutMs: pulumi.Int(0),
Warehouse: pulumi.String("string"),
When: pulumi.String("string"),
})
var taskResource = new Task("taskResource", TaskArgs.builder()
.database("string")
.sqlStatement("string")
.schema("string")
.enabled(false)
.afters("string")
.errorIntegration("string")
.name("string")
.schedule("string")
.comment("string")
.sessionParameters(Map.of("string", "string"))
.allowOverlappingExecution(false)
.suspendTaskAfterNumFailures(0)
.userTaskManagedInitialWarehouseSize("string")
.userTaskTimeoutMs(0)
.warehouse("string")
.when("string")
.build());
task_resource = snowflake.Task("taskResource",
database="string",
sql_statement="string",
schema="string",
enabled=False,
afters=["string"],
error_integration="string",
name="string",
schedule="string",
comment="string",
session_parameters={
"string": "string",
},
allow_overlapping_execution=False,
suspend_task_after_num_failures=0,
user_task_managed_initial_warehouse_size="string",
user_task_timeout_ms=0,
warehouse="string",
when="string")
const taskResource = new snowflake.Task("taskResource", {
database: "string",
sqlStatement: "string",
schema: "string",
enabled: false,
afters: ["string"],
errorIntegration: "string",
name: "string",
schedule: "string",
comment: "string",
sessionParameters: {
string: "string",
},
allowOverlappingExecution: false,
suspendTaskAfterNumFailures: 0,
userTaskManagedInitialWarehouseSize: "string",
userTaskTimeoutMs: 0,
warehouse: "string",
when: "string",
});
type: snowflake:Task
properties:
afters:
- string
allowOverlappingExecution: false
comment: string
database: string
enabled: false
errorIntegration: string
name: string
schedule: string
schema: string
sessionParameters:
string: string
sqlStatement: string
suspendTaskAfterNumFailures: 0
userTaskManagedInitialWarehouseSize: string
userTaskTimeoutMs: 0
warehouse: string
when: string
Task 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 Task resource accepts the following input properties:
- Database string
- The database in which to create the task.
- Schema string
- The schema in which to create the task.
- Sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- Afters List<string>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- Allow
Overlapping boolExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- Comment string
- Specifies a comment for the task.
- Enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- Error
Integration string - Specifies the name of the notification integration used for error notifications.
- Name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- Schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- Session
Parameters Dictionary<string, string> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- Suspend
Task intAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- User
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- User
Task intTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- Warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- When string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- Database string
- The database in which to create the task.
- Schema string
- The schema in which to create the task.
- Sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- Afters []string
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- Allow
Overlapping boolExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- Comment string
- Specifies a comment for the task.
- Enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- Error
Integration string - Specifies the name of the notification integration used for error notifications.
- Name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- Schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- Session
Parameters map[string]string - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- Suspend
Task intAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- User
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- User
Task intTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- Warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- When string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- database String
- The database in which to create the task.
- schema String
- The schema in which to create the task.
- sql
Statement String - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- afters List<String>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping BooleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment String
- Specifies a comment for the task.
- enabled Boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration String - Specifies the name of the notification integration used for error notifications.
- name String
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule String
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- session
Parameters Map<String,String> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- suspend
Task IntegerAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task StringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task IntegerTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse String
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when String
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- database string
- The database in which to create the task.
- schema string
- The schema in which to create the task.
- sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- afters string[]
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping booleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment string
- Specifies a comment for the task.
- enabled boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration string - Specifies the name of the notification integration used for error notifications.
- name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- session
Parameters {[key: string]: string} - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- suspend
Task numberAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task numberTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- database str
- The database in which to create the task.
- schema str
- The schema in which to create the task.
- sql_
statement str - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- afters Sequence[str]
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow_
overlapping_ boolexecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment str
- Specifies a comment for the task.
- enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error_
integration str - Specifies the name of the notification integration used for error notifications.
- name str
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule str
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- session_
parameters Mapping[str, str] - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- suspend_
task_ intafter_ num_ failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user_
task_ strmanaged_ initial_ warehouse_ size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user_
task_ inttimeout_ ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse str
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when str
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- database String
- The database in which to create the task.
- schema String
- The schema in which to create the task.
- sql
Statement String - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- afters List<String>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping BooleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment String
- Specifies a comment for the task.
- enabled Boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration String - Specifies the name of the notification integration used for error notifications.
- name String
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule String
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- session
Parameters Map<String> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- suspend
Task NumberAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task StringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task NumberTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse String
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when String
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the Task resource produces the following output properties:
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Task Resource
Get an existing Task 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?: TaskState, opts?: CustomResourceOptions): Task
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
afters: Optional[Sequence[str]] = None,
allow_overlapping_execution: Optional[bool] = None,
comment: Optional[str] = None,
database: Optional[str] = None,
enabled: Optional[bool] = None,
error_integration: Optional[str] = None,
fully_qualified_name: Optional[str] = None,
name: Optional[str] = None,
schedule: Optional[str] = None,
schema: Optional[str] = None,
session_parameters: Optional[Mapping[str, str]] = None,
sql_statement: Optional[str] = None,
suspend_task_after_num_failures: Optional[int] = None,
user_task_managed_initial_warehouse_size: Optional[str] = None,
user_task_timeout_ms: Optional[int] = None,
warehouse: Optional[str] = None,
when: Optional[str] = None) -> Task
func GetTask(ctx *Context, name string, id IDInput, state *TaskState, opts ...ResourceOption) (*Task, error)
public static Task Get(string name, Input<string> id, TaskState? state, CustomResourceOptions? opts = null)
public static Task get(String name, Output<String> id, TaskState 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.
- Afters List<string>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- Allow
Overlapping boolExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- Comment string
- Specifies a comment for the task.
- Database string
- The database in which to create the task.
- Enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- Error
Integration string - Specifies the name of the notification integration used for error notifications.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- Schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- Schema string
- The schema in which to create the task.
- Session
Parameters Dictionary<string, string> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- Sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- Suspend
Task intAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- User
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- User
Task intTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- Warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- When string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- Afters []string
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- Allow
Overlapping boolExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- Comment string
- Specifies a comment for the task.
- Database string
- The database in which to create the task.
- Enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- Error
Integration string - Specifies the name of the notification integration used for error notifications.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- Schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- Schema string
- The schema in which to create the task.
- Session
Parameters map[string]string - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- Sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- Suspend
Task intAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- User
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- User
Task intTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- Warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- When string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- afters List<String>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping BooleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment String
- Specifies a comment for the task.
- database String
- The database in which to create the task.
- enabled Boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration String - Specifies the name of the notification integration used for error notifications.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule String
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- schema String
- The schema in which to create the task.
- session
Parameters Map<String,String> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- sql
Statement String - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- suspend
Task IntegerAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task StringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task IntegerTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse String
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when String
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- afters string[]
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping booleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment string
- Specifies a comment for the task.
- database string
- The database in which to create the task.
- enabled boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration string - Specifies the name of the notification integration used for error notifications.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- name string
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule string
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- schema string
- The schema in which to create the task.
- session
Parameters {[key: string]: string} - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- sql
Statement string - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- suspend
Task numberAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task stringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task numberTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse string
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when string
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- afters Sequence[str]
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow_
overlapping_ boolexecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment str
- Specifies a comment for the task.
- database str
- The database in which to create the task.
- enabled bool
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error_
integration str - Specifies the name of the notification integration used for error notifications.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- name str
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule str
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- schema str
- The schema in which to create the task.
- session_
parameters Mapping[str, str] - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- sql_
statement str - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- suspend_
task_ intafter_ num_ failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user_
task_ strmanaged_ initial_ warehouse_ size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user_
task_ inttimeout_ ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse str
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when str
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
- afters List<String>
- Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
- allow
Overlapping BooleanExecution - By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
- comment String
- Specifies a comment for the task.
- database String
- The database in which to create the task.
- enabled Boolean
- Specifies if the task should be started (enabled) after creation or should remain suspended (default).
- error
Integration String - Specifies the name of the notification integration used for error notifications.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
- schedule String
- The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
- schema String
- The schema in which to create the task.
- session
Parameters Map<String> - Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
- sql
Statement String - Any single SQL statement, or a call to a stored procedure, executed when the task runs.
- suspend
Task NumberAfter Num Failures - Specifies the number of consecutive failed task runs after which the current task is suspended automatically. The default is 0 (no automatic suspension).
- user
Task StringManaged Initial Warehouse Size - Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
- user
Task NumberTimeout Ms - Specifies the time limit on a single run of the task before it times out (in milliseconds).
- warehouse String
- The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with usertaskmanagedinitialwarehouse_size)
- when String
- Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.