tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getCamSecretLastUsedTime
Start a Neo task
Explain and create a tencentcloud.getCamSecretLastUsedTime resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of cam secret_last_used_time
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const secretLastUsedTime = tencentcloud.getCamSecretLastUsedTime({
secretIdLists: ["xxxx"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
secret_last_used_time = tencentcloud.get_cam_secret_last_used_time(secret_id_lists=["xxxx"])
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.GetCamSecretLastUsedTime(ctx, &tencentcloud.GetCamSecretLastUsedTimeArgs{
SecretIdLists: []string{
"xxxx",
},
}, 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 secretLastUsedTime = Tencentcloud.GetCamSecretLastUsedTime.Invoke(new()
{
SecretIdLists = new[]
{
"xxxx",
},
});
});
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.GetCamSecretLastUsedTimeArgs;
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 secretLastUsedTime = TencentcloudFunctions.getCamSecretLastUsedTime(GetCamSecretLastUsedTimeArgs.builder()
.secretIdLists("xxxx")
.build());
}
}
variables:
secretLastUsedTime:
fn::invoke:
function: tencentcloud:getCamSecretLastUsedTime
arguments:
secretIdLists:
- xxxx
Using getCamSecretLastUsedTime
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 getCamSecretLastUsedTime(args: GetCamSecretLastUsedTimeArgs, opts?: InvokeOptions): Promise<GetCamSecretLastUsedTimeResult>
function getCamSecretLastUsedTimeOutput(args: GetCamSecretLastUsedTimeOutputArgs, opts?: InvokeOptions): Output<GetCamSecretLastUsedTimeResult>def get_cam_secret_last_used_time(id: Optional[str] = None,
result_output_file: Optional[str] = None,
secret_id_lists: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetCamSecretLastUsedTimeResult
def get_cam_secret_last_used_time_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
secret_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCamSecretLastUsedTimeResult]func GetCamSecretLastUsedTime(ctx *Context, args *GetCamSecretLastUsedTimeArgs, opts ...InvokeOption) (*GetCamSecretLastUsedTimeResult, error)
func GetCamSecretLastUsedTimeOutput(ctx *Context, args *GetCamSecretLastUsedTimeOutputArgs, opts ...InvokeOption) GetCamSecretLastUsedTimeResultOutput> Note: This function is named GetCamSecretLastUsedTime in the Go SDK.
public static class GetCamSecretLastUsedTime
{
public static Task<GetCamSecretLastUsedTimeResult> InvokeAsync(GetCamSecretLastUsedTimeArgs args, InvokeOptions? opts = null)
public static Output<GetCamSecretLastUsedTimeResult> Invoke(GetCamSecretLastUsedTimeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCamSecretLastUsedTimeResult> getCamSecretLastUsedTime(GetCamSecretLastUsedTimeArgs args, InvokeOptions options)
public static Output<GetCamSecretLastUsedTimeResult> getCamSecretLastUsedTime(GetCamSecretLastUsedTimeArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCamSecretLastUsedTime:getCamSecretLastUsedTime
arguments:
# arguments dictionaryThe following arguments are supported:
- Secret
Id List<string>Lists - Query the key ID list. Supports up to 10.
- Id string
- Result
Output stringFile - Used to save results.
- Secret
Id []stringLists - Query the key ID list. Supports up to 10.
- Id string
- Result
Output stringFile - Used to save results.
- secret
Id List<String>Lists - Query the key ID list. Supports up to 10.
- id String
- result
Output StringFile - Used to save results.
- secret
Id string[]Lists - Query the key ID list. Supports up to 10.
- id string
- result
Output stringFile - Used to save results.
- secret_
id_ Sequence[str]lists - Query the key ID list. Supports up to 10.
- id str
- result_
output_ strfile - Used to save results.
- secret
Id List<String>Lists - Query the key ID list. Supports up to 10.
- id String
- result
Output StringFile - Used to save results.
getCamSecretLastUsedTime Result
The following output properties are available:
- Id string
- Secret
Id List<GetLast Used Rows Cam Secret Last Used Time Secret Id Last Used Row> - Last used time list.
- Secret
Id List<string>Lists - Result
Output stringFile
- Id string
- Secret
Id []GetLast Used Rows Cam Secret Last Used Time Secret Id Last Used Row - Last used time list.
- Secret
Id []stringLists - Result
Output stringFile
- id String
- secret
Id List<GetLast Used Rows Cam Secret Last Used Time Secret Id Last Used Row> - Last used time list.
- secret
Id List<String>Lists - result
Output StringFile
- id string
- secret
Id GetLast Used Rows Cam Secret Last Used Time Secret Id Last Used Row[] - Last used time list.
- secret
Id string[]Lists - result
Output stringFile
- id str
- secret_
id_ Sequence[Getlast_ used_ rows Cam Secret Last Used Time Secret Id Last Used Row] - Last used time list.
- secret_
id_ Sequence[str]lists - result_
output_ strfile
- id String
- secret
Id List<Property Map>Last Used Rows - Last used time list.
- secret
Id List<String>Lists - result
Output StringFile
Supporting Types
GetCamSecretLastUsedTimeSecretIdLastUsedRow
- Last
Secret doubleUsed Date - Last used timestamp.
- Last
Used stringDate - Last used date (with 1 day delay).
- Secret
Id string - Secret Id.
- Last
Secret float64Used Date - Last used timestamp.
- Last
Used stringDate - Last used date (with 1 day delay).
- Secret
Id string - Secret Id.
- last
Secret DoubleUsed Date - Last used timestamp.
- last
Used StringDate - Last used date (with 1 day delay).
- secret
Id String - Secret Id.
- last
Secret numberUsed Date - Last used timestamp.
- last
Used stringDate - Last used date (with 1 day delay).
- secret
Id string - Secret Id.
- last_
secret_ floatused_ date - Last used timestamp.
- last_
used_ strdate - Last used date (with 1 day delay).
- secret_
id str - Secret Id.
- last
Secret NumberUsed Date - Last used timestamp.
- last
Used StringDate - Last used date (with 1 day delay).
- secret
Id String - Secret Id.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
