1. Packages
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. FederatedLogsPartition
Viewing docs for New Relic v5.72.0
published on Thursday, Jun 11, 2026 by Pulumi
newrelic logo
Viewing docs for New Relic v5.72.0
published on Thursday, Jun 11, 2026 by Pulumi

    Use this resource to create and manage an additional partition under an existing newrelic.FederatedLogsSetup.

    Example Usage

    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 pulumi
    import pulumi_newrelic as newrelic
    
    foo = newrelic.FederatedLogsPartition("foo",
        setup_id=setup["id"],
        name="test-partition-logs",
        description="test partition for logs",
        storage={
            "table": "my_app_partition_logs",
            "data_location_uri": "s3://my-app-fed-logs/my_app_partition_logs",
        },
        data_retention_policy={
            "duration": 365,
            "unit": "DAYS",
        },
        forwarder_configuration={
            "type": "PIPELINE_CONTROL",
            "pipeline_control": {
                "partition_rule": {
                    "expression": "attributes[\"log.type\"] == \"partition\"",
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewFederatedLogsPartition(ctx, "foo", &newrelic.FederatedLogsPartitionArgs{
    			SetupId:     pulumi.Any(setup.Id),
    			Name:        pulumi.String("test-partition-logs"),
    			Description: pulumi.String("test partition for logs"),
    			Storage: &newrelic.FederatedLogsPartitionStorageArgs{
    				Table:           pulumi.String("my_app_partition_logs"),
    				DataLocationUri: pulumi.String("s3://my-app-fed-logs/my_app_partition_logs"),
    			},
    			DataRetentionPolicy: &newrelic.FederatedLogsPartitionDataRetentionPolicyArgs{
    				Duration: pulumi.Int(365),
    				Unit:     pulumi.String("DAYS"),
    			},
    			ForwarderConfiguration: &newrelic.FederatedLogsPartitionForwarderConfigurationArgs{
    				Type: pulumi.String("PIPELINE_CONTROL"),
    				PipelineControl: &newrelic.FederatedLogsPartitionForwarderConfigurationPipelineControlArgs{
    					PartitionRule: &newrelic.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs{
    						Expression: pulumi.String("attributes[\"log.type\"] == \"partition\""),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new NewRelic.FederatedLogsPartition("foo", new()
        {
            SetupId = setup.Id,
            Name = "test-partition-logs",
            Description = "test partition for logs",
            Storage = new NewRelic.Inputs.FederatedLogsPartitionStorageArgs
            {
                Table = "my_app_partition_logs",
                DataLocationUri = "s3://my-app-fed-logs/my_app_partition_logs",
            },
            DataRetentionPolicy = new NewRelic.Inputs.FederatedLogsPartitionDataRetentionPolicyArgs
            {
                Duration = 365,
                Unit = "DAYS",
            },
            ForwarderConfiguration = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationArgs
            {
                Type = "PIPELINE_CONTROL",
                PipelineControl = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlArgs
                {
                    PartitionRule = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs
                    {
                        Expression = "attributes[\"log.type\"] == \"partition\"",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.FederatedLogsPartition;
    import com.pulumi.newrelic.FederatedLogsPartitionArgs;
    import com.pulumi.newrelic.inputs.FederatedLogsPartitionStorageArgs;
    import com.pulumi.newrelic.inputs.FederatedLogsPartitionDataRetentionPolicyArgs;
    import com.pulumi.newrelic.inputs.FederatedLogsPartitionForwarderConfigurationArgs;
    import com.pulumi.newrelic.inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlArgs;
    import com.pulumi.newrelic.inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new FederatedLogsPartition("foo", FederatedLogsPartitionArgs.builder()
                .setupId(setup.id())
                .name("test-partition-logs")
                .description("test partition for logs")
                .storage(FederatedLogsPartitionStorageArgs.builder()
                    .table("my_app_partition_logs")
                    .dataLocationUri("s3://my-app-fed-logs/my_app_partition_logs")
                    .build())
                .dataRetentionPolicy(FederatedLogsPartitionDataRetentionPolicyArgs.builder()
                    .duration(365)
                    .unit("DAYS")
                    .build())
                .forwarderConfiguration(FederatedLogsPartitionForwarderConfigurationArgs.builder()
                    .type("PIPELINE_CONTROL")
                    .pipelineControl(FederatedLogsPartitionForwarderConfigurationPipelineControlArgs.builder()
                        .partitionRule(FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs.builder()
                            .expression("attributes[\"log.type\"] == \"partition\"")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: newrelic:FederatedLogsPartition
        properties:
          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"
    
    pulumi {
      required_providers {
        newrelic = {
          source = "pulumi/newrelic"
        }
      }
    }
    
    resource "newrelic_federatedlogspartition" "foo" {
      setup_id    = setup.id
      name        = "test-partition-logs"
      description = "test partition for logs"
      storage = {
        table             = "my_app_partition_logs"
        data_location_uri = "s3://my-app-fed-logs/my_app_partition_logs"
      }
      data_retention_policy = {
        duration = 365
        unit     = "DAYS"
      }
      forwarder_configuration = {
        type = "PIPELINE_CONTROL"
        pipeline_control = {
          partition_rule = {
            expression = "attributes[\"log.type\"] == \"partition\""
          }
        }
      }
    }
    

    Create FederatedLogsPartition Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FederatedLogsPartition(name: string, args: FederatedLogsPartitionArgs, opts?: CustomResourceOptions);
    @overload
    def FederatedLogsPartition(resource_name: str,
                               args: FederatedLogsPartitionArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FederatedLogsPartition(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               setup_id: Optional[str] = None,
                               storage: Optional[FederatedLogsPartitionStorageArgs] = None,
                               account_id: Optional[str] = None,
                               active: Optional[bool] = None,
                               data_retention_policy: Optional[FederatedLogsPartitionDataRetentionPolicyArgs] = None,
                               description: Optional[str] = None,
                               forwarder_configuration: Optional[FederatedLogsPartitionForwarderConfigurationArgs] = None,
                               name: Optional[str] = None)
    func NewFederatedLogsPartition(ctx *Context, name string, args FederatedLogsPartitionArgs, opts ...ResourceOption) (*FederatedLogsPartition, error)
    public FederatedLogsPartition(string name, FederatedLogsPartitionArgs args, CustomResourceOptions? opts = null)
    public FederatedLogsPartition(String name, FederatedLogsPartitionArgs args)
    public FederatedLogsPartition(String name, FederatedLogsPartitionArgs args, CustomResourceOptions options)
    
    type: newrelic:FederatedLogsPartition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "newrelic_federatedlogspartition" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FederatedLogsPartitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FederatedLogsPartitionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FederatedLogsPartitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FederatedLogsPartitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FederatedLogsPartitionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var federatedLogsPartitionResource = new NewRelic.FederatedLogsPartition("federatedLogsPartitionResource", new()
    {
        SetupId = "string",
        Storage = new NewRelic.Inputs.FederatedLogsPartitionStorageArgs
        {
            DataLocationUri = "string",
            Table = "string",
        },
        AccountId = "string",
        Active = false,
        DataRetentionPolicy = new NewRelic.Inputs.FederatedLogsPartitionDataRetentionPolicyArgs
        {
            Duration = 0,
            Unit = "string",
        },
        Description = "string",
        ForwarderConfiguration = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationArgs
        {
            Type = "string",
            PipelineControl = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlArgs
            {
                PartitionRule = new NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs
                {
                    Expression = "string",
                },
            },
        },
        Name = "string",
    });
    
    example, err := newrelic.NewFederatedLogsPartition(ctx, "federatedLogsPartitionResource", &newrelic.FederatedLogsPartitionArgs{
    	SetupId: pulumi.String("string"),
    	Storage: &newrelic.FederatedLogsPartitionStorageArgs{
    		DataLocationUri: pulumi.String("string"),
    		Table:           pulumi.String("string"),
    	},
    	AccountId: pulumi.String("string"),
    	Active:    pulumi.Bool(false),
    	DataRetentionPolicy: &newrelic.FederatedLogsPartitionDataRetentionPolicyArgs{
    		Duration: pulumi.Int(0),
    		Unit:     pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	ForwarderConfiguration: &newrelic.FederatedLogsPartitionForwarderConfigurationArgs{
    		Type: pulumi.String("string"),
    		PipelineControl: &newrelic.FederatedLogsPartitionForwarderConfigurationPipelineControlArgs{
    			PartitionRule: &newrelic.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs{
    				Expression: pulumi.String("string"),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    resource "newrelic_federatedlogspartition" "federatedLogsPartitionResource" {
      setup_id = "string"
      storage = {
        data_location_uri = "string"
        table             = "string"
      }
      account_id = "string"
      active     = false
      data_retention_policy = {
        duration = 0
        unit     = "string"
      }
      description = "string"
      forwarder_configuration = {
        type = "string"
        pipeline_control = {
          partition_rule = {
            expression = "string"
          }
        }
      }
      name = "string"
    }
    
    var federatedLogsPartitionResource = new FederatedLogsPartition("federatedLogsPartitionResource", FederatedLogsPartitionArgs.builder()
        .setupId("string")
        .storage(FederatedLogsPartitionStorageArgs.builder()
            .dataLocationUri("string")
            .table("string")
            .build())
        .accountId("string")
        .active(false)
        .dataRetentionPolicy(FederatedLogsPartitionDataRetentionPolicyArgs.builder()
            .duration(0)
            .unit("string")
            .build())
        .description("string")
        .forwarderConfiguration(FederatedLogsPartitionForwarderConfigurationArgs.builder()
            .type("string")
            .pipelineControl(FederatedLogsPartitionForwarderConfigurationPipelineControlArgs.builder()
                .partitionRule(FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs.builder()
                    .expression("string")
                    .build())
                .build())
            .build())
        .name("string")
        .build());
    
    federated_logs_partition_resource = newrelic.FederatedLogsPartition("federatedLogsPartitionResource",
        setup_id="string",
        storage={
            "data_location_uri": "string",
            "table": "string",
        },
        account_id="string",
        active=False,
        data_retention_policy={
            "duration": 0,
            "unit": "string",
        },
        description="string",
        forwarder_configuration={
            "type": "string",
            "pipeline_control": {
                "partition_rule": {
                    "expression": "string",
                },
            },
        },
        name="string")
    
    const federatedLogsPartitionResource = new newrelic.FederatedLogsPartition("federatedLogsPartitionResource", {
        setupId: "string",
        storage: {
            dataLocationUri: "string",
            table: "string",
        },
        accountId: "string",
        active: false,
        dataRetentionPolicy: {
            duration: 0,
            unit: "string",
        },
        description: "string",
        forwarderConfiguration: {
            type: "string",
            pipelineControl: {
                partitionRule: {
                    expression: "string",
                },
            },
        },
        name: "string",
    });
    
    type: newrelic:FederatedLogsPartition
    properties:
        accountId: string
        active: false
        dataRetentionPolicy:
            duration: 0
            unit: string
        description: string
        forwarderConfiguration:
            pipelineControl:
                partitionRule:
                    expression: string
            type: string
        name: string
        setupId: string
        storage:
            dataLocationUri: string
            table: string
    

    FederatedLogsPartition Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FederatedLogsPartition resource accepts the following input properties:

    SetupId string
    Entity GUID of the setup.
    Storage Pulumi.NewRelic.Inputs.FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    AccountId string
    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.
    Active bool
    Whether the partition is active.
    DataRetentionPolicy Pulumi.NewRelic.Inputs.FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    Description string
    A description for partition.
    ForwarderConfiguration Pulumi.NewRelic.Inputs.FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    Name string
    The name of the partition.
    SetupId string
    Entity GUID of the setup.
    Storage FederatedLogsPartitionStorageArgs
    Storage details for this partition. See Nested storage block below.
    AccountId string
    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.
    Active bool
    Whether the partition is active.
    DataRetentionPolicy FederatedLogsPartitionDataRetentionPolicyArgs
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    Description string
    A description for partition.
    ForwarderConfiguration FederatedLogsPartitionForwarderConfigurationArgs
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    Name string
    The name of the partition.
    setup_id string
    Entity GUID of the setup.
    storage object
    Storage details for this partition. See Nested storage block below.
    account_id string
    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.
    active bool
    Whether the partition is active.
    data_retention_policy object
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description string
    A description for partition.
    forwarder_configuration object
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    name string
    The name of the partition.
    setupId String
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    accountId String
    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.
    active Boolean
    Whether the partition is active.
    dataRetentionPolicy FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description String
    A description for partition.
    forwarderConfiguration FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    name String
    The name of the partition.
    setupId string
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    accountId string
    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.
    active boolean
    Whether the partition is active.
    dataRetentionPolicy FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description string
    A description for partition.
    forwarderConfiguration FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    name string
    The name of the partition.
    setup_id str
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorageArgs
    Storage details for this partition. See Nested storage block below.
    account_id str
    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.
    active bool
    Whether the partition is active.
    data_retention_policy FederatedLogsPartitionDataRetentionPolicyArgs
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description str
    A description for partition.
    forwarder_configuration FederatedLogsPartitionForwarderConfigurationArgs
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    name str
    The name of the partition.
    setupId String
    Entity GUID of the setup.
    storage Property Map
    Storage details for this partition. See Nested storage block below.
    accountId String
    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.
    active Boolean
    Whether the partition is active.
    dataRetentionPolicy Property Map
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description String
    A description for partition.
    forwarderConfiguration Property Map
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    name String
    The name of the partition.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FederatedLogsPartition resource produces the following output properties:

    CreatedAt string
    Creation timestamp.
    HealthChecks List<Pulumi.NewRelic.Outputs.FederatedLogsPartitionHealthCheck>
    Aggregate health check status for the partition.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default partition for the parent setup.
    LifecycleStatuses List<Pulumi.NewRelic.Outputs.FederatedLogsPartitionLifecycleStatus>
    Current lifecycle status of the partition.
    UpdatedAt string
    Last-updated timestamp.
    CreatedAt string
    Creation timestamp.
    HealthChecks []FederatedLogsPartitionHealthCheck
    Aggregate health check status for the partition.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default partition for the parent setup.
    LifecycleStatuses []FederatedLogsPartitionLifecycleStatus
    Current lifecycle status of the partition.
    UpdatedAt string
    Last-updated timestamp.
    created_at string
    Creation timestamp.
    health_checks list(object)
    Aggregate health check status for the partition.
    id string
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default partition for the parent setup.
    lifecycle_statuses list(object)
    Current lifecycle status of the partition.
    updated_at string
    Last-updated timestamp.
    createdAt String
    Creation timestamp.
    healthChecks List<FederatedLogsPartitionHealthCheck>
    Aggregate health check status for the partition.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses List<FederatedLogsPartitionLifecycleStatus>
    Current lifecycle status of the partition.
    updatedAt String
    Last-updated timestamp.
    createdAt string
    Creation timestamp.
    healthChecks FederatedLogsPartitionHealthCheck[]
    Aggregate health check status for the partition.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses FederatedLogsPartitionLifecycleStatus[]
    Current lifecycle status of the partition.
    updatedAt string
    Last-updated timestamp.
    created_at str
    Creation timestamp.
    health_checks Sequence[FederatedLogsPartitionHealthCheck]
    Aggregate health check status for the partition.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default partition for the parent setup.
    lifecycle_statuses Sequence[FederatedLogsPartitionLifecycleStatus]
    Current lifecycle status of the partition.
    updated_at str
    Last-updated timestamp.
    createdAt String
    Creation timestamp.
    healthChecks List<Property Map>
    Aggregate health check status for the partition.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses List<Property Map>
    Current lifecycle status of the partition.
    updatedAt String
    Last-updated timestamp.

    Look up Existing FederatedLogsPartition Resource

    Get an existing FederatedLogsPartition 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?: FederatedLogsPartitionState, opts?: CustomResourceOptions): FederatedLogsPartition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            active: Optional[bool] = None,
            created_at: Optional[str] = None,
            data_retention_policy: Optional[FederatedLogsPartitionDataRetentionPolicyArgs] = None,
            description: Optional[str] = None,
            forwarder_configuration: Optional[FederatedLogsPartitionForwarderConfigurationArgs] = None,
            health_checks: Optional[Sequence[FederatedLogsPartitionHealthCheckArgs]] = None,
            is_default: Optional[bool] = None,
            lifecycle_statuses: Optional[Sequence[FederatedLogsPartitionLifecycleStatusArgs]] = None,
            name: Optional[str] = None,
            setup_id: Optional[str] = None,
            storage: Optional[FederatedLogsPartitionStorageArgs] = None,
            updated_at: Optional[str] = None) -> FederatedLogsPartition
    func GetFederatedLogsPartition(ctx *Context, name string, id IDInput, state *FederatedLogsPartitionState, opts ...ResourceOption) (*FederatedLogsPartition, error)
    public static FederatedLogsPartition Get(string name, Input<string> id, FederatedLogsPartitionState? state, CustomResourceOptions? opts = null)
    public static FederatedLogsPartition get(String name, Output<String> id, FederatedLogsPartitionState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:FederatedLogsPartition    get:      id: ${id}
    import {
      to = newrelic_federatedlogspartition.example
      id = "${id}"
    }
    
    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.
    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:
    AccountId string
    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.
    Active bool
    Whether the partition is active.
    CreatedAt string
    Creation timestamp.
    DataRetentionPolicy Pulumi.NewRelic.Inputs.FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    Description string
    A description for partition.
    ForwarderConfiguration Pulumi.NewRelic.Inputs.FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    HealthChecks List<Pulumi.NewRelic.Inputs.FederatedLogsPartitionHealthCheck>
    Aggregate health check status for the partition.
    IsDefault bool
    Whether this is the default partition for the parent setup.
    LifecycleStatuses List<Pulumi.NewRelic.Inputs.FederatedLogsPartitionLifecycleStatus>
    Current lifecycle status of the partition.
    Name string
    The name of the partition.
    SetupId string
    Entity GUID of the setup.
    Storage Pulumi.NewRelic.Inputs.FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    UpdatedAt string
    Last-updated timestamp.
    AccountId string
    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.
    Active bool
    Whether the partition is active.
    CreatedAt string
    Creation timestamp.
    DataRetentionPolicy FederatedLogsPartitionDataRetentionPolicyArgs
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    Description string
    A description for partition.
    ForwarderConfiguration FederatedLogsPartitionForwarderConfigurationArgs
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    HealthChecks []FederatedLogsPartitionHealthCheckArgs
    Aggregate health check status for the partition.
    IsDefault bool
    Whether this is the default partition for the parent setup.
    LifecycleStatuses []FederatedLogsPartitionLifecycleStatusArgs
    Current lifecycle status of the partition.
    Name string
    The name of the partition.
    SetupId string
    Entity GUID of the setup.
    Storage FederatedLogsPartitionStorageArgs
    Storage details for this partition. See Nested storage block below.
    UpdatedAt string
    Last-updated timestamp.
    account_id string
    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.
    active bool
    Whether the partition is active.
    created_at string
    Creation timestamp.
    data_retention_policy object
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description string
    A description for partition.
    forwarder_configuration object
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    health_checks list(object)
    Aggregate health check status for the partition.
    is_default bool
    Whether this is the default partition for the parent setup.
    lifecycle_statuses list(object)
    Current lifecycle status of the partition.
    name string
    The name of the partition.
    setup_id string
    Entity GUID of the setup.
    storage object
    Storage details for this partition. See Nested storage block below.
    updated_at string
    Last-updated timestamp.
    accountId String
    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.
    active Boolean
    Whether the partition is active.
    createdAt String
    Creation timestamp.
    dataRetentionPolicy FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description String
    A description for partition.
    forwarderConfiguration FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    healthChecks List<FederatedLogsPartitionHealthCheck>
    Aggregate health check status for the partition.
    isDefault Boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses List<FederatedLogsPartitionLifecycleStatus>
    Current lifecycle status of the partition.
    name String
    The name of the partition.
    setupId String
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    updatedAt String
    Last-updated timestamp.
    accountId string
    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.
    active boolean
    Whether the partition is active.
    createdAt string
    Creation timestamp.
    dataRetentionPolicy FederatedLogsPartitionDataRetentionPolicy
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description string
    A description for partition.
    forwarderConfiguration FederatedLogsPartitionForwarderConfiguration
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    healthChecks FederatedLogsPartitionHealthCheck[]
    Aggregate health check status for the partition.
    isDefault boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses FederatedLogsPartitionLifecycleStatus[]
    Current lifecycle status of the partition.
    name string
    The name of the partition.
    setupId string
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorage
    Storage details for this partition. See Nested storage block below.
    updatedAt string
    Last-updated timestamp.
    account_id str
    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.
    active bool
    Whether the partition is active.
    created_at str
    Creation timestamp.
    data_retention_policy FederatedLogsPartitionDataRetentionPolicyArgs
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description str
    A description for partition.
    forwarder_configuration FederatedLogsPartitionForwarderConfigurationArgs
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    health_checks Sequence[FederatedLogsPartitionHealthCheckArgs]
    Aggregate health check status for the partition.
    is_default bool
    Whether this is the default partition for the parent setup.
    lifecycle_statuses Sequence[FederatedLogsPartitionLifecycleStatusArgs]
    Current lifecycle status of the partition.
    name str
    The name of the partition.
    setup_id str
    Entity GUID of the setup.
    storage FederatedLogsPartitionStorageArgs
    Storage details for this partition. See Nested storage block below.
    updated_at str
    Last-updated timestamp.
    accountId String
    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.
    active Boolean
    Whether the partition is active.
    createdAt String
    Creation timestamp.
    dataRetentionPolicy Property Map
    Retention policy for logs in this partition. See Nested dataRetentionPolicy block below.
    description String
    A description for partition.
    forwarderConfiguration Property Map
    Forwarder configuration for routing specific logs to this partition. See Nested forwarderConfiguration block below.
    healthChecks List<Property Map>
    Aggregate health check status for the partition.
    isDefault Boolean
    Whether this is the default partition for the parent setup.
    lifecycleStatuses List<Property Map>
    Current lifecycle status of the partition.
    name String
    The name of the partition.
    setupId String
    Entity GUID of the setup.
    storage Property Map
    Storage details for this partition. See Nested storage block below.
    updatedAt String
    Last-updated timestamp.

    Supporting Types

    FederatedLogsPartitionDataRetentionPolicy, FederatedLogsPartitionDataRetentionPolicyArgs

    Duration int
    Retention duration value.
    Unit string
    Time unit. One of DAYS, WEEKS, or MONTHS.
    Duration int
    Retention duration value.
    Unit string
    Time unit. One of DAYS, WEEKS, or MONTHS.
    duration number
    Retention duration value.
    unit string
    Time unit. One of DAYS, WEEKS, or MONTHS.
    duration Integer
    Retention duration value.
    unit String
    Time unit. One of DAYS, WEEKS, or MONTHS.
    duration number
    Retention duration value.
    unit string
    Time unit. One of DAYS, WEEKS, or MONTHS.
    duration int
    Retention duration value.
    unit str
    Time unit. One of DAYS, WEEKS, or MONTHS.
    duration Number
    Retention duration value.
    unit String
    Time unit. One of DAYS, WEEKS, or MONTHS.

    FederatedLogsPartitionForwarderConfiguration, FederatedLogsPartitionForwarderConfigurationArgs

    Type string
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    PipelineControl Pulumi.NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControl
    Pipeline control configuration. See below.
    Type string
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    PipelineControl FederatedLogsPartitionForwarderConfigurationPipelineControl
    Pipeline control configuration. See below.
    type string
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    pipeline_control object
    Pipeline control configuration. See below.
    type String
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    pipelineControl FederatedLogsPartitionForwarderConfigurationPipelineControl
    Pipeline control configuration. See below.
    type string
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    pipelineControl FederatedLogsPartitionForwarderConfigurationPipelineControl
    Pipeline control configuration. See below.
    type str
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    pipeline_control FederatedLogsPartitionForwarderConfigurationPipelineControl
    Pipeline control configuration. See below.
    type String
    Forwarder type. Must match the parent setup's forwarder type. Currently only PIPELINE_CONTROL is supported.
    pipelineControl Property Map
    Pipeline control configuration. See below.

    FederatedLogsPartitionForwarderConfigurationPipelineControl, FederatedLogsPartitionForwarderConfigurationPipelineControlArgs

    PartitionRule Pulumi.NewRelic.Inputs.FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule
    Rule that determines which logs are routed to this partition. See below.
    PartitionRule FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule
    Rule that determines which logs are routed to this partition. See below.
    partition_rule object
    Rule that determines which logs are routed to this partition. See below.
    partitionRule FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule
    Rule that determines which logs are routed to this partition. See below.
    partitionRule FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule
    Rule that determines which logs are routed to this partition. See below.
    partition_rule FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule
    Rule that determines which logs are routed to this partition. See below.
    partitionRule Property Map
    Rule that determines which logs are routed to this partition. See below.

    FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRule, FederatedLogsPartitionForwarderConfigurationPipelineControlPartitionRuleArgs

    Expression string
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    Expression string
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    expression string
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    expression String
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    expression string
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    expression str
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".
    expression String
    OTTL expression for routing logs to this partition. Example: attributes["log.type"] == "partition".

    FederatedLogsPartitionHealthCheck, FederatedLogsPartitionHealthCheckArgs

    FederatedLogsPartitionHealthCheckEnd2endDataFlow, FederatedLogsPartitionHealthCheckEnd2endDataFlowArgs

    LastUpdatedAt string
    Message string
    Status string
    LastUpdatedAt string
    Message string
    Status string
    last_updated_at string
    message string
    status string
    lastUpdatedAt String
    message String
    status String
    lastUpdatedAt string
    message string
    status string
    lastUpdatedAt String
    message String
    status String

    FederatedLogsPartitionHealthCheckQueryConnection, FederatedLogsPartitionHealthCheckQueryConnectionArgs

    LastUpdatedAt string
    Message string
    Status string
    LastUpdatedAt string
    Message string
    Status string
    last_updated_at string
    message string
    status string
    lastUpdatedAt String
    message String
    status String
    lastUpdatedAt string
    message string
    status string
    lastUpdatedAt String
    message String
    status String

    FederatedLogsPartitionLifecycleStatus, FederatedLogsPartitionLifecycleStatusArgs

    LastUpdatedAt string
    Message string
    Status string
    LastUpdatedAt string
    Message string
    Status string
    last_updated_at string
    message string
    status string
    lastUpdatedAt String
    message String
    status String
    lastUpdatedAt string
    message string
    status string
    lastUpdatedAt String
    message String
    status String

    FederatedLogsPartitionStorage, FederatedLogsPartitionStorageArgs

    DataLocationUri string
    S3 URI of the partition's data location.
    Table string
    Glue table name for the partition.
    DataLocationUri string
    S3 URI of the partition's data location.
    Table string
    Glue table name for the partition.
    data_location_uri string
    S3 URI of the partition's data location.
    table string
    Glue table name for the partition.
    dataLocationUri String
    S3 URI of the partition's data location.
    table String
    Glue table name for the partition.
    dataLocationUri string
    S3 URI of the partition's data location.
    table string
    Glue table name for the partition.
    data_location_uri str
    S3 URI of the partition's data location.
    table str
    Glue table name for the partition.
    dataLocationUri String
    S3 URI of the partition's data location.
    table String
    Glue table name for the partition.

    Import

    Federated Logs partitions can be imported using the entity GUID:

    $ pulumi import newrelic:index/federatedLogsPartition:FederatedLogsPartition foo <entity-guid>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    Viewing docs for New Relic v5.72.0
    published on Thursday, Jun 11, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial