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
LookupCiphertextin the Go SDK.
public static class GetCiphertext {
public static Task<GetCiphertextResult> InvokeAsync(GetCiphertextArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- Encryption
Context 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.
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- Encryption
Context 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.
- key
Id string The globally unique ID of the CMK.
- plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- encryption
Context {[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:
- Ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Id string - Plaintext string
- Encryption
Context Dictionary<string, string>
- Ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Id string - Plaintext string
- Encryption
Context map[string]string
- ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- id string
The provider-assigned unique ID for this managed resource.
- key
Id string - plaintext string
- encryption
Context {[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
alicloudTerraform Provider.