1. Packages
  2. Sumologic Provider
  3. API Docs
  4. App
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

sumologic.App

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

    Provides a Sumologic_App.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const exampleApp = new sumologic.App("example_app", {
        uuid: "ceb7fac5-1127-4a04-a5b8-2e49190be3d5",
        version: "1.0.1",
        parameters: {
            k1: "v1",
            k2: "v2",
        },
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    example_app = sumologic.App("example_app",
        uuid="ceb7fac5-1127-4a04-a5b8-2e49190be3d5",
        version="1.0.1",
        parameters={
            "k1": "v1",
            "k2": "v2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewApp(ctx, "example_app", &sumologic.AppArgs{
    			Uuid:    pulumi.String("ceb7fac5-1127-4a04-a5b8-2e49190be3d5"),
    			Version: pulumi.String("1.0.1"),
    			Parameters: pulumi.StringMap{
    				"k1": pulumi.String("v1"),
    				"k2": pulumi.String("v2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleApp = new SumoLogic.App("example_app", new()
        {
            Uuid = "ceb7fac5-1127-4a04-a5b8-2e49190be3d5",
            Version = "1.0.1",
            Parameters = 
            {
                { "k1", "v1" },
                { "k2", "v2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.App;
    import com.pulumi.sumologic.AppArgs;
    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 exampleApp = new App("exampleApp", AppArgs.builder()
                .uuid("ceb7fac5-1127-4a04-a5b8-2e49190be3d5")
                .version("1.0.1")
                .parameters(Map.ofEntries(
                    Map.entry("k1", "v1"),
                    Map.entry("k2", "v2")
                ))
                .build());
    
        }
    }
    
    resources:
      exampleApp:
        type: sumologic:App
        name: example_app
        properties:
          uuid: ceb7fac5-1127-4a04-a5b8-2e49190be3d5
          version: 1.0.1
          parameters:
            k1: v1
            k2: v2
    

    Create App Resource

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

    Constructor syntax

    new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
    @overload
    def App(resource_name: str,
            args: AppArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def App(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            uuid: Optional[str] = None,
            version: Optional[str] = None,
            parameters: Optional[Mapping[str, str]] = None)
    func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
    public App(string name, AppArgs args, CustomResourceOptions? opts = null)
    public App(String name, AppArgs args)
    public App(String name, AppArgs args, CustomResourceOptions options)
    
    type: sumologic:App
    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 AppArgs
    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 AppArgs
    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 AppArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppArgs
    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 appResource = new SumoLogic.App("appResource", new()
    {
        Uuid = "string",
        Version = "string",
        Parameters = 
        {
            { "string", "string" },
        },
    });
    
    example, err := sumologic.NewApp(ctx, "appResource", &sumologic.AppArgs{
    	Uuid:    pulumi.String("string"),
    	Version: pulumi.String("string"),
    	Parameters: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var appResource = new App("appResource", AppArgs.builder()
        .uuid("string")
        .version("string")
        .parameters(Map.of("string", "string"))
        .build());
    
    app_resource = sumologic.App("appResource",
        uuid="string",
        version="string",
        parameters={
            "string": "string",
        })
    
    const appResource = new sumologic.App("appResource", {
        uuid: "string",
        version: "string",
        parameters: {
            string: "string",
        },
    });
    
    type: sumologic:App
    properties:
        parameters:
            string: string
        uuid: string
        version: string
    

    App 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 App resource accepts the following input properties:

    Uuid string
    UUID of the app to install/uninstall/upgrade.
    Version string
    Version of the app to install.
    Parameters Dictionary<string, string>
    Map of additional parameters for the app installation.
    Uuid string
    UUID of the app to install/uninstall/upgrade.
    Version string
    Version of the app to install.
    Parameters map[string]string
    Map of additional parameters for the app installation.
    uuid String
    UUID of the app to install/uninstall/upgrade.
    version String
    Version of the app to install.
    parameters Map<String,String>
    Map of additional parameters for the app installation.
    uuid string
    UUID of the app to install/uninstall/upgrade.
    version string
    Version of the app to install.
    parameters {[key: string]: string}
    Map of additional parameters for the app installation.
    uuid str
    UUID of the app to install/uninstall/upgrade.
    version str
    Version of the app to install.
    parameters Mapping[str, str]
    Map of additional parameters for the app installation.
    uuid String
    UUID of the app to install/uninstall/upgrade.
    version String
    Version of the app to install.
    parameters Map<String>
    Map of additional parameters for the app installation.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the App 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 App Resource

    Get an existing App 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?: AppState, opts?: CustomResourceOptions): App
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            parameters: Optional[Mapping[str, str]] = None,
            uuid: Optional[str] = None,
            version: Optional[str] = None) -> App
    func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
    public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
    public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Parameters Dictionary<string, string>
    Map of additional parameters for the app installation.
    Uuid string
    UUID of the app to install/uninstall/upgrade.
    Version string
    Version of the app to install.
    Parameters map[string]string
    Map of additional parameters for the app installation.
    Uuid string
    UUID of the app to install/uninstall/upgrade.
    Version string
    Version of the app to install.
    parameters Map<String,String>
    Map of additional parameters for the app installation.
    uuid String
    UUID of the app to install/uninstall/upgrade.
    version String
    Version of the app to install.
    parameters {[key: string]: string}
    Map of additional parameters for the app installation.
    uuid string
    UUID of the app to install/uninstall/upgrade.
    version string
    Version of the app to install.
    parameters Mapping[str, str]
    Map of additional parameters for the app installation.
    uuid str
    UUID of the app to install/uninstall/upgrade.
    version str
    Version of the app to install.
    parameters Map<String>
    Map of additional parameters for the app installation.
    uuid String
    UUID of the app to install/uninstall/upgrade.
    version String
    Version of the app to install.

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi