tencentcloud.EmrYarn
Explore with Pulumi AI
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:
- Instance
Id string - EMR Instance ID.
- Capacity
Global List<EmrConfigs Yarn Capacity Global Config> - Information about capacity scheduler.
- Disable
Resource boolSchedule Sync - Whether to synchronize when closing.
- Emr
Yarn stringId - ID of the resource.
- Enable
Resource boolSchedule - Whether the resource scheduling function is enabled.
- Fair
Global List<EmrConfigs Yarn Fair Global Config> - Information about fair scheduler.
- Scheduler string
- The latest resource scheduler.
- Instance
Id string - EMR Instance ID.
- Capacity
Global []EmrConfigs Yarn Capacity Global Config Args - Information about capacity scheduler.
- Disable
Resource boolSchedule Sync - Whether to synchronize when closing.
- Emr
Yarn stringId - ID of the resource.
- Enable
Resource boolSchedule - Whether the resource scheduling function is enabled.
- Fair
Global []EmrConfigs Yarn Fair Global Config Args - Information about fair scheduler.
- Scheduler string
- The latest resource scheduler.
- instance
Id String - EMR Instance ID.
- capacity
Global List<EmrConfigs Yarn Capacity Global Config> - Information about capacity scheduler.
- disable
Resource BooleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn StringId - ID of the resource.
- enable
Resource BooleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global List<EmrConfigs Yarn Fair Global Config> - Information about fair scheduler.
- scheduler String
- The latest resource scheduler.
- instance
Id string - EMR Instance ID.
- capacity
Global EmrConfigs Yarn Capacity Global Config[] - Information about capacity scheduler.
- disable
Resource booleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn stringId - ID of the resource.
- enable
Resource booleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global EmrConfigs Yarn Fair Global Config[] - Information about fair scheduler.
- scheduler string
- The latest resource scheduler.
- instance_
id str - EMR Instance ID.
- capacity_
global_ Sequence[Emrconfigs Yarn Capacity Global Config Args] - Information about capacity scheduler.
- disable_
resource_ boolschedule_ sync - Whether to synchronize when closing.
- emr_
yarn_ strid - ID of the resource.
- enable_
resource_ boolschedule - Whether the resource scheduling function is enabled.
- fair_
global_ Sequence[Emrconfigs Yarn Fair Global Config Args] - Information about fair scheduler.
- scheduler str
- The latest resource scheduler.
- instance
Id String - EMR Instance ID.
- capacity
Global List<Property Map>Configs - Information about capacity scheduler.
- disable
Resource BooleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn StringId - ID of the resource.
- enable
Resource BooleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global List<Property Map>Configs - 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:
- Active
Scheduler string - Resource dispatchers currently in effect.
- Id string
- The provider-assigned unique ID for this managed resource.
- Active
Scheduler string - Resource dispatchers currently in effect.
- Id string
- The provider-assigned unique ID for this managed resource.
- active
Scheduler String - Resource dispatchers currently in effect.
- id String
- The provider-assigned unique ID for this managed resource.
- active
Scheduler 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.
- active
Scheduler 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.
- Active
Scheduler string - Resource dispatchers currently in effect.
- Capacity
Global List<EmrConfigs Yarn Capacity Global Config> - Information about capacity scheduler.
- Disable
Resource boolSchedule Sync - Whether to synchronize when closing.
- Emr
Yarn stringId - ID of the resource.
- Enable
Resource boolSchedule - Whether the resource scheduling function is enabled.
- Fair
Global List<EmrConfigs Yarn Fair Global Config> - Information about fair scheduler.
- Instance
Id string - EMR Instance ID.
- Scheduler string
- The latest resource scheduler.
- Active
Scheduler string - Resource dispatchers currently in effect.
- Capacity
Global []EmrConfigs Yarn Capacity Global Config Args - Information about capacity scheduler.
- Disable
Resource boolSchedule Sync - Whether to synchronize when closing.
- Emr
Yarn stringId - ID of the resource.
- Enable
Resource boolSchedule - Whether the resource scheduling function is enabled.
- Fair
Global []EmrConfigs Yarn Fair Global Config Args - Information about fair scheduler.
- Instance
Id string - EMR Instance ID.
- Scheduler string
- The latest resource scheduler.
- active
Scheduler String - Resource dispatchers currently in effect.
- capacity
Global List<EmrConfigs Yarn Capacity Global Config> - Information about capacity scheduler.
- disable
Resource BooleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn StringId - ID of the resource.
- enable
Resource BooleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global List<EmrConfigs Yarn Fair Global Config> - Information about fair scheduler.
- instance
Id String - EMR Instance ID.
- scheduler String
- The latest resource scheduler.
- active
Scheduler string - Resource dispatchers currently in effect.
- capacity
Global EmrConfigs Yarn Capacity Global Config[] - Information about capacity scheduler.
- disable
Resource booleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn stringId - ID of the resource.
- enable
Resource booleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global EmrConfigs Yarn Fair Global Config[] - Information about fair scheduler.
- instance
Id string - EMR Instance ID.
- scheduler string
- The latest resource scheduler.
- active_
scheduler str - Resource dispatchers currently in effect.
- capacity_
global_ Sequence[Emrconfigs Yarn Capacity Global Config Args] - Information about capacity scheduler.
- disable_
resource_ boolschedule_ sync - Whether to synchronize when closing.
- emr_
yarn_ strid - ID of the resource.
- enable_
resource_ boolschedule - Whether the resource scheduling function is enabled.
- fair_
global_ Sequence[Emrconfigs Yarn Fair Global Config Args] - Information about fair scheduler.
- instance_
id str - EMR Instance ID.
- scheduler str
- The latest resource scheduler.
- active
Scheduler String - Resource dispatchers currently in effect.
- capacity
Global List<Property Map>Configs - Information about capacity scheduler.
- disable
Resource BooleanSchedule Sync - Whether to synchronize when closing.
- emr
Yarn StringId - ID of the resource.
- enable
Resource BooleanSchedule - Whether the resource scheduling function is enabled.
- fair
Global List<Property Map>Configs - Information about fair scheduler.
- instance
Id String - EMR Instance ID.
- scheduler String
- The latest resource scheduler.
Supporting Types
EmrYarnCapacityGlobalConfig, EmrYarnCapacityGlobalConfigArgs
- Default
Settings List<EmrYarn Capacity Global Config Default Setting> - Advanced settings.
- Enable
Label bool - Whether label scheduling is turned on.
- Label
Dir string - If label scheduling is enabled, the path where label information is stored.
- Queue
Mapping boolOverride - Whether to overwrite the user-specified queue. True means overwriting.
- Default
Settings []EmrYarn Capacity Global Config Default Setting - Advanced settings.
- Enable
Label bool - Whether label scheduling is turned on.
- Label
Dir string - If label scheduling is enabled, the path where label information is stored.
- Queue
Mapping boolOverride - Whether to overwrite the user-specified queue. True means overwriting.
- default
Settings List<EmrYarn Capacity Global Config Default Setting> - Advanced settings.
- enable
Label Boolean - Whether label scheduling is turned on.
- label
Dir String - If label scheduling is enabled, the path where label information is stored.
- queue
Mapping BooleanOverride - Whether to overwrite the user-specified queue. True means overwriting.
- default
Settings EmrYarn Capacity Global Config Default Setting[] - Advanced settings.
- enable
Label boolean - Whether label scheduling is turned on.
- label
Dir string - If label scheduling is enabled, the path where label information is stored.
- queue
Mapping booleanOverride - Whether to overwrite the user-specified queue. True means overwriting.
- default_
settings Sequence[EmrYarn Capacity Global Config Default Setting] - 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_ booloverride - Whether to overwrite the user-specified queue. True means overwriting.
- default
Settings List<Property Map> - Advanced settings.
- enable
Label Boolean - Whether label scheduling is turned on.
- label
Dir String - If label scheduling is enabled, the path where label information is stored.
- queue
Mapping BooleanOverride - Whether to overwrite the user-specified queue. True means overwriting.
EmrYarnCapacityGlobalConfigDefaultSetting, EmrYarnCapacityGlobalConfigDefaultSettingArgs
EmrYarnFairGlobalConfig, EmrYarnFairGlobalConfigArgs
- User
Max doubleApps Default - Corresponding to the page procedural upper limit.
- User
Max float64Apps Default - Corresponding to the page procedural upper limit.
- user
Max DoubleApps Default - Corresponding to the page procedural upper limit.
- user
Max numberApps Default - Corresponding to the page procedural upper limit.
- user_
max_ floatapps_ default - Corresponding to the page procedural upper limit.
- user
Max NumberApps Default - 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.