tencentcloud.WedataRunSqlScriptOperation
Provides a resource to create a WeData run sql script operation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WedataRunSqlScriptOperation("example", {
scriptId: "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
projectId: "2983848457986924544",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WedataRunSqlScriptOperation("example",
script_id="195a5f49-8e43-4e05-8b42-cecdfb6349f8",
project_id="2983848457986924544")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewWedataRunSqlScriptOperation(ctx, "example", &tencentcloud.WedataRunSqlScriptOperationArgs{
ScriptId: pulumi.String("195a5f49-8e43-4e05-8b42-cecdfb6349f8"),
ProjectId: pulumi.String("2983848457986924544"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.WedataRunSqlScriptOperation("example", new()
{
ScriptId = "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
ProjectId = "2983848457986924544",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WedataRunSqlScriptOperation;
import com.pulumi.tencentcloud.WedataRunSqlScriptOperationArgs;
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 example = new WedataRunSqlScriptOperation("example", WedataRunSqlScriptOperationArgs.builder()
.scriptId("195a5f49-8e43-4e05-8b42-cecdfb6349f8")
.projectId("2983848457986924544")
.build());
}
}
resources:
example:
type: tencentcloud:WedataRunSqlScriptOperation
properties:
scriptId: 195a5f49-8e43-4e05-8b42-cecdfb6349f8
projectId: '2983848457986924544'
Or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WedataRunSqlScriptOperation("example", {
scriptId: "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
projectId: "2983848457986924544",
scriptContent: "SHOW DATABASES;",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WedataRunSqlScriptOperation("example",
script_id="195a5f49-8e43-4e05-8b42-cecdfb6349f8",
project_id="2983848457986924544",
script_content="SHOW DATABASES;")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewWedataRunSqlScriptOperation(ctx, "example", &tencentcloud.WedataRunSqlScriptOperationArgs{
ScriptId: pulumi.String("195a5f49-8e43-4e05-8b42-cecdfb6349f8"),
ProjectId: pulumi.String("2983848457986924544"),
ScriptContent: pulumi.String("SHOW DATABASES;"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.WedataRunSqlScriptOperation("example", new()
{
ScriptId = "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
ProjectId = "2983848457986924544",
ScriptContent = "SHOW DATABASES;",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WedataRunSqlScriptOperation;
import com.pulumi.tencentcloud.WedataRunSqlScriptOperationArgs;
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 example = new WedataRunSqlScriptOperation("example", WedataRunSqlScriptOperationArgs.builder()
.scriptId("195a5f49-8e43-4e05-8b42-cecdfb6349f8")
.projectId("2983848457986924544")
.scriptContent("SHOW DATABASES;")
.build());
}
}
resources:
example:
type: tencentcloud:WedataRunSqlScriptOperation
properties:
scriptId: 195a5f49-8e43-4e05-8b42-cecdfb6349f8
projectId: '2983848457986924544'
scriptContent: SHOW DATABASES;
Create WedataRunSqlScriptOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WedataRunSqlScriptOperation(name: string, args: WedataRunSqlScriptOperationArgs, opts?: CustomResourceOptions);@overload
def WedataRunSqlScriptOperation(resource_name: str,
args: WedataRunSqlScriptOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WedataRunSqlScriptOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
script_id: Optional[str] = None,
params: Optional[str] = None,
script_content: Optional[str] = None,
wedata_run_sql_script_operation_id: Optional[str] = None)func NewWedataRunSqlScriptOperation(ctx *Context, name string, args WedataRunSqlScriptOperationArgs, opts ...ResourceOption) (*WedataRunSqlScriptOperation, error)public WedataRunSqlScriptOperation(string name, WedataRunSqlScriptOperationArgs args, CustomResourceOptions? opts = null)
public WedataRunSqlScriptOperation(String name, WedataRunSqlScriptOperationArgs args)
public WedataRunSqlScriptOperation(String name, WedataRunSqlScriptOperationArgs args, CustomResourceOptions options)
type: tencentcloud:WedataRunSqlScriptOperation
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 WedataRunSqlScriptOperationArgs
- 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 WedataRunSqlScriptOperationArgs
- 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 WedataRunSqlScriptOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WedataRunSqlScriptOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WedataRunSqlScriptOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WedataRunSqlScriptOperation 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 WedataRunSqlScriptOperation resource accepts the following input properties:
- Project
Id string - Project ID.
- Script
Id string - Script id.
- Params string
- Advanced running parameter.
- Script
Content string - Script content. executed by default if not transmitted.
- Wedata
Run stringSql Script Operation Id - ID of the resource.
- Project
Id string - Project ID.
- Script
Id string - Script id.
- Params string
- Advanced running parameter.
- Script
Content string - Script content. executed by default if not transmitted.
- Wedata
Run stringSql Script Operation Id - ID of the resource.
- project
Id String - Project ID.
- script
Id String - Script id.
- params String
- Advanced running parameter.
- script
Content String - Script content. executed by default if not transmitted.
- wedata
Run StringSql Script Operation Id - ID of the resource.
- project
Id string - Project ID.
- script
Id string - Script id.
- params string
- Advanced running parameter.
- script
Content string - Script content. executed by default if not transmitted.
- wedata
Run stringSql Script Operation Id - ID of the resource.
- project_
id str - Project ID.
- script_
id str - Script id.
- params str
- Advanced running parameter.
- script_
content str - Script content. executed by default if not transmitted.
- wedata_
run_ strsql_ script_ operation_ id - ID of the resource.
- project
Id String - Project ID.
- script
Id String - Script id.
- params String
- Advanced running parameter.
- script
Content String - Script content. executed by default if not transmitted.
- wedata
Run StringSql Script Operation Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WedataRunSqlScriptOperation resource produces the following output properties:
Look up Existing WedataRunSqlScriptOperation Resource
Get an existing WedataRunSqlScriptOperation 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?: WedataRunSqlScriptOperationState, opts?: CustomResourceOptions): WedataRunSqlScriptOperation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
job_id: Optional[str] = None,
params: Optional[str] = None,
project_id: Optional[str] = None,
script_content: Optional[str] = None,
script_id: Optional[str] = None,
wedata_run_sql_script_operation_id: Optional[str] = None) -> WedataRunSqlScriptOperationfunc GetWedataRunSqlScriptOperation(ctx *Context, name string, id IDInput, state *WedataRunSqlScriptOperationState, opts ...ResourceOption) (*WedataRunSqlScriptOperation, error)public static WedataRunSqlScriptOperation Get(string name, Input<string> id, WedataRunSqlScriptOperationState? state, CustomResourceOptions? opts = null)public static WedataRunSqlScriptOperation get(String name, Output<String> id, WedataRunSqlScriptOperationState state, CustomResourceOptions options)resources: _: type: tencentcloud:WedataRunSqlScriptOperation get: id: ${id}- 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.
- Job
Id string - Job ID of the SQL script operation.
- Params string
- Advanced running parameter.
- Project
Id string - Project ID.
- Script
Content string - Script content. executed by default if not transmitted.
- Script
Id string - Script id.
- Wedata
Run stringSql Script Operation Id - ID of the resource.
- Job
Id string - Job ID of the SQL script operation.
- Params string
- Advanced running parameter.
- Project
Id string - Project ID.
- Script
Content string - Script content. executed by default if not transmitted.
- Script
Id string - Script id.
- Wedata
Run stringSql Script Operation Id - ID of the resource.
- job
Id String - Job ID of the SQL script operation.
- params String
- Advanced running parameter.
- project
Id String - Project ID.
- script
Content String - Script content. executed by default if not transmitted.
- script
Id String - Script id.
- wedata
Run StringSql Script Operation Id - ID of the resource.
- job
Id string - Job ID of the SQL script operation.
- params string
- Advanced running parameter.
- project
Id string - Project ID.
- script
Content string - Script content. executed by default if not transmitted.
- script
Id string - Script id.
- wedata
Run stringSql Script Operation Id - ID of the resource.
- job_
id str - Job ID of the SQL script operation.
- params str
- Advanced running parameter.
- project_
id str - Project ID.
- script_
content str - Script content. executed by default if not transmitted.
- script_
id str - Script id.
- wedata_
run_ strsql_ script_ operation_ id - ID of the resource.
- job
Id String - Job ID of the SQL script operation.
- params String
- Advanced running parameter.
- project
Id String - Project ID.
- script
Content String - Script content. executed by default if not transmitted.
- script
Id String - Script id.
- wedata
Run StringSql Script Operation Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
