# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
    'GetLogsArchivesOrderResult',
    'AwaitableGetLogsArchivesOrderResult',
    'get_logs_archives_order',
]

@pulumi.output_type
class GetLogsArchivesOrderResult:
    """
    A collection of values returned by getLogsArchivesOrder.
    """
    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, "archive_ids", archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)

    @property
    @pulumi.getter(name="archiveIds")
    def archive_ids(self) -> Sequence[str]:
        """
        The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs.
        """
        return pulumi.get(self, "archive_ids")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(
            archive_ids=self.archive_ids,
            id=self.id)


def get_logs_archives_order(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLogsArchivesOrderResult:
    """
    Get the current order of your logs archives.
    """
    __args__ = dict()
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('datadog:index/getLogsArchivesOrder:getLogsArchivesOrder', __args__, opts=opts, typ=GetLogsArchivesOrderResult).value

    return AwaitableGetLogsArchivesOrderResult(
        archive_ids=pulumi.get(__ret__, 'archive_ids'),
        id=pulumi.get(__ret__, 'id'))

5767c864ad31e81c55729b30412cdfbcc2528318
<mask token>


@pulumi.output_type
class GetLogsArchivesOrderResult:
    <mask token>

    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, 'archive_ids', archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, 'id', id)
    <mask token>

    @property
    @pulumi.getter
    def id(self) ->str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, 'id')


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):

    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(archive_ids=self.archive_ids, id=
            self.id)


<mask token>

<mask token>


@pulumi.output_type
class GetLogsArchivesOrderResult:
    <mask token>

    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, 'archive_ids', archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, 'id', id)

    @property
    @pulumi.getter(name='archiveIds')
    def archive_ids(self) ->Sequence[str]:
        """
        The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs.
        """
        return pulumi.get(self, 'archive_ids')

    @property
    @pulumi.getter
    def id(self) ->str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, 'id')


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):

    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(archive_ids=self.archive_ids, id=
            self.id)


<mask token>

<mask token>


@pulumi.output_type
class GetLogsArchivesOrderResult:
    """
    A collection of values returned by getLogsArchivesOrder.
    """

    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, 'archive_ids', archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, 'id', id)

    @property
    @pulumi.getter(name='archiveIds')
    def archive_ids(self) ->Sequence[str]:
        """
        The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs.
        """
        return pulumi.get(self, 'archive_ids')

    @property
    @pulumi.getter
    def id(self) ->str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, 'id')


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):

    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(archive_ids=self.archive_ids, id=
            self.id)


<mask token>

import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['GetLogsArchivesOrderResult',
    'AwaitableGetLogsArchivesOrderResult', 'get_logs_archives_order']


@pulumi.output_type
class GetLogsArchivesOrderResult:
    """
    A collection of values returned by getLogsArchivesOrder.
    """

    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, 'archive_ids', archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, 'id', id)

    @property
    @pulumi.getter(name='archiveIds')
    def archive_ids(self) ->Sequence[str]:
        """
        The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs.
        """
        return pulumi.get(self, 'archive_ids')

    @property
    @pulumi.getter
    def id(self) ->str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, 'id')


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):

    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(archive_ids=self.archive_ids, id=
            self.id)


def get_logs_archives_order(opts: Optional[pulumi.InvokeOptions]=None
    ) ->AwaitableGetLogsArchivesOrderResult:
    """
    Get the current order of your logs archives.
    """
    __args__ = dict()
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(),
        opts)
    __ret__ = pulumi.runtime.invoke(
        'datadog:index/getLogsArchivesOrder:getLogsArchivesOrder', __args__,
        opts=opts, typ=GetLogsArchivesOrderResult).value
    return AwaitableGetLogsArchivesOrderResult(archive_ids=pulumi.get(
        __ret__, 'archive_ids'), id=pulumi.get(__ret__, 'id'))

# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
    'GetLogsArchivesOrderResult',
    'AwaitableGetLogsArchivesOrderResult',
    'get_logs_archives_order',
]

@pulumi.output_type
class GetLogsArchivesOrderResult:
    """
    A collection of values returned by getLogsArchivesOrder.
    """
    def __init__(__self__, archive_ids=None, id=None):
        if archive_ids and not isinstance(archive_ids, list):
            raise TypeError("Expected argument 'archive_ids' to be a list")
        pulumi.set(__self__, "archive_ids", archive_ids)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)

    @property
    @pulumi.getter(name="archiveIds")
    def archive_ids(self) -> Sequence[str]:
        """
        The archive IDs list. The order of archive IDs in this attribute defines the overall archive order for logs.
        """
        return pulumi.get(self, "archive_ids")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")


class AwaitableGetLogsArchivesOrderResult(GetLogsArchivesOrderResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetLogsArchivesOrderResult(
            archive_ids=self.archive_ids,
            id=self.id)


def get_logs_archives_order(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLogsArchivesOrderResult:
    """
    Get the current order of your logs archives.
    """
    __args__ = dict()
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('datadog:index/getLogsArchivesOrder:getLogsArchivesOrder', __args__, opts=opts, typ=GetLogsArchivesOrderResult).value

    return AwaitableGetLogsArchivesOrderResult(
        archive_ids=pulumi.get(__ret__, 'archive_ids'),
        id=pulumi.get(__ret__, 'id'))
