tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack
tencentcloud.getEmr
Explore with Pulumi AI
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack
Provides an available EMR for the user.
The EMR data source fetch proper EMR from user’s EMR pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const myEmr = tencentcloud.getEmr({
displayStrategy: "clusterList",
instanceIds: ["emr-rnzqrleq"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
my_emr = tencentcloud.get_emr(display_strategy="clusterList",
instance_ids=["emr-rnzqrleq"])
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.GetEmr(ctx, &tencentcloud.GetEmrArgs{
DisplayStrategy: "clusterList",
InstanceIds: []string{
"emr-rnzqrleq",
},
}, nil)
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 myEmr = Tencentcloud.GetEmr.Invoke(new()
{
DisplayStrategy = "clusterList",
InstanceIds = new[]
{
"emr-rnzqrleq",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetEmrArgs;
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) {
final var myEmr = TencentcloudFunctions.getEmr(GetEmrArgs.builder()
.displayStrategy("clusterList")
.instanceIds("emr-rnzqrleq")
.build());
}
}
variables:
myEmr:
fn::invoke:
function: tencentcloud:getEmr
arguments:
displayStrategy: clusterList
instanceIds:
- emr-rnzqrleq
Using getEmr
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEmr(args: GetEmrArgs, opts?: InvokeOptions): Promise<GetEmrResult>
function getEmrOutput(args: GetEmrOutputArgs, opts?: InvokeOptions): Output<GetEmrResult>
def get_emr(display_strategy: Optional[str] = None,
id: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmrResult
def get_emr_output(display_strategy: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
project_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEmrResult]
func GetEmr(ctx *Context, args *GetEmrArgs, opts ...InvokeOption) (*GetEmrResult, error)
func GetEmrOutput(ctx *Context, args *GetEmrOutputArgs, opts ...InvokeOption) GetEmrResultOutput
> Note: This function is named GetEmr
in the Go SDK.
public static class GetEmr
{
public static Task<GetEmrResult> InvokeAsync(GetEmrArgs args, InvokeOptions? opts = null)
public static Output<GetEmrResult> Invoke(GetEmrInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEmrResult> getEmr(GetEmrArgs args, InvokeOptions options)
public static Output<GetEmrResult> getEmr(GetEmrArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getEmr:getEmr
arguments:
# arguments dictionary
The following arguments are supported:
- Display
Strategy string - Display strategy(e.g.:clusterList, monitorManage).
- Id string
- Id of instance.
- Instance
Ids List<string> - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- Project
Id double - Fetch all instances which owner same project. Default 0 meaning use default project id.
- Result
Output stringFile - Used to save results.
- Display
Strategy string - Display strategy(e.g.:clusterList, monitorManage).
- Id string
- Id of instance.
- Instance
Ids []string - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- Project
Id float64 - Fetch all instances which owner same project. Default 0 meaning use default project id.
- Result
Output stringFile - Used to save results.
- display
Strategy String - Display strategy(e.g.:clusterList, monitorManage).
- id String
- Id of instance.
- instance
Ids List<String> - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- project
Id Double - Fetch all instances which owner same project. Default 0 meaning use default project id.
- result
Output StringFile - Used to save results.
- display
Strategy string - Display strategy(e.g.:clusterList, monitorManage).
- id string
- Id of instance.
- instance
Ids string[] - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- project
Id number - Fetch all instances which owner same project. Default 0 meaning use default project id.
- result
Output stringFile - Used to save results.
- display_
strategy str - Display strategy(e.g.:clusterList, monitorManage).
- id str
- Id of instance.
- instance_
ids Sequence[str] - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- project_
id float - Fetch all instances which owner same project. Default 0 meaning use default project id.
- result_
output_ strfile - Used to save results.
- display
Strategy String - Display strategy(e.g.:clusterList, monitorManage).
- id String
- Id of instance.
- instance
Ids List<String> - fetch all instances with same prefix(e.g.:emr-xxxxxx).
- project
Id Number - Fetch all instances which owner same project. Default 0 meaning use default project id.
- result
Output StringFile - Used to save results.
getEmr Result
The following output properties are available:
- Clusters
List<Get
Emr Cluster> - A list of clusters will be exported and its every element contains the following attributes:
- Display
Strategy string - Id string
- Id of instance.
- Instance
Ids List<string> - Project
Id double - Project id of instance.
- Result
Output stringFile
- Clusters
[]Get
Emr Cluster Type - A list of clusters will be exported and its every element contains the following attributes:
- Display
Strategy string - Id string
- Id of instance.
- Instance
Ids []string - Project
Id float64 - Project id of instance.
- Result
Output stringFile
- clusters
List<Get
Emr Cluster> - A list of clusters will be exported and its every element contains the following attributes:
- display
Strategy String - id String
- Id of instance.
- instance
Ids List<String> - project
Id Double - Project id of instance.
- result
Output StringFile
- clusters
Get
Emr Cluster[] - A list of clusters will be exported and its every element contains the following attributes:
- display
Strategy string - id string
- Id of instance.
- instance
Ids string[] - project
Id number - Project id of instance.
- result
Output stringFile
- clusters
Sequence[Get
Emr Cluster] - A list of clusters will be exported and its every element contains the following attributes:
- display_
strategy str - id str
- Id of instance.
- instance_
ids Sequence[str] - project_
id float - Project id of instance.
- result_
output_ strfile
- clusters List<Property Map>
- A list of clusters will be exported and its every element contains the following attributes:
- display
Strategy String - id String
- Id of instance.
- instance
Ids List<String> - project
Id Number - Project id of instance.
- result
Output StringFile
Supporting Types
GetEmrCluster
- Add
Time string - Add time of instance.
- Charge
Type double - Charge type of instance.
- Cluster
Id string - Cluster id of instance.
- Cluster
Name string - Cluster name of instance.
- Ftitle string
- Title of instance.
- Id double
- Id of instance.
- Master
Ip string - Master ip of instance.
- Project
Id double - Fetch all instances which owner same project. Default 0 meaning use default project id.
- Region
Id double - Region id of instance.
- Status double
- Status of instance.
- Zone string
- Zone of instance.
- Zone
Id double - Zone id of instance.
- Add
Time string - Add time of instance.
- Charge
Type float64 - Charge type of instance.
- Cluster
Id string - Cluster id of instance.
- Cluster
Name string - Cluster name of instance.
- Ftitle string
- Title of instance.
- Id float64
- Id of instance.
- Master
Ip string - Master ip of instance.
- Project
Id float64 - Fetch all instances which owner same project. Default 0 meaning use default project id.
- Region
Id float64 - Region id of instance.
- Status float64
- Status of instance.
- Zone string
- Zone of instance.
- Zone
Id float64 - Zone id of instance.
- add
Time String - Add time of instance.
- charge
Type Double - Charge type of instance.
- cluster
Id String - Cluster id of instance.
- cluster
Name String - Cluster name of instance.
- ftitle String
- Title of instance.
- id Double
- Id of instance.
- master
Ip String - Master ip of instance.
- project
Id Double - Fetch all instances which owner same project. Default 0 meaning use default project id.
- region
Id Double - Region id of instance.
- status Double
- Status of instance.
- zone String
- Zone of instance.
- zone
Id Double - Zone id of instance.
- add
Time string - Add time of instance.
- charge
Type number - Charge type of instance.
- cluster
Id string - Cluster id of instance.
- cluster
Name string - Cluster name of instance.
- ftitle string
- Title of instance.
- id number
- Id of instance.
- master
Ip string - Master ip of instance.
- project
Id number - Fetch all instances which owner same project. Default 0 meaning use default project id.
- region
Id number - Region id of instance.
- status number
- Status of instance.
- zone string
- Zone of instance.
- zone
Id number - Zone id of instance.
- add_
time str - Add time of instance.
- charge_
type float - Charge type of instance.
- cluster_
id str - Cluster id of instance.
- cluster_
name str - Cluster name of instance.
- ftitle str
- Title of instance.
- id float
- Id of instance.
- master_
ip str - Master ip of instance.
- project_
id float - Fetch all instances which owner same project. Default 0 meaning use default project id.
- region_
id float - Region id of instance.
- status float
- Status of instance.
- zone str
- Zone of instance.
- zone_
id float - Zone id of instance.
- add
Time String - Add time of instance.
- charge
Type Number - Charge type of instance.
- cluster
Id String - Cluster id of instance.
- cluster
Name String - Cluster name of instance.
- ftitle String
- Title of instance.
- id Number
- Id of instance.
- master
Ip String - Master ip of instance.
- project
Id Number - Fetch all instances which owner same project. Default 0 meaning use default project id.
- region
Id Number - Region id of instance.
- status Number
- Status of instance.
- zone String
- Zone of instance.
- zone
Id Number - Zone id of instance.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack