ConfigArgs

data class ConfigArgs(val description: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ConfigArgs>

Example Usage

Example creating a RuntimeConfig resource.

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_runtime_config = new gcp.runtimeconfig.Config("my-runtime-config", {
name: "my-service-runtime-config",
description: "Runtime configuration values for my service",
});
import pulumi
import pulumi_gcp as gcp
my_runtime_config = gcp.runtimeconfig.Config("my-runtime-config",
name="my-service-runtime-config",
description="Runtime configuration values for my service")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var my_runtime_config = new Gcp.RuntimeConfig.Config("my-runtime-config", new()
{
Name = "my-service-runtime-config",
Description = "Runtime configuration values for my service",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/runtimeconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := runtimeconfig.NewConfig(ctx, "my-runtime-config", &runtimeconfig.ConfigArgs{
Name: pulumi.String("my-service-runtime-config"),
Description: pulumi.String("Runtime configuration values for my service"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.runtimeconfig.Config;
import com.pulumi.gcp.runtimeconfig.ConfigArgs;
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) {
var my_runtime_config = new Config("my-runtime-config", ConfigArgs.builder()
.name("my-service-runtime-config")
.description("Runtime configuration values for my service")
.build());
}
}
resources:
my-runtime-config:
type: gcp:runtimeconfig:Config
properties:
name: my-service-runtime-config
description: Runtime configuration values for my service

Import

Runtime Configs can be imported using the name or full config name, e.g.

  • projects/{{project_id}}/configs/{{name}}

  • {{name}} When using the pulumi import command, Runtime Configs can be imported using one of the formats above. For example:

$ pulumi import gcp:runtimeconfig/config:Config default projects/{{project_id}}/configs/{{name}}
$ pulumi import gcp:runtimeconfig/config:Config default {{name}}

When importing using only the name, the provider project must be set.

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description to associate with the runtime config.

Link copied to clipboard
val name: Output<String>? = null

The name of the runtime config.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): ConfigArgs