oci.DataFlow.RunStatement
Explore with Pulumi AI
This resource provides the Run Statement resource in Oracle Cloud Infrastructure Data Flow service.
Executes a statement for a Session run.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRunStatement = new Oci.DataFlow.RunStatement("testRunStatement", new()
{
Code = @var.Run_statement_code,
RunId = oci_dataflow_run.Test_run.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DataFlow"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataFlow.NewRunStatement(ctx, "testRunStatement", &DataFlow.RunStatementArgs{
Code: pulumi.Any(_var.Run_statement_code),
RunId: pulumi.Any(oci_dataflow_run.Test_run.Id),
})
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.oci.DataFlow.RunStatement;
import com.pulumi.oci.DataFlow.RunStatementArgs;
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 testRunStatement = new RunStatement("testRunStatement", RunStatementArgs.builder()
.code(var_.run_statement_code())
.runId(oci_dataflow_run.test_run().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_run_statement = oci.data_flow.RunStatement("testRunStatement",
code=var["run_statement_code"],
run_id=oci_dataflow_run["test_run"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRunStatement = new oci.dataflow.RunStatement("testRunStatement", {
code: _var.run_statement_code,
runId: oci_dataflow_run.test_run.id,
});
resources:
testRunStatement:
type: oci:DataFlow:RunStatement
properties:
#Required
code: ${var.run_statement_code}
runId: ${oci_dataflow_run.test_run.id}
Create RunStatement Resource
new RunStatement(name: string, args: RunStatementArgs, opts?: CustomResourceOptions);
@overload
def RunStatement(resource_name: str,
opts: Optional[ResourceOptions] = None,
code: Optional[str] = None,
run_id: Optional[str] = None)
@overload
def RunStatement(resource_name: str,
args: RunStatementArgs,
opts: Optional[ResourceOptions] = None)
func NewRunStatement(ctx *Context, name string, args RunStatementArgs, opts ...ResourceOption) (*RunStatement, error)
public RunStatement(string name, RunStatementArgs args, CustomResourceOptions? opts = null)
public RunStatement(String name, RunStatementArgs args)
public RunStatement(String name, RunStatementArgs args, CustomResourceOptions options)
type: oci:DataFlow:RunStatement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunStatementArgs
- 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 RunStatementArgs
- 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 RunStatementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunStatementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RunStatementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RunStatement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RunStatement resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the RunStatement resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Outputs
List<Run
Statement Output> The execution output of a statement.
- Progress double
The execution progress.
- State string
The current state of this statement.
- Time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- Time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- Id string
The provider-assigned unique ID for this managed resource.
- Outputs
[]Run
Statement Output Type The execution output of a statement.
- Progress float64
The execution progress.
- State string
The current state of this statement.
- Time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- Time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- id String
The provider-assigned unique ID for this managed resource.
- outputs
List<Run
Statement Output> The execution output of a statement.
- progress Double
The execution progress.
- state String
The current state of this statement.
- time
Completed String The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created String The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- id string
The provider-assigned unique ID for this managed resource.
- outputs
Run
Statement Output[] The execution output of a statement.
- progress number
The execution progress.
- state string
The current state of this statement.
- time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- id str
The provider-assigned unique ID for this managed resource.
- outputs
Run
Statement Output] The execution output of a statement.
- progress float
The execution progress.
- state str
The current state of this statement.
- time_
completed str The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time_
created str The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- id String
The provider-assigned unique ID for this managed resource.
- outputs List<Property Map>
The execution output of a statement.
- progress Number
The execution progress.
- state String
The current state of this statement.
- time
Completed String The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created String The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
Look up Existing RunStatement Resource
Get an existing RunStatement 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?: RunStatementState, opts?: CustomResourceOptions): RunStatement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
code: Optional[str] = None,
outputs: Optional[Sequence[_dataflow.RunStatementOutputArgs]] = None,
progress: Optional[float] = None,
run_id: Optional[str] = None,
state: Optional[str] = None,
time_completed: Optional[str] = None,
time_created: Optional[str] = None) -> RunStatement
func GetRunStatement(ctx *Context, name string, id IDInput, state *RunStatementState, opts ...ResourceOption) (*RunStatement, error)
public static RunStatement Get(string name, Input<string> id, RunStatementState? state, CustomResourceOptions? opts = null)
public static RunStatement get(String name, Output<String> id, RunStatementState 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.
- Code string
The statement code to execute. Example:
println(sc.version)
- Outputs
List<Run
Statement Output> The execution output of a statement.
- Progress double
The execution progress.
- Run
Id string The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
The current state of this statement.
- Time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- Time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- Code string
The statement code to execute. Example:
println(sc.version)
- Outputs
[]Run
Statement Output Type Args The execution output of a statement.
- Progress float64
The execution progress.
- Run
Id string The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
The current state of this statement.
- Time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- Time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- code String
The statement code to execute. Example:
println(sc.version)
- outputs
List<Run
Statement Output> The execution output of a statement.
- progress Double
The execution progress.
- run
Id String The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
The current state of this statement.
- time
Completed String The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created String The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- code string
The statement code to execute. Example:
println(sc.version)
- outputs
Run
Statement Output[] The execution output of a statement.
- progress number
The execution progress.
- run
Id string The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
The current state of this statement.
- time
Completed string The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created string The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- code str
The statement code to execute. Example:
println(sc.version)
- outputs
Run
Statement Output Args] The execution output of a statement.
- progress float
The execution progress.
- run_
id str The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
The current state of this statement.
- time_
completed str The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time_
created str The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
- code String
The statement code to execute. Example:
println(sc.version)
- outputs List<Property Map>
The execution output of a statement.
- progress Number
The execution progress.
- run
Id String The unique ID for the run
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
The current state of this statement.
- time
Completed String The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example:
2022-05-31T21:10:29.600Z
- time
Created String The date and time the resource was created, expressed in RFC 3339 timestamp format. Example:
2018-04-03T21:10:29.600Z
Supporting Types
RunStatementOutput, RunStatementOutputArgs
- Datas
List<Run
Statement Output Data> An object representing execution output of a statement.
- Error
Name string The name of the error in the statement output.
- Error
Value string The value of the error in the statement output.
- Status string
Status of the statement output.
- Tracebacks List<string>
The traceback of the statement output.
- Datas
[]Run
Statement Output Data An object representing execution output of a statement.
- Error
Name string The name of the error in the statement output.
- Error
Value string The value of the error in the statement output.
- Status string
Status of the statement output.
- Tracebacks []string
The traceback of the statement output.
- datas
List<Run
Statement Output Data> An object representing execution output of a statement.
- error
Name String The name of the error in the statement output.
- error
Value String The value of the error in the statement output.
- status String
Status of the statement output.
- tracebacks List<String>
The traceback of the statement output.
- datas
Run
Statement Output Data[] An object representing execution output of a statement.
- error
Name string The name of the error in the statement output.
- error
Value string The value of the error in the statement output.
- status string
Status of the statement output.
- tracebacks string[]
The traceback of the statement output.
- datas
Run
Statement Output Data] An object representing execution output of a statement.
- error_
name str The name of the error in the statement output.
- error_
value str The value of the error in the statement output.
- status str
Status of the statement output.
- tracebacks Sequence[str]
The traceback of the statement output.
- datas List<Property Map>
An object representing execution output of a statement.
- error
Name String The name of the error in the statement output.
- error
Value String The value of the error in the statement output.
- status String
Status of the statement output.
- tracebacks List<String>
The traceback of the statement output.
RunStatementOutputData, RunStatementOutputDataArgs
Import
RunStatements can be imported using the id
, e.g.
$ pulumi import oci:DataFlow/runStatement:RunStatement test_run_statement "runs/{runId}/statements/{statementId}"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.