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

tencentcloud.getEmrAutoScaleRecords

Explore with Pulumi AI

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

    Use this data source to query detailed information of emr auto_scale_records

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const autoScaleRecords = tencentcloud.getEmrAutoScaleRecords({
        filters: [{
            key: "StartTime",
            value: "2006-01-02 15:04:05",
        }],
        instanceId: "emr-bpum4pad",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    auto_scale_records = tencentcloud.get_emr_auto_scale_records(filters=[{
            "key": "StartTime",
            "value": "2006-01-02 15:04:05",
        }],
        instance_id="emr-bpum4pad")
    
    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.GetEmrAutoScaleRecords(ctx, &tencentcloud.GetEmrAutoScaleRecordsArgs{
    			Filters: []tencentcloud.GetEmrAutoScaleRecordsFilter{
    				{
    					Key:   "StartTime",
    					Value: "2006-01-02 15:04:05",
    				},
    			},
    			InstanceId: "emr-bpum4pad",
    		}, 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 autoScaleRecords = Tencentcloud.GetEmrAutoScaleRecords.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetEmrAutoScaleRecordsFilterInputArgs
                {
                    Key = "StartTime",
                    Value = "2006-01-02 15:04:05",
                },
            },
            InstanceId = "emr-bpum4pad",
        });
    
    });
    
    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.GetEmrAutoScaleRecordsArgs;
    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 autoScaleRecords = TencentcloudFunctions.getEmrAutoScaleRecords(GetEmrAutoScaleRecordsArgs.builder()
                .filters(GetEmrAutoScaleRecordsFilterArgs.builder()
                    .key("StartTime")
                    .value("2006-01-02 15:04:05")
                    .build())
                .instanceId("emr-bpum4pad")
                .build());
    
        }
    }
    
    variables:
      autoScaleRecords:
        fn::invoke:
          function: tencentcloud:getEmrAutoScaleRecords
          arguments:
            filters:
              - key: StartTime
                value: 2006-01-02 15:04:05
            instanceId: emr-bpum4pad
    

    Using getEmrAutoScaleRecords

    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 getEmrAutoScaleRecords(args: GetEmrAutoScaleRecordsArgs, opts?: InvokeOptions): Promise<GetEmrAutoScaleRecordsResult>
    function getEmrAutoScaleRecordsOutput(args: GetEmrAutoScaleRecordsOutputArgs, opts?: InvokeOptions): Output<GetEmrAutoScaleRecordsResult>
    def get_emr_auto_scale_records(filters: Optional[Sequence[GetEmrAutoScaleRecordsFilter]] = None,
                                   id: Optional[str] = None,
                                   instance_id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetEmrAutoScaleRecordsResult
    def get_emr_auto_scale_records_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetEmrAutoScaleRecordsFilterArgs]]]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   instance_id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetEmrAutoScaleRecordsResult]
    func GetEmrAutoScaleRecords(ctx *Context, args *GetEmrAutoScaleRecordsArgs, opts ...InvokeOption) (*GetEmrAutoScaleRecordsResult, error)
    func GetEmrAutoScaleRecordsOutput(ctx *Context, args *GetEmrAutoScaleRecordsOutputArgs, opts ...InvokeOption) GetEmrAutoScaleRecordsResultOutput

    > Note: This function is named GetEmrAutoScaleRecords in the Go SDK.

    public static class GetEmrAutoScaleRecords 
    {
        public static Task<GetEmrAutoScaleRecordsResult> InvokeAsync(GetEmrAutoScaleRecordsArgs args, InvokeOptions? opts = null)
        public static Output<GetEmrAutoScaleRecordsResult> Invoke(GetEmrAutoScaleRecordsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmrAutoScaleRecordsResult> getEmrAutoScaleRecords(GetEmrAutoScaleRecordsArgs args, InvokeOptions options)
    public static Output<GetEmrAutoScaleRecordsResult> getEmrAutoScaleRecords(GetEmrAutoScaleRecordsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getEmrAutoScaleRecords:getEmrAutoScaleRecords
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    EMR cluster ID.
    Filters List<GetEmrAutoScaleRecordsFilter>
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    EMR cluster ID.
    Filters []GetEmrAutoScaleRecordsFilter
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    EMR cluster ID.
    filters List<GetEmrAutoScaleRecordsFilter>
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    EMR cluster ID.
    filters GetEmrAutoScaleRecordsFilter[]
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    EMR cluster ID.
    filters Sequence[GetEmrAutoScaleRecordsFilter]
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    EMR cluster ID.
    filters List<Property Map>
    Record filtering parameters, currently only StartTime, EndTime and StrategyName are supported. StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05.
    id String
    resultOutputFile String
    Used to save results.

    getEmrAutoScaleRecords Result

    The following output properties are available:

    Supporting Types

    GetEmrAutoScaleRecordsFilter

    Key string
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    Value string
    Value. Note: This field may return null, indicating that no valid value can be obtained.
    Key string
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    Value string
    Value. Note: This field may return null, indicating that no valid value can be obtained.
    key String
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    value String
    Value. Note: This field may return null, indicating that no valid value can be obtained.
    key string
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    value string
    Value. Note: This field may return null, indicating that no valid value can be obtained.
    key str
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    value str
    Value. Note: This field may return null, indicating that no valid value can be obtained.
    key String
    Key. Note: This field may return null, indicating that no valid value can be obtained.
    value String
    Value. Note: This field may return null, indicating that no valid value can be obtained.

    GetEmrAutoScaleRecordsRecordList

    ActionStatus string
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    ActionTime string
    Process Trigger Time.
    CompensateCount double
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    CompensateFlag double
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    EndTime string
    Process End Time.
    ExpectScaleNum double
    Effective only when ScaleAction is SCALE_OUT.
    ScaleAction string
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    ScaleInfo string
    Scalability-related Description.
    SpecInfo string
    Specification information used when expanding capacity.
    StrategyName string
    Rule name of expanding and shrinking capacity.
    StrategyType double
    Strategy Type, 1 for Load scaling, 2 for Time scaling.
    ActionStatus string
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    ActionTime string
    Process Trigger Time.
    CompensateCount float64
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    CompensateFlag float64
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    EndTime string
    Process End Time.
    ExpectScaleNum float64
    Effective only when ScaleAction is SCALE_OUT.
    ScaleAction string
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    ScaleInfo string
    Scalability-related Description.
    SpecInfo string
    Specification information used when expanding capacity.
    StrategyName string
    Rule name of expanding and shrinking capacity.
    StrategyType float64
    Strategy Type, 1 for Load scaling, 2 for Time scaling.
    actionStatus String
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    actionTime String
    Process Trigger Time.
    compensateCount Double
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    compensateFlag Double
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    endTime String
    Process End Time.
    expectScaleNum Double
    Effective only when ScaleAction is SCALE_OUT.
    scaleAction String
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    scaleInfo String
    Scalability-related Description.
    specInfo String
    Specification information used when expanding capacity.
    strategyName String
    Rule name of expanding and shrinking capacity.
    strategyType Double
    Strategy Type, 1 for Load scaling, 2 for Time scaling.
    actionStatus string
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    actionTime string
    Process Trigger Time.
    compensateCount number
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    compensateFlag number
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    endTime string
    Process End Time.
    expectScaleNum number
    Effective only when ScaleAction is SCALE_OUT.
    scaleAction string
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    scaleInfo string
    Scalability-related Description.
    specInfo string
    Specification information used when expanding capacity.
    strategyName string
    Rule name of expanding and shrinking capacity.
    strategyType number
    Strategy Type, 1 for Load scaling, 2 for Time scaling.
    action_status str
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    action_time str
    Process Trigger Time.
    compensate_count float
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    compensate_flag float
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    end_time str
    Process End Time.
    expect_scale_num float
    Effective only when ScaleAction is SCALE_OUT.
    scale_action str
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    scale_info str
    Scalability-related Description.
    spec_info str
    Specification information used when expanding capacity.
    strategy_name str
    Rule name of expanding and shrinking capacity.
    strategy_type float
    Strategy Type, 1 for Load scaling, 2 for Time scaling.
    actionStatus String
    SUCCESS, FAILED, PART_SUCCESS, IN_PROCESS.
    actionTime String
    Process Trigger Time.
    compensateCount Number
    Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
    compensateFlag Number
    Compensation and expansion, 0 represents no start, 1 represents start. Note: This field may return null, indicating that no valid value can be obtained.
    endTime String
    Process End Time.
    expectScaleNum Number
    Effective only when ScaleAction is SCALE_OUT.
    scaleAction String
    SCALE_OUT and SCALE_IN respectively represent expanding and shrinking capacity.
    scaleInfo String
    Scalability-related Description.
    specInfo String
    Specification information used when expanding capacity.
    strategyName String
    Rule name of expanding and shrinking capacity.
    strategyType Number
    Strategy Type, 1 for Load scaling, 2 for Time scaling.

    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