1. Packages
  2. Elasticstack Provider
  3. API Docs
  4. KibanaSyntheticsParameter
elasticstack 0.11.17 published on Tuesday, Jul 22, 2025 by elastic

elasticstack.KibanaSyntheticsParameter

Explore with Pulumi AI

elasticstack logo
elasticstack 0.11.17 published on Tuesday, Jul 22, 2025 by elastic

    Creates or updates a Kibana synthetics parameter. See Working with secrets and sensitive values and API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    const example = new elasticstack.KibanaSyntheticsParameter("example", {
        description: "Example description",
        key: "example_key",
        tags: [
            "tag-a",
            "tag-b",
        ],
        value: "example_value",
    });
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    example = elasticstack.KibanaSyntheticsParameter("example",
        description="Example description",
        key="example_key",
        tags=[
            "tag-a",
            "tag-b",
        ],
        value="example_value")
    
    package main
    
    import (
    	"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 {
    		_, err := elasticstack.NewKibanaSyntheticsParameter(ctx, "example", &elasticstack.KibanaSyntheticsParameterArgs{
    			Description: pulumi.String("Example description"),
    			Key:         pulumi.String("example_key"),
    			Tags: pulumi.StringArray{
    				pulumi.String("tag-a"),
    				pulumi.String("tag-b"),
    			},
    			Value: pulumi.String("example_value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Elasticstack.KibanaSyntheticsParameter("example", new()
        {
            Description = "Example description",
            Key = "example_key",
            Tags = new[]
            {
                "tag-a",
                "tag-b",
            },
            Value = "example_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.KibanaSyntheticsParameter;
    import com.pulumi.elasticstack.KibanaSyntheticsParameterArgs;
    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) {
            var example = new KibanaSyntheticsParameter("example", KibanaSyntheticsParameterArgs.builder()
                .description("Example description")
                .key("example_key")
                .tags(            
                    "tag-a",
                    "tag-b")
                .value("example_value")
                .build());
    
        }
    }
    
    resources:
      example:
        type: elasticstack:KibanaSyntheticsParameter
        properties:
          description: Example description
          key: example_key
          tags:
            - tag-a
            - tag-b
          value: example_value
    

    Create KibanaSyntheticsParameter Resource

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

    Constructor syntax

    new KibanaSyntheticsParameter(name: string, args: KibanaSyntheticsParameterArgs, opts?: CustomResourceOptions);
    @overload
    def KibanaSyntheticsParameter(resource_name: str,
                                  args: KibanaSyntheticsParameterArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def KibanaSyntheticsParameter(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  key: Optional[str] = None,
                                  value: Optional[str] = None,
                                  description: Optional[str] = None,
                                  share_across_spaces: Optional[bool] = None,
                                  tags: Optional[Sequence[str]] = None)
    func NewKibanaSyntheticsParameter(ctx *Context, name string, args KibanaSyntheticsParameterArgs, opts ...ResourceOption) (*KibanaSyntheticsParameter, error)
    public KibanaSyntheticsParameter(string name, KibanaSyntheticsParameterArgs args, CustomResourceOptions? opts = null)
    public KibanaSyntheticsParameter(String name, KibanaSyntheticsParameterArgs args)
    public KibanaSyntheticsParameter(String name, KibanaSyntheticsParameterArgs args, CustomResourceOptions options)
    
    type: elasticstack:KibanaSyntheticsParameter
    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 KibanaSyntheticsParameterArgs
    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 KibanaSyntheticsParameterArgs
    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 KibanaSyntheticsParameterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KibanaSyntheticsParameterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KibanaSyntheticsParameterArgs
    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 kibanaSyntheticsParameterResource = new Elasticstack.KibanaSyntheticsParameter("kibanaSyntheticsParameterResource", new()
    {
        Key = "string",
        Value = "string",
        Description = "string",
        ShareAcrossSpaces = false,
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := elasticstack.NewKibanaSyntheticsParameter(ctx, "kibanaSyntheticsParameterResource", &elasticstack.KibanaSyntheticsParameterArgs{
    	Key:               pulumi.String("string"),
    	Value:             pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	ShareAcrossSpaces: pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var kibanaSyntheticsParameterResource = new KibanaSyntheticsParameter("kibanaSyntheticsParameterResource", KibanaSyntheticsParameterArgs.builder()
        .key("string")
        .value("string")
        .description("string")
        .shareAcrossSpaces(false)
        .tags("string")
        .build());
    
    kibana_synthetics_parameter_resource = elasticstack.KibanaSyntheticsParameter("kibanaSyntheticsParameterResource",
        key="string",
        value="string",
        description="string",
        share_across_spaces=False,
        tags=["string"])
    
    const kibanaSyntheticsParameterResource = new elasticstack.KibanaSyntheticsParameter("kibanaSyntheticsParameterResource", {
        key: "string",
        value: "string",
        description: "string",
        shareAcrossSpaces: false,
        tags: ["string"],
    });
    
    type: elasticstack:KibanaSyntheticsParameter
    properties:
        description: string
        key: string
        shareAcrossSpaces: false
        tags:
            - string
        value: string
    

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

    Key string
    The key of the parameter.
    Value string
    The value associated with the parameter.
    Description string
    A description of the parameter.
    ShareAcrossSpaces bool
    Whether the parameter should be shared across spaces.
    Tags List<string>
    An array of tags to categorize the parameter.
    Key string
    The key of the parameter.
    Value string
    The value associated with the parameter.
    Description string
    A description of the parameter.
    ShareAcrossSpaces bool
    Whether the parameter should be shared across spaces.
    Tags []string
    An array of tags to categorize the parameter.
    key String
    The key of the parameter.
    value String
    The value associated with the parameter.
    description String
    A description of the parameter.
    shareAcrossSpaces Boolean
    Whether the parameter should be shared across spaces.
    tags List<String>
    An array of tags to categorize the parameter.
    key string
    The key of the parameter.
    value string
    The value associated with the parameter.
    description string
    A description of the parameter.
    shareAcrossSpaces boolean
    Whether the parameter should be shared across spaces.
    tags string[]
    An array of tags to categorize the parameter.
    key str
    The key of the parameter.
    value str
    The value associated with the parameter.
    description str
    A description of the parameter.
    share_across_spaces bool
    Whether the parameter should be shared across spaces.
    tags Sequence[str]
    An array of tags to categorize the parameter.
    key String
    The key of the parameter.
    value String
    The value associated with the parameter.
    description String
    A description of the parameter.
    shareAcrossSpaces Boolean
    Whether the parameter should be shared across spaces.
    tags List<String>
    An array of tags to categorize the parameter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the KibanaSyntheticsParameter 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 KibanaSyntheticsParameter Resource

    Get an existing KibanaSyntheticsParameter 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?: KibanaSyntheticsParameterState, opts?: CustomResourceOptions): KibanaSyntheticsParameter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            key: Optional[str] = None,
            share_across_spaces: Optional[bool] = None,
            tags: Optional[Sequence[str]] = None,
            value: Optional[str] = None) -> KibanaSyntheticsParameter
    func GetKibanaSyntheticsParameter(ctx *Context, name string, id IDInput, state *KibanaSyntheticsParameterState, opts ...ResourceOption) (*KibanaSyntheticsParameter, error)
    public static KibanaSyntheticsParameter Get(string name, Input<string> id, KibanaSyntheticsParameterState? state, CustomResourceOptions? opts = null)
    public static KibanaSyntheticsParameter get(String name, Output<String> id, KibanaSyntheticsParameterState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:KibanaSyntheticsParameter    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:
    Description string
    A description of the parameter.
    Key string
    The key of the parameter.
    ShareAcrossSpaces bool
    Whether the parameter should be shared across spaces.
    Tags List<string>
    An array of tags to categorize the parameter.
    Value string
    The value associated with the parameter.
    Description string
    A description of the parameter.
    Key string
    The key of the parameter.
    ShareAcrossSpaces bool
    Whether the parameter should be shared across spaces.
    Tags []string
    An array of tags to categorize the parameter.
    Value string
    The value associated with the parameter.
    description String
    A description of the parameter.
    key String
    The key of the parameter.
    shareAcrossSpaces Boolean
    Whether the parameter should be shared across spaces.
    tags List<String>
    An array of tags to categorize the parameter.
    value String
    The value associated with the parameter.
    description string
    A description of the parameter.
    key string
    The key of the parameter.
    shareAcrossSpaces boolean
    Whether the parameter should be shared across spaces.
    tags string[]
    An array of tags to categorize the parameter.
    value string
    The value associated with the parameter.
    description str
    A description of the parameter.
    key str
    The key of the parameter.
    share_across_spaces bool
    Whether the parameter should be shared across spaces.
    tags Sequence[str]
    An array of tags to categorize the parameter.
    value str
    The value associated with the parameter.
    description String
    A description of the parameter.
    key String
    The key of the parameter.
    shareAcrossSpaces Boolean
    Whether the parameter should be shared across spaces.
    tags List<String>
    An array of tags to categorize the parameter.
    value String
    The value associated with the parameter.

    Import

    $ pulumi import elasticstack:index/kibanaSyntheticsParameter:KibanaSyntheticsParameter my_param <space id>/<param_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.17 published on Tuesday, Jul 22, 2025 by elastic