1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCamSecretLastUsedTime
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 logo
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 dictionary

    The following arguments are supported:

    SecretIdLists List<string>
    Query the key ID list. Supports up to 10.
    Id string
    ResultOutputFile string
    Used to save results.
    SecretIdLists []string
    Query the key ID list. Supports up to 10.
    Id string
    ResultOutputFile string
    Used to save results.
    secretIdLists List<String>
    Query the key ID list. Supports up to 10.
    id String
    resultOutputFile String
    Used to save results.
    secretIdLists string[]
    Query the key ID list. Supports up to 10.
    id string
    resultOutputFile string
    Used to save results.
    secret_id_lists Sequence[str]
    Query the key ID list. Supports up to 10.
    id str
    result_output_file str
    Used to save results.
    secretIdLists List<String>
    Query the key ID list. Supports up to 10.
    id String
    resultOutputFile String
    Used to save results.

    getCamSecretLastUsedTime Result

    The following output properties are available:

    id String
    secretIdLastUsedRows List<Property Map>
    Last used time list.
    secretIdLists List<String>
    resultOutputFile String

    Supporting Types

    GetCamSecretLastUsedTimeSecretIdLastUsedRow

    LastSecretUsedDate double
    Last used timestamp.
    LastUsedDate string
    Last used date (with 1 day delay).
    SecretId string
    Secret Id.
    LastSecretUsedDate float64
    Last used timestamp.
    LastUsedDate string
    Last used date (with 1 day delay).
    SecretId string
    Secret Id.
    lastSecretUsedDate Double
    Last used timestamp.
    lastUsedDate String
    Last used date (with 1 day delay).
    secretId String
    Secret Id.
    lastSecretUsedDate number
    Last used timestamp.
    lastUsedDate string
    Last used date (with 1 day delay).
    secretId string
    Secret Id.
    last_secret_used_date float
    Last used timestamp.
    last_used_date str
    Last used date (with 1 day delay).
    secret_id str
    Secret Id.
    lastSecretUsedDate Number
    Last used timestamp.
    lastUsedDate String
    Last used date (with 1 day delay).
    secretId String
    Secret Id.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate