1. Packages
  2. Coralogix Provider
  3. API Docs
  4. DataSet
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.DataSet

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    import * as fs from "fs";
    
    const dataSet = new coralogix.DataSet("dataSet", {
        description: "description",
        fileContent: fs.readFileSync("./date-to-day-of-the-week.csv", "utf8"),
    });
    const dataSet2 = new coralogix.DataSet("dataSet2", {
        description: "description",
        uploadedFile: {
            path: "./date-to-day-of-the-week.csv",
        },
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    data_set = coralogix.DataSet("dataSet",
        description="description",
        file_content=(lambda path: open(path).read())("./date-to-day-of-the-week.csv"))
    data_set2 = coralogix.DataSet("dataSet2",
        description="description",
        uploaded_file={
            "path": "./date-to-day-of-the-week.csv",
        })
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := coralogix.NewDataSet(ctx, "dataSet", &coralogix.DataSetArgs{
    			Description: pulumi.String("description"),
    			FileContent: pulumi.String(readFileOrPanic("./date-to-day-of-the-week.csv")),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = coralogix.NewDataSet(ctx, "dataSet2", &coralogix.DataSetArgs{
    			Description: pulumi.String("description"),
    			UploadedFile: &coralogix.DataSetUploadedFileArgs{
    				Path: pulumi.String("./date-to-day-of-the-week.csv"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var dataSet = new Coralogix.DataSet("dataSet", new()
        {
            Description = "description",
            FileContent = File.ReadAllText("./date-to-day-of-the-week.csv"),
        });
    
        var dataSet2 = new Coralogix.DataSet("dataSet2", new()
        {
            Description = "description",
            UploadedFile = new Coralogix.Inputs.DataSetUploadedFileArgs
            {
                Path = "./date-to-day-of-the-week.csv",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.DataSet;
    import com.pulumi.coralogix.DataSetArgs;
    import com.pulumi.coralogix.inputs.DataSetUploadedFileArgs;
    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 dataSet = new DataSet("dataSet", DataSetArgs.builder()
                .description("description")
                .fileContent(Files.readString(Paths.get("./date-to-day-of-the-week.csv")))
                .build());
    
            var dataSet2 = new DataSet("dataSet2", DataSetArgs.builder()
                .description("description")
                .uploadedFile(DataSetUploadedFileArgs.builder()
                    .path("./date-to-day-of-the-week.csv")
                    .build())
                .build());
    
        }
    }
    
    resources:
      dataSet:
        type: coralogix:DataSet
        properties:
          description: description
          fileContent:
            fn::readFile: ./date-to-day-of-the-week.csv
      dataSet2:
        type: coralogix:DataSet
        properties:
          description: description
          uploadedFile:
            path: ./date-to-day-of-the-week.csv
    

    Create DataSet Resource

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

    Constructor syntax

    new DataSet(name: string, args?: DataSetArgs, opts?: CustomResourceOptions);
    @overload
    def DataSet(resource_name: str,
                args: Optional[DataSetArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataSet(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                data_set_id: Optional[str] = None,
                description: Optional[str] = None,
                file_content: Optional[str] = None,
                name: Optional[str] = None,
                timeouts: Optional[DataSetTimeoutsArgs] = None,
                uploaded_file: Optional[DataSetUploadedFileArgs] = None)
    func NewDataSet(ctx *Context, name string, args *DataSetArgs, opts ...ResourceOption) (*DataSet, error)
    public DataSet(string name, DataSetArgs? args = null, CustomResourceOptions? opts = null)
    public DataSet(String name, DataSetArgs args)
    public DataSet(String name, DataSetArgs args, CustomResourceOptions options)
    
    type: coralogix:DataSet
    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 DataSetArgs
    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 DataSetArgs
    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 DataSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataSetArgs
    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 dataSetResource = new Coralogix.DataSet("dataSetResource", new()
    {
        DataSetId = "string",
        Description = "string",
        FileContent = "string",
        Name = "string",
        Timeouts = new Coralogix.Inputs.DataSetTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
        UploadedFile = new Coralogix.Inputs.DataSetUploadedFileArgs
        {
            Path = "string",
            ModificationTimeUploaded = "string",
            UpdatedFromUploading = false,
        },
    });
    
    example, err := coralogix.NewDataSet(ctx, "dataSetResource", &coralogix.DataSetArgs{
    	DataSetId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	FileContent: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Timeouts: &coralogix.DataSetTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UploadedFile: &coralogix.DataSetUploadedFileArgs{
    		Path:                     pulumi.String("string"),
    		ModificationTimeUploaded: pulumi.String("string"),
    		UpdatedFromUploading:     pulumi.Bool(false),
    	},
    })
    
    var dataSetResource = new DataSet("dataSetResource", DataSetArgs.builder()
        .dataSetId("string")
        .description("string")
        .fileContent("string")
        .name("string")
        .timeouts(DataSetTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .uploadedFile(DataSetUploadedFileArgs.builder()
            .path("string")
            .modificationTimeUploaded("string")
            .updatedFromUploading(false)
            .build())
        .build());
    
    data_set_resource = coralogix.DataSet("dataSetResource",
        data_set_id="string",
        description="string",
        file_content="string",
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        },
        uploaded_file={
            "path": "string",
            "modification_time_uploaded": "string",
            "updated_from_uploading": False,
        })
    
    const dataSetResource = new coralogix.DataSet("dataSetResource", {
        dataSetId: "string",
        description: "string",
        fileContent: "string",
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
        uploadedFile: {
            path: "string",
            modificationTimeUploaded: "string",
            updatedFromUploading: false,
        },
    });
    
    type: coralogix:DataSet
    properties:
        dataSetId: string
        description: string
        fileContent: string
        name: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
        uploadedFile:
            modificationTimeUploaded: string
            path: string
            updatedFromUploading: false
    

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

    dataSetId String
    The ID of this resource.
    description String
    fileContent String
    name String
    timeouts Property Map
    uploadedFile Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Version double
    Id string
    The provider-assigned unique ID for this managed resource.
    Version float64
    id String
    The provider-assigned unique ID for this managed resource.
    version Double
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    id str
    The provider-assigned unique ID for this managed resource.
    version float
    id String
    The provider-assigned unique ID for this managed resource.
    version Number

    Look up Existing DataSet Resource

    Get an existing DataSet 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?: DataSetState, opts?: CustomResourceOptions): DataSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_set_id: Optional[str] = None,
            description: Optional[str] = None,
            file_content: Optional[str] = None,
            name: Optional[str] = None,
            timeouts: Optional[DataSetTimeoutsArgs] = None,
            uploaded_file: Optional[DataSetUploadedFileArgs] = None,
            version: Optional[float] = None) -> DataSet
    func GetDataSet(ctx *Context, name string, id IDInput, state *DataSetState, opts ...ResourceOption) (*DataSet, error)
    public static DataSet Get(string name, Input<string> id, DataSetState? state, CustomResourceOptions? opts = null)
    public static DataSet get(String name, Output<String> id, DataSetState state, CustomResourceOptions options)
    resources:  _:    type: coralogix:DataSet    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:
    dataSetId String
    The ID of this resource.
    description String
    fileContent String
    name String
    timeouts Property Map
    uploadedFile Property Map
    version Number

    Supporting Types

    DataSetTimeouts, DataSetTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    DataSetUploadedFile, DataSetUploadedFileArgs

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix