Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts
Use this data source to query detailed information of kms re encrypts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
sourceCiphertextBlob: encryptStable.ciphertextBlob,
});
import pulumi
import pulumi_volcengine as volcengine
encrypt_stable = volcengine.kms.Ciphertext("encryptStable",
key_id="c44870c3-f33b-421a-****-a2bba37c993e",
plaintext="VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
re_encrypt_changing = volcengine.kms.get_re_encrypts_output(new_key_id="33e6ae1f-62f6-415a-****-579f526274cc",
source_ciphertext_blob=encrypt_stable.ciphertext_blob)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/kms"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
encryptStable, err := kms.NewCiphertext(ctx, "encryptStable", &kms.CiphertextArgs{
KeyId: pulumi.String("c44870c3-f33b-421a-****-a2bba37c993e"),
Plaintext: pulumi.String("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg=="),
})
if err != nil {
return err
}
_ = kms.GetReEncryptsOutput(ctx, kms.GetReEncryptsOutputArgs{
NewKeyId: pulumi.String("33e6ae1f-62f6-415a-****-579f526274cc"),
SourceCiphertextBlob: encryptStable.CiphertextBlob,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var encryptStable = new Volcengine.Kms.Ciphertext("encryptStable", new()
{
KeyId = "c44870c3-f33b-421a-****-a2bba37c993e",
Plaintext = "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
var reEncryptChanging = Volcengine.Kms.GetReEncrypts.Invoke(new()
{
NewKeyId = "33e6ae1f-62f6-415a-****-579f526274cc",
SourceCiphertextBlob = encryptStable.CiphertextBlob,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.Ciphertext;
import com.pulumi.volcengine.kms.CiphertextArgs;
import com.pulumi.volcengine.kms.KmsFunctions;
import com.pulumi.volcengine.kms.inputs.GetReEncryptsArgs;
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) {
var encryptStable = new Ciphertext("encryptStable", CiphertextArgs.builder()
.keyId("c44870c3-f33b-421a-****-a2bba37c993e")
.plaintext("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
.build());
final var reEncryptChanging = KmsFunctions.getReEncrypts(GetReEncryptsArgs.builder()
.newKeyId("33e6ae1f-62f6-415a-****-579f526274cc")
.sourceCiphertextBlob(encryptStable.ciphertextBlob())
.build());
}
}
resources:
encryptStable:
type: volcengine:kms:Ciphertext
properties:
keyId: c44870c3-f33b-421a-****-a2bba37c993e
plaintext: VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==
variables:
reEncryptChanging:
fn::invoke:
Function: volcengine:kms:getReEncrypts
Arguments:
newKeyId: 33e6ae1f-62f6-415a-****-579f526274cc
sourceCiphertextBlob: ${encryptStable.ciphertextBlob}
Using ReEncrypts
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 reEncrypts(args: ReEncryptsArgs, opts?: InvokeOptions): Promise<ReEncryptsResult>
function reEncryptsOutput(args: ReEncryptsOutputArgs, opts?: InvokeOptions): Output<ReEncryptsResult>def re_encrypts(new_encryption_context: Optional[str] = None,
new_key_id: Optional[str] = None,
new_key_name: Optional[str] = None,
new_keyring_name: Optional[str] = None,
old_encryption_context: Optional[str] = None,
output_file: Optional[str] = None,
source_ciphertext_blob: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ReEncryptsResult
def re_encrypts_output(new_encryption_context: Optional[pulumi.Input[str]] = None,
new_key_id: Optional[pulumi.Input[str]] = None,
new_key_name: Optional[pulumi.Input[str]] = None,
new_keyring_name: Optional[pulumi.Input[str]] = None,
old_encryption_context: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
source_ciphertext_blob: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ReEncryptsResult]func ReEncrypts(ctx *Context, args *ReEncryptsArgs, opts ...InvokeOption) (*ReEncryptsResult, error)
func ReEncryptsOutput(ctx *Context, args *ReEncryptsOutputArgs, opts ...InvokeOption) ReEncryptsResultOutputpublic static class ReEncrypts
{
public static Task<ReEncryptsResult> InvokeAsync(ReEncryptsArgs args, InvokeOptions? opts = null)
public static Output<ReEncryptsResult> Invoke(ReEncryptsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ReEncryptsResult> reEncrypts(ReEncryptsArgs args, InvokeOptions options)
public static Output<ReEncryptsResult> reEncrypts(ReEncryptsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:ReEncrypts
arguments:
# arguments dictionaryThe following arguments are supported:
- Source
Ciphertext stringBlob - The ciphertext data to be re-encrypted, Base64 encoded.
- New
Encryption stringContext - The new encryption context JSON string of key/value pairs.
- New
Key stringId - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- New
Key stringName - The new key name.
- New
Keyring stringName - The new keyring name.
- Old
Encryption stringContext - The old encryption context JSON string of key/value pairs.
- Output
File string - File name where to save data source results.
- Source
Ciphertext stringBlob - The ciphertext data to be re-encrypted, Base64 encoded.
- New
Encryption stringContext - The new encryption context JSON string of key/value pairs.
- New
Key stringId - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- New
Key stringName - The new key name.
- New
Keyring stringName - The new keyring name.
- Old
Encryption stringContext - The old encryption context JSON string of key/value pairs.
- Output
File string - File name where to save data source results.
- source
Ciphertext StringBlob - The ciphertext data to be re-encrypted, Base64 encoded.
- new
Encryption StringContext - The new encryption context JSON string of key/value pairs.
- new
Key StringId - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- new
Key StringName - The new key name.
- new
Keyring StringName - The new keyring name.
- old
Encryption StringContext - The old encryption context JSON string of key/value pairs.
- output
File String - File name where to save data source results.
- source
Ciphertext stringBlob - The ciphertext data to be re-encrypted, Base64 encoded.
- new
Encryption stringContext - The new encryption context JSON string of key/value pairs.
- new
Key stringId - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- new
Key stringName - The new key name.
- new
Keyring stringName - The new keyring name.
- old
Encryption stringContext - The old encryption context JSON string of key/value pairs.
- output
File string - File name where to save data source results.
- source_
ciphertext_ strblob - The ciphertext data to be re-encrypted, Base64 encoded.
- new_
encryption_ strcontext - The new encryption context JSON string of key/value pairs.
- new_
key_ strid - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- new_
key_ strname - The new key name.
- new_
keyring_ strname - The new keyring name.
- old_
encryption_ strcontext - The old encryption context JSON string of key/value pairs.
- output_
file str - File name where to save data source results.
- source
Ciphertext StringBlob - The ciphertext data to be re-encrypted, Base64 encoded.
- new
Encryption StringContext - The new encryption context JSON string of key/value pairs.
- new
Key StringId - The new key id. When new_key_id is not specified, both new_keyring_name and new_key_name must be specified.
- new
Key StringName - The new key name.
- new
Keyring StringName - The new keyring name.
- old
Encryption StringContext - The old encryption context JSON string of key/value pairs.
- output
File String - File name where to save data source results.
ReEncrypts Result
The following output properties are available:
- Ciphertext
Infos List<ReEncrypts Ciphertext Info> - The information about the ciphertext.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Ciphertext stringBlob - Total
Count int - The total count of query.
- New
Encryption stringContext - New
Key stringId - New
Key stringName - New
Keyring stringName - Old
Encryption stringContext - Output
File string
- Ciphertext
Infos []ReEncrypts Ciphertext Info - The information about the ciphertext.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Ciphertext stringBlob - Total
Count int - The total count of query.
- New
Encryption stringContext - New
Key stringId - New
Key stringName - New
Keyring stringName - Old
Encryption stringContext - Output
File string
- ciphertext
Infos List<ReEncrypts Ciphertext Info> - The information about the ciphertext.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Ciphertext StringBlob - total
Count Integer - The total count of query.
- new
Encryption StringContext - new
Key StringId - new
Key StringName - new
Keyring StringName - old
Encryption StringContext - output
File String
- ciphertext
Infos ReEncrypts Ciphertext Info[] - The information about the ciphertext.
- id string
- The provider-assigned unique ID for this managed resource.
- source
Ciphertext stringBlob - total
Count number - The total count of query.
- new
Encryption stringContext - new
Key stringId - new
Key stringName - new
Keyring stringName - old
Encryption stringContext - output
File string
- ciphertext_
infos Sequence[ReEncrypts Ciphertext Info] - The information about the ciphertext.
- id str
- The provider-assigned unique ID for this managed resource.
- source_
ciphertext_ strblob - total_
count int - The total count of query.
- new_
encryption_ strcontext - new_
key_ strid - new_
key_ strname - new_
keyring_ strname - old_
encryption_ strcontext - output_
file str
- ciphertext
Infos List<Property Map> - The information about the ciphertext.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Ciphertext StringBlob - total
Count Number - The total count of query.
- new
Encryption StringContext - new
Key StringId - new
Key StringName - new
Keyring StringName - old
Encryption StringContext - output
File String
Supporting Types
ReEncryptsCiphertextInfo
- Ciphertext
Blob string - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
- Ciphertext
Blob string - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
- ciphertext
Blob String - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
- ciphertext
Blob string - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
- ciphertext_
blob str - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
- ciphertext
Blob String - The re-encrypted ciphertext, Base64 encoded. The data gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.ReEncryptresource.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
