1. Packages
  2. Cloudfoundry Provider
  3. API Docs
  4. Evg
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

cloudfoundry.Evg

Explore with Pulumi AI

cloudfoundry logo
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

    Example Usage

    The example below shows how to add environment variables to the running environment variable group.

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const running = new cloudfoundry.Evg("running", {variables: {
        name1: "value1",
        name2: "value2",
        name3: "value3",
        name4: "value4",
    }});
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    running = cloudfoundry.Evg("running", variables={
        "name1": "value1",
        "name2": "value2",
        "name3": "value3",
        "name4": "value4",
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfoundry.NewEvg(ctx, "running", &cloudfoundry.EvgArgs{
    			Variables: pulumi.StringMap{
    				"name1": pulumi.String("value1"),
    				"name2": pulumi.String("value2"),
    				"name3": pulumi.String("value3"),
    				"name4": pulumi.String("value4"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var running = new Cloudfoundry.Evg("running", new()
        {
            Variables = 
            {
                { "name1", "value1" },
                { "name2", "value2" },
                { "name3", "value3" },
                { "name4", "value4" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.Evg;
    import com.pulumi.cloudfoundry.EvgArgs;
    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 running = new Evg("running", EvgArgs.builder()
                .variables(Map.ofEntries(
                    Map.entry("name1", "value1"),
                    Map.entry("name2", "value2"),
                    Map.entry("name3", "value3"),
                    Map.entry("name4", "value4")
                ))
                .build());
    
        }
    }
    
    resources:
      running:
        type: cloudfoundry:Evg
        properties:
          variables:
            name1: value1
            name2: value2
            name3: value3
            name4: value4
    

    Create Evg Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Evg(name: string, args: EvgArgs, opts?: CustomResourceOptions);
    @overload
    def Evg(resource_name: str,
            args: EvgArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Evg(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            variables: Optional[Mapping[str, str]] = None,
            evg_id: Optional[str] = None,
            name: Optional[str] = None)
    func NewEvg(ctx *Context, name string, args EvgArgs, opts ...ResourceOption) (*Evg, error)
    public Evg(string name, EvgArgs args, CustomResourceOptions? opts = null)
    public Evg(String name, EvgArgs args)
    public Evg(String name, EvgArgs args, CustomResourceOptions options)
    
    type: cloudfoundry:Evg
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EvgArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EvgArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EvgArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EvgArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EvgArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var evgResource = new Cloudfoundry.Evg("evgResource", new()
    {
        Variables = 
        {
            { "string", "string" },
        },
        EvgId = "string",
        Name = "string",
    });
    
    example, err := cloudfoundry.NewEvg(ctx, "evgResource", &cloudfoundry.EvgArgs{
    	Variables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	EvgId: pulumi.String("string"),
    	Name:  pulumi.String("string"),
    })
    
    var evgResource = new Evg("evgResource", EvgArgs.builder()
        .variables(Map.of("string", "string"))
        .evgId("string")
        .name("string")
        .build());
    
    evg_resource = cloudfoundry.Evg("evgResource",
        variables={
            "string": "string",
        },
        evg_id="string",
        name="string")
    
    const evgResource = new cloudfoundry.Evg("evgResource", {
        variables: {
            string: "string",
        },
        evgId: "string",
        name: "string",
    });
    
    type: cloudfoundry:Evg
    properties:
        evgId: string
        name: string
        variables:
            string: string
    

    Evg Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Evg resource accepts the following input properties:

    Variables Dictionary<string, string>
    A map of name-value pairs of environment variables
    EvgId string
    Name string
    Either running or staging to indicate the type of environment variable group to update
    Variables map[string]string
    A map of name-value pairs of environment variables
    EvgId string
    Name string
    Either running or staging to indicate the type of environment variable group to update
    variables Map<String,String>
    A map of name-value pairs of environment variables
    evgId String
    name String
    Either running or staging to indicate the type of environment variable group to update
    variables {[key: string]: string}
    A map of name-value pairs of environment variables
    evgId string
    name string
    Either running or staging to indicate the type of environment variable group to update
    variables Mapping[str, str]
    A map of name-value pairs of environment variables
    evg_id str
    name str
    Either running or staging to indicate the type of environment variable group to update
    variables Map<String>
    A map of name-value pairs of environment variables
    evgId String
    name String
    Either running or staging to indicate the type of environment variable group to update

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Evg resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Evg Resource

    Get an existing Evg resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EvgState, opts?: CustomResourceOptions): Evg
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            evg_id: Optional[str] = None,
            name: Optional[str] = None,
            variables: Optional[Mapping[str, str]] = None) -> Evg
    func GetEvg(ctx *Context, name string, id IDInput, state *EvgState, opts ...ResourceOption) (*Evg, error)
    public static Evg Get(string name, Input<string> id, EvgState? state, CustomResourceOptions? opts = null)
    public static Evg get(String name, Output<String> id, EvgState state, CustomResourceOptions options)
    resources:  _:    type: cloudfoundry:Evg    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    EvgId string
    Name string
    Either running or staging to indicate the type of environment variable group to update
    Variables Dictionary<string, string>
    A map of name-value pairs of environment variables
    EvgId string
    Name string
    Either running or staging to indicate the type of environment variable group to update
    Variables map[string]string
    A map of name-value pairs of environment variables
    evgId String
    name String
    Either running or staging to indicate the type of environment variable group to update
    variables Map<String,String>
    A map of name-value pairs of environment variables
    evgId string
    name string
    Either running or staging to indicate the type of environment variable group to update
    variables {[key: string]: string}
    A map of name-value pairs of environment variables
    evg_id str
    name str
    Either running or staging to indicate the type of environment variable group to update
    variables Mapping[str, str]
    A map of name-value pairs of environment variables
    evgId String
    name String
    Either running or staging to indicate the type of environment variable group to update
    variables Map<String>
    A map of name-value pairs of environment variables

    Import

    The current Evg can be imported using the evg name (either running or staging constant) e.g.

    bash

    $ pulumi import cloudfoundry:index/evg:Evg private <running/staging>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry logo
    cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community