1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSsmRotationHistory
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.getSsmRotationHistory

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Use this data source to query detailed information of ssm rotation_history

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSsmRotationHistory({
        secretName: "keep_terraform",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_ssm_rotation_history(secret_name="keep_terraform")
    
    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.GetSsmRotationHistory(ctx, &tencentcloud.GetSsmRotationHistoryArgs{
    			SecretName: "keep_terraform",
    		}, 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 example = Tencentcloud.GetSsmRotationHistory.Invoke(new()
        {
            SecretName = "keep_terraform",
        });
    
    });
    
    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.GetSsmRotationHistoryArgs;
    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 example = TencentcloudFunctions.getSsmRotationHistory(GetSsmRotationHistoryArgs.builder()
                .secretName("keep_terraform")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSsmRotationHistory
          arguments:
            secretName: keep_terraform
    

    Using getSsmRotationHistory

    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 getSsmRotationHistory(args: GetSsmRotationHistoryArgs, opts?: InvokeOptions): Promise<GetSsmRotationHistoryResult>
    function getSsmRotationHistoryOutput(args: GetSsmRotationHistoryOutputArgs, opts?: InvokeOptions): Output<GetSsmRotationHistoryResult>
    def get_ssm_rotation_history(id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 secret_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSsmRotationHistoryResult
    def get_ssm_rotation_history_output(id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 secret_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSsmRotationHistoryResult]
    func GetSsmRotationHistory(ctx *Context, args *GetSsmRotationHistoryArgs, opts ...InvokeOption) (*GetSsmRotationHistoryResult, error)
    func GetSsmRotationHistoryOutput(ctx *Context, args *GetSsmRotationHistoryOutputArgs, opts ...InvokeOption) GetSsmRotationHistoryResultOutput

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

    public static class GetSsmRotationHistory 
    {
        public static Task<GetSsmRotationHistoryResult> InvokeAsync(GetSsmRotationHistoryArgs args, InvokeOptions? opts = null)
        public static Output<GetSsmRotationHistoryResult> Invoke(GetSsmRotationHistoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSsmRotationHistoryResult> getSsmRotationHistory(GetSsmRotationHistoryArgs args, InvokeOptions options)
    public static Output<GetSsmRotationHistoryResult> getSsmRotationHistory(GetSsmRotationHistoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSsmRotationHistory:getSsmRotationHistory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecretName string
    Secret name.
    Id string
    ResultOutputFile string
    Used to save results.
    SecretName string
    Secret name.
    Id string
    ResultOutputFile string
    Used to save results.
    secretName String
    Secret name.
    id String
    resultOutputFile String
    Used to save results.
    secretName string
    Secret name.
    id string
    resultOutputFile string
    Used to save results.
    secret_name str
    Secret name.
    id str
    result_output_file str
    Used to save results.
    secretName String
    Secret name.
    id String
    resultOutputFile String
    Used to save results.

    getSsmRotationHistory Result

    The following output properties are available:

    Id string
    SecretName string
    VersionIds List<string>
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    ResultOutputFile string
    Id string
    SecretName string
    VersionIds []string
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    ResultOutputFile string
    id String
    secretName String
    versionIds List<String>
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    resultOutputFile String
    id string
    secretName string
    versionIds string[]
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    resultOutputFile string
    id str
    secret_name str
    version_ids Sequence[str]
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    result_output_file str
    id String
    secretName String
    versionIds List<String>
    The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
    resultOutputFile String

    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.186 published on Thursday, Apr 24, 2025 by tencentcloudstack