1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. kms
  5. getAutokeyConfig
Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi

gcp.kms.getAutokeyConfig

Explore with Pulumi AI

gcp logo
Google Cloud v8.14.0 published on Wednesday, Jan 15, 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",
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    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:

    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.
    gcp logo
    Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi