1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. kms
  5. getAutokeyConfig
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.kms.getAutokeyConfig

Explore with Pulumi AI

Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const myAutokeyConfig = gcp.kms.getAutokeyConfig({
    folder: "folders/123",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_autokey_config = gcp.kms.get_autokey_config(folder="folders/123")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  myAutokeyConfig:
    fn::invoke:
      function: gcp:kms:getAutokeyConfig
      arguments:
        folder: folders/123
Copy

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>
Copy
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]
Copy
func LookupAutokeyConfig(ctx *Context, args *LookupAutokeyConfigArgs, opts ...InvokeOption) (*LookupAutokeyConfigResult, error)
func LookupAutokeyConfigOutput(ctx *Context, args *LookupAutokeyConfigOutputArgs, opts ...InvokeOption) LookupAutokeyConfigResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAutokeyConfigResult> getAutokeyConfig(GetAutokeyConfigArgs args, InvokeOptions options)
public static Output<GetAutokeyConfigResult> getAutokeyConfig(GetAutokeyConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:kms/getAutokeyConfig:getAutokeyConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Folder This property is required. string
The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
Folder This property is required. string
The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
folder This property is required. String
The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
folder This property is required. string
The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
folder This property is required. str
The folder in which the AutokeyConfig is configured. If it is not provided, the provider folder is used.
folder This property is required. 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:

Folder string
Id string
The provider-assigned unique ID for this managed resource.
KeyProject string
The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is projects/{projectId}.
Folder string
Id string
The provider-assigned unique ID for this managed resource.
KeyProject string
The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is projects/{projectId}.
folder String
id String
The provider-assigned unique ID for this managed resource.
keyProject String
The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is projects/{projectId}.
folder string
id string
The provider-assigned unique ID for this managed resource.
keyProject string
The identifier of the project hosting KMS KeyRings and Keys generated by Autokey. Its format is projects/{projectId}.
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}.
folder String
id String
The provider-assigned unique ID for this managed resource.
keyProject 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.
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi