GetCiphertext

Using GetCiphertext

function getCiphertext(args: GetCiphertextArgs, opts?: InvokeOptions): Promise<GetCiphertextResult>
function  get_ciphertext(encryption_context=None, key_id=None, plaintext=None, opts=None)
func LookupCiphertext(ctx *Context, args *LookupCiphertextArgs, opts ...InvokeOption) (*LookupCiphertextResult, error)

Note: This function is named LookupCiphertext in the Go SDK.

public static class GetCiphertext {
    public static Task<GetCiphertextResult> InvokeAsync(GetCiphertextArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

EncryptionContext Dictionary<string, string>

- (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

EncryptionContext map[string]string

- (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

keyId string

The globally unique ID of the CMK.

plaintext string

The plaintext to be encrypted which must be encoded in Base64.

encryptionContext {[key: string]: string}

- (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

key_id str

The globally unique ID of the CMK.

plaintext str

The plaintext to be encrypted which must be encoded in Base64.

encryption_context Dict[str, str]

- (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

GetCiphertext Result

The following output properties are available:

CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

Id string

The provider-assigned unique ID for this managed resource.

KeyId string
Plaintext string
EncryptionContext Dictionary<string, string>
CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

Id string

The provider-assigned unique ID for this managed resource.

KeyId string
Plaintext string
EncryptionContext map[string]string
ciphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

id string

The provider-assigned unique ID for this managed resource.

keyId string
plaintext string
encryptionContext {[key: string]: string}
ciphertext_blob str

The ciphertext of the data key encrypted with the primary CMK version.

id str

The provider-assigned unique ID for this managed resource.

key_id str
plaintext str
encryption_context Dict[str, str]

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.