tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getEmrAutoScaleRecords
Explore with Pulumi AI
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:
- Instance
Id string - EMR cluster ID.
- Filters
List<Get
Emr Auto Scale Records Filter> - Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - EMR cluster ID.
- Filters
[]Get
Emr Auto Scale Records Filter - Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - EMR cluster ID.
- filters
List<Get
Emr Auto Scale Records Filter> - Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - id String
- result
Output StringFile - Used to save results.
- instance
Id string - EMR cluster ID.
- filters
Get
Emr Auto Scale Records Filter[] - Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - id string
- result
Output stringFile - Used to save results.
- instance_
id str - EMR cluster ID.
- filters
Sequence[Get
Emr Auto Scale Records Filter] - Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - id str
- result_
output_ strfile - Used to save results.
- instance
Id String - EMR cluster ID.
- filters List<Property Map>
- Record filtering parameters, currently only
StartTime
,EndTime
andStrategyName
are supported.StartTime
andEndTime
support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. - id String
- result
Output StringFile - Used to save results.
getEmrAutoScaleRecords Result
The following output properties are available:
- Id string
- Instance
Id string - Record
Lists List<GetEmr Auto Scale Records Record List> - Record list.
- Filters
List<Get
Emr Auto Scale Records Filter> - Result
Output stringFile
- Id string
- Instance
Id string - Record
Lists []GetEmr Auto Scale Records Record List - Record list.
- Filters
[]Get
Emr Auto Scale Records Filter - Result
Output stringFile
- id String
- instance
Id String - record
Lists List<GetEmr Auto Scale Records Record List> - Record list.
- filters
List<Get
Emr Auto Scale Records Filter> - result
Output StringFile
- id string
- instance
Id string - record
Lists GetEmr Auto Scale Records Record List[] - Record list.
- filters
Get
Emr Auto Scale Records Filter[] - result
Output stringFile
- id String
- instance
Id String - record
Lists List<Property Map> - Record list.
- filters List<Property Map>
- result
Output StringFile
Supporting Types
GetEmrAutoScaleRecordsFilter
GetEmrAutoScaleRecordsRecordList
- Action
Status string SUCCESS
,FAILED
,PART_SUCCESS
,IN_PROCESS
.- Action
Time string - Process Trigger Time.
- Compensate
Count double - Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
- Compensate
Flag 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.
- End
Time string - Process End Time.
- Expect
Scale doubleNum - Effective only when ScaleAction is SCALE_OUT.
- Scale
Action string SCALE_OUT
andSCALE_IN
respectively represent expanding and shrinking capacity.- Scale
Info string - Scalability-related Description.
- Spec
Info string - Specification information used when expanding capacity.
- Strategy
Name string - Rule name of expanding and shrinking capacity.
- Strategy
Type double - Strategy Type, 1 for Load scaling, 2 for Time scaling.
- Action
Status string SUCCESS
,FAILED
,PART_SUCCESS
,IN_PROCESS
.- Action
Time string - Process Trigger Time.
- Compensate
Count float64 - Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
- Compensate
Flag 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.
- End
Time string - Process End Time.
- Expect
Scale float64Num - Effective only when ScaleAction is SCALE_OUT.
- Scale
Action string SCALE_OUT
andSCALE_IN
respectively represent expanding and shrinking capacity.- Scale
Info string - Scalability-related Description.
- Spec
Info string - Specification information used when expanding capacity.
- Strategy
Name string - Rule name of expanding and shrinking capacity.
- Strategy
Type float64 - Strategy Type, 1 for Load scaling, 2 for Time scaling.
- action
Status String SUCCESS
,FAILED
,PART_SUCCESS
,IN_PROCESS
.- action
Time String - Process Trigger Time.
- compensate
Count Double - Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
- compensate
Flag 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.
- end
Time String - Process End Time.
- expect
Scale DoubleNum - Effective only when ScaleAction is SCALE_OUT.
- scale
Action String SCALE_OUT
andSCALE_IN
respectively represent expanding and shrinking capacity.- scale
Info String - Scalability-related Description.
- spec
Info String - Specification information used when expanding capacity.
- strategy
Name String - Rule name of expanding and shrinking capacity.
- strategy
Type Double - Strategy Type, 1 for Load scaling, 2 for Time scaling.
- action
Status string SUCCESS
,FAILED
,PART_SUCCESS
,IN_PROCESS
.- action
Time string - Process Trigger Time.
- compensate
Count number - Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
- compensate
Flag 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.
- end
Time string - Process End Time.
- expect
Scale numberNum - Effective only when ScaleAction is SCALE_OUT.
- scale
Action string SCALE_OUT
andSCALE_IN
respectively represent expanding and shrinking capacity.- scale
Info string - Scalability-related Description.
- spec
Info string - Specification information used when expanding capacity.
- strategy
Name string - Rule name of expanding and shrinking capacity.
- strategy
Type 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_ floatnum - Effective only when ScaleAction is SCALE_OUT.
- scale_
action str SCALE_OUT
andSCALE_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.
- action
Status String SUCCESS
,FAILED
,PART_SUCCESS
,IN_PROCESS
.- action
Time String - Process Trigger Time.
- compensate
Count Number - Compensation Times Note: This field may return null, indicating that no valid value can be obtained.
- compensate
Flag 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.
- end
Time String - Process End Time.
- expect
Scale NumberNum - Effective only when ScaleAction is SCALE_OUT.
- scale
Action String SCALE_OUT
andSCALE_IN
respectively represent expanding and shrinking capacity.- scale
Info String - Scalability-related Description.
- spec
Info String - Specification information used when expanding capacity.
- strategy
Name String - Rule name of expanding and shrinking capacity.
- strategy
Type 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack