1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. EmrYarn
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.EmrYarn

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a emr emr_yarn

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const emrYarn = new tencentcloud.EmrYarn("emrYarn", {
        enableResourceSchedule: true,
        fairGlobalConfigs: [{
            userMaxAppsDefault: 1000,
        }],
        instanceId: "emr-rzrochgp",
        scheduler: "fair",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    emr_yarn = tencentcloud.EmrYarn("emrYarn",
        enable_resource_schedule=True,
        fair_global_configs=[{
            "user_max_apps_default": 1000,
        }],
        instance_id="emr-rzrochgp",
        scheduler="fair")
    
    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.NewEmrYarn(ctx, "emrYarn", &tencentcloud.EmrYarnArgs{
    			EnableResourceSchedule: pulumi.Bool(true),
    			FairGlobalConfigs: tencentcloud.EmrYarnFairGlobalConfigArray{
    				&tencentcloud.EmrYarnFairGlobalConfigArgs{
    					UserMaxAppsDefault: pulumi.Float64(1000),
    				},
    			},
    			InstanceId: pulumi.String("emr-rzrochgp"),
    			Scheduler:  pulumi.String("fair"),
    		})
    		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 emrYarn = new Tencentcloud.EmrYarn("emrYarn", new()
        {
            EnableResourceSchedule = true,
            FairGlobalConfigs = new[]
            {
                new Tencentcloud.Inputs.EmrYarnFairGlobalConfigArgs
                {
                    UserMaxAppsDefault = 1000,
                },
            },
            InstanceId = "emr-rzrochgp",
            Scheduler = "fair",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.EmrYarn;
    import com.pulumi.tencentcloud.EmrYarnArgs;
    import com.pulumi.tencentcloud.inputs.EmrYarnFairGlobalConfigArgs;
    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 emrYarn = new EmrYarn("emrYarn", EmrYarnArgs.builder()
                .enableResourceSchedule(true)
                .fairGlobalConfigs(EmrYarnFairGlobalConfigArgs.builder()
                    .userMaxAppsDefault(1000)
                    .build())
                .instanceId("emr-rzrochgp")
                .scheduler("fair")
                .build());
    
        }
    }
    
    resources:
      emrYarn:
        type: tencentcloud:EmrYarn
        properties:
          enableResourceSchedule: true
          fairGlobalConfigs:
            - userMaxAppsDefault: 1000
          instanceId: emr-rzrochgp
          scheduler: fair
    

    Create EmrYarn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EmrYarn(name: string, args: EmrYarnArgs, opts?: CustomResourceOptions);
    @overload
    def EmrYarn(resource_name: str,
                args: EmrYarnArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmrYarn(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                instance_id: Optional[str] = None,
                capacity_global_configs: Optional[Sequence[EmrYarnCapacityGlobalConfigArgs]] = None,
                disable_resource_schedule_sync: Optional[bool] = None,
                emr_yarn_id: Optional[str] = None,
                enable_resource_schedule: Optional[bool] = None,
                fair_global_configs: Optional[Sequence[EmrYarnFairGlobalConfigArgs]] = None,
                scheduler: Optional[str] = None)
    func NewEmrYarn(ctx *Context, name string, args EmrYarnArgs, opts ...ResourceOption) (*EmrYarn, error)
    public EmrYarn(string name, EmrYarnArgs args, CustomResourceOptions? opts = null)
    public EmrYarn(String name, EmrYarnArgs args)
    public EmrYarn(String name, EmrYarnArgs args, CustomResourceOptions options)
    
    type: tencentcloud:EmrYarn
    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 EmrYarnArgs
    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 EmrYarnArgs
    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 EmrYarnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmrYarnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmrYarnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EmrYarn 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 EmrYarn resource accepts the following input properties:

    InstanceId string
    EMR Instance ID.
    CapacityGlobalConfigs List<EmrYarnCapacityGlobalConfig>
    Information about capacity scheduler.
    DisableResourceScheduleSync bool
    Whether to synchronize when closing.
    EmrYarnId string
    ID of the resource.
    EnableResourceSchedule bool
    Whether the resource scheduling function is enabled.
    FairGlobalConfigs List<EmrYarnFairGlobalConfig>
    Information about fair scheduler.
    Scheduler string
    The latest resource scheduler.
    InstanceId string
    EMR Instance ID.
    CapacityGlobalConfigs []EmrYarnCapacityGlobalConfigArgs
    Information about capacity scheduler.
    DisableResourceScheduleSync bool
    Whether to synchronize when closing.
    EmrYarnId string
    ID of the resource.
    EnableResourceSchedule bool
    Whether the resource scheduling function is enabled.
    FairGlobalConfigs []EmrYarnFairGlobalConfigArgs
    Information about fair scheduler.
    Scheduler string
    The latest resource scheduler.
    instanceId String
    EMR Instance ID.
    capacityGlobalConfigs List<EmrYarnCapacityGlobalConfig>
    Information about capacity scheduler.
    disableResourceScheduleSync Boolean
    Whether to synchronize when closing.
    emrYarnId String
    ID of the resource.
    enableResourceSchedule Boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs List<EmrYarnFairGlobalConfig>
    Information about fair scheduler.
    scheduler String
    The latest resource scheduler.
    instanceId string
    EMR Instance ID.
    capacityGlobalConfigs EmrYarnCapacityGlobalConfig[]
    Information about capacity scheduler.
    disableResourceScheduleSync boolean
    Whether to synchronize when closing.
    emrYarnId string
    ID of the resource.
    enableResourceSchedule boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs EmrYarnFairGlobalConfig[]
    Information about fair scheduler.
    scheduler string
    The latest resource scheduler.
    instance_id str
    EMR Instance ID.
    capacity_global_configs Sequence[EmrYarnCapacityGlobalConfigArgs]
    Information about capacity scheduler.
    disable_resource_schedule_sync bool
    Whether to synchronize when closing.
    emr_yarn_id str
    ID of the resource.
    enable_resource_schedule bool
    Whether the resource scheduling function is enabled.
    fair_global_configs Sequence[EmrYarnFairGlobalConfigArgs]
    Information about fair scheduler.
    scheduler str
    The latest resource scheduler.
    instanceId String
    EMR Instance ID.
    capacityGlobalConfigs List<Property Map>
    Information about capacity scheduler.
    disableResourceScheduleSync Boolean
    Whether to synchronize when closing.
    emrYarnId String
    ID of the resource.
    enableResourceSchedule Boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs List<Property Map>
    Information about fair scheduler.
    scheduler String
    The latest resource scheduler.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EmrYarn resource produces the following output properties:

    ActiveScheduler string
    Resource dispatchers currently in effect.
    Id string
    The provider-assigned unique ID for this managed resource.
    ActiveScheduler string
    Resource dispatchers currently in effect.
    Id string
    The provider-assigned unique ID for this managed resource.
    activeScheduler String
    Resource dispatchers currently in effect.
    id String
    The provider-assigned unique ID for this managed resource.
    activeScheduler string
    Resource dispatchers currently in effect.
    id string
    The provider-assigned unique ID for this managed resource.
    active_scheduler str
    Resource dispatchers currently in effect.
    id str
    The provider-assigned unique ID for this managed resource.
    activeScheduler String
    Resource dispatchers currently in effect.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EmrYarn Resource

    Get an existing EmrYarn 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?: EmrYarnState, opts?: CustomResourceOptions): EmrYarn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_scheduler: Optional[str] = None,
            capacity_global_configs: Optional[Sequence[EmrYarnCapacityGlobalConfigArgs]] = None,
            disable_resource_schedule_sync: Optional[bool] = None,
            emr_yarn_id: Optional[str] = None,
            enable_resource_schedule: Optional[bool] = None,
            fair_global_configs: Optional[Sequence[EmrYarnFairGlobalConfigArgs]] = None,
            instance_id: Optional[str] = None,
            scheduler: Optional[str] = None) -> EmrYarn
    func GetEmrYarn(ctx *Context, name string, id IDInput, state *EmrYarnState, opts ...ResourceOption) (*EmrYarn, error)
    public static EmrYarn Get(string name, Input<string> id, EmrYarnState? state, CustomResourceOptions? opts = null)
    public static EmrYarn get(String name, Output<String> id, EmrYarnState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:EmrYarn    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.
    The following state arguments are supported:
    ActiveScheduler string
    Resource dispatchers currently in effect.
    CapacityGlobalConfigs List<EmrYarnCapacityGlobalConfig>
    Information about capacity scheduler.
    DisableResourceScheduleSync bool
    Whether to synchronize when closing.
    EmrYarnId string
    ID of the resource.
    EnableResourceSchedule bool
    Whether the resource scheduling function is enabled.
    FairGlobalConfigs List<EmrYarnFairGlobalConfig>
    Information about fair scheduler.
    InstanceId string
    EMR Instance ID.
    Scheduler string
    The latest resource scheduler.
    ActiveScheduler string
    Resource dispatchers currently in effect.
    CapacityGlobalConfigs []EmrYarnCapacityGlobalConfigArgs
    Information about capacity scheduler.
    DisableResourceScheduleSync bool
    Whether to synchronize when closing.
    EmrYarnId string
    ID of the resource.
    EnableResourceSchedule bool
    Whether the resource scheduling function is enabled.
    FairGlobalConfigs []EmrYarnFairGlobalConfigArgs
    Information about fair scheduler.
    InstanceId string
    EMR Instance ID.
    Scheduler string
    The latest resource scheduler.
    activeScheduler String
    Resource dispatchers currently in effect.
    capacityGlobalConfigs List<EmrYarnCapacityGlobalConfig>
    Information about capacity scheduler.
    disableResourceScheduleSync Boolean
    Whether to synchronize when closing.
    emrYarnId String
    ID of the resource.
    enableResourceSchedule Boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs List<EmrYarnFairGlobalConfig>
    Information about fair scheduler.
    instanceId String
    EMR Instance ID.
    scheduler String
    The latest resource scheduler.
    activeScheduler string
    Resource dispatchers currently in effect.
    capacityGlobalConfigs EmrYarnCapacityGlobalConfig[]
    Information about capacity scheduler.
    disableResourceScheduleSync boolean
    Whether to synchronize when closing.
    emrYarnId string
    ID of the resource.
    enableResourceSchedule boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs EmrYarnFairGlobalConfig[]
    Information about fair scheduler.
    instanceId string
    EMR Instance ID.
    scheduler string
    The latest resource scheduler.
    active_scheduler str
    Resource dispatchers currently in effect.
    capacity_global_configs Sequence[EmrYarnCapacityGlobalConfigArgs]
    Information about capacity scheduler.
    disable_resource_schedule_sync bool
    Whether to synchronize when closing.
    emr_yarn_id str
    ID of the resource.
    enable_resource_schedule bool
    Whether the resource scheduling function is enabled.
    fair_global_configs Sequence[EmrYarnFairGlobalConfigArgs]
    Information about fair scheduler.
    instance_id str
    EMR Instance ID.
    scheduler str
    The latest resource scheduler.
    activeScheduler String
    Resource dispatchers currently in effect.
    capacityGlobalConfigs List<Property Map>
    Information about capacity scheduler.
    disableResourceScheduleSync Boolean
    Whether to synchronize when closing.
    emrYarnId String
    ID of the resource.
    enableResourceSchedule Boolean
    Whether the resource scheduling function is enabled.
    fairGlobalConfigs List<Property Map>
    Information about fair scheduler.
    instanceId String
    EMR Instance ID.
    scheduler String
    The latest resource scheduler.

    Supporting Types

    EmrYarnCapacityGlobalConfig, EmrYarnCapacityGlobalConfigArgs

    DefaultSettings List<EmrYarnCapacityGlobalConfigDefaultSetting>
    Advanced settings.
    EnableLabel bool
    Whether label scheduling is turned on.
    LabelDir string
    If label scheduling is enabled, the path where label information is stored.
    QueueMappingOverride bool
    Whether to overwrite the user-specified queue. True means overwriting.
    DefaultSettings []EmrYarnCapacityGlobalConfigDefaultSetting
    Advanced settings.
    EnableLabel bool
    Whether label scheduling is turned on.
    LabelDir string
    If label scheduling is enabled, the path where label information is stored.
    QueueMappingOverride bool
    Whether to overwrite the user-specified queue. True means overwriting.
    defaultSettings List<EmrYarnCapacityGlobalConfigDefaultSetting>
    Advanced settings.
    enableLabel Boolean
    Whether label scheduling is turned on.
    labelDir String
    If label scheduling is enabled, the path where label information is stored.
    queueMappingOverride Boolean
    Whether to overwrite the user-specified queue. True means overwriting.
    defaultSettings EmrYarnCapacityGlobalConfigDefaultSetting[]
    Advanced settings.
    enableLabel boolean
    Whether label scheduling is turned on.
    labelDir string
    If label scheduling is enabled, the path where label information is stored.
    queueMappingOverride boolean
    Whether to overwrite the user-specified queue. True means overwriting.
    default_settings Sequence[EmrYarnCapacityGlobalConfigDefaultSetting]
    Advanced settings.
    enable_label bool
    Whether label scheduling is turned on.
    label_dir str
    If label scheduling is enabled, the path where label information is stored.
    queue_mapping_override bool
    Whether to overwrite the user-specified queue. True means overwriting.
    defaultSettings List<Property Map>
    Advanced settings.
    enableLabel Boolean
    Whether label scheduling is turned on.
    labelDir String
    If label scheduling is enabled, the path where label information is stored.
    queueMappingOverride Boolean
    Whether to overwrite the user-specified queue. True means overwriting.

    EmrYarnCapacityGlobalConfigDefaultSetting, EmrYarnCapacityGlobalConfigDefaultSettingArgs

    Name string
    Name, as the key for the input parameter.
    Value string
    Value corresponding to tame.
    Desc string
    Described.
    Key string
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    Prompt string
    Prompt.
    Name string
    Name, as the key for the input parameter.
    Value string
    Value corresponding to tame.
    Desc string
    Described.
    Key string
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    Prompt string
    Prompt.
    name String
    Name, as the key for the input parameter.
    value String
    Value corresponding to tame.
    desc String
    Described.
    key String
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    prompt String
    Prompt.
    name string
    Name, as the key for the input parameter.
    value string
    Value corresponding to tame.
    desc string
    Described.
    key string
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    prompt string
    Prompt.
    name str
    Name, as the key for the input parameter.
    value str
    Value corresponding to tame.
    desc str
    Described.
    key str
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    prompt str
    Prompt.
    name String
    Name, as the key for the input parameter.
    value String
    Value corresponding to tame.
    desc String
    Described.
    key String
    Key, used for display. This configuration corresponds to the configuration item in the configuration file.
    prompt String
    Prompt.

    EmrYarnFairGlobalConfig, EmrYarnFairGlobalConfigArgs

    UserMaxAppsDefault double
    Corresponding to the page procedural upper limit.
    UserMaxAppsDefault float64
    Corresponding to the page procedural upper limit.
    userMaxAppsDefault Double
    Corresponding to the page procedural upper limit.
    userMaxAppsDefault number
    Corresponding to the page procedural upper limit.
    user_max_apps_default float
    Corresponding to the page procedural upper limit.
    userMaxAppsDefault Number
    Corresponding to the page procedural upper limit.

    Import

    emr emr_yarn can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/emrYarn:EmrYarn emr_yarn emr_instance_id
    

    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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack