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

coralogix.ArchiveRetentions

Explore with Pulumi AI

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

    Coralogix archive-retention. For more info please review - https://coralogix.com/docs/archive-setup-grpc-api/.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const example = new coralogix.ArchiveRetentions("example", {retentions: [
        {},
        {
            name: "name_2",
        },
        {
            name: "name_3",
        },
        {
            name: "name_4",
        },
    ]});
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    example = coralogix.ArchiveRetentions("example", retentions=[
        {},
        {
            "name": "name_2",
        },
        {
            "name": "name_3",
        },
        {
            "name": "name_4",
        },
    ])
    
    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.NewArchiveRetentions(ctx, "example", &coralogix.ArchiveRetentionsArgs{
    			Retentions: coralogix.ArchiveRetentionsRetentionArray{
    				&coralogix.ArchiveRetentionsRetentionArgs{},
    				&coralogix.ArchiveRetentionsRetentionArgs{
    					Name: pulumi.String("name_2"),
    				},
    				&coralogix.ArchiveRetentionsRetentionArgs{
    					Name: pulumi.String("name_3"),
    				},
    				&coralogix.ArchiveRetentionsRetentionArgs{
    					Name: pulumi.String("name_4"),
    				},
    			},
    		})
    		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.ArchiveRetentions("example", new()
        {
            Retentions = new[]
            {
                null,
                new Coralogix.Inputs.ArchiveRetentionsRetentionArgs
                {
                    Name = "name_2",
                },
                new Coralogix.Inputs.ArchiveRetentionsRetentionArgs
                {
                    Name = "name_3",
                },
                new Coralogix.Inputs.ArchiveRetentionsRetentionArgs
                {
                    Name = "name_4",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.ArchiveRetentions;
    import com.pulumi.coralogix.ArchiveRetentionsArgs;
    import com.pulumi.coralogix.inputs.ArchiveRetentionsRetentionArgs;
    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 ArchiveRetentions("example", ArchiveRetentionsArgs.builder()
                .retentions(            
                    ,
                    ArchiveRetentionsRetentionArgs.builder()
                        .name("name_2")
                        .build(),
                    ArchiveRetentionsRetentionArgs.builder()
                        .name("name_3")
                        .build(),
                    ArchiveRetentionsRetentionArgs.builder()
                        .name("name_4")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: coralogix:ArchiveRetentions
        properties:
          retentions:
            - {}
            - name: name_2
            - name: name_3
            - name: name_4
    

    Create ArchiveRetentions Resource

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

    Constructor syntax

    new ArchiveRetentions(name: string, args: ArchiveRetentionsArgs, opts?: CustomResourceOptions);
    @overload
    def ArchiveRetentions(resource_name: str,
                          args: ArchiveRetentionsArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ArchiveRetentions(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          retentions: Optional[Sequence[ArchiveRetentionsRetentionArgs]] = None)
    func NewArchiveRetentions(ctx *Context, name string, args ArchiveRetentionsArgs, opts ...ResourceOption) (*ArchiveRetentions, error)
    public ArchiveRetentions(string name, ArchiveRetentionsArgs args, CustomResourceOptions? opts = null)
    public ArchiveRetentions(String name, ArchiveRetentionsArgs args)
    public ArchiveRetentions(String name, ArchiveRetentionsArgs args, CustomResourceOptions options)
    
    type: coralogix:ArchiveRetentions
    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 ArchiveRetentionsArgs
    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 ArchiveRetentionsArgs
    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 ArchiveRetentionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ArchiveRetentionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ArchiveRetentionsArgs
    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 archiveRetentionsResource = new Coralogix.ArchiveRetentions("archiveRetentionsResource", new()
    {
        Retentions = new[]
        {
            new Coralogix.Inputs.ArchiveRetentionsRetentionArgs
            {
                Editable = false,
                Id = "string",
                Name = "string",
                Order = 0,
            },
        },
    });
    
    example, err := coralogix.NewArchiveRetentions(ctx, "archiveRetentionsResource", &coralogix.ArchiveRetentionsArgs{
    	Retentions: coralogix.ArchiveRetentionsRetentionArray{
    		&coralogix.ArchiveRetentionsRetentionArgs{
    			Editable: pulumi.Bool(false),
    			Id:       pulumi.String("string"),
    			Name:     pulumi.String("string"),
    			Order:    pulumi.Float64(0),
    		},
    	},
    })
    
    var archiveRetentionsResource = new ArchiveRetentions("archiveRetentionsResource", ArchiveRetentionsArgs.builder()
        .retentions(ArchiveRetentionsRetentionArgs.builder()
            .editable(false)
            .id("string")
            .name("string")
            .order(0)
            .build())
        .build());
    
    archive_retentions_resource = coralogix.ArchiveRetentions("archiveRetentionsResource", retentions=[{
        "editable": False,
        "id": "string",
        "name": "string",
        "order": 0,
    }])
    
    const archiveRetentionsResource = new coralogix.ArchiveRetentions("archiveRetentionsResource", {retentions: [{
        editable: false,
        id: "string",
        name: "string",
        order: 0,
    }]});
    
    type: coralogix:ArchiveRetentions
    properties:
        retentions:
            - editable: false
              id: string
              name: string
              order: 0
    

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

    Retentions List<ArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    Retentions []ArchiveRetentionsRetentionArgs
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions List<ArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions ArchiveRetentionsRetention[]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions Sequence[ArchiveRetentionsRetentionArgs]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions List<Property Map>
    List of 4 retentions. The first retention is the default retention and can't be renamed.

    Outputs

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

    Get an existing ArchiveRetentions 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?: ArchiveRetentionsState, opts?: CustomResourceOptions): ArchiveRetentions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            retentions: Optional[Sequence[ArchiveRetentionsRetentionArgs]] = None) -> ArchiveRetentions
    func GetArchiveRetentions(ctx *Context, name string, id IDInput, state *ArchiveRetentionsState, opts ...ResourceOption) (*ArchiveRetentions, error)
    public static ArchiveRetentions Get(string name, Input<string> id, ArchiveRetentionsState? state, CustomResourceOptions? opts = null)
    public static ArchiveRetentions get(String name, Output<String> id, ArchiveRetentionsState state, CustomResourceOptions options)
    resources:  _:    type: coralogix:ArchiveRetentions    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:
    Retentions List<ArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    Retentions []ArchiveRetentionsRetentionArgs
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions List<ArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions ArchiveRetentionsRetention[]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions Sequence[ArchiveRetentionsRetentionArgs]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    retentions List<Property Map>
    List of 4 retentions. The first retention is the default retention and can't be renamed.

    Supporting Types

    ArchiveRetentionsRetention, ArchiveRetentionsRetentionArgs

    Editable bool
    Is the retention editable.
    Id string
    The retention id.
    Name string
    The retention name. If not set, the retention will be named by backend.
    Order double
    The retention order. Computed by the order of the retention in the retentions list definition.
    Editable bool
    Is the retention editable.
    Id string
    The retention id.
    Name string
    The retention name. If not set, the retention will be named by backend.
    Order float64
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable Boolean
    Is the retention editable.
    id String
    The retention id.
    name String
    The retention name. If not set, the retention will be named by backend.
    order Double
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable boolean
    Is the retention editable.
    id string
    The retention id.
    name string
    The retention name. If not set, the retention will be named by backend.
    order number
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable bool
    Is the retention editable.
    id str
    The retention id.
    name str
    The retention name. If not set, the retention will be named by backend.
    order float
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable Boolean
    Is the retention editable.
    id String
    The retention id.
    name String
    The retention name. If not set, the retention will be named by backend.
    order Number
    The retention order. Computed by the order of the retention in the retentions list definition.

    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