1. Packages
  2. Elasticstack Provider
  3. API Docs
  4. FleetIntegrationPolicy
elasticstack 0.11.15 published on Wednesday, Apr 23, 2025 by elastic

elasticstack.FleetIntegrationPolicy

Explore with Pulumi AI

elasticstack logo
elasticstack 0.11.15 published on Wednesday, Apr 23, 2025 by elastic

    Creates or updates a Fleet Integration Policy.

    It is highly recommended that all inputs and streams are provided in the pulumi preview, even if some are disabled. Otherwise, differences may appear between what is in the plan versus what is returned by the Fleet API.

    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("sampleFleetIntegration", {
        version: "1.16.0",
        force: true,
    });
    // An agent policy to hold the integration policy.
    const sampleFleetAgentPolicy = new elasticstack.FleetAgentPolicy("sampleFleetAgentPolicy", {
        namespace: "default",
        description: "A sample agent policy",
        monitorLogs: true,
        monitorMetrics: true,
        skipDestroy: false,
    });
    const sampleFleetEnrollmentTokens = elasticstack.getFleetEnrollmentTokensOutput({
        policyId: sampleFleetAgentPolicy.policyId,
    });
    // The integration policy.
    const sampleFleetIntegrationPolicy = new elasticstack.FleetIntegrationPolicy("sampleFleetIntegrationPolicy", {
        namespace: "default",
        description: "A sample integration policy",
        agentPolicyId: sampleFleetAgentPolicy.policyId,
        integrationName: sampleFleetIntegration.name,
        integrationVersion: sampleFleetIntegration.version,
        inputs: [{
            inputId: "tcp-tcp",
            streamsJson: JSON.stringify({
                "tcp.generic": {
                    enabled: true,
                    vars: {
                        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("sampleFleetIntegration",
        version="1.16.0",
        force=True)
    # An agent policy to hold the integration policy.
    sample_fleet_agent_policy = elasticstack.FleetAgentPolicy("sampleFleetAgentPolicy",
        namespace="default",
        description="A sample agent policy",
        monitor_logs=True,
        monitor_metrics=True,
        skip_destroy=False)
    sample_fleet_enrollment_tokens = elasticstack.get_fleet_enrollment_tokens_output(policy_id=sample_fleet_agent_policy.policy_id)
    # The integration policy.
    sample_fleet_integration_policy = elasticstack.FleetIntegrationPolicy("sampleFleetIntegrationPolicy",
        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=[{
            "input_id": "tcp-tcp",
            "streams_json": json.dumps({
                "tcp.generic": {
                    "enabled": True,
                    "vars": {
                        "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, "sampleFleetIntegration", &elasticstack.FleetIntegrationArgs{
    			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, "sampleFleetAgentPolicy", &elasticstack.FleetAgentPolicyArgs{
    			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
    		}
    		_ = elasticstack.GetFleetEnrollmentTokensOutput(ctx, elasticstack.GetFleetEnrollmentTokensOutputArgs{
    			PolicyId: sampleFleetAgentPolicy.PolicyId,
    		}, nil)
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"tcp.generic": map[string]interface{}{
    				"enabled": true,
    				"vars": 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, "sampleFleetIntegrationPolicy", &elasticstack.FleetIntegrationPolicyArgs{
    			Namespace:          pulumi.String("default"),
    			Description:        pulumi.String("A sample integration policy"),
    			AgentPolicyId:      sampleFleetAgentPolicy.PolicyId,
    			IntegrationName:    sampleFleetIntegration.Name,
    			IntegrationVersion: sampleFleetIntegration.Version,
    			Inputs: elasticstack.FleetIntegrationPolicyInputTypeArray{
    				&elasticstack.FleetIntegrationPolicyInputTypeArgs{
    					InputId:     pulumi.String("tcp-tcp"),
    					StreamsJson: 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("sampleFleetIntegration", new()
        {
            Version = "1.16.0",
            Force = true,
        });
    
        // An agent policy to hold the integration policy.
        var sampleFleetAgentPolicy = new Elasticstack.FleetAgentPolicy("sampleFleetAgentPolicy", new()
        {
            Namespace = "default",
            Description = "A sample agent policy",
            MonitorLogs = true,
            MonitorMetrics = true,
            SkipDestroy = false,
        });
    
        var sampleFleetEnrollmentTokens = Elasticstack.GetFleetEnrollmentTokens.Invoke(new()
        {
            PolicyId = sampleFleetAgentPolicy.PolicyId,
        });
    
        // The integration policy.
        var sampleFleetIntegrationPolicy = new Elasticstack.FleetIntegrationPolicy("sampleFleetIntegrationPolicy", new()
        {
            Namespace = "default",
            Description = "A sample integration policy",
            AgentPolicyId = sampleFleetAgentPolicy.PolicyId,
            IntegrationName = sampleFleetIntegration.Name,
            IntegrationVersion = sampleFleetIntegration.Version,
            Inputs = new[]
            {
                new Elasticstack.Inputs.FleetIntegrationPolicyInputArgs
                {
                    InputId = "tcp-tcp",
                    StreamsJson = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["tcp.generic"] = new Dictionary<string, object?>
                        {
                            ["enabled"] = true,
                            ["vars"] = 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 com.pulumi.elasticstack.inputs.FleetIntegrationPolicyInputArgs;
    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()
                .version("1.16.0")
                .force(true)
                .build());
    
            // An agent policy to hold the integration policy.
            var sampleFleetAgentPolicy = new FleetAgentPolicy("sampleFleetAgentPolicy", FleetAgentPolicyArgs.builder()
                .namespace("default")
                .description("A sample agent policy")
                .monitorLogs(true)
                .monitorMetrics(true)
                .skipDestroy(false)
                .build());
    
            final var sampleFleetEnrollmentTokens = ElasticstackFunctions.getFleetEnrollmentTokens(GetFleetEnrollmentTokensArgs.builder()
                .policyId(sampleFleetAgentPolicy.policyId())
                .build());
    
            // The integration policy.
            var sampleFleetIntegrationPolicy = new FleetIntegrationPolicy("sampleFleetIntegrationPolicy", FleetIntegrationPolicyArgs.builder()
                .namespace("default")
                .description("A sample integration policy")
                .agentPolicyId(sampleFleetAgentPolicy.policyId())
                .integrationName(sampleFleetIntegration.name())
                .integrationVersion(sampleFleetIntegration.version())
                .inputs(FleetIntegrationPolicyInputArgs.builder()
                    .inputId("tcp-tcp")
                    .streamsJson(serializeJson(
                        jsonObject(
                            jsonProperty("tcp.generic", jsonObject(
                                jsonProperty("enabled", true),
                                jsonProperty("vars", 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());
    
        }
    }
    
    resources:
      # The integration to use.
      sampleFleetIntegration:
        type: elasticstack:FleetIntegration
        properties:
          version: 1.16.0
          force: true
      # An agent policy to hold the integration policy.
      sampleFleetAgentPolicy:
        type: elasticstack:FleetAgentPolicy
        properties:
          namespace: default
          description: A sample agent policy
          monitorLogs: true
          monitorMetrics: true
          skipDestroy: false
      # The integration policy.
      sampleFleetIntegrationPolicy:
        type: elasticstack:FleetIntegrationPolicy
        properties:
          namespace: default
          description: A sample integration policy
          agentPolicyId: ${sampleFleetAgentPolicy.policyId}
          integrationName: ${sampleFleetIntegration.name}
          integrationVersion: ${sampleFleetIntegration.version}
          inputs:
            - inputId: tcp-tcp
              streamsJson:
                fn::toJSON:
                  tcp.generic:
                    enabled: true
                    vars:
                      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:
      sampleFleetEnrollmentTokens:
        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,
                               agent_policy_id: Optional[str] = None,
                               integration_name: Optional[str] = None,
                               integration_version: Optional[str] = None,
                               namespace: Optional[str] = None,
                               description: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               force: Optional[bool] = None,
                               inputs: Optional[Sequence[FleetIntegrationPolicyInputArgs]] = None,
                               name: Optional[str] = None,
                               policy_id: 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()
    {
        AgentPolicyId = "string",
        IntegrationName = "string",
        IntegrationVersion = "string",
        Namespace = "string",
        Description = "string",
        Enabled = false,
        Force = false,
        Inputs = new[]
        {
            new Elasticstack.Inputs.FleetIntegrationPolicyInputArgs
            {
                InputId = "string",
                Enabled = false,
                StreamsJson = "string",
                VarsJson = "string",
            },
        },
        Name = "string",
        PolicyId = "string",
        VarsJson = "string",
    });
    
    example, err := elasticstack.NewFleetIntegrationPolicy(ctx, "fleetIntegrationPolicyResource", &elasticstack.FleetIntegrationPolicyArgs{
    	AgentPolicyId:      pulumi.String("string"),
    	IntegrationName:    pulumi.String("string"),
    	IntegrationVersion: pulumi.String("string"),
    	Namespace:          pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	Enabled:            pulumi.Bool(false),
    	Force:              pulumi.Bool(false),
    	Inputs: elasticstack.FleetIntegrationPolicyInputTypeArray{
    		&elasticstack.FleetIntegrationPolicyInputTypeArgs{
    			InputId:     pulumi.String("string"),
    			Enabled:     pulumi.Bool(false),
    			StreamsJson: pulumi.String("string"),
    			VarsJson:    pulumi.String("string"),
    		},
    	},
    	Name:     pulumi.String("string"),
    	PolicyId: pulumi.String("string"),
    	VarsJson: pulumi.String("string"),
    })
    
    var fleetIntegrationPolicyResource = new FleetIntegrationPolicy("fleetIntegrationPolicyResource", FleetIntegrationPolicyArgs.builder()
        .agentPolicyId("string")
        .integrationName("string")
        .integrationVersion("string")
        .namespace("string")
        .description("string")
        .enabled(false)
        .force(false)
        .inputs(FleetIntegrationPolicyInputArgs.builder()
            .inputId("string")
            .enabled(false)
            .streamsJson("string")
            .varsJson("string")
            .build())
        .name("string")
        .policyId("string")
        .varsJson("string")
        .build());
    
    fleet_integration_policy_resource = elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource",
        agent_policy_id="string",
        integration_name="string",
        integration_version="string",
        namespace="string",
        description="string",
        enabled=False,
        force=False,
        inputs=[{
            "input_id": "string",
            "enabled": False,
            "streams_json": "string",
            "vars_json": "string",
        }],
        name="string",
        policy_id="string",
        vars_json="string")
    
    const fleetIntegrationPolicyResource = new elasticstack.FleetIntegrationPolicy("fleetIntegrationPolicyResource", {
        agentPolicyId: "string",
        integrationName: "string",
        integrationVersion: "string",
        namespace: "string",
        description: "string",
        enabled: false,
        force: false,
        inputs: [{
            inputId: "string",
            enabled: false,
            streamsJson: "string",
            varsJson: "string",
        }],
        name: "string",
        policyId: "string",
        varsJson: "string",
    });
    
    type: elasticstack:FleetIntegrationPolicy
    properties:
        agentPolicyId: string
        description: string
        enabled: false
        force: false
        inputs:
            - enabled: false
              inputId: string
              streamsJson: string
              varsJson: string
        integrationName: string
        integrationVersion: string
        name: string
        namespace: string
        policyId: 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:

    AgentPolicyId string
    ID of the agent policy.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    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 List<FleetIntegrationPolicyInput>
    Integration inputs.
    Name string
    The name of the integration policy.
    PolicyId string
    Unique identifier of the integration policy.
    VarsJson string
    Integration-level variables as JSON.
    AgentPolicyId string
    ID of the agent policy.
    IntegrationName string
    The name of the integration package.
    IntegrationVersion string
    The version of the integration package.
    Namespace string
    The namespace of the integration policy.
    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 []FleetIntegrationPolicyInputTypeArgs
    Integration inputs.
    Name string
    The name of the integration policy.
    PolicyId string
    Unique identifier of the integration policy.
    VarsJson string
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    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 List<FleetIntegrationPolicyInput>
    Integration inputs.
    name String
    The name of the integration policy.
    policyId String
    Unique identifier of the integration policy.
    varsJson String
    Integration-level variables as JSON.
    agentPolicyId string
    ID of the agent policy.
    integrationName string
    The name of the integration package.
    integrationVersion string
    The version of the integration package.
    namespace string
    The namespace of the integration policy.
    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 FleetIntegrationPolicyInput[]
    Integration inputs.
    name string
    The name of the integration policy.
    policyId string
    Unique identifier of the integration policy.
    varsJson string
    Integration-level variables as JSON.
    agent_policy_id str
    ID of the agent policy.
    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.
    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 Sequence[FleetIntegrationPolicyInputArgs]
    Integration inputs.
    name str
    The name of the integration policy.
    policy_id str
    Unique identifier of the integration policy.
    vars_json str
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    integrationName String
    The name of the integration package.
    integrationVersion String
    The version of the integration package.
    namespace String
    The namespace of the integration policy.
    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 List<Property Map>
    Integration inputs.
    name String
    The name of the integration policy.
    policyId String
    Unique identifier of the integration policy.
    varsJson String
    Integration-level variables as JSON.

    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,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            force: Optional[bool] = None,
            inputs: Optional[Sequence[FleetIntegrationPolicyInputArgs]] = None,
            integration_name: Optional[str] = None,
            integration_version: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            policy_id: Optional[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.
    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 List<FleetIntegrationPolicyInput>
    Integration inputs.
    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.
    PolicyId string
    Unique identifier of the integration policy.
    VarsJson string
    Integration-level variables as JSON.
    AgentPolicyId string
    ID of the agent policy.
    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 []FleetIntegrationPolicyInputTypeArgs
    Integration inputs.
    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.
    PolicyId string
    Unique identifier of the integration policy.
    VarsJson string
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    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 List<FleetIntegrationPolicyInput>
    Integration inputs.
    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.
    policyId String
    Unique identifier of the integration policy.
    varsJson String
    Integration-level variables as JSON.
    agentPolicyId string
    ID of the agent policy.
    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 FleetIntegrationPolicyInput[]
    Integration inputs.
    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.
    policyId string
    Unique identifier of the integration policy.
    varsJson string
    Integration-level variables as JSON.
    agent_policy_id str
    ID of the agent policy.
    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 Sequence[FleetIntegrationPolicyInputArgs]
    Integration inputs.
    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.
    policy_id str
    Unique identifier of the integration policy.
    vars_json str
    Integration-level variables as JSON.
    agentPolicyId String
    ID of the agent policy.
    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 List<Property Map>
    Integration inputs.
    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.
    policyId String
    Unique identifier of the integration policy.
    varsJson String
    Integration-level variables as JSON.

    Supporting Types

    FleetIntegrationPolicyInput, FleetIntegrationPolicyInputArgs

    InputId string
    The identifier of the input.
    Enabled bool
    Enable the input.
    StreamsJson string
    Input streams as JSON.
    VarsJson string
    Input variables as JSON.
    InputId string
    The identifier of the input.
    Enabled bool
    Enable the input.
    StreamsJson string
    Input streams as JSON.
    VarsJson string
    Input variables as JSON.
    inputId String
    The identifier of the input.
    enabled Boolean
    Enable the input.
    streamsJson String
    Input streams as JSON.
    varsJson String
    Input variables as JSON.
    inputId string
    The identifier of the input.
    enabled boolean
    Enable the input.
    streamsJson string
    Input streams as JSON.
    varsJson string
    Input variables as JSON.
    input_id str
    The identifier of the input.
    enabled bool
    Enable the input.
    streams_json str
    Input streams as JSON.
    vars_json str
    Input variables as JSON.
    inputId String
    The identifier of the input.
    enabled Boolean
    Enable the input.
    streamsJson String
    Input streams as JSON.
    varsJson String
    Input variables as JSON.

    Import

    $ 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
    elasticstack 0.11.15 published on Wednesday, Apr 23, 2025 by elastic