1. Packages
  2. Elasticstack Provider
  3. API Docs
  4. FleetIntegrationPolicy
Viewing docs for elasticstack 0.14.3
published on Tuesday, Mar 3, 2026 by elastic
elasticstack logo
Viewing docs for elasticstack 0.14.3
published on Tuesday, Mar 3, 2026 by elastic

    Creates or updates a Fleet Integration Policy.

    The Kibana Fleet UI can be used as a reference for what data needs to be provided. Instead of saving a new integration configuration, the API request can be previewed, showing what values need to be provided for inputs and their streams.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    // The integration to use.
    const sampleFleetIntegration = new elasticstack.FleetIntegration("sample", {
        name: "tcp",
        version: "1.16.0",
        force: true,
    });
    // An agent policy to hold the integration policy.
    const sampleFleetAgentPolicy = new elasticstack.FleetAgentPolicy("sample", {
        name: "Sample Agent Policy",
        namespace: "default",
        description: "A sample agent policy",
        monitorLogs: true,
        monitorMetrics: true,
        skipDestroy: false,
    });
    // The associated enrollment token.
    const sample = elasticstack.getFleetEnrollmentTokensOutput({
        policyId: sampleFleetAgentPolicy.policyId,
    });
    // The integration policy.
    const sampleFleetIntegrationPolicy = new elasticstack.FleetIntegrationPolicy("sample", {
        name: "Sample Integration Policy",
        namespace: "default",
        description: "A sample integration policy",
        agentPolicyId: sampleFleetAgentPolicy.policyId,
        integrationName: sampleFleetIntegration.name,
        integrationVersion: sampleFleetIntegration.version,
        inputs: {
            "tcp-tcp": {
                enabled: true,
                streams: {
                    "tcp.generic": {
                        enabled: true,
                        vars: JSON.stringify({
                            listen_address: "localhost",
                            listen_port: 8080,
                            "data_stream.dataset": "tcp.generic",
                            tags: [],
                            syslog_options: `field: message
    #format: auto
    #timezone: Local
    `,
                            ssl: `#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    `,
                            custom: "",
                        }),
                    },
                },
            },
        },
    });
    
    import pulumi
    import json
    import pulumi_elasticstack as elasticstack
    
    # The integration to use.
    sample_fleet_integration = elasticstack.FleetIntegration("sample",
        name="tcp",
        version="1.16.0",
        force=True)
    # An agent policy to hold the integration policy.
    sample_fleet_agent_policy = elasticstack.FleetAgentPolicy("sample",
        name="Sample Agent Policy",
        namespace="default",
        description="A sample agent policy",
        monitor_logs=True,
        monitor_metrics=True,
        skip_destroy=False)
    # The associated enrollment token.
    sample = elasticstack.get_fleet_enrollment_tokens_output(policy_id=sample_fleet_agent_policy.policy_id)
    # The integration policy.
    sample_fleet_integration_policy = elasticstack.FleetIntegrationPolicy("sample",
        name="Sample Integration Policy",
        namespace="default",
        description="A sample integration policy",
        agent_policy_id=sample_fleet_agent_policy.policy_id,
        integration_name=sample_fleet_integration.name,
        integration_version=sample_fleet_integration.version,
        inputs={
            "tcp-tcp": {
                "enabled": True,
                "streams": {
                    "tcp.generic": {
                        "enabled": True,
                        "vars": json.dumps({
                            "listen_address": "localhost",
                            "listen_port": 8080,
                            "data_stream.dataset": "tcp.generic",
                            "tags": [],
                            "syslog_options": """field: message
    #format: auto
    #timezone: Local
    """,
                            "ssl": """#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    """,
                            "custom": "",
                        }),
                    },
                },
            },
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// The integration to use.
    		sampleFleetIntegration, err := elasticstack.NewFleetIntegration(ctx, "sample", &elasticstack.FleetIntegrationArgs{
    			Name:    pulumi.String("tcp"),
    			Version: pulumi.String("1.16.0"),
    			Force:   pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// An agent policy to hold the integration policy.
    		sampleFleetAgentPolicy, err := elasticstack.NewFleetAgentPolicy(ctx, "sample", &elasticstack.FleetAgentPolicyArgs{
    			Name:           pulumi.String("Sample Agent Policy"),
    			Namespace:      pulumi.String("default"),
    			Description:    pulumi.String("A sample agent policy"),
    			MonitorLogs:    pulumi.Bool(true),
    			MonitorMetrics: pulumi.Bool(true),
    			SkipDestroy:    pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// The associated enrollment token.
    		_ = elasticstack.GetFleetEnrollmentTokensOutput(ctx, elasticstack.GetFleetEnrollmentTokensOutputArgs{
    			PolicyId: sampleFleetAgentPolicy.PolicyId,
    		}, nil)
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"listen_address":      "localhost",
    			"listen_port":         8080,
    			"data_stream.dataset": "tcp.generic",
    			"tags":                []interface{}{},
    			"syslog_options":      "field: message\n#format: auto\n#timezone: Local\n",
    			"ssl": `#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    `,
    			"custom": "",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		// The integration policy.
    		_, err = elasticstack.NewFleetIntegrationPolicy(ctx, "sample", &elasticstack.FleetIntegrationPolicyArgs{
    			Name:               pulumi.String("Sample Integration Policy"),
    			Namespace:          pulumi.String("default"),
    			Description:        pulumi.String("A sample integration policy"),
    			AgentPolicyId:      sampleFleetAgentPolicy.PolicyId,
    			IntegrationName:    sampleFleetIntegration.Name,
    			IntegrationVersion: sampleFleetIntegration.Version,
    			Inputs: elasticstack.FleetIntegrationPolicyInputsMap{
    				"tcp-tcp": &elasticstack.FleetIntegrationPolicyInputsArgs{
    					Enabled: pulumi.Bool(true),
    					Streams: elasticstack.FleetIntegrationPolicyInputsStreamsMap{
    						"tcp.generic": &elasticstack.FleetIntegrationPolicyInputsStreamsArgs{
    							Enabled: pulumi.Bool(true),
    							Vars:    pulumi.String(json0),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        // The integration to use.
        var sampleFleetIntegration = new Elasticstack.FleetIntegration("sample", new()
        {
            Name = "tcp",
            Version = "1.16.0",
            Force = true,
        });
    
        // An agent policy to hold the integration policy.
        var sampleFleetAgentPolicy = new Elasticstack.FleetAgentPolicy("sample", new()
        {
            Name = "Sample Agent Policy",
            Namespace = "default",
            Description = "A sample agent policy",
            MonitorLogs = true,
            MonitorMetrics = true,
            SkipDestroy = false,
        });
    
        // The associated enrollment token.
        var sample = Elasticstack.GetFleetEnrollmentTokens.Invoke(new()
        {
            PolicyId = sampleFleetAgentPolicy.PolicyId,
        });
    
        // The integration policy.
        var sampleFleetIntegrationPolicy = new Elasticstack.FleetIntegrationPolicy("sample", new()
        {
            Name = "Sample Integration Policy",
            Namespace = "default",
            Description = "A sample integration policy",
            AgentPolicyId = sampleFleetAgentPolicy.PolicyId,
            IntegrationName = sampleFleetIntegration.Name,
            IntegrationVersion = sampleFleetIntegration.Version,
            Inputs = 
            {
                { "tcp-tcp", new Elasticstack.Inputs.FleetIntegrationPolicyInputsArgs
                {
                    Enabled = true,
                    Streams = 
                    {
                        { "tcp.generic", new Elasticstack.Inputs.FleetIntegrationPolicyInputsStreamsArgs
                        {
                            Enabled = true,
                            Vars = JsonSerializer.Serialize(new Dictionary<string, object?>
                            {
                                ["listen_address"] = "localhost",
                                ["listen_port"] = 8080,
                                ["data_stream.dataset"] = "tcp.generic",
                                ["tags"] = new[]
                                {
                                },
                                ["syslog_options"] = @"field: message
    #format: auto
    #timezone: Local
    ",
                                ["ssl"] = @"#certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
    ",
                                ["custom"] = "",
                            }),
                        } },
                    },
                } },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.FleetIntegration;
    import com.pulumi.elasticstack.FleetIntegrationArgs;
    import com.pulumi.elasticstack.FleetAgentPolicy;
    import com.pulumi.elasticstack.FleetAgentPolicyArgs;
    import com.pulumi.elasticstack.ElasticstackFunctions;
    import com.pulumi.elasticstack.inputs.GetFleetEnrollmentTokensArgs;
    import com.pulumi.elasticstack.FleetIntegrationPolicy;
    import com.pulumi.elasticstack.FleetIntegrationPolicyArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            // The integration to use.
            var sampleFleetIntegration = new FleetIntegration("sampleFleetIntegration", FleetIntegrationArgs.builder()
                .name("tcp")
                .version("1.16.0")
                .force(true)
                .build());
    
            // An agent policy to hold the integration policy.
            var sampleFleetAgentPolicy = new FleetAgentPolicy("sampleFleetAgentPolicy", FleetAgentPolicyArgs.builder()
                .name("Sample Agent Policy")
                .namespace("default")
                .description("A sample agent policy")
                .monitorLogs(true)
                .monitorMetrics(true)
                .skipDestroy(false)
                .build());
    
            // The associated enrollment token.
            final var sample = ElasticstackFunctions.getFleetEnrollmentTokens(GetFleetEnrollmentTokensArgs.builder()
                .policyId(sampleFleetAgentPolicy.policyId())
                .build());
    
            // The integration policy.
            var sampleFleetIntegrationPolicy = new FleetIntegrationPolicy("sampleFleetIntegrationPolicy", FleetIntegrationPolicyArgs.builder()
                .name("Sample Integration Policy")
                .namespace("default")
                .description("A sample integration policy")
                .agentPolicyId(sampleFleetAgentPolicy.policyId())
                .integrationName(sampleFleetIntegration.name())
                .integrationVersion(sampleFleetIntegration.version())
                .inputs(Map.of("tcp-tcp", FleetIntegrationPolicyInputsArgs.builder()
                    .enabled(true)
                    .streams(Map.of("tcp.generic", FleetIntegrationPolicyInputsStreamsArgs.builder()
                        .enabled(true)
                        .vars(serializeJson(
                            jsonObject(
                                jsonProperty("listen_address", "localhost"),
                                jsonProperty("listen_port", 8080),
                                jsonProperty("data_stream.dataset", "tcp.generic"),
                                jsonProperty("tags", jsonArray(
                                )),
                                jsonProperty("syslog_options", """
    field: message
    #format: auto
    #timezone: Local
                                """),
                                jsonProperty("ssl", """
    #certificate: |
    #    -----BEGIN CERTIFICATE-----
    #    ...
    #    -----END CERTIFICATE-----
    #key: |
    #    -----BEGIN PRIVATE KEY-----
    #    ...
    #    -----END PRIVATE KEY-----
                                """),
                                jsonProperty("custom", "")
                            )))
                        .build()))
                    .build()))
                .build());
    
        }
    }
    
    resources:
      # The integration to use.
      sampleFleetIntegration:
        type: elasticstack:FleetIntegration
        name: sample
        properties:
          name: tcp
          version: 1.16.0
          force: true
      # An agent policy to hold the integration policy.
      sampleFleetAgentPolicy:
        type: elasticstack:FleetAgentPolicy
        name: sample
        properties:
          name: Sample Agent Policy
          namespace: default
          description: A sample agent policy
          monitorLogs: true
          monitorMetrics: true
          skipDestroy: false
      # The integration policy.
      sampleFleetIntegrationPolicy:
        type: elasticstack:FleetIntegrationPolicy
        name: sample
        properties:
          name: Sample Integration Policy
          namespace: default
          description: A sample integration policy
          agentPolicyId: ${sampleFleetAgentPolicy.policyId}
          integrationName: ${sampleFleetIntegration.name}
          integrationVersion: ${sampleFleetIntegration.version}
          inputs:
            tcp-tcp:
              enabled: true
              streams:
                tcp.generic:
                  enabled: true
                  vars:
                    fn::toJSON:
                      listen_address: localhost
                      listen_port: 8080
                      data_stream.dataset: tcp.generic
                      tags: []
                      syslog_options: |
                        field: message
                        #format: auto
                        #timezone: Local
                      ssl: |
                        #certificate: |
                        #    -----BEGIN CERTIFICATE-----
                        #    ...
                        #    -----END CERTIFICATE-----
                        #key: |
                        #    -----BEGIN PRIVATE KEY-----
                        #    ...
                        #    -----END PRIVATE KEY-----
                      custom: ""
    variables:
      # The associated enrollment token.
      sample:
        fn::invoke:
          function: elasticstack:getFleetEnrollmentTokens
          arguments:
            policyId: ${sampleFleetAgentPolicy.policyId}
    

    Create FleetIntegrationPolicy Resource

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

    Constructor syntax

    new FleetIntegrationPolicy(name: string, args: FleetIntegrationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def FleetIntegrationPolicy(resource_name: str,
                               args: FleetIntegrationPolicyArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetIntegrationPolicy(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               namespace: Optional[str] = None,
                               integration_name: Optional[str] = None,
                               integration_version: Optional[str] = None,
                               space_ids: Optional[Sequence[str]] = None,
                               force: Optional[bool] = None,
                               inputs: Optional[Mapping[str, FleetIntegrationPolicyInputsArgs]] = None,
                               name: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               agent_policy_ids: Optional[Sequence[str]] = None,
                               agent_policy_id: Optional[str] = None,
                               output_id: Optional[str] = None,
                               policy_id: Optional[str] = None,
                               description: Optional[str] = None,
                               vars_json: Optional[str] = None)
    func NewFleetIntegrationPolicy(ctx *Context, name string, args FleetIntegrationPolicyArgs, opts ...ResourceOption) (*FleetIntegrationPolicy, error)
    public FleetIntegrationPolicy(string name, FleetIntegrationPolicyArgs args, CustomResourceOptions? opts = null)
    public FleetIntegrationPolicy(String name, FleetIntegrationPolicyArgs args)
    public FleetIntegrationPolicy(String name, FleetIntegrationPolicyArgs args, CustomResourceOptions options)
    
    type: elasticstack:FleetIntegrationPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    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 FleetIntegrationPolicyArgs
    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 FleetIntegrationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetIntegrationPolicyArgs
    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 fleetIntegrationPolicyResource = new Elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource", new()
    {
        Namespace = "string",
        IntegrationName = "string",
        IntegrationVersion = "string",
        SpaceIds = new[]
        {
            "string",
        },
        Force = false,
        Inputs = 
        {
            { "string", new Elasticstack.Inputs.FleetIntegrationPolicyInputsArgs
            {
                Defaults = new Elasticstack.Inputs.FleetIntegrationPolicyInputsDefaultsArgs
                {
                    Streams = 
                    {
                        { "string", new Elasticstack.Inputs.FleetIntegrationPolicyInputsDefaultsStreamsArgs
                        {
                            Enabled = false,
                            Vars = "string",
                        } },
                    },
                    Vars = "string",
                },
                Enabled = false,
                Streams = 
                {
                    { "string", new Elasticstack.Inputs.FleetIntegrationPolicyInputsStreamsArgs
                    {
                        Enabled = false,
                        Vars = "string",
                    } },
                },
                Vars = "string",
            } },
        },
        Name = "string",
        Enabled = false,
        AgentPolicyIds = new[]
        {
            "string",
        },
        AgentPolicyId = "string",
        OutputId = "string",
        PolicyId = "string",
        Description = "string",
        VarsJson = "string",
    });
    
    example, err := elasticstack.NewFleetIntegrationPolicy(ctx, "fleetIntegrationPolicyResource", &elasticstack.FleetIntegrationPolicyArgs{
    	Namespace:          pulumi.String("string"),
    	IntegrationName:    pulumi.String("string"),
    	IntegrationVersion: pulumi.String("string"),
    	SpaceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Force: pulumi.Bool(false),
    	Inputs: elasticstack.FleetIntegrationPolicyInputsMap{
    		"string": &elasticstack.FleetIntegrationPolicyInputsArgs{
    			Defaults: &elasticstack.FleetIntegrationPolicyInputsDefaultsArgs{
    				Streams: elasticstack.FleetIntegrationPolicyInputsDefaultsStreamsMap{
    					"string": &elasticstack.FleetIntegrationPolicyInputsDefaultsStreamsArgs{
    						Enabled: pulumi.Bool(false),
    						Vars:    pulumi.String("string"),
    					},
    				},
    				Vars: pulumi.String("string"),
    			},
    			Enabled: pulumi.Bool(false),
    			Streams: elasticstack.FleetIntegrationPolicyInputsStreamsMap{
    				"string": &elasticstack.FleetIntegrationPolicyInputsStreamsArgs{
    					Enabled: pulumi.Bool(false),
    					Vars:    pulumi.String("string"),
    				},
    			},
    			Vars: pulumi.String("string"),
    		},
    	},
    	Name:    pulumi.String("string"),
    	Enabled: pulumi.Bool(false),
    	AgentPolicyIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AgentPolicyId: pulumi.String("string"),
    	OutputId:      pulumi.String("string"),
    	PolicyId:      pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	VarsJson:      pulumi.String("string"),
    })
    
    var fleetIntegrationPolicyResource = new FleetIntegrationPolicy("fleetIntegrationPolicyResource", FleetIntegrationPolicyArgs.builder()
        .namespace("string")
        .integrationName("string")
        .integrationVersion("string")
        .spaceIds("string")
        .force(false)
        .inputs(Map.of("string", FleetIntegrationPolicyInputsArgs.builder()
            .defaults(FleetIntegrationPolicyInputsDefaultsArgs.builder()
                .streams(Map.of("string", FleetIntegrationPolicyInputsDefaultsStreamsArgs.builder()
                    .enabled(false)
                    .vars("string")
                    .build()))
                .vars("string")
                .build())
            .enabled(false)
            .streams(Map.of("string", FleetIntegrationPolicyInputsStreamsArgs.builder()
                .enabled(false)
                .vars("string")
                .build()))
            .vars("string")
            .build()))
        .name("string")
        .enabled(false)
        .agentPolicyIds("string")
        .agentPolicyId("string")
        .outputId("string")
        .policyId("string")
        .description("string")
        .varsJson("string")
        .build());
    
    fleet_integration_policy_resource = elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource",
        namespace="string",
        integration_name="string",
        integration_version="string",
        space_ids=["string"],
        force=False,
        inputs={
            "string": {
                "defaults": {
                    "streams": {
                        "string": {
                            "enabled": False,
                            "vars": "string",
                        },
                    },
                    "vars": "string",
                },
                "enabled": False,
                "streams": {
                    "string": {
                        "enabled": False,
                        "vars": "string",
                    },
                },
                "vars": "string",
            },
        },
        name="string",
        enabled=False,
        agent_policy_ids=["string"],
        agent_policy_id="string",
        output_id="string",
        policy_id="string",
        description="string",
        vars_json="string")
    
    const fleetIntegrationPolicyResource = new elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource", {
        namespace: "string",
        integrationName: "string",
        integrationVersion: "string",
        spaceIds: ["string"],
        force: false,
        inputs: {
            string: {
                defaults: {
                    streams: {
                        string: {
                            enabled: false,
                            vars: "string",
                        },
                    },
                    vars: "string",
                },
                enabled: false,
                streams: {
                    string: {
                        enabled: false,
                        vars: "string",
                    },
                },
                vars: "string",
            },
        },
        name: "string",
        enabled: false,
        agentPolicyIds: ["string"],
        agentPolicyId: "string",
        outputId: "string",
        policyId: "string",
        description: "string",
        varsJson: "string",
    });
    
    type: elasticstack:FleetIntegrationPolicy
    properties:
        agentPolicyId: string
        agentPolicyIds:
            - string
        description: string
        enabled: false
        force: false
        inputs:
            string:
                defaults:
                    streams:
                        string:
                            enabled: false
                            vars: string
                    vars: string
                enabled: false
                streams:
                    string:
                        enabled: false
                        vars: string
                vars: string
        integrationName: string
        integrationVersion: string
        name: string
        namespace: string
        outputId: string
        policyId: string
        spaceIds:
            - string
        varsJson: string
    

    FleetIntegrationPolicy 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 FleetIntegrationPolicy resource accepts the following input properties:

    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds List<string>
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs Dictionary<string, FleetIntegrationPolicyInputsArgs>
    Integration inputs mapped by input ID.
    Name string
    The name of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds List<string>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds []string
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs map[string]FleetIntegrationPolicyInputsArgs
    Integration inputs mapped by input ID.
    Name string
    The name of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds []string
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs Map<String,FleetIntegrationPolicyInputsArgs>
    Integration inputs mapped by input ID.
    name String
    The name of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON. Variables vary depending on the integration package.
    integrationName string
    The name of the integration package.
    integrationVersion string
    The version of the integration package.
    namespace string
    The namespace of the integration policy.
    agentPolicyId string
    ID of the agent policy.
    agentPolicyIds string[]
    List of agent policy IDs.
    description string
    The description of the integration policy.
    enabled boolean
    Enable the integration policy.
    force boolean
    Force operations, such as creation and deletion, to occur.
    inputs {[key: string]: FleetIntegrationPolicyInputsArgs}
    Integration inputs mapped by input ID.
    name string
    The name of the integration policy.
    outputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId string
    Unique identifier of the integration policy.
    spaceIds string[]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    integration_name str
    The name of the integration package.
    integration_version str
    The version of the integration package.
    namespace str
    The namespace of the integration policy.
    agent_policy_id str
    ID of the agent policy.
    agent_policy_ids Sequence[str]
    List of agent policy IDs.
    description str
    The description of the integration policy.
    enabled bool
    Enable the integration policy.
    force bool
    Force operations, such as creation and deletion, to occur.
    inputs Mapping[str, FleetIntegrationPolicyInputsArgs]
    Integration inputs mapped by input ID.
    name str
    The name of the integration policy.
    output_id str
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policy_id str
    Unique identifier of the integration policy.
    space_ids Sequence[str]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    vars_json str
    Integration-level variables as JSON. Variables vary depending on the integration package.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs Map<Property Map>
    Integration inputs mapped by input ID.
    name String
    The name of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON. Variables vary depending on the integration package.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FleetIntegrationPolicy Resource

    Get an existing FleetIntegrationPolicy 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?: FleetIntegrationPolicyState, opts?: CustomResourceOptions): FleetIntegrationPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_policy_id: Optional[str] = None,
            agent_policy_ids: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            force: Optional[bool] = None,
            inputs: Optional[Mapping[str, FleetIntegrationPolicyInputsArgs]] = None,
            integration_name: Optional[str] = None,
            integration_version: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            output_id: Optional[str] = None,
            policy_id: Optional[str] = None,
            space_ids: Optional[Sequence[str]] = None,
            vars_json: Optional[str] = None) -> FleetIntegrationPolicy
    func GetFleetIntegrationPolicy(ctx *Context, name string, id IDInput, state *FleetIntegrationPolicyState, opts ...ResourceOption) (*FleetIntegrationPolicy, error)
    public static FleetIntegrationPolicy Get(string name, Input<string> id, FleetIntegrationPolicyState? state, CustomResourceOptions? opts = null)
    public static FleetIntegrationPolicy get(String name, Output<String> id, FleetIntegrationPolicyState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:FleetIntegrationPolicy    get:      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:
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds List<string>
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs Dictionary<string, FleetIntegrationPolicyInputsArgs>
    Integration inputs mapped by input ID.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Name string
    The name of the integration policy.
    Namespace string
    The namespace of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds List<string>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    AgentPolicyId string
    ID of the agent policy.
    AgentPolicyIds []string
    List of agent policy IDs.
    Description string
    The description of the integration policy.
    Enabled bool
    Enable the integration policy.
    Force bool
    Force operations, such as creation and deletion, to occur.
    Inputs map[string]FleetIntegrationPolicyInputsArgs
    Integration inputs mapped by input ID.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Name string
    The name of the integration policy.
    Namespace string
    The namespace of the integration policy.
    OutputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    PolicyId string
    Unique identifier of the integration policy.
    SpaceIds []string
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    VarsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs Map<String,FleetIntegrationPolicyInputsArgs>
    Integration inputs mapped by input ID.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    name String
    The name of the integration policy.
    namespace String
    The namespace of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON. Variables vary depending on the integration package.
    agentPolicyId string
    ID of the agent policy.
    agentPolicyIds string[]
    List of agent policy IDs.
    description string
    The description of the integration policy.
    enabled boolean
    Enable the integration policy.
    force boolean
    Force operations, such as creation and deletion, to occur.
    inputs {[key: string]: FleetIntegrationPolicyInputsArgs}
    Integration inputs mapped by input ID.
    integrationName string
    The name of the integration package.
    integrationVersion string
    The version of the integration package.
    name string
    The name of the integration policy.
    namespace string
    The namespace of the integration policy.
    outputId string
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId string
    Unique identifier of the integration policy.
    spaceIds string[]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson string
    Integration-level variables as JSON. Variables vary depending on the integration package.
    agent_policy_id str
    ID of the agent policy.
    agent_policy_ids Sequence[str]
    List of agent policy IDs.
    description str
    The description of the integration policy.
    enabled bool
    Enable the integration policy.
    force bool
    Force operations, such as creation and deletion, to occur.
    inputs Mapping[str, FleetIntegrationPolicyInputsArgs]
    Integration inputs mapped by input ID.
    integration_name str
    The name of the integration package.
    integration_version str
    The version of the integration package.
    name str
    The name of the integration policy.
    namespace str
    The namespace of the integration policy.
    output_id str
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policy_id str
    Unique identifier of the integration policy.
    space_ids Sequence[str]
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    vars_json str
    Integration-level variables as JSON. Variables vary depending on the integration package.
    agentPolicyId String
    ID of the agent policy.
    agentPolicyIds List<String>
    List of agent policy IDs.
    description String
    The description of the integration policy.
    enabled Boolean
    Enable the integration policy.
    force Boolean
    Force operations, such as creation and deletion, to occur.
    inputs Map<Property Map>
    Integration inputs mapped by input ID.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    name String
    The name of the integration policy.
    namespace String
    The namespace of the integration policy.
    outputId String
    The ID of the output to send data to. When not specified, the default output of the agent policy will be used.
    policyId String
    Unique identifier of the integration policy.
    spaceIds List<String>
    The Kibana space IDs where this integration policy is available. When set, must match the space_ids of the referenced agent policy. If not set, will be inherited from the agent policy. Note: The order of space IDs does not matter as this is a set.
    varsJson String
    Integration-level variables as JSON. Variables vary depending on the integration package.

    Supporting Types

    FleetIntegrationPolicyInputs, FleetIntegrationPolicyInputsArgs

    Defaults FleetIntegrationPolicyInputsDefaults
    Input defaults.
    Enabled bool
    Enable the input.
    Streams Dictionary<string, FleetIntegrationPolicyInputsStreams>
    Input streams mapped by stream ID.
    Vars string
    Input-level variables as JSON.
    Defaults FleetIntegrationPolicyInputsDefaults
    Input defaults.
    Enabled bool
    Enable the input.
    Streams map[string]FleetIntegrationPolicyInputsStreams
    Input streams mapped by stream ID.
    Vars string
    Input-level variables as JSON.
    defaults FleetIntegrationPolicyInputsDefaults
    Input defaults.
    enabled Boolean
    Enable the input.
    streams Map<String,FleetIntegrationPolicyInputsStreams>
    Input streams mapped by stream ID.
    vars String
    Input-level variables as JSON.
    defaults FleetIntegrationPolicyInputsDefaults
    Input defaults.
    enabled boolean
    Enable the input.
    streams {[key: string]: FleetIntegrationPolicyInputsStreams}
    Input streams mapped by stream ID.
    vars string
    Input-level variables as JSON.
    defaults FleetIntegrationPolicyInputsDefaults
    Input defaults.
    enabled bool
    Enable the input.
    streams Mapping[str, FleetIntegrationPolicyInputsStreams]
    Input streams mapped by stream ID.
    vars str
    Input-level variables as JSON.
    defaults Property Map
    Input defaults.
    enabled Boolean
    Enable the input.
    streams Map<Property Map>
    Input streams mapped by stream ID.
    vars String
    Input-level variables as JSON.

    FleetIntegrationPolicyInputsDefaults, FleetIntegrationPolicyInputsDefaultsArgs

    Streams Dictionary<string, FleetIntegrationPolicyInputsDefaultsStreams>
    Stream-level defaults mapped by stream ID.
    Vars string
    Input-level variable defaults as JSON.
    Streams map[string]FleetIntegrationPolicyInputsDefaultsStreams
    Stream-level defaults mapped by stream ID.
    Vars string
    Input-level variable defaults as JSON.
    streams Map<String,FleetIntegrationPolicyInputsDefaultsStreams>
    Stream-level defaults mapped by stream ID.
    vars String
    Input-level variable defaults as JSON.
    streams {[key: string]: FleetIntegrationPolicyInputsDefaultsStreams}
    Stream-level defaults mapped by stream ID.
    vars string
    Input-level variable defaults as JSON.
    streams Mapping[str, FleetIntegrationPolicyInputsDefaultsStreams]
    Stream-level defaults mapped by stream ID.
    vars str
    Input-level variable defaults as JSON.
    streams Map<Property Map>
    Stream-level defaults mapped by stream ID.
    vars String
    Input-level variable defaults as JSON.

    FleetIntegrationPolicyInputsDefaultsStreams, FleetIntegrationPolicyInputsDefaultsStreamsArgs

    Enabled bool
    Default enabled state for the stream.
    Vars string
    Stream-level variable defaults as JSON.
    Enabled bool
    Default enabled state for the stream.
    Vars string
    Stream-level variable defaults as JSON.
    enabled Boolean
    Default enabled state for the stream.
    vars String
    Stream-level variable defaults as JSON.
    enabled boolean
    Default enabled state for the stream.
    vars string
    Stream-level variable defaults as JSON.
    enabled bool
    Default enabled state for the stream.
    vars str
    Stream-level variable defaults as JSON.
    enabled Boolean
    Default enabled state for the stream.
    vars String
    Stream-level variable defaults as JSON.

    FleetIntegrationPolicyInputsStreams, FleetIntegrationPolicyInputsStreamsArgs

    Enabled bool
    Enable the stream.
    Vars string
    Stream-level variables as JSON.
    Enabled bool
    Enable the stream.
    Vars string
    Stream-level variables as JSON.
    enabled Boolean
    Enable the stream.
    vars String
    Stream-level variables as JSON.
    enabled boolean
    Enable the stream.
    vars string
    Stream-level variables as JSON.
    enabled bool
    Enable the stream.
    vars str
    Stream-level variables as JSON.
    enabled Boolean
    Enable the stream.
    vars String
    Stream-level variables as JSON.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import elasticstack:index/fleetIntegrationPolicy:FleetIntegrationPolicy my_policy <fleet_integration_policy_id>
    

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

    Package Details

    Repository
    elasticstack elastic/terraform-provider-elasticstack
    License
    Notes
    This Pulumi package is based on the elasticstack Terraform Provider.
    elasticstack logo
    Viewing docs for elasticstack 0.14.3
    published on Tuesday, Mar 3, 2026 by elastic
      Try Pulumi Cloud free. Your team will thank you.