kms

package
v1.81.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KMS_ORIGIN_TENCENT_KMS = "TENCENT_KMS"
	KMS_ORIGIN_EXTERNAL    = "EXTERNAL"
	KMS_ORIGIN_ALL         = "ALL"
)
View Source
const (
	KMS_KEY_USAGE_ALL                             = "ALL"
	KMS_KEY_USAGE_ENCRYPT_DECRYPT                 = "ENCRYPT_DECRYPT"
	KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_RSA_2048     = "ASYMMETRIC_DECRYPT_RSA_2048"
	KMS_KEY_USAGE_ASYMMETRIC_DECRYPT_SM2          = "ASYMMETRIC_DECRYPT_SM2"
	KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_SM2      = "ASYMMETRIC_SIGN_VERIFY_SM2"
	KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_RSA_2048 = "ASYMMETRIC_SIGN_VERIFY_RSA_2048"
	KMS_KEY_USAGE_ASYMMETRIC_SIGN_VERIFY_ECC      = "ASYMMETRIC_SIGN_VERIFY_ECC"
)
View Source
const (
	KMS_WRAPPING_ALGORITHM_RSAES_PKCS1_V1_5   = "RSAES_PKCS1_V1_5"
	KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_1   = "RSAES_OAEP_SHA_1"
	KMS_WRAPPING_ALGORITHM_RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256"
)
View Source
const (
	KMS_KEY_STATE_ALL           = "All"
	KMS_KEY_STATE_ENABLED       = "Enabled"
	KMS_KEY_STATE_DISABLED      = "Disabled"
	KMS_KEY_STATE_PENDINGDELETE = "PendingDelete"
	KMS_KEY_STATE_PENDINGIMPORT = "PendingImport"
	KMS_KEY_STATE_ARCHIVED      = "Archived"
)
View Source
const (
	WHITE_BOX_KEY_ALGORITHM_AES_256 = "AES_256"
	WHITE_BOX_KEY_ALGORITHM_SM4     = "SM4"
)
View Source
const (
	WHITE_BOX_KEY_STATUS_ENABLED  = "Enabled"
	WHITE_BOX_KEY_STATUS_DISABLED = "Disabled"
)
View Source
const (
	KMS_PAGE_LIMIT = 200
)
View Source
const (
	KMS_WRAPPING_KEY_SPEC_RSA_2048 = "RSA_2048"
)

Variables

View Source
var KMS_ORIGIN_TYPE = map[string]uint64{
	KMS_ORIGIN_TENCENT_KMS: 1,
	KMS_ORIGIN_EXTERNAL:    2,
}
View Source
var KMS_RETRYABLE_ERROR = []string{

	"ClientError.NetworkError",
	"ClientError.HttpStatusCodeError",
}

Functions

func DataSourceTencentCloudKmsDescribeKeys

func DataSourceTencentCloudKmsDescribeKeys() *schema.Resource

func DataSourceTencentCloudKmsGetParametersForImport

func DataSourceTencentCloudKmsGetParametersForImport() *schema.Resource

func DataSourceTencentCloudKmsKeys

func DataSourceTencentCloudKmsKeys() *schema.Resource

func DataSourceTencentCloudKmsListAlgorithms

func DataSourceTencentCloudKmsListAlgorithms() *schema.Resource

func DataSourceTencentCloudKmsListKeys

func DataSourceTencentCloudKmsListKeys() *schema.Resource

func DataSourceTencentCloudKmsPublicKey

func DataSourceTencentCloudKmsPublicKey() *schema.Resource

func DataSourceTencentCloudKmsWhiteBoxDecryptKey

func DataSourceTencentCloudKmsWhiteBoxDecryptKey() *schema.Resource

func DataSourceTencentCloudKmsWhiteBoxDeviceFingerprints

func DataSourceTencentCloudKmsWhiteBoxDeviceFingerprints() *schema.Resource

func DataSourceTencentCloudKmsWhiteBoxKeyDetails

func DataSourceTencentCloudKmsWhiteBoxKeyDetails() *schema.Resource

func ResourceTencentCloudKmsCloudResourceAttachment

func ResourceTencentCloudKmsCloudResourceAttachment() *schema.Resource

func ResourceTencentCloudKmsExternalKey

func ResourceTencentCloudKmsExternalKey() *schema.Resource

func ResourceTencentCloudKmsKey

func ResourceTencentCloudKmsKey() *schema.Resource

func ResourceTencentCloudKmsOverwriteWhiteBoxDeviceFingerprints

func ResourceTencentCloudKmsOverwriteWhiteBoxDeviceFingerprints() *schema.Resource

func ResourceTencentCloudKmsWhiteBoxKey

func ResourceTencentCloudKmsWhiteBoxKey() *schema.Resource

func TencentKmsBasicInfo

func TencentKmsBasicInfo() map[string]*schema.Schema

Types

type KmsService

type KmsService struct {
	// contains filtered or unexported fields
}

func NewKmsService

func NewKmsService(client *connectivity.TencentCloudClient) KmsService

func (*KmsService) ArchiveKey

func (me *KmsService) ArchiveKey(ctx context.Context, keyId string) (errRet error)

func (*KmsService) CancelKeyArchive

func (me *KmsService) CancelKeyArchive(ctx context.Context, keyId string) (errRet error)

func (*KmsService) CancelKeyDeletion

func (me *KmsService) CancelKeyDeletion(ctx context.Context, keyId string) (errRet error)

func (*KmsService) CreateKey

func (me *KmsService) CreateKey(ctx context.Context, keyType uint64, alias, description, keyUsage string) (keyId string, errRet error)

func (*KmsService) DeleteImportKeyMaterial

func (me *KmsService) DeleteImportKeyMaterial(ctx context.Context, keyId string) (errRet error)

func (*KmsService) DeleteKey

func (me *KmsService) DeleteKey(ctx context.Context, keyId string, pendingDeleteWindowInDays uint64) (errRet error)

func (*KmsService) DeleteKmsCloudResourceAttachmentById

func (me *KmsService) DeleteKmsCloudResourceAttachmentById(ctx context.Context, keyId, productId, resourceId string) (errRet error)

func (*KmsService) DeleteKmsWhiteBoxKeyById

func (me *KmsService) DeleteKmsWhiteBoxKeyById(ctx context.Context, keyId string) (errRet error)

func (*KmsService) DescribeKeyById

func (me *KmsService) DescribeKeyById(ctx context.Context, keyId string) (key *kms.KeyMetadata, errRet error)

func (*KmsService) DescribeKeysByFilter

func (me *KmsService) DescribeKeysByFilter(ctx context.Context, param map[string]interface{}) (keys []*kms.KeyMetadata, errRet error)

func (*KmsService) DescribeKmsCloudResourceAttachmentById

func (me *KmsService) DescribeKmsCloudResourceAttachmentById(ctx context.Context, keyId string) (keyMetadata *kms.KeyMetadata, errRet error)

func (*KmsService) DescribeKmsGetParametersForImportByFilter

func (me *KmsService) DescribeKmsGetParametersForImportByFilter(ctx context.Context, param map[string]interface{}) (getParametersForImport *kms.GetParametersForImportResponseParams, errRet error)

func (*KmsService) DescribeKmsKeyListsByFilter

func (me *KmsService) DescribeKmsKeyListsByFilter(ctx context.Context, param map[string]interface{}) (KeyLists []*kms.KeyMetadata, errRet error)

func (*KmsService) DescribeKmsListAlgorithmsByFilter

func (me *KmsService) DescribeKmsListAlgorithmsByFilter(ctx context.Context) (listAlgorithms *kms.ListAlgorithmsResponseParams, errRet error)

func (*KmsService) DescribeKmsListKeysByFilter

func (me *KmsService) DescribeKmsListKeysByFilter(ctx context.Context, param map[string]interface{}) (listKeys []*kms.Key, errRet error)

func (*KmsService) DescribeKmsPublicKeyByFilter

func (me *KmsService) DescribeKmsPublicKeyByFilter(ctx context.Context, param map[string]interface{}) (publicKey *kms.GetPublicKeyResponseParams, errRet error)

func (*KmsService) DescribeKmsWhiteBoxDecryptKeyByFilter

func (me *KmsService) DescribeKmsWhiteBoxDecryptKeyByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDecryptKey *kms.DescribeWhiteBoxDecryptKeyResponseParams, errRet error)

func (*KmsService) DescribeKmsWhiteBoxDeviceFingerprintsByFilter

func (me *KmsService) DescribeKmsWhiteBoxDeviceFingerprintsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxDeviceFingerprints []*kms.DeviceFingerprint, errRet error)

func (*KmsService) DescribeKmsWhiteBoxKeyById

func (me *KmsService) DescribeKmsWhiteBoxKeyById(ctx context.Context, keyId string) (whiteBoxKey *kms.WhiteboxKeyInfo, errRet error)

func (*KmsService) DescribeKmsWhiteBoxKeyDetailsByFilter

func (me *KmsService) DescribeKmsWhiteBoxKeyDetailsByFilter(ctx context.Context, param map[string]interface{}) (whiteBoxKeyInfo []*kms.WhiteboxKeyInfo, errRet error)

func (*KmsService) DisableKey

func (me *KmsService) DisableKey(ctx context.Context, keyId string) (errRet error)

func (*KmsService) DisableKeyRotation

func (me *KmsService) DisableKeyRotation(ctx context.Context, keyId string) (errRet error)

func (*KmsService) EnableKey

func (me *KmsService) EnableKey(ctx context.Context, keyId string) (errRet error)

func (*KmsService) EnableKeyRotation

func (me *KmsService) EnableKeyRotation(ctx context.Context, keyId string) (errRet error)

func (*KmsService) ImportKeyMaterial

func (me *KmsService) ImportKeyMaterial(ctx context.Context, param map[string]interface{}) (errRet error)

func (*KmsService) UpdateKeyAlias

func (me *KmsService) UpdateKeyAlias(ctx context.Context, keyId, alias string) (errRet error)

func (*KmsService) UpdateKeyDescription

func (me *KmsService) UpdateKeyDescription(ctx context.Context, keyId, description string) (errRet error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL