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 a Federated Logs setup. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const ingest = new newrelic.AwsConnection("ingest", { * name: "fed-logs-ingest", * roleArn: "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest", * region: "us-east-1", * scopeType: "ORGANIZATION", * scopeId: "YOUR_ORG_ID_HERE", * }); * const query = new newrelic.AwsConnection("query", { * name: "fed-logs-query", * roleArn: "arn:aws:iam::123456789012:role/newrelic-fed-logs-query", * region: "us-east-1", * scopeType: "ORGANIZATION", * scopeId: "YOUR_ORG_ID_HERE", * }); * const foo = new newrelic.FederatedLogsSetup("foo", { * name: "my-app-logs", * description: "Federated logs setup for my-app", * storage: { * dataLocationBucket: "my-app-fed-logs", * database: "my_app_fed_logs_db", * dataIngestConnectionId: ingest.id, * queryConnectionId: query.id, * cloudProviderConfiguration: { * provider: "AWS", * region: "us-east-1", * }, * }, * defaultPartition: { * storage: { * table: "my_app_default_partition", * dataLocationUri: "s3://my-app-fed-logs/my_app_default_partition", * }, * dataRetentionPolicy: { * duration: 30, * unit: "DAYS", * }, * }, * forwarder: { * type: "PIPELINE_CONTROL", * pipelineControl: { * fleetId: "", * }, * }, * }); * ``` * * ## Import * * Federated Logs setups can be imported using the entity GUID: * * ```sh * $ pulumi import newrelic:index/federatedLogsSetup:FederatedLogsSetup foo * ``` */ export declare class FederatedLogsSetup extends pulumi.CustomResource { /** * Get an existing FederatedLogsSetup 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?: FederatedLogsSetupState, opts?: pulumi.CustomResourceOptions): FederatedLogsSetup; /** * Returns true if the given object is an instance of FederatedLogsSetup. 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 FederatedLogsSetup; /** * The New Relic account ID where the federated logs setup will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ readonly accountId: pulumi.Output; /** * Whether the setup is active. */ readonly active: pulumi.Output; /** * Creation timestamp. */ readonly createdAt: pulumi.Output; /** * Default partition created alongside the setup. See Nested defaultPartition block below. */ readonly defaultPartition: pulumi.Output; /** * The entity GUID of the default partition created alongside this setup. */ readonly defaultPartitionId: pulumi.Output; /** * The derived lifecycle state of the setup, 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 federated logs setup. */ readonly description: pulumi.Output; /** * Forwarder configuration that wires a fleet to this setup. See Nested forwarder block below. */ readonly forwarder: pulumi.Output; /** * Aggregate health check status for the setup. */ readonly healthChecks: pulumi.Output; /** * Current lifecycle status of the setup. */ readonly lifecycleStatuses: pulumi.Output; /** * The name of the federated log setup. */ readonly name: pulumi.Output; /** * Storage configuration. Cannot be changed after creation. See Nested storage block below. */ readonly storage: pulumi.Output; /** * Last-updated timestamp. */ readonly updatedAt: pulumi.Output; /** * Create a FederatedLogsSetup 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: FederatedLogsSetupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FederatedLogsSetup resources. */ export interface FederatedLogsSetupState { /** * The New Relic account ID where the federated logs setup will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ accountId?: pulumi.Input; /** * Whether the setup is active. */ active?: pulumi.Input; /** * Creation timestamp. */ createdAt?: pulumi.Input; /** * Default partition created alongside the setup. See Nested defaultPartition block below. */ defaultPartition?: pulumi.Input; /** * The entity GUID of the default partition created alongside this setup. */ defaultPartitionId?: pulumi.Input; /** * The derived lifecycle state of the setup, 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 federated logs setup. */ description?: pulumi.Input; /** * Forwarder configuration that wires a fleet to this setup. See Nested forwarder block below. */ forwarder?: pulumi.Input; /** * Aggregate health check status for the setup. */ healthChecks?: pulumi.Input[] | undefined>; /** * Current lifecycle status of the setup. */ lifecycleStatuses?: pulumi.Input[] | undefined>; /** * The name of the federated log setup. */ name?: pulumi.Input; /** * Storage configuration. Cannot be changed after creation. See Nested storage block below. */ storage?: pulumi.Input; /** * Last-updated timestamp. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a FederatedLogsSetup resource. */ export interface FederatedLogsSetupArgs { /** * The New Relic account ID where the federated logs setup will live. Defaults to the provider's account_id. Changing this after creation is rejected by the API. */ accountId?: pulumi.Input; /** * Whether the setup is active. */ active?: pulumi.Input; /** * Default partition created alongside the setup. See Nested defaultPartition block below. */ defaultPartition: pulumi.Input; /** * A description for federated logs setup. */ description?: pulumi.Input; /** * Forwarder configuration that wires a fleet to this setup. See Nested forwarder block below. */ forwarder?: pulumi.Input; /** * The name of the federated log setup. */ name?: pulumi.Input; /** * Storage configuration. Cannot be changed after creation. See Nested storage block below. */ storage: pulumi.Input; } //# sourceMappingURL=federatedLogsSetup.d.ts.map