Google Cloud v8.41.0 published on Friday, Aug 22, 2025 by Pulumi
gcp.kms.getAutokeyConfig
Explore with Pulumi AI
Provides access to Google Cloud Platform KMS AutokeyConfig. A AutokeyConfig is a Cloud KMS resource that helps you safely span the separation of duties to create new Cloud KMS keys for CMEK using Autokey.
For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myAutokeyConfig = gcp.kms.getAutokeyConfig({
folder: "folders/123",
});
import pulumi
import pulumi_gcp as gcp
my_autokey_config = gcp.kms.get_autokey_config(folder="folders/123")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kms.LookupAutokeyConfig(ctx, &kms.LookupAutokeyConfigArgs{
Folder: "folders/123",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myAutokeyConfig = Gcp.Kms.GetAutokeyConfig.Invoke(new()
{
Folder = "folders/123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.kms.KmsFunctions;
import com.pulumi.gcp.kms.inputs.GetAutokeyConfigArgs;
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 myAutokeyConfig = KmsFunctions.getAutokeyConfig(GetAutokeyConfigArgs.builder()
.folder("folders/123")
.build());
}
}
variables:
myAutokeyConfig:
fn::invoke:
function: gcp:kms:getAutokeyConfig
arguments:
folder: folders/123
Using getAutokeyConfig
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 getAutokeyConfig(args: GetAutokeyConfigArgs, opts?: InvokeOptions): Promise<GetAutokeyConfigResult>
function getAutokeyConfigOutput(args: GetAutokeyConfigOutputArgs, opts?: InvokeOptions): Output<GetAutokeyConfigResult>
def get_autokey_config(folder: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAutokeyConfigResult
def get_autokey_config_output(folder: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAutokeyConfigResult]
func LookupAutokeyConfig(ctx *Context, args *LookupAutokeyConfigArgs, opts ...InvokeOption) (*LookupAutokeyConfigResult, error)
func LookupAutokeyConfigOutput(ctx *Context, args *LookupAutokeyConfigOutputArgs, opts ...InvokeOption) LookupAutokeyConfigResultOutput
> Note: This function is named LookupAutokeyConfig
in the Go SDK.
public static class GetAutokeyConfig
{
public static Task<GetAutokeyConfigResult> InvokeAsync(GetAutokeyConfigArgs args, InvokeOptions? opts = null)
public static Output<GetAutokeyConfigResult> Invoke(GetAutokeyConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutokeyConfigResult> getAutokeyConfig(GetAutokeyConfigArgs args, InvokeOptions options)
public static Output<GetAutokeyConfigResult> getAutokeyConfig(GetAutokeyConfigArgs args, InvokeOptions options)
fn::invoke:
function: gcp:kms/getAutokeyConfig:getAutokeyConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Folder string
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
- Folder string
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
- folder String
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
- folder string
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
- folder str
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
- folder String
- The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
getAutokeyConfig Result
The following output properties are available:
- Etag string
- Folder string
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Project string - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
- Etag string
- Folder string
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Project string - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
- etag String
- folder String
- id String
- The provider-assigned unique ID for this managed resource.
- key
Project String - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
- etag string
- folder string
- id string
- The provider-assigned unique ID for this managed resource.
- key
Project string - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
- etag str
- folder str
- id str
- The provider-assigned unique ID for this managed resource.
- key_
project str - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
- etag String
- folder String
- id String
- The provider-assigned unique ID for this managed resource.
- key
Project String - The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is
projects/{projectId}
.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.