published on Monday, Jul 20, 2026 by Byteplus
published on Monday, Jul 20, 2026 by Byteplus
Key Management Service (KMS) key material resource. Used to import user-provided (BYOK) encrypted key material into a specified master key with Origin=External. Users must obtain import parameters, encrypt the key material, and provide EncryptedKeyMaterial and ImportToken to the resource. The Provider then calls ImportKeyMaterial to complete the import.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const example = new bytepluscc.kms.KeyMaterial("Example", {
keyId: "6201a360-15a7-41d2-829d-21xxxxxx",
importToken: "UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaIGh6S67EUouv4azT+5JyjrjOgj4lvZ4q22gqf4SXjbxtsYTpAtVvqXUjP02Wc2JgayPYd5m8flW7IceNqgclSSEuyJwYqaHFVW2gXWRbVAuHfN3J1iTqxOPCQmztzL/xWXnbfdsJVNqACdk66RZKjXo3MTvraQ1AEDeD6fMDgaUXKHeys7kSpXkG+umyGkxemsE/5/Us63CpGiN1HL+ECIhimR1ReVh7An5sKJyGAbBzcHR43nfm8GvKwQm5PjBE71UUXkPuTNm01DIdDekjGh4MAyy7ya5M9v2AoTt+xerMVoDC2bt8s582FBbYLbqjaJ1wHwbhaGB5F8syjTCH90y9BnzsDGK8Sg3a2dMVh64gLnwCSbCDO/p97B/pZHDrCuMcbO+62AUMMgYS80jvZMYpouPyoxzO+VZHT5U2SmVAmFCxP0aR/ZNWsXZ4fPx299/ASOv8Y6lTZX5DyBkn8tXgftGroDLHrkdSzcwluFYLk/mxOA4hK4KUx+j3As0oveAlRi9yTEJdOsNmagDHFwbi8yabGO8evLqbKsWBsy5RSdfNf+M8Hb6+Q2vQkD23qGlFNjVOF8s5iiFLm6c5rVwG7JrMp6/Dye3c9UcHYmESNNNrfrj2jcc0gMw3APXx4Qdv0neTnimtQw6HBAg+R0TwMS+FtPoGpiXIUWBukIev55TBWtrd7t1j9JDfWW237TtHaIymHsjbI/L+/838hZjM9iGydLg80dWKIYYI3M35HAzC2WGdd6wueMwj6HFzmSGxyvIsTP+LoJkzaYInZ6/8namYe9leugoF50vAFU3VbqceyvsuPlrS4s5pQfsuZhd/cjdvzXC8ooB5RxtMkXxcE9WZkbkoLCDkobiU68DP9vszYKrXMvuqcyu7UapVcAvDsh4KgomL5NuyHjAVW64NEIqiQcOvIA+knId4lBwVIKGFnvJwHkMT8jhezv04/6Kr2XCxyhVeM2/pZ8HXfaNUKzTnwBaANmOiB6SVV6RfjCYo4xgIxS269ran9ReJDfn4WxpHi1jxQZ4fI49q7rLX5JRl78zdd4Hr2jb3WXSKtpU7tlPLQ+bRmG8f2U0j4/z0kTqT0x6dPIac3xbhH5j/638roQyp+7zyyBWYObpd3bZC1xPuMLKneEMcxvmKlnNd4uGMfKLMv1XXAVs1pkGRnEd3b0pWtG1kEKmNHP+rdtTga2RMO7vF8ENfz02ygpsrW/us4GB/62i4k4a9t23tXZsxEW4fk7krV1fjoe1Wfh+0S/7TZ7s6aFLPKKcV5b2EZ+z1TyD91mtFVsYmziNK2AfLlKkGBwW8xL8aY/yvYDWKAFIAsTNnYmUfvGQryYEqV5TuMcbuvLg0V5CXlTXGd4BFk8tMf43brWfnKtQNc0jPCDgS+P3ajU9/xzeJekFz9Jmow=",
encryptedKeyMaterial: "Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ==",
expirationModel: "KEY_MATERIAL_EXPIRES",
validTo: 1814313600,
});
import pulumi
import pulumi_bytepluscc as bytepluscc
example = bytepluscc.kms.KeyMaterial("Example",
key_id="6201a360-15a7-41d2-829d-21xxxxxx",
import_token="UlNBXzIwJCYyOtoTrUd+IKSmIViKH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OiB6SVV6RfjCYo4xgIxS269ran9ReJDfn4WxpHi1jxQZ4fI49q7rLX5JRl78zdd4Hr2jb3WXSKtpU7tlPLQ+bRmG8f2U0j4/z0kTqT0x6dPIac3xbhH5j/638roQyp+7zyyBWYObpd3bZC1xPuMLKneEMcxvmKlnNd4uGMfKLMv1XXAVs1pkGRnEd3b0pWtG1kEKmNHP+rdtTga2RMO7vF8ENfz02ygpsrW/us4GB/62i4k4a9t23tXZsxEW4fk7krV1fjoe1Wfh+0S/7TZ7s6aFLPKKcV5b2EZ+z1TyD91mtFVsYmziNK2AfLlKkGBwW8xL8aY/yvYDWKAFIAsTNnYmUfvGQryYEqV5TuMcbuvLg0V5CXlTXGd4BFk8tMf43brWfnKtQNc0jPCDgS+P3ajU9/xzeJekFz9Jmow=",
encrypted_key_material="Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ==",
expiration_model="KEY_MATERIAL_EXPIRES",
valid_to=1814313600)
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kms.NewKeyMaterial(ctx, "Example", &kms.KeyMaterialArgs{
KeyId: pulumi.String("6201a360-15a7-41d2-829d-21xxxxxx"),
ImportToken: pulumi.String("UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaIGh6S67EUouv4azT+5JyjrjOgj4lvZ4q22gqf4SXjbxtsYTpAtVvqXUjP02Wc2JgayPYd5m8flW7IceNqgclSSEuyJwYqaHFVW2gXWRbVAuHfN3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2RMO7vF8ENfz02ygpsrW/us4GB/62i4k4a9t23tXZsxEW4fk7krV1fjoe1Wfh+0S/7TZ7s6aFLPKKcV5b2EZ+z1TyD91mtFVsYmziNK2AfLlKkGBwW8xL8aY/yvYDWKAFIAsTNnYmUfvGQryYEqV5TuMcbuvLg0V5CXlTXGd4BFk8tMf43brWfnKtQNc0jPCDgS+P3ajU9/xzeJekFz9Jmow="),
EncryptedKeyMaterial: pulumi.String("Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ=="),
ExpirationModel: pulumi.String("KEY_MATERIAL_EXPIRES"),
ValidTo: pulumi.Int(1814313600),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var example = new Bytepluscc.Kms.KeyMaterial("Example", new()
{
KeyId = "6201a360-15a7-41d2-829d-21xxxxxx",
ImportToken = "UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaIGh6S67EUouv4azT+5JyjrjOgj4lvZ4q22gqf4SXjbxtsYTpAtVvqXUjP02Wc2JgayPYd5m8flW7IceNqgclSSEuyJwYqaHFVW2gXWRbVAuHfN3J1iTqxOPCQmztzL/xWXnbfdsJVNqACdk66RZKjXo3MTvraQ1AEDeD6fMDgaUXKHeys7kSpXkG+umyGkxemsE/5/Us63CpGiN1HL+ECIhimR1ReVh7An5sKJyGAbBzcHR43nfm8GvKwQm5PjBE71UUXkPuTNm01DIdDekjGh4MAyy7ya5M9v2AoTt+xerMVoDC2bt8s582FBbYLbqjaJ1wHwb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Fz9Jmow=",
EncryptedKeyMaterial = "Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ==",
ExpirationModel = "KEY_MATERIAL_EXPIRES",
ValidTo = 1814313600,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.kms.KeyMaterial;
import com.byteplus.bytepluscc.kms.KeyMaterialArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var example = new KeyMaterial("example", KeyMaterialArgs.builder()
.keyId("6201a360-15a7-41d2-829d-21xxxxxx")
.importToken("UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaIGh6S67EUouv4azT+5JyjrjOgj4lvZ4q22gqf4SXjbxtsYTpAtVvqXUjP02Wc2JgayPYd5m8flW7IceNqgclSSEuyJwYqaHFVW2gXWRbVAuHfN3J1iTqxOPCQmztzL/xWXnbfdsJVNqACdk66RZKjXo3MTvraQ1AEDeD6fMDgaUXKHeys7kSpXkG+umyGkxemsE/5/Us63CpGiN1HL+ECIhimR1ReVh7An5sKJyGAbBzcHR43nfm8GvKwQm5PjBE71UUXkPuTNm01DIdDekjGh4MAyy7ya5M9v2AoTt+xerMVoDC2bt8s582FBbYLbqjaJ1wHwbhaGB5F8syjTCH90y9BnzsDGK8Sg3a2dMVh64gLnwCSbCDO/p97B/pZHDrCuMcbO+62AUMMgYS80jvZMYpouPyoxzO+VZHT5U2SmVAmFCxP0aR/Z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F9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ==")
.expirationModel("KEY_MATERIAL_EXPIRES")
.validTo(1814313600)
.build());
}
}
resources:
example:
type: bytepluscc:kms:KeyMaterial
name: Example
properties:
keyId: 6201a360-15a7-41d2-829d-21xxxxxx
importToken: UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaIGh6S67EUouv4azT+5JyjrjOgj4lvZ4q22gqf4SXjbxtsYTpAtVvqXUjP02Wc2JgayPYd5m8flW7IceNqgclSSEuyJwYqaHFVW2gXWRbVAuHfN3J1iTqxOPCQmztzL/xWXnbfdsJVNqACdk66RZKjXo3MTvraQ1AEDeD6fMDgaUXKHeys7kSpXkG+umyGkxemsE/5/Us63CpGiN1HL+ECIhimR1ReVh7An5sKJyGAbBzcHR43nfm8GvKwQm5PjBE71UUXkPuTNm01DIdDekjGh4MAyy7ya5M9v2AoTt+xerMVoDC2bt8s582FBbYLbqjaJ1wHwbhaGB5F8syjTCH90y9BnzsDGK8Sg3a2dMVh64gLnwCSbCDO/p97B/pZHDrCuMcbO+62AUMMgYS80jvZMYpouPyoxzO+VZHT5U2SmVAmFCxP0aR/ZNWsXZ4fPx299/ASOv8Y6lTZX5DyBkn8tXgftGroDLHrkdSzcwluFYLk/mxOA4hK4KUx+j3As0oveAlRi9yTEJdOsNmagDHFwbi8yabGO8evLqbKsWBsy5RSdfNf+M8Hb6+Q2vQkD23qGlFNjVOF8s5iiFLm6c5rVwG7JrMp6/Dye3c9UcHYmESNNNrfrj2jcc0gMw3APXx4Qdv0neTnimtQw6HBAg+R0TwMS+FtPoGpiXIUWBukIev55TBWtrd7t1j9JDfWW237TtHaIymHsjbI/L+/838hZjM9iGydLg80dWKIYYI3M35HAzC2WGdd6wueMwj6HFzmSGxyvIsTP+LoJkzaYInZ6/8namYe9leugoF50vAFU3VbqceyvsuPlrS4s5pQfsuZhd/cjdvzXC8ooB5RxtMkXxcE9WZkbkoLCDkobiU68DP9vszYKrXMvuqcyu7UapVcAvDsh4KgomL5NuyHjAVW64NEIqiQcOvIA+knId4lBwVIKGFnvJwHkMT8jhezv04/6Kr2XCxyhVeM2/pZ8HXfaNUKzTnwBaANmOiB6SVV6RfjCYo4xgIxS269ran9ReJDfn4WxpHi1jxQZ4fI49q7rLX5JRl78zdd4Hr2jb3WXSKtpU7tlPLQ+bRmG8f2U0j4/z0kTqT0x6dPIac3xbhH5j/638roQyp+7zyyBWYObpd3bZC1xPuMLKneEMcxvmKlnNd4uGMfKLMv1XXAVs1pkGRnEd3b0pWtG1kEKmNHP+rdtTga2RMO7vF8ENfz02ygpsrW/us4GB/62i4k4a9t23tXZsxEW4fk7krV1fjoe1Wfh+0S/7TZ7s6aFLPKKcV5b2EZ+z1TyD91mtFVsYmziNK2AfLlKkGBwW8xL8aY/yvYDWKAFIAsTNnYmUfvGQryYEqV5TuMcbuvLg0V5CXlTXGd4BFk8tMf43brWfnKtQNc0jPCDgS+P3ajU9/xzeJekFz9Jmow=
encryptedKeyMaterial: Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ==
expirationModel: KEY_MATERIAL_EXPIRES
validTo: 1.8143136e+09
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_kms_keymaterial" "Example" {
key_id = "6201a360-15a7-41d2-829d-21xxxxxx"
import_token = "UlNBXzIwJCYyOtoTrUd+IKSmIViKHi4Nm8xOn0nAwGnm9HBGDW0xce5CCBkFIfdJOCB+lrlHk36L1U6uGpsRthldrPDFDNVxxxxxxxxxxxxxx/BxL2VXqdWeqS6NKaI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0kTqT0x6dPIac3xbhH5j/638roQyp+7zyyBWYObpd3bZC1xPuMLKneEMcxvmKlnNd4uGMfKLMv1XXAVs1pkGRnEd3b0pWtG1kEKmNHP+rdtTga2RMO7vF8ENfz02ygpsrW/us4GB/62i4k4a9t23tXZsxEW4fk7krV1fjoe1Wfh+0S/7TZ7s6aFLPKKcV5b2EZ+z1TyD91mtFVsYmziNK2AfLlKkGBwW8xL8aY/yvYDWKAFIAsTNnYmUfvGQryYEqV5TuMcbuvLg0V5CXlTXGd4BFk8tMf43brWfnKtQNc0jPCDgS+P3ajU9/xzeJekFz9Jmow="
encrypted_key_material = "Eg4a4+BdfqpnYAs1kPkWXFj9O2rBv/uNA8SeVKoG8Az091J/v7wELfeR5DX53IcianLlzC55kvTTc73aYPChvh4dLTHF9wWlldPvJHcIDsm+UwEE5jxxxxxxxxxxxzH81CmAP0fx8M871J9vg5YqQ=="
expiration_model = "KEY_MATERIAL_EXPIRES"
valid_to = 1814313600
}
Create KeyMaterial Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeyMaterial(name: string, args: KeyMaterialArgs, opts?: CustomResourceOptions);@overload
def KeyMaterial(resource_name: str,
args: KeyMaterialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KeyMaterial(resource_name: str,
opts: Optional[ResourceOptions] = None,
encrypted_key_material: Optional[str] = None,
import_token: Optional[str] = None,
key_id: Optional[str] = None,
expiration_model: Optional[str] = None,
valid_to: Optional[int] = None)func NewKeyMaterial(ctx *Context, name string, args KeyMaterialArgs, opts ...ResourceOption) (*KeyMaterial, error)public KeyMaterial(string name, KeyMaterialArgs args, CustomResourceOptions? opts = null)
public KeyMaterial(String name, KeyMaterialArgs args)
public KeyMaterial(String name, KeyMaterialArgs args, CustomResourceOptions options)
type: bytepluscc:kms:KeyMaterial
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_kms_keymaterial" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KeyMaterialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KeyMaterialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KeyMaterialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyMaterialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyMaterialArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var keyMaterialResource = new Bytepluscc.Kms.KeyMaterial("keyMaterialResource", new()
{
EncryptedKeyMaterial = "string",
ImportToken = "string",
KeyId = "string",
ExpirationModel = "string",
ValidTo = 0,
});
example, err := kms.NewKeyMaterial(ctx, "keyMaterialResource", &kms.KeyMaterialArgs{
EncryptedKeyMaterial: pulumi.String("string"),
ImportToken: pulumi.String("string"),
KeyId: pulumi.String("string"),
ExpirationModel: pulumi.String("string"),
ValidTo: pulumi.Int(0),
})
resource "bytepluscc_kms_keymaterial" "keyMaterialResource" {
encrypted_key_material = "string"
import_token = "string"
key_id = "string"
expiration_model = "string"
valid_to = 0
}
var keyMaterialResource = new KeyMaterial("keyMaterialResource", KeyMaterialArgs.builder()
.encryptedKeyMaterial("string")
.importToken("string")
.keyId("string")
.expirationModel("string")
.validTo(0)
.build());
key_material_resource = bytepluscc.kms.KeyMaterial("keyMaterialResource",
encrypted_key_material="string",
import_token="string",
key_id="string",
expiration_model="string",
valid_to=0)
const keyMaterialResource = new bytepluscc.kms.KeyMaterial("keyMaterialResource", {
encryptedKeyMaterial: "string",
importToken: "string",
keyId: "string",
expirationModel: "string",
validTo: 0,
});
type: bytepluscc:kms:KeyMaterial
properties:
encryptedKeyMaterial: string
expirationModel: string
importToken: string
keyId: string
validTo: 0
KeyMaterial Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KeyMaterial resource accepts the following input properties:
- Encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- Import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- Key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- Expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- Valid
To int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- Encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- Import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- Key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- Expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- Valid
To int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted_
key_ stringmaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- import_
token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key_
id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- expiration_
model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- valid_
to number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key StringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- import
Token String - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id String - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- expiration
Model String - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- valid
To Integer - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- valid
To number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted_
key_ strmaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- import_
token str - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key_
id str - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- expiration_
model str - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- valid_
to int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key StringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- import
Token String - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id String - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- expiration
Model String - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- valid
To Number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyMaterial resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- Key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- Origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- Key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- Origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- id string
- The provider-assigned unique ID for this managed resource.
- key_
material_ stringexpire_ time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key_
state string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Material StringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State String - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin String
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
material_ strexpire_ time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key_
state str - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin str
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Material StringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State String - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin String
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
Look up Existing KeyMaterial Resource
Get an existing KeyMaterial resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KeyMaterialState, opts?: CustomResourceOptions): KeyMaterial@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
encrypted_key_material: Optional[str] = None,
expiration_model: Optional[str] = None,
import_token: Optional[str] = None,
key_id: Optional[str] = None,
key_material_expire_time: Optional[str] = None,
key_state: Optional[str] = None,
origin: Optional[str] = None,
valid_to: Optional[int] = None) -> KeyMaterialfunc GetKeyMaterial(ctx *Context, name string, id IDInput, state *KeyMaterialState, opts ...ResourceOption) (*KeyMaterial, error)public static KeyMaterial Get(string name, Input<string> id, KeyMaterialState? state, CustomResourceOptions? opts = null)public static KeyMaterial get(String name, Output<String> id, KeyMaterialState state, CustomResourceOptions options)resources: _: type: bytepluscc:kms:KeyMaterial get: id: ${id}import {
to = bytepluscc_kms_keymaterial.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- Expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- Import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- Key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- Key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- Key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- Origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- Valid
To int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- Encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- Expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- Import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- Key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- Key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- Key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- Origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- Valid
To int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted_
key_ stringmaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- expiration_
model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- import_
token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key_
id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- key_
material_ stringexpire_ time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key_
state string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- valid_
to number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key StringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- expiration
Model String - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- import
Token String - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id String - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- key
Material StringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State String - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin String
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- valid
To Integer - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key stringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- expiration
Model string - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- import
Token string - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id string - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- key
Material stringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State string - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin string
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- valid
To number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted_
key_ strmaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- expiration_
model str - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- import_
token str - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key_
id str - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- key_
material_ strexpire_ time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key_
state str - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin str
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- valid_
to int - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
- encrypted
Key StringMaterial - The key material obtained after the user encrypts using the import public key, encoded in Base64; this value is passed directly to the ImportKeyMaterial interface.
- expiration
Model String - Key material expiration type. Values: KEYMATERIALDOESNOTEXPIRE (default), KEYMATERIALEXPIRES.
- import
Token String - The import token obtained after the user calls the interface to retrieve import parameters; this value is passed directly to the ImportKeyMaterial interface.
- key
Id String - Unique identifier of the target master key in UUID format; the Origin of this key must be External.
- key
Material StringExpire Time - The expiration time of the key material recorded by the server after import; if the material does not expire, this field is an empty string.
- key
State String - Current status of the target master key. Values: Enable, Disable, PendingDelete, Archived, PendingImport, PendingReplicaDelete.
- origin String
- Source of the target master key. Values: CloudKMS, External, ExternalKeyStore. The KeyMaterial resource is only valid for keys with External origin.
- valid
To Number - Key material expiration time, Unix timestamp in seconds; required when the ExpirationModel parameter is set to KEYMATERIALEXPIRES. Must be a time after the current moment, based on server time.
Import
$ pulumi import bytepluscc:kms/keyMaterial:KeyMaterial example "key_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jul 20, 2026 by Byteplus