import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DataTencentcloudScfLogsConfig extends cdktf.TerraformMetaArguments { /** * The end time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `start_time`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#end_time DataTencentcloudScfLogs#end_time} */ readonly endTime?: string; /** * Name of the SCF function to be queried. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#function_name DataTencentcloudScfLogs#function_name} */ readonly functionName: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#id DataTencentcloudScfLogs#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Corresponding requestId when executing function. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#invoke_request_id DataTencentcloudScfLogs#invoke_request_id} */ readonly invokeRequestId?: string; /** * Number of logs, the default is `10000`, offset+limit cannot be greater than 10000. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#limit DataTencentcloudScfLogs#limit} */ readonly limit?: number; /** * Namespace of the SCF function to be queried. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#namespace DataTencentcloudScfLogs#namespace} */ readonly namespace?: string; /** * Log offset, default is `0`, offset+limit cannot be greater than 10000. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#offset DataTencentcloudScfLogs#offset} */ readonly offset?: number; /** * Order to sort the log, optional values `desc` and `asc`, default `desc`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#order DataTencentcloudScfLogs#order} */ readonly order?: string; /** * Sort the logs according to the following fields: `function_name`, `duration`, `mem_usage`, `start_time`, default `start_time`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#order_by DataTencentcloudScfLogs#order_by} */ readonly orderBy?: string; /** * Used to save results. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#result_output_file DataTencentcloudScfLogs#result_output_file} */ readonly resultOutputFile?: string; /** * Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#ret_code DataTencentcloudScfLogs#ret_code} */ readonly retCode?: string; /** * The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `end_time`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#start_time DataTencentcloudScfLogs#start_time} */ readonly startTime?: string; } export interface DataTencentcloudScfLogsLogs { } export declare function dataTencentcloudScfLogsLogsToTerraform(struct?: DataTencentcloudScfLogsLogs): any; export declare function dataTencentcloudScfLogsLogsToHclTerraform(struct?: DataTencentcloudScfLogsLogs): any; export declare class DataTencentcloudScfLogsLogsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): DataTencentcloudScfLogsLogs | undefined; set internalValue(value: DataTencentcloudScfLogsLogs | undefined); get billDuration(): any; get duration(): any; get functionName(): any; get invokeFinished(): any; get level(): any; get log(): any; get memUsage(): any; get requestId(): any; get retCode(): any; get retMsg(): any; get source(): any; get startTime(): any; } export declare class DataTencentcloudScfLogsLogsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): DataTencentcloudScfLogsLogsOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs tencentcloud_scf_logs} */ export declare class DataTencentcloudScfLogs extends cdktf.TerraformDataSource { static readonly tfResourceType = "tencentcloud_scf_logs"; /** * Generates CDKTF code for importing a DataTencentcloudScfLogs resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the DataTencentcloudScfLogs to import * @param importFromId The id of the existing DataTencentcloudScfLogs that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataTencentcloudScfLogs to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/scf_logs tencentcloud_scf_logs} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataTencentcloudScfLogsConfig */ constructor(scope: Construct, id: string, config: DataTencentcloudScfLogsConfig); private _endTime?; get endTime(): string; set endTime(value: string); resetEndTime(): void; get endTimeInput(): string; private _functionName?; get functionName(): string; set functionName(value: string); get functionNameInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _invokeRequestId?; get invokeRequestId(): string; set invokeRequestId(value: string); resetInvokeRequestId(): void; get invokeRequestIdInput(): string; private _limit?; get limit(): number; set limit(value: number); resetLimit(): void; get limitInput(): number; private _logs; get logs(): DataTencentcloudScfLogsLogsList; private _namespace?; get namespace(): string; set namespace(value: string); resetNamespace(): void; get namespaceInput(): string; private _offset?; get offset(): number; set offset(value: number); resetOffset(): void; get offsetInput(): number; private _order?; get order(): string; set order(value: string); resetOrder(): void; get orderInput(): string; private _orderBy?; get orderBy(): string; set orderBy(value: string); resetOrderBy(): void; get orderByInput(): string; private _resultOutputFile?; get resultOutputFile(): string; set resultOutputFile(value: string); resetResultOutputFile(): void; get resultOutputFileInput(): string; private _retCode?; get retCode(): string; set retCode(value: string); resetRetCode(): void; get retCodeInput(): string; private _startTime?; get startTime(): string; set startTime(value: string); resetStartTime(): void; get startTimeInput(): string; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }