published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provide a resource to create an EMR boot script.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.EmrBootScript("example", {
instanceId: "emr-qe336v2e",
bootType: "resourceAfter",
preExecutedFileSettings: [{
path: "demo.py",
bucket: "tf-1309115522",
cosFileName: "demo",
region: "ap-guangzhou",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.EmrBootScript("example",
instance_id="emr-qe336v2e",
boot_type="resourceAfter",
pre_executed_file_settings=[{
"path": "demo.py",
"bucket": "tf-1309115522",
"cos_file_name": "demo",
"region": "ap-guangzhou",
}])
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.NewEmrBootScript(ctx, "example", &tencentcloud.EmrBootScriptArgs{
InstanceId: pulumi.String("emr-qe336v2e"),
BootType: pulumi.String("resourceAfter"),
PreExecutedFileSettings: tencentcloud.EmrBootScriptPreExecutedFileSettingArray{
&tencentcloud.EmrBootScriptPreExecutedFileSettingArgs{
Path: pulumi.String("demo.py"),
Bucket: pulumi.String("tf-1309115522"),
CosFileName: pulumi.String("demo"),
Region: pulumi.String("ap-guangzhou"),
},
},
})
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.EmrBootScript("example", new()
{
InstanceId = "emr-qe336v2e",
BootType = "resourceAfter",
PreExecutedFileSettings = new[]
{
new Tencentcloud.Inputs.EmrBootScriptPreExecutedFileSettingArgs
{
Path = "demo.py",
Bucket = "tf-1309115522",
CosFileName = "demo",
Region = "ap-guangzhou",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.EmrBootScript;
import com.pulumi.tencentcloud.EmrBootScriptArgs;
import com.pulumi.tencentcloud.inputs.EmrBootScriptPreExecutedFileSettingArgs;
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 EmrBootScript("example", EmrBootScriptArgs.builder()
.instanceId("emr-qe336v2e")
.bootType("resourceAfter")
.preExecutedFileSettings(EmrBootScriptPreExecutedFileSettingArgs.builder()
.path("demo.py")
.bucket("tf-1309115522")
.cosFileName("demo")
.region("ap-guangzhou")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:EmrBootScript
properties:
instanceId: emr-qe336v2e
bootType: resourceAfter
preExecutedFileSettings:
- path: demo.py
bucket: tf-1309115522
cosFileName: demo
region: ap-guangzhou
Example coming soon!
Create EmrBootScript Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmrBootScript(name: string, args: EmrBootScriptArgs, opts?: CustomResourceOptions);@overload
def EmrBootScript(resource_name: str,
args: EmrBootScriptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmrBootScript(resource_name: str,
opts: Optional[ResourceOptions] = None,
boot_type: Optional[str] = None,
instance_id: Optional[str] = None,
emr_boot_script_id: Optional[str] = None,
pre_executed_file_settings: Optional[Sequence[EmrBootScriptPreExecutedFileSettingArgs]] = None)func NewEmrBootScript(ctx *Context, name string, args EmrBootScriptArgs, opts ...ResourceOption) (*EmrBootScript, error)public EmrBootScript(string name, EmrBootScriptArgs args, CustomResourceOptions? opts = null)
public EmrBootScript(String name, EmrBootScriptArgs args)
public EmrBootScript(String name, EmrBootScriptArgs args, CustomResourceOptions options)
type: tencentcloud:EmrBootScript
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_emrbootscript" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EmrBootScriptArgs
- 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 EmrBootScriptArgs
- 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 EmrBootScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmrBootScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmrBootScriptArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EmrBootScript 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 EmrBootScript resource accepts the following input properties:
- Boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - Instance
Id string - EMR instance ID.
- Emr
Boot stringScript Id - ID of the resource.
- Pre
Executed List<EmrFile Settings Boot Script Pre Executed File Setting> - List of pre-execution script settings.
- Boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - Instance
Id string - EMR instance ID.
- Emr
Boot stringScript Id - ID of the resource.
- Pre
Executed []EmrFile Settings Boot Script Pre Executed File Setting Args - List of pre-execution script settings.
- boot_
type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - instance_
id string - EMR instance ID.
- emr_
boot_ stringscript_ id - ID of the resource.
- pre_
executed_ list(object)file_ settings - List of pre-execution script settings.
- boot
Type String - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - instance
Id String - EMR instance ID.
- emr
Boot StringScript Id - ID of the resource.
- pre
Executed List<EmrFile Settings Boot Script Pre Executed File Setting> - List of pre-execution script settings.
- boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - instance
Id string - EMR instance ID.
- emr
Boot stringScript Id - ID of the resource.
- pre
Executed EmrFile Settings Boot Script Pre Executed File Setting[] - List of pre-execution script settings.
- boot_
type str - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - instance_
id str - EMR instance ID.
- emr_
boot_ strscript_ id - ID of the resource.
- pre_
executed_ Sequence[Emrfile_ settings Boot Script Pre Executed File Setting Args] - List of pre-execution script settings.
- boot
Type String - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - instance
Id String - EMR instance ID.
- emr
Boot StringScript Id - ID of the resource.
- pre
Executed List<Property Map>File Settings - List of pre-execution script settings.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmrBootScript resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EmrBootScript Resource
Get an existing EmrBootScript 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?: EmrBootScriptState, opts?: CustomResourceOptions): EmrBootScript@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
boot_type: Optional[str] = None,
emr_boot_script_id: Optional[str] = None,
instance_id: Optional[str] = None,
pre_executed_file_settings: Optional[Sequence[EmrBootScriptPreExecutedFileSettingArgs]] = None) -> EmrBootScriptfunc GetEmrBootScript(ctx *Context, name string, id IDInput, state *EmrBootScriptState, opts ...ResourceOption) (*EmrBootScript, error)public static EmrBootScript Get(string name, Input<string> id, EmrBootScriptState? state, CustomResourceOptions? opts = null)public static EmrBootScript get(String name, Output<String> id, EmrBootScriptState state, CustomResourceOptions options)resources: _: type: tencentcloud:EmrBootScript get: id: ${id}import {
to = tencentcloud_emrbootscript.example
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.
- Boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - Emr
Boot stringScript Id - ID of the resource.
- Instance
Id string - EMR instance ID.
- Pre
Executed List<EmrFile Settings Boot Script Pre Executed File Setting> - List of pre-execution script settings.
- Boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - Emr
Boot stringScript Id - ID of the resource.
- Instance
Id string - EMR instance ID.
- Pre
Executed []EmrFile Settings Boot Script Pre Executed File Setting Args - List of pre-execution script settings.
- boot_
type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - emr_
boot_ stringscript_ id - ID of the resource.
- instance_
id string - EMR instance ID.
- pre_
executed_ list(object)file_ settings - List of pre-execution script settings.
- boot
Type String - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - emr
Boot StringScript Id - ID of the resource.
- instance
Id String - EMR instance ID.
- pre
Executed List<EmrFile Settings Boot Script Pre Executed File Setting> - List of pre-execution script settings.
- boot
Type string - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - emr
Boot stringScript Id - ID of the resource.
- instance
Id string - EMR instance ID.
- pre
Executed EmrFile Settings Boot Script Pre Executed File Setting[] - List of pre-execution script settings.
- boot_
type str - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - emr_
boot_ strscript_ id - ID of the resource.
- instance_
id str - EMR instance ID.
- pre_
executed_ Sequence[Emrfile_ settings Boot Script Pre Executed File Setting Args] - List of pre-execution script settings.
- boot
Type String - Boot type. Valid values:
resourceAfter,clusterAfter,clusterBefore. - emr
Boot StringScript Id - ID of the resource.
- instance
Id String - EMR instance ID.
- pre
Executed List<Property Map>File Settings - List of pre-execution script settings.
Supporting Types
EmrBootScriptPreExecutedFileSetting, EmrBootScriptPreExecutedFileSettingArgs
- App
Id string - COS AppId.
- Args string
- Script execution parameters.
- Bucket string
- COS bucket name.
- Cos
File stringName - Script file name.
- Cos
File stringUri - Script COS address.
- Cos
Secret stringId - COS SecretId.
- Cos
Secret stringKey - COS SecretKey.
- Domain string
- COS domain data.
- Path string
- Script path on COS.
- Region string
- COS region name.
- Remark string
- Remark.
- Run
Order double - Execution order.
- When
Run string - Execution timing. Valid values:
resourceAfter,clusterAfter.
- App
Id string - COS AppId.
- Args string
- Script execution parameters.
- Bucket string
- COS bucket name.
- Cos
File stringName - Script file name.
- Cos
File stringUri - Script COS address.
- Cos
Secret stringId - COS SecretId.
- Cos
Secret stringKey - COS SecretKey.
- Domain string
- COS domain data.
- Path string
- Script path on COS.
- Region string
- COS region name.
- Remark string
- Remark.
- Run
Order float64 - Execution order.
- When
Run string - Execution timing. Valid values:
resourceAfter,clusterAfter.
- app_
id string - COS AppId.
- args string
- Script execution parameters.
- bucket string
- COS bucket name.
- cos_
file_ stringname - Script file name.
- cos_
file_ stringuri - Script COS address.
- cos_
secret_ stringid - COS SecretId.
- cos_
secret_ stringkey - COS SecretKey.
- domain string
- COS domain data.
- path string
- Script path on COS.
- region string
- COS region name.
- remark string
- Remark.
- run_
order number - Execution order.
- when_
run string - Execution timing. Valid values:
resourceAfter,clusterAfter.
- app
Id String - COS AppId.
- args String
- Script execution parameters.
- bucket String
- COS bucket name.
- cos
File StringName - Script file name.
- cos
File StringUri - Script COS address.
- cos
Secret StringId - COS SecretId.
- cos
Secret StringKey - COS SecretKey.
- domain String
- COS domain data.
- path String
- Script path on COS.
- region String
- COS region name.
- remark String
- Remark.
- run
Order Double - Execution order.
- when
Run String - Execution timing. Valid values:
resourceAfter,clusterAfter.
- app
Id string - COS AppId.
- args string
- Script execution parameters.
- bucket string
- COS bucket name.
- cos
File stringName - Script file name.
- cos
File stringUri - Script COS address.
- cos
Secret stringId - COS SecretId.
- cos
Secret stringKey - COS SecretKey.
- domain string
- COS domain data.
- path string
- Script path on COS.
- region string
- COS region name.
- remark string
- Remark.
- run
Order number - Execution order.
- when
Run string - Execution timing. Valid values:
resourceAfter,clusterAfter.
- app_
id str - COS AppId.
- args str
- Script execution parameters.
- bucket str
- COS bucket name.
- cos_
file_ strname - Script file name.
- cos_
file_ struri - Script COS address.
- cos_
secret_ strid - COS SecretId.
- cos_
secret_ strkey - COS SecretKey.
- domain str
- COS domain data.
- path str
- Script path on COS.
- region str
- COS region name.
- remark str
- Remark.
- run_
order float - Execution order.
- when_
run str - Execution timing. Valid values:
resourceAfter,clusterAfter.
- app
Id String - COS AppId.
- args String
- Script execution parameters.
- bucket String
- COS bucket name.
- cos
File StringName - Script file name.
- cos
File StringUri - Script COS address.
- cos
Secret StringId - COS SecretId.
- cos
Secret StringKey - COS SecretKey.
- domain String
- COS domain data.
- path String
- Script path on COS.
- region String
- COS region name.
- remark String
- Remark.
- run
Order Number - Execution order.
- when
Run String - Execution timing. Valid values:
resourceAfter,clusterAfter.
Import
EMR boot script can be imported using the id ({instance_id}#{boot_type}), e.g.
$ pulumi import tencentcloud:index/emrBootScript:EmrBootScript example emr-qe336v2e#resourceAfter
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
