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

coralogix.ArchiveLogs

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";
    
    const example = new coralogix.ArchiveLogs("example", {bucket: "coralogix-c4c-eu2-prometheus-data"});
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    example = coralogix.ArchiveLogs("example", bucket="coralogix-c4c-eu2-prometheus-data")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := coralogix.NewArchiveLogs(ctx, "example", &coralogix.ArchiveLogsArgs{
    			Bucket: pulumi.String("coralogix-c4c-eu2-prometheus-data"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Coralogix.ArchiveLogs("example", new()
        {
            Bucket = "coralogix-c4c-eu2-prometheus-data",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.ArchiveLogs;
    import com.pulumi.coralogix.ArchiveLogsArgs;
    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 example = new ArchiveLogs("example", ArchiveLogsArgs.builder()
                .bucket("coralogix-c4c-eu2-prometheus-data")
                .build());
    
        }
    }
    
    resources:
      example:
        type: coralogix:ArchiveLogs
        properties:
          bucket: coralogix-c4c-eu2-prometheus-data
    

    Create ArchiveLogs Resource

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

    Constructor syntax

    new ArchiveLogs(name: string, args: ArchiveLogsArgs, opts?: CustomResourceOptions);
    @overload
    def ArchiveLogs(resource_name: str,
                    args: ArchiveLogsArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ArchiveLogs(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    bucket: Optional[str] = None,
                    active: Optional[bool] = None,
                    region: Optional[str] = None)
    func NewArchiveLogs(ctx *Context, name string, args ArchiveLogsArgs, opts ...ResourceOption) (*ArchiveLogs, error)
    public ArchiveLogs(string name, ArchiveLogsArgs args, CustomResourceOptions? opts = null)
    public ArchiveLogs(String name, ArchiveLogsArgs args)
    public ArchiveLogs(String name, ArchiveLogsArgs args, CustomResourceOptions options)
    
    type: coralogix:ArchiveLogs
    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 ArchiveLogsArgs
    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 ArchiveLogsArgs
    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 ArchiveLogsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ArchiveLogsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ArchiveLogsArgs
    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 archiveLogsResource = new Coralogix.ArchiveLogs("archiveLogsResource", new()
    {
        Bucket = "string",
        Active = false,
        Region = "string",
    });
    
    example, err := coralogix.NewArchiveLogs(ctx, "archiveLogsResource", &coralogix.ArchiveLogsArgs{
    	Bucket: pulumi.String("string"),
    	Active: pulumi.Bool(false),
    	Region: pulumi.String("string"),
    })
    
    var archiveLogsResource = new ArchiveLogs("archiveLogsResource", ArchiveLogsArgs.builder()
        .bucket("string")
        .active(false)
        .region("string")
        .build());
    
    archive_logs_resource = coralogix.ArchiveLogs("archiveLogsResource",
        bucket="string",
        active=False,
        region="string")
    
    const archiveLogsResource = new coralogix.ArchiveLogs("archiveLogsResource", {
        bucket: "string",
        active: false,
        region: "string",
    });
    
    type: coralogix:ArchiveLogs
    properties:
        active: false
        bucket: string
        region: string
    

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

    Bucket string
    The bucket name to store the archived logs in.
    Active bool
    Region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    Bucket string
    The bucket name to store the archived logs in.
    Active bool
    Region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    bucket String
    The bucket name to store the archived logs in.
    active Boolean
    region String
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    bucket string
    The bucket name to store the archived logs in.
    active boolean
    region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    bucket str
    The bucket name to store the archived logs in.
    active bool
    region str
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    bucket String
    The bucket name to store the archived logs in.
    active Boolean
    region String
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions

    Outputs

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

    ArchivingFormatId string
    EnableTags bool
    Id string
    The provider-assigned unique ID for this managed resource.
    ArchivingFormatId string
    EnableTags bool
    Id string
    The provider-assigned unique ID for this managed resource.
    archivingFormatId String
    enableTags Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    archivingFormatId string
    enableTags boolean
    id string
    The provider-assigned unique ID for this managed resource.
    archiving_format_id str
    enable_tags bool
    id str
    The provider-assigned unique ID for this managed resource.
    archivingFormatId String
    enableTags Boolean
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ArchiveLogs Resource

    Get an existing ArchiveLogs 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?: ArchiveLogsState, opts?: CustomResourceOptions): ArchiveLogs
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            archiving_format_id: Optional[str] = None,
            bucket: Optional[str] = None,
            enable_tags: Optional[bool] = None,
            region: Optional[str] = None) -> ArchiveLogs
    func GetArchiveLogs(ctx *Context, name string, id IDInput, state *ArchiveLogsState, opts ...ResourceOption) (*ArchiveLogs, error)
    public static ArchiveLogs Get(string name, Input<string> id, ArchiveLogsState? state, CustomResourceOptions? opts = null)
    public static ArchiveLogs get(String name, Output<String> id, ArchiveLogsState state, CustomResourceOptions options)
    resources:  _:    type: coralogix:ArchiveLogs    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:
    Active bool
    ArchivingFormatId string
    Bucket string
    The bucket name to store the archived logs in.
    EnableTags bool
    Region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    Active bool
    ArchivingFormatId string
    Bucket string
    The bucket name to store the archived logs in.
    EnableTags bool
    Region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    active Boolean
    archivingFormatId String
    bucket String
    The bucket name to store the archived logs in.
    enableTags Boolean
    region String
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    active boolean
    archivingFormatId string
    bucket string
    The bucket name to store the archived logs in.
    enableTags boolean
    region string
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    active bool
    archiving_format_id str
    bucket str
    The bucket name to store the archived logs in.
    enable_tags bool
    region str
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions
    active Boolean
    archivingFormatId String
    bucket String
    The bucket name to store the archived logs in.
    enableTags Boolean
    region String
    The bucket region. see - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions

    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