1. Registry
  2. Packages
  3. Vkcs Provider
  4. API Docs
  5. getKmsKeyEncrypt
Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs
vkcs
Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs

    Example Usage

    Using getKmsKeyEncrypt

    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 getKmsKeyEncrypt(args: GetKmsKeyEncryptArgs, opts?: InvokeOptions): Promise<GetKmsKeyEncryptResult>
    function getKmsKeyEncryptOutput(args: GetKmsKeyEncryptOutputArgs, opts?: InvokeOutputOptions): Output<GetKmsKeyEncryptResult>
    def get_kms_key_encrypt(key: Optional[str] = None,
                            plaintext: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetKmsKeyEncryptResult
    def get_kms_key_encrypt_output(key: pulumi.Input[Optional[str]] = None,
                            plaintext: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetKmsKeyEncryptResult]
    func GetKmsKeyEncrypt(ctx *Context, args *GetKmsKeyEncryptArgs, opts ...InvokeOption) (*GetKmsKeyEncryptResult, error)
    func GetKmsKeyEncryptOutput(ctx *Context, args *GetKmsKeyEncryptOutputArgs, opts ...InvokeOption) GetKmsKeyEncryptResultOutput

    > Note: This function is named GetKmsKeyEncrypt in the Go SDK.

    public static class GetKmsKeyEncrypt 
    {
        public static Task<GetKmsKeyEncryptResult> InvokeAsync(GetKmsKeyEncryptArgs args, InvokeOptions? opts = null)
        public static Output<GetKmsKeyEncryptResult> Invoke(GetKmsKeyEncryptInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetKmsKeyEncryptResult> Invoke(GetKmsKeyEncryptInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetKmsKeyEncryptResult> getKmsKeyEncrypt(GetKmsKeyEncryptArgs args, InvokeOptions options)
    public static Output<GetKmsKeyEncryptResult> getKmsKeyEncrypt(GetKmsKeyEncryptArgs args, InvokeOptions options)
    public static Output<GetKmsKeyEncryptResult> getKmsKeyEncrypt(GetKmsKeyEncryptArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: vkcs:index/getKmsKeyEncrypt:getKmsKeyEncrypt
      arguments:
        # arguments dictionary
    data "vkcs_get_kms_key_encrypt" "name" {
        # arguments
    }

    The following arguments are supported:

    Key string
    required string → Name of the KMS key used for encryption.
    Plaintext string
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    Key string
    required string → Name of the KMS key used for encryption.
    Plaintext string
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    key string
    required string → Name of the KMS key used for encryption.
    plaintext string
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    key String
    required string → Name of the KMS key used for encryption.
    plaintext String
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    key string
    required string → Name of the KMS key used for encryption.
    plaintext string
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    key str
    required string → Name of the KMS key used for encryption.
    plaintext str
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.
    key String
    required string → Name of the KMS key used for encryption.
    plaintext String
    required sensitive string → Data to encrypt, encoded in Base64. The provider does not encode this value automatically.

    getKmsKeyEncrypt Result

    The following output properties are available:

    Ciphertext string
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    Id string
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    Key string
    Plaintext string
    Ciphertext string
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    Id string
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    Key string
    Plaintext string
    ciphertext string
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    id string
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    key string
    plaintext string
    ciphertext String
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    id String
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    key String
    plaintext String
    ciphertext string
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    id string
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    key string
    plaintext string
    ciphertext str
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    id str
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    key str
    plaintext str
    ciphertext String
    string → Resulting encrypted data returned by KMS. This attribute is computed.
    id String
    string → Hexadecimal SHA-256 hash of the returned ciphertext.
    key String
    plaintext String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs
    Viewing docs for vkcs 0.19.0
    published on Tuesday, Oct 27, 2026 by vk-cs

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial