Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

LogsArchiveOrder

Provides a Datadog Logs Archive API resource, which is used to manage Datadog log archives order.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var sampleArchiveOrder = new Datadog.LogsArchiveOrder("sampleArchiveOrder", new Datadog.LogsArchiveOrderArgs
        {
            ArchiveIds = 
            {
                datadog_logs_archive.Sample_archive_1.Id,
                datadog_logs_archive.Sample_archive_2.Id,
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_datadog as datadog

sample_archive_order = datadog.LogsArchiveOrder("sampleArchiveOrder", archive_ids=[
    datadog_logs_archive["sample_archive_1"]["id"],
    datadog_logs_archive["sample_archive_2"]["id"],
])
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const sampleArchiveOrder = new datadog.LogsArchiveOrder("sample_archive_order", {
    archiveIds: [
        datadog_logs_archive_sample_archive_1.id,
        datadog_logs_archive_sample_archive_2.id,
    ],
});

Create a LogsArchiveOrder Resource

new LogsArchiveOrder(name: string, args?: LogsArchiveOrderArgs, opts?: CustomResourceOptions);
def LogsArchiveOrder(resource_name: str, opts: Optional[ResourceOptions] = None, archive_ids: Optional[Sequence[str]] = None)
func NewLogsArchiveOrder(ctx *Context, name string, args *LogsArchiveOrderArgs, opts ...ResourceOption) (*LogsArchiveOrder, error)
public LogsArchiveOrder(string name, LogsArchiveOrderArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LogsArchiveOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LogsArchiveOrderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogsArchiveOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LogsArchiveOrder Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LogsArchiveOrder resource accepts the following input properties:

ArchiveIds List<string>

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

ArchiveIds []string

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

archiveIds string[]

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

archive_ids Sequence[str]

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

Outputs

All input properties are implicitly available as output properties. Additionally, the LogsArchiveOrder 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing LogsArchiveOrder Resource

Get an existing LogsArchiveOrder 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?: LogsArchiveOrderState, opts?: CustomResourceOptions): LogsArchiveOrder
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, archive_ids: Optional[Sequence[str]] = None) -> LogsArchiveOrder
func GetLogsArchiveOrder(ctx *Context, name string, id IDInput, state *LogsArchiveOrderState, opts ...ResourceOption) (*LogsArchiveOrder, error)
public static LogsArchiveOrder Get(string name, Input<string> id, LogsArchiveOrderState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

ArchiveIds List<string>

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

ArchiveIds []string

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

archiveIds string[]

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

archive_ids Sequence[str]

The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs. If archive_ids is empty or not specified, it will import the actual archive order, and create the resource. Otherwise, it will try to update the order.

Import

There must be at most one datadog_logs_archive_order resource. You can import the datadog_logs_archive_order or create an archive order.

 $ pulumi import datadog:index/logsArchiveOrder:LogsArchiveOrder name> archiveOrderID

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.