coralogix.DataSet
Explore with Pulumi AI
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: &.DataSetTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
UploadedFile: &.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:
- DataSet stringId 
- The ID of this resource.
- Description string
- FileContent string
- Name string
- Timeouts
DataSet Timeouts 
- UploadedFile DataSet Uploaded File 
- DataSet stringId 
- The ID of this resource.
- Description string
- FileContent string
- Name string
- Timeouts
DataSet Timeouts Args 
- UploadedFile DataSet Uploaded File Args 
- dataSet StringId 
- The ID of this resource.
- description String
- fileContent String
- name String
- timeouts
DataSet Timeouts 
- uploadedFile DataSet Uploaded File 
- dataSet stringId 
- The ID of this resource.
- description string
- fileContent string
- name string
- timeouts
DataSet Timeouts 
- uploadedFile DataSet Uploaded File 
- data_set_ strid 
- The ID of this resource.
- description str
- file_content str
- name str
- timeouts
DataSet Timeouts Args 
- uploaded_file DataSet Uploaded File Args 
- dataSet StringId 
- 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:
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) -> DataSetfunc 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.
- DataSet stringId 
- The ID of this resource.
- Description string
- FileContent string
- Name string
- Timeouts
DataSet Timeouts 
- UploadedFile DataSet Uploaded File 
- Version double
- DataSet stringId 
- The ID of this resource.
- Description string
- FileContent string
- Name string
- Timeouts
DataSet Timeouts Args 
- UploadedFile DataSet Uploaded File Args 
- Version float64
- dataSet StringId 
- The ID of this resource.
- description String
- fileContent String
- name String
- timeouts
DataSet Timeouts 
- uploadedFile DataSet Uploaded File 
- version Double
- dataSet stringId 
- The ID of this resource.
- description string
- fileContent string
- name string
- timeouts
DataSet Timeouts 
- uploadedFile DataSet Uploaded File 
- version number
- data_set_ strid 
- The ID of this resource.
- description str
- file_content str
- name str
- timeouts
DataSet Timeouts Args 
- uploaded_file DataSet Uploaded File Args 
- version float
- dataSet StringId 
- The ID of this resource.
- description String
- fileContent String
- name String
- timeouts Property Map
- uploadedFile Property Map
- version Number
Supporting Types
DataSetTimeouts, DataSetTimeoutsArgs      
DataSetUploadedFile, DataSetUploadedFileArgs        
- Path string
- ModificationTime stringUploaded 
- UpdatedFrom boolUploading 
- Path string
- ModificationTime stringUploaded 
- UpdatedFrom boolUploading 
- path String
- modificationTime StringUploaded 
- updatedFrom BooleanUploading 
- path string
- modificationTime stringUploaded 
- updatedFrom booleanUploading 
- path str
- modification_time_ struploaded 
- updated_from_ booluploading 
- path String
- modificationTime StringUploaded 
- updatedFrom BooleanUploading 
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the coralogixTerraform Provider.