import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to retrieve information about a DBaas logs cluster retention. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * retentionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", * }); * ``` * * It is also possible to retrieve a retention using its duration: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * duration: "P14D", * }); * ``` * * Additionnaly, you can filter retentions on their type: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * duration: "P14D", * retentionType: "LOGS_INDEXING", * }); * ``` */ export declare function getLogsClustersRetention(args: GetLogsClustersRetentionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getLogsClustersRetention. */ export interface GetLogsClustersRetentionArgs { /** * Cluster ID */ clusterId: string; /** * Indexed duration expressed in ISO-8601 format. Cannot be used if `retentionId` is defined. */ duration?: string; /** * ID of the retention object. Cannot be used if `duration` or `retentionType` is defined. */ retentionId?: string; /** * Type of the retention (LOGS_INDEXING | LOGS_COLD_STORAGE | METRICS_TENANT). Cannot be used if `retentionId` is defined. Defaults to `LOGS_INDEXING` if not defined. */ retentionType?: string; /** * The service name. It's the ID of your Logs Data Platform instance. */ serviceName: string; } /** * A collection of values returned by getLogsClustersRetention. */ export interface GetLogsClustersRetentionResult { readonly clusterId: string; /** * Indexed duration expressed in ISO-8601 format */ readonly duration: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Indicates if a new stream can use it */ readonly isSupported: boolean; /** * ID of the retention that can be used when creating a stream */ readonly retentionId: string; /** * Type of the retention (LOGS_INDEXING | LOGS_COLD_STORAGE | METRICS_TENANT) */ readonly retentionType: string; readonly serviceName: string; } /** * Use this data source to retrieve information about a DBaas logs cluster retention. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * retentionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", * }); * ``` * * It is also possible to retrieve a retention using its duration: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * duration: "P14D", * }); * ``` * * Additionnaly, you can filter retentions on their type: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * duration: "P14D", * retentionType: "LOGS_INDEXING", * }); * ``` */ export declare function getLogsClustersRetentionOutput(args: GetLogsClustersRetentionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getLogsClustersRetention. */ export interface GetLogsClustersRetentionOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * Indexed duration expressed in ISO-8601 format. Cannot be used if `retentionId` is defined. */ duration?: pulumi.Input; /** * ID of the retention object. Cannot be used if `duration` or `retentionType` is defined. */ retentionId?: pulumi.Input; /** * Type of the retention (LOGS_INDEXING | LOGS_COLD_STORAGE | METRICS_TENANT). Cannot be used if `retentionId` is defined. Defaults to `LOGS_INDEXING` if not defined. */ retentionType?: pulumi.Input; /** * The service name. It's the ID of your Logs Data Platform instance. */ serviceName: pulumi.Input; }