Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs
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
published on Tuesday, Oct 27, 2026 by vk-cs
Data source containing list of KMS keys
This data source has no configurable arguments. keys and keys_count are computed when the data source is read.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const keys = vkcs.getKmsKeys({});
export const kmsKeys = keys.then(keys => keys.keys);
import pulumi
import pulumi_vkcs as vkcs
keys = vkcs.get_kms_keys()
pulumi.export("kmsKeys", keys.keys)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
keys, err := vkcs.GetKmsKeys(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("kmsKeys", keys.Keys)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var keys = Vkcs.GetKmsKeys.Invoke();
return new Dictionary<string, object?>
{
["kmsKeys"] = keys.Apply(getKmsKeysResult => getKmsKeysResult.Keys),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
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) {
final var keys = VkcsFunctions.getKmsKeys(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
ctx.export("kmsKeys", keys.keys());
}
}
variables:
keys:
fn::invoke:
function: vkcs:getKmsKeys
arguments: {}
outputs:
kmsKeys: ${keys.keys}
Example coming soon!
Using getKmsKeys
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 getKmsKeys(opts?: InvokeOptions): Promise<GetKmsKeysResult>
function getKmsKeysOutput(opts?: InvokeOutputOptions): Output<GetKmsKeysResult>def get_kms_keys(opts: Optional[InvokeOptions] = None) -> GetKmsKeysResult
def get_kms_keys_output(opts: Optional[InvokeOutputOptions] = None) -> Output[GetKmsKeysResult]func GetKmsKeys(ctx *Context, opts ...InvokeOption) (*GetKmsKeysResult, error)
func GetKmsKeysOutput(ctx *Context, opts ...InvokeOption) GetKmsKeysResultOutput> Note: This function is named GetKmsKeys in the Go SDK.
public static class GetKmsKeys
{
public static Task<GetKmsKeysResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetKmsKeysResult> Invoke(InvokeOptions? opts = null)
public static Output<GetKmsKeysResult> Invoke(InvokeOutputOptions opts)
}public static CompletableFuture<GetKmsKeysResult> getKmsKeys(InvokeOptions options)
public static Output<GetKmsKeysResult> getKmsKeys(InvokeOptions options)
public static Output<GetKmsKeysResult> getKmsKeys(InvokeOutputOptions options)
fn::invoke:
function: vkcs:index/getKmsKeys:getKmsKeys
arguments:
# arguments dictionarydata "vkcs_get_kms_keys" "name" {
# arguments
}getKmsKeys Result
The following output properties are available:
- Id string
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- Keys List<string>
- list of string → Names of the KMS keys. An empty response produces an empty list.
- Keys
Count double - number → Number of keys in the returned list.
- Id string
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- Keys []string
- list of string → Names of the KMS keys. An empty response produces an empty list.
- Keys
Count float64 - number → Number of keys in the returned list.
- id string
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- keys list(string)
- list of string → Names of the KMS keys. An empty response produces an empty list.
- keys_
count number - number → Number of keys in the returned list.
- id String
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- keys List<String>
- list of string → Names of the KMS keys. An empty response produces an empty list.
- keys
Count Double - number → Number of keys in the returned list.
- id string
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- keys string[]
- list of string → Names of the KMS keys. An empty response produces an empty list.
- keys
Count number - number → Number of keys in the returned list.
- id str
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- keys Sequence[str]
- list of string → Names of the KMS keys. An empty response produces an empty list.
- keys_
count float - number → Number of keys in the returned list.
- id String
- string → Hexadecimal SHA-256 hash derived from the first ten returned entries (or all entries if fewer than ten) and the total entry count.
- keys List<String>
- list of string → Names of the KMS keys. An empty response produces an empty list.
- keys
Count Number - number → Number of keys in the returned list.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcsTerraform Provider.
vkcs
Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs
published on Tuesday, Oct 27, 2026 by vk-cs