tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getKmsKeys
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 KMS key
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getKmsKeys({
hsmClusterId: "cls-hsm-mwpd9cjm",
keyState: 0,
keyUsage: "ALL",
origin: "TENCENT_KMS",
searchKeyAlias: "tf_example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_kms_keys(hsm_cluster_id="cls-hsm-mwpd9cjm",
key_state=0,
key_usage="ALL",
origin="TENCENT_KMS",
search_key_alias="tf_example")
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.GetKmsKeys(ctx, &tencentcloud.GetKmsKeysArgs{
HsmClusterId: pulumi.StringRef("cls-hsm-mwpd9cjm"),
KeyState: pulumi.Float64Ref(0),
KeyUsage: pulumi.StringRef("ALL"),
Origin: pulumi.StringRef("TENCENT_KMS"),
SearchKeyAlias: pulumi.StringRef("tf_example"),
}, 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.GetKmsKeys.Invoke(new()
{
HsmClusterId = "cls-hsm-mwpd9cjm",
KeyState = 0,
KeyUsage = "ALL",
Origin = "TENCENT_KMS",
SearchKeyAlias = "tf_example",
});
});
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.GetKmsKeysArgs;
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.getKmsKeys(GetKmsKeysArgs.builder()
.hsmClusterId("cls-hsm-mwpd9cjm")
.keyState(0)
.keyUsage("ALL")
.origin("TENCENT_KMS")
.searchKeyAlias("tf_example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getKmsKeys
arguments:
hsmClusterId: cls-hsm-mwpd9cjm
keyState: 0
keyUsage: ALL
origin: TENCENT_KMS
searchKeyAlias: tf_example
Using getKmsKeys
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 getKmsKeys(args: GetKmsKeysArgs, opts?: InvokeOptions): Promise<GetKmsKeysResult>
function getKmsKeysOutput(args: GetKmsKeysOutputArgs, opts?: InvokeOptions): Output<GetKmsKeysResult>
def get_kms_keys(hsm_cluster_id: Optional[str] = None,
id: Optional[str] = None,
key_state: Optional[float] = None,
key_usage: Optional[str] = None,
order_type: Optional[float] = None,
origin: Optional[str] = None,
result_output_file: Optional[str] = None,
role: Optional[float] = None,
search_key_alias: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsKeysResult
def get_kms_keys_output(hsm_cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
key_state: Optional[pulumi.Input[float]] = None,
key_usage: Optional[pulumi.Input[str]] = None,
order_type: Optional[pulumi.Input[float]] = None,
origin: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[float]] = None,
search_key_alias: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsKeysResult]
func GetKmsKeys(ctx *Context, args *GetKmsKeysArgs, opts ...InvokeOption) (*GetKmsKeysResult, error)
func GetKmsKeysOutput(ctx *Context, args *GetKmsKeysOutputArgs, opts ...InvokeOption) GetKmsKeysResultOutput
> Note: This function is named GetKmsKeys
in the Go SDK.
public static class GetKmsKeys
{
public static Task<GetKmsKeysResult> InvokeAsync(GetKmsKeysArgs args, InvokeOptions? opts = null)
public static Output<GetKmsKeysResult> Invoke(GetKmsKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKmsKeysResult> getKmsKeys(GetKmsKeysArgs args, InvokeOptions options)
public static Output<GetKmsKeysResult> getKmsKeys(GetKmsKeysArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getKmsKeys:getKmsKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Id string
- Key
State double - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - Key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - Order
Type double - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - Origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - Result
Output stringFile - Used to save results.
- Role double
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - Search
Key stringAlias - Words used to match the results, and the words can be: key_id and alias.
- Dictionary<string, string>
- Tags to filter CMK.
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Id string
- Key
State float64 - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - Key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - Order
Type float64 - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - Origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - Result
Output stringFile - Used to save results.
- Role float64
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - Search
Key stringAlias - Words used to match the results, and the words can be: key_id and alias.
- map[string]string
- Tags to filter CMK.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- id String
- key
State Double - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage String - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - order
Type Double - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - origin String
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - result
Output StringFile - Used to save results.
- role Double
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - search
Key StringAlias - Words used to match the results, and the words can be: key_id and alias.
- Map<String,String>
- Tags to filter CMK.
- hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- id string
- key
State number - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - order
Type number - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - result
Output stringFile - Used to save results.
- role number
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - search
Key stringAlias - Words used to match the results, and the words can be: key_id and alias.
- {[key: string]: string}
- Tags to filter CMK.
- hsm_
cluster_ strid - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- id str
- key_
state float - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key_
usage str - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - order_
type float - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - origin str
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - result_
output_ strfile - Used to save results.
- role float
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - search_
key_ stralias - Words used to match the results, and the words can be: key_id and alias.
- Mapping[str, str]
- Tags to filter CMK.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- id String
- key
State Number - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage String - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - order
Type Number - Order to sort the CMK create time.
0
- desc,1
- asc. Default value is0
. - origin String
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - result
Output StringFile - Used to save results.
- role Number
- Filter by role of the CMK creator.
0
- created by user,1
- created by cloud product. Default value is0
. - search
Key StringAlias - Words used to match the results, and the words can be: key_id and alias.
- Map<String>
- Tags to filter CMK.
getKmsKeys Result
The following output properties are available:
- Id string
- Key
Lists List<GetKms Keys Key List> - A list of KMS keys.
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Key
State double - State of CMK.
- Key
Usage string - Usage of CMK.
- Order
Type double - Origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - Result
Output stringFile - Role double
- Search
Key stringAlias - Dictionary<string, string>
- Id string
- Key
Lists []GetKms Keys Key List - A list of KMS keys.
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Key
State float64 - State of CMK.
- Key
Usage string - Usage of CMK.
- Order
Type float64 - Origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - Result
Output stringFile - Role float64
- Search
Key stringAlias - map[string]string
- id String
- key
Lists List<GetKms Keys Key List> - A list of KMS keys.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
State Double - State of CMK.
- key
Usage String - Usage of CMK.
- order
Type Double - origin String
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - result
Output StringFile - role Double
- search
Key StringAlias - Map<String,String>
- id string
- key
Lists GetKms Keys Key List[] - A list of KMS keys.
- hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
State number - State of CMK.
- key
Usage string - Usage of CMK.
- order
Type number - origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - result
Output stringFile - role number
- search
Key stringAlias - {[key: string]: string}
- id str
- key_
lists Sequence[GetKms Keys Key List] - A list of KMS keys.
- hsm_
cluster_ strid - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key_
state float - State of CMK.
- key_
usage str - Usage of CMK.
- order_
type float - origin str
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - result_
output_ strfile - role float
- search_
key_ stralias - Mapping[str, str]
- id String
- key
Lists List<Property Map> - A list of KMS keys.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
State Number - State of CMK.
- key
Usage String - Usage of CMK.
- order
Type Number - origin String
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - result
Output StringFile - role Number
- search
Key StringAlias - Map<String>
Supporting Types
GetKmsKeysKeyList
- Alias string
- Name of CMK.
- Create
Time double - Create time of CMK.
- Creator
Uin double - Uin of CMK Creator.
- Deletion
Date double - Delete time of CMK.
- Description string
- Description of CMK.
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Key
Id string - ID of CMK.
- Key
Rotation boolEnabled - Specify whether to enable key rotation.
- Key
State string - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - Key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - Next
Rotate doubleTime - Next rotate time of CMK when key_rotation_enabled is true.
- Origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - Owner string
- Creator of CMK.
- Valid
To double - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- Alias string
- Name of CMK.
- Create
Time float64 - Create time of CMK.
- Creator
Uin float64 - Uin of CMK Creator.
- Deletion
Date float64 - Delete time of CMK.
- Description string
- Description of CMK.
- Hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- Key
Id string - ID of CMK.
- Key
Rotation boolEnabled - Specify whether to enable key rotation.
- Key
State string - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - Key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - Next
Rotate float64Time - Next rotate time of CMK when key_rotation_enabled is true.
- Origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - Owner string
- Creator of CMK.
- Valid
To float64 - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias String
- Name of CMK.
- create
Time Double - Create time of CMK.
- creator
Uin Double - Uin of CMK Creator.
- deletion
Date Double - Delete time of CMK.
- description String
- Description of CMK.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
Id String - ID of CMK.
- key
Rotation BooleanEnabled - Specify whether to enable key rotation.
- key
State String - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage String - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - next
Rotate DoubleTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin String
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - owner String
- Creator of CMK.
- valid
To Double - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias string
- Name of CMK.
- create
Time number - Create time of CMK.
- creator
Uin number - Uin of CMK Creator.
- deletion
Date number - Delete time of CMK.
- description string
- Description of CMK.
- hsm
Cluster stringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
Id string - ID of CMK.
- key
Rotation booleanEnabled - Specify whether to enable key rotation.
- key
State string - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage string - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - next
Rotate numberTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin string
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - owner string
- Creator of CMK.
- valid
To number - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias str
- Name of CMK.
- create_
time float - Create time of CMK.
- creator_
uin float - Uin of CMK Creator.
- deletion_
date float - Delete time of CMK.
- description str
- Description of CMK.
- hsm_
cluster_ strid - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key_
id str - ID of CMK.
- key_
rotation_ boolenabled - Specify whether to enable key rotation.
- key_
state str - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key_
usage str - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - next_
rotate_ floattime - Next rotate time of CMK when key_rotation_enabled is true.
- origin str
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - owner str
- Creator of CMK.
- valid_
to float - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias String
- Name of CMK.
- create
Time Number - Create time of CMK.
- creator
Uin Number - Uin of CMK Creator.
- deletion
Date Number - Delete time of CMK.
- description String
- Description of CMK.
- hsm
Cluster StringId - The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances).
- key
Id String - ID of CMK.
- key
Rotation BooleanEnabled - Specify whether to enable key rotation.
- key
State String - Filter by state of CMK.
0
- all CMKs are queried,1
- only Enabled CMKs are queried,2
- only Disabled CMKs are queried,3
- only PendingDelete CMKs are queried,4
- only PendingImport CMKs are queried,5
- only Archived CMKs are queried. - key
Usage String - Filter by usage of CMK. Available values include
ALL
,ENCRYPT_DECRYPT
,ASYMMETRIC_DECRYPT_RSA_2048
,ASYMMETRIC_DECRYPT_SM2
,ASYMMETRIC_SIGN_VERIFY_SM2
,ASYMMETRIC_SIGN_VERIFY_RSA_2048
,ASYMMETRIC_SIGN_VERIFY_ECC
. Default value isENCRYPT_DECRYPT
. - next
Rotate NumberTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin String
- Filter by origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user,ALL
- all CMKs. Default value isALL
. - owner String
- Creator of CMK.
- valid
To Number - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
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