import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Use this resource to create and manage an additional partition under an existing `newrelic.FederatedLogsSetup`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.FederatedLogsPartition("foo", { * setupId: setup.id, * name: "test-partition-logs", * description: "test partition for logs", * storage: { * table: "my_app_partition_logs", * dataLocationUri: "s3://my-app-fed-logs/my_app_partition_logs", * }, * dataRetentionPolicy: { * duration: 365, * unit: "DAYS", * }, * forwarderConfiguration: { * type: "PIPELINE_CONTROL", * pipelineControl: { * partitionRule: { * expression: "attributes[\"log.type\"] == \"partition\"", * }, * }, * }, * }); * ``` * * ## Import * * Federated Logs partitions can be imported using the entity GUID: * * ```sh * $ pulumi import newrelic:index/federatedLogsPartition:FederatedLogsPartition foo * ``` */ export declare class FederatedLogsPartition extends pulumi.CustomResource { /** * Get an existing FederatedLogsPartition resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FederatedLogsPartitionState, opts?: pulumi.CustomResourceOptions): FederatedLogsPartition; /** * Returns true if the given object is an instance of FederatedLogsPartition. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FederatedLogsPartition; /** * The New Relic account ID where the federated logs partition will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ readonly accountId: pulumi.Output; /** * Whether the partition is active. */ readonly active: pulumi.Output; /** * Creation timestamp. */ readonly createdAt: pulumi.Output; /** * Retention policy for logs in this partition. See Nested dataRetentionPolicy block below. */ readonly dataRetentionPolicy: pulumi.Output; /** * The derived lifecycle state of the partition, computed from the stored lifecycle status and PCG deployment progress. Possible values: DRAFT, ACTIVE, UPDATE_STAGED, ENABLE_STAGED, DISABLE_STAGED, DISABLED, DECOMMISSION_STAGED, DECOMMISSIONED, ERROR. */ readonly derivedLifecycleState: pulumi.Output; /** * A description for partition. */ readonly description: pulumi.Output; /** * Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below. */ readonly forwarderConfiguration: pulumi.Output; /** * Aggregate health check status for the partition. */ readonly healthChecks: pulumi.Output; /** * Whether this is the default partition for the parent setup. */ readonly isDefault: pulumi.Output; /** * Current lifecycle status of the partition. */ readonly lifecycleStatuses: pulumi.Output; /** * The name of the partition. */ readonly name: pulumi.Output; /** * Entity GUID of the setup. */ readonly setupId: pulumi.Output; /** * Storage details for this partition. See Nested storage block below. */ readonly storage: pulumi.Output; /** * Last-updated timestamp. */ readonly updatedAt: pulumi.Output; /** * Create a FederatedLogsPartition resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FederatedLogsPartitionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FederatedLogsPartition resources. */ export interface FederatedLogsPartitionState { /** * The New Relic account ID where the federated logs partition will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ accountId?: pulumi.Input; /** * Whether the partition is active. */ active?: pulumi.Input; /** * Creation timestamp. */ createdAt?: pulumi.Input; /** * Retention policy for logs in this partition. See Nested dataRetentionPolicy block below. */ dataRetentionPolicy?: pulumi.Input; /** * The derived lifecycle state of the partition, computed from the stored lifecycle status and PCG deployment progress. Possible values: DRAFT, ACTIVE, UPDATE_STAGED, ENABLE_STAGED, DISABLE_STAGED, DISABLED, DECOMMISSION_STAGED, DECOMMISSIONED, ERROR. */ derivedLifecycleState?: pulumi.Input; /** * A description for partition. */ description?: pulumi.Input; /** * Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below. */ forwarderConfiguration?: pulumi.Input; /** * Aggregate health check status for the partition. */ healthChecks?: pulumi.Input[] | undefined>; /** * Whether this is the default partition for the parent setup. */ isDefault?: pulumi.Input; /** * Current lifecycle status of the partition. */ lifecycleStatuses?: pulumi.Input[] | undefined>; /** * The name of the partition. */ name?: pulumi.Input; /** * Entity GUID of the setup. */ setupId?: pulumi.Input; /** * Storage details for this partition. See Nested storage block below. */ storage?: pulumi.Input; /** * Last-updated timestamp. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a FederatedLogsPartition resource. */ export interface FederatedLogsPartitionArgs { /** * The New Relic account ID where the federated logs partition will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ accountId?: pulumi.Input; /** * Whether the partition is active. */ active?: pulumi.Input; /** * Retention policy for logs in this partition. See Nested dataRetentionPolicy block below. */ dataRetentionPolicy?: pulumi.Input; /** * A description for partition. */ description?: pulumi.Input; /** * Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below. */ forwarderConfiguration?: pulumi.Input; /** * The name of the partition. */ name?: pulumi.Input; /** * Entity GUID of the setup. */ setupId: pulumi.Input; /** * Storage details for this partition. See Nested storage block below. */ storage: pulumi.Input; } //# sourceMappingURL=federatedLogsPartition.d.ts.map