elasticstack.ElasticsearchDataStreamLifecycle
Explore with Pulumi AI
Configures the data stream lifecycle for the targeted data streams, see: https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-apis.html
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
// First we must have a index template created
const myDataStreamTemplate = new elasticstack.ElasticsearchIndexTemplate("myDataStreamTemplate", {
indexPatterns: ["my-stream*"],
dataStream: {},
});
// and now we can create data stream based on the index template
const myDataStream = new elasticstack.ElasticsearchDataStream("myDataStream", {}, {
dependsOn: [myDataStreamTemplate],
});
// finally we can manage lifecycle of data stream
const myDataStreamLifecycle = new elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycle", {dataRetention: "3d"}, {
dependsOn: [myDataStream],
});
// or you can use wildcards to manage multiple lifecycles at once
const myDataStreamLifecycleMultiple = new elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycleMultiple", {dataRetention: "3d"});
import pulumi
import pulumi_elasticstack as elasticstack
# First we must have a index template created
my_data_stream_template = elasticstack.ElasticsearchIndexTemplate("myDataStreamTemplate",
index_patterns=["my-stream*"],
data_stream={})
# and now we can create data stream based on the index template
my_data_stream = elasticstack.ElasticsearchDataStream("myDataStream", opts = pulumi.ResourceOptions(depends_on=[my_data_stream_template]))
# finally we can manage lifecycle of data stream
my_data_stream_lifecycle = elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycle", data_retention="3d",
opts = pulumi.ResourceOptions(depends_on=[my_data_stream]))
# or you can use wildcards to manage multiple lifecycles at once
my_data_stream_lifecycle_multiple = elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycleMultiple", data_retention="3d")
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 {
// First we must have a index template created
myDataStreamTemplate, err := elasticstack.NewElasticsearchIndexTemplate(ctx, "myDataStreamTemplate", &elasticstack.ElasticsearchIndexTemplateArgs{
IndexPatterns: pulumi.StringArray{
pulumi.String("my-stream*"),
},
DataStream: &elasticstack.ElasticsearchIndexTemplateDataStreamArgs{},
})
if err != nil {
return err
}
// and now we can create data stream based on the index template
myDataStream, err := elasticstack.NewElasticsearchDataStream(ctx, "myDataStream", nil, pulumi.DependsOn([]pulumi.Resource{
myDataStreamTemplate,
}))
if err != nil {
return err
}
// finally we can manage lifecycle of data stream
_, err = elasticstack.NewElasticsearchDataStreamLifecycle(ctx, "myDataStreamLifecycle", &elasticstack.ElasticsearchDataStreamLifecycleArgs{
DataRetention: pulumi.String("3d"),
}, pulumi.DependsOn([]pulumi.Resource{
myDataStream,
}))
if err != nil {
return err
}
// or you can use wildcards to manage multiple lifecycles at once
_, err = elasticstack.NewElasticsearchDataStreamLifecycle(ctx, "myDataStreamLifecycleMultiple", &elasticstack.ElasticsearchDataStreamLifecycleArgs{
DataRetention: pulumi.String("3d"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
// First we must have a index template created
var myDataStreamTemplate = new Elasticstack.ElasticsearchIndexTemplate("myDataStreamTemplate", new()
{
IndexPatterns = new[]
{
"my-stream*",
},
DataStream = null,
});
// and now we can create data stream based on the index template
var myDataStream = new Elasticstack.ElasticsearchDataStream("myDataStream", new()
{
}, new CustomResourceOptions
{
DependsOn =
{
myDataStreamTemplate,
},
});
// finally we can manage lifecycle of data stream
var myDataStreamLifecycle = new Elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycle", new()
{
DataRetention = "3d",
}, new CustomResourceOptions
{
DependsOn =
{
myDataStream,
},
});
// or you can use wildcards to manage multiple lifecycles at once
var myDataStreamLifecycleMultiple = new Elasticstack.ElasticsearchDataStreamLifecycle("myDataStreamLifecycleMultiple", new()
{
DataRetention = "3d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.ElasticsearchIndexTemplate;
import com.pulumi.elasticstack.ElasticsearchIndexTemplateArgs;
import com.pulumi.elasticstack.inputs.ElasticsearchIndexTemplateDataStreamArgs;
import com.pulumi.elasticstack.ElasticsearchDataStream;
import com.pulumi.elasticstack.ElasticsearchDataStreamArgs;
import com.pulumi.elasticstack.ElasticsearchDataStreamLifecycle;
import com.pulumi.elasticstack.ElasticsearchDataStreamLifecycleArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
// First we must have a index template created
var myDataStreamTemplate = new ElasticsearchIndexTemplate("myDataStreamTemplate", ElasticsearchIndexTemplateArgs.builder()
.indexPatterns("my-stream*")
.dataStream()
.build());
// and now we can create data stream based on the index template
var myDataStream = new ElasticsearchDataStream("myDataStream", ElasticsearchDataStreamArgs.Empty, CustomResourceOptions.builder()
.dependsOn(myDataStreamTemplate)
.build());
// finally we can manage lifecycle of data stream
var myDataStreamLifecycle = new ElasticsearchDataStreamLifecycle("myDataStreamLifecycle", ElasticsearchDataStreamLifecycleArgs.builder()
.dataRetention("3d")
.build(), CustomResourceOptions.builder()
.dependsOn(myDataStream)
.build());
// or you can use wildcards to manage multiple lifecycles at once
var myDataStreamLifecycleMultiple = new ElasticsearchDataStreamLifecycle("myDataStreamLifecycleMultiple", ElasticsearchDataStreamLifecycleArgs.builder()
.dataRetention("3d")
.build());
}
}
resources:
# First we must have a index template created
myDataStreamTemplate:
type: elasticstack:ElasticsearchIndexTemplate
properties:
indexPatterns:
- my-stream*
dataStream: {}
# and now we can create data stream based on the index template
myDataStream:
type: elasticstack:ElasticsearchDataStream
options:
dependsOn:
- ${myDataStreamTemplate}
# finally we can manage lifecycle of data stream
myDataStreamLifecycle:
type: elasticstack:ElasticsearchDataStreamLifecycle
properties:
dataRetention: 3d
options:
dependsOn:
- ${myDataStream}
# or you can use wildcards to manage multiple lifecycles at once
myDataStreamLifecycleMultiple:
type: elasticstack:ElasticsearchDataStreamLifecycle
properties:
dataRetention: 3d
Create ElasticsearchDataStreamLifecycle Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchDataStreamLifecycle(name: string, args?: ElasticsearchDataStreamLifecycleArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchDataStreamLifecycle(resource_name: str,
args: Optional[ElasticsearchDataStreamLifecycleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchDataStreamLifecycle(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_retention: Optional[str] = None,
downsamplings: Optional[Sequence[ElasticsearchDataStreamLifecycleDownsamplingArgs]] = None,
elasticsearch_connections: Optional[Sequence[ElasticsearchDataStreamLifecycleElasticsearchConnectionArgs]] = None,
enabled: Optional[bool] = None,
expand_wildcards: Optional[str] = None,
name: Optional[str] = None)
func NewElasticsearchDataStreamLifecycle(ctx *Context, name string, args *ElasticsearchDataStreamLifecycleArgs, opts ...ResourceOption) (*ElasticsearchDataStreamLifecycle, error)
public ElasticsearchDataStreamLifecycle(string name, ElasticsearchDataStreamLifecycleArgs? args = null, CustomResourceOptions? opts = null)
public ElasticsearchDataStreamLifecycle(String name, ElasticsearchDataStreamLifecycleArgs args)
public ElasticsearchDataStreamLifecycle(String name, ElasticsearchDataStreamLifecycleArgs args, CustomResourceOptions options)
type: elasticstack:ElasticsearchDataStreamLifecycle
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 ElasticsearchDataStreamLifecycleArgs
- 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 ElasticsearchDataStreamLifecycleArgs
- 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 ElasticsearchDataStreamLifecycleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchDataStreamLifecycleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchDataStreamLifecycleArgs
- 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 elasticsearchDataStreamLifecycleResource = new Elasticstack.ElasticsearchDataStreamLifecycle("elasticsearchDataStreamLifecycleResource", new()
{
DataRetention = "string",
Downsamplings = new[]
{
new Elasticstack.Inputs.ElasticsearchDataStreamLifecycleDownsamplingArgs
{
After = "string",
FixedInterval = "string",
},
},
Enabled = false,
ExpandWildcards = "string",
Name = "string",
});
example, err := elasticstack.NewElasticsearchDataStreamLifecycle(ctx, "elasticsearchDataStreamLifecycleResource", &elasticstack.ElasticsearchDataStreamLifecycleArgs{
DataRetention: pulumi.String("string"),
Downsamplings: elasticstack.ElasticsearchDataStreamLifecycleDownsamplingArray{
&elasticstack.ElasticsearchDataStreamLifecycleDownsamplingArgs{
After: pulumi.String("string"),
FixedInterval: pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
ExpandWildcards: pulumi.String("string"),
Name: pulumi.String("string"),
})
var elasticsearchDataStreamLifecycleResource = new ElasticsearchDataStreamLifecycle("elasticsearchDataStreamLifecycleResource", ElasticsearchDataStreamLifecycleArgs.builder()
.dataRetention("string")
.downsamplings(ElasticsearchDataStreamLifecycleDownsamplingArgs.builder()
.after("string")
.fixedInterval("string")
.build())
.enabled(false)
.expandWildcards("string")
.name("string")
.build());
elasticsearch_data_stream_lifecycle_resource = elasticstack.ElasticsearchDataStreamLifecycle("elasticsearchDataStreamLifecycleResource",
data_retention="string",
downsamplings=[{
"after": "string",
"fixed_interval": "string",
}],
enabled=False,
expand_wildcards="string",
name="string")
const elasticsearchDataStreamLifecycleResource = new elasticstack.ElasticsearchDataStreamLifecycle("elasticsearchDataStreamLifecycleResource", {
dataRetention: "string",
downsamplings: [{
after: "string",
fixedInterval: "string",
}],
enabled: false,
expandWildcards: "string",
name: "string",
});
type: elasticstack:ElasticsearchDataStreamLifecycle
properties:
dataRetention: string
downsamplings:
- after: string
fixedInterval: string
enabled: false
expandWildcards: string
name: string
ElasticsearchDataStreamLifecycle 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 ElasticsearchDataStreamLifecycle resource accepts the following input properties:
- Data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- Downsamplings
List<Elasticsearch
Data Stream Lifecycle Downsampling> - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- Elasticsearch
Connections List<ElasticsearchData Stream Lifecycle Elasticsearch Connection> - Elasticsearch connection configuration block.
- Enabled bool
- Data stream lifecycle on/off.
- Expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - Name string
- Name of the data stream. Supports wildcards.
- Data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- Downsamplings
[]Elasticsearch
Data Stream Lifecycle Downsampling Args - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- Elasticsearch
Connections []ElasticsearchData Stream Lifecycle Elasticsearch Connection Args - Elasticsearch connection configuration block.
- Enabled bool
- Data stream lifecycle on/off.
- Expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - Name string
- Name of the data stream. Supports wildcards.
- data
Retention String - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
List<Elasticsearch
Data Stream Lifecycle Downsampling> - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections List<ElasticsearchData Stream Lifecycle Elasticsearch Connection> - Elasticsearch connection configuration block.
- enabled Boolean
- Data stream lifecycle on/off.
- expand
Wildcards String - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name String
- Name of the data stream. Supports wildcards.
- data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
Elasticsearch
Data Stream Lifecycle Downsampling[] - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections ElasticsearchData Stream Lifecycle Elasticsearch Connection[] - Elasticsearch connection configuration block.
- enabled boolean
- Data stream lifecycle on/off.
- expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name string
- Name of the data stream. Supports wildcards.
- data_
retention str - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
Sequence[Elasticsearch
Data Stream Lifecycle Downsampling Args] - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch_
connections Sequence[ElasticsearchData Stream Lifecycle Elasticsearch Connection Args] - Elasticsearch connection configuration block.
- enabled bool
- Data stream lifecycle on/off.
- expand_
wildcards str - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name str
- Name of the data stream. Supports wildcards.
- data
Retention String - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings List<Property Map>
- Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- enabled Boolean
- Data stream lifecycle on/off.
- expand
Wildcards String - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name String
- Name of the data stream. Supports wildcards.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchDataStreamLifecycle 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 ElasticsearchDataStreamLifecycle Resource
Get an existing ElasticsearchDataStreamLifecycle 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?: ElasticsearchDataStreamLifecycleState, opts?: CustomResourceOptions): ElasticsearchDataStreamLifecycle
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_retention: Optional[str] = None,
downsamplings: Optional[Sequence[ElasticsearchDataStreamLifecycleDownsamplingArgs]] = None,
elasticsearch_connections: Optional[Sequence[ElasticsearchDataStreamLifecycleElasticsearchConnectionArgs]] = None,
enabled: Optional[bool] = None,
expand_wildcards: Optional[str] = None,
name: Optional[str] = None) -> ElasticsearchDataStreamLifecycle
func GetElasticsearchDataStreamLifecycle(ctx *Context, name string, id IDInput, state *ElasticsearchDataStreamLifecycleState, opts ...ResourceOption) (*ElasticsearchDataStreamLifecycle, error)
public static ElasticsearchDataStreamLifecycle Get(string name, Input<string> id, ElasticsearchDataStreamLifecycleState? state, CustomResourceOptions? opts = null)
public static ElasticsearchDataStreamLifecycle get(String name, Output<String> id, ElasticsearchDataStreamLifecycleState state, CustomResourceOptions options)
resources: _: type: elasticstack:ElasticsearchDataStreamLifecycle 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.
- Data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- Downsamplings
List<Elasticsearch
Data Stream Lifecycle Downsampling> - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- Elasticsearch
Connections List<ElasticsearchData Stream Lifecycle Elasticsearch Connection> - Elasticsearch connection configuration block.
- Enabled bool
- Data stream lifecycle on/off.
- Expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - Name string
- Name of the data stream. Supports wildcards.
- Data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- Downsamplings
[]Elasticsearch
Data Stream Lifecycle Downsampling Args - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- Elasticsearch
Connections []ElasticsearchData Stream Lifecycle Elasticsearch Connection Args - Elasticsearch connection configuration block.
- Enabled bool
- Data stream lifecycle on/off.
- Expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - Name string
- Name of the data stream. Supports wildcards.
- data
Retention String - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
List<Elasticsearch
Data Stream Lifecycle Downsampling> - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections List<ElasticsearchData Stream Lifecycle Elasticsearch Connection> - Elasticsearch connection configuration block.
- enabled Boolean
- Data stream lifecycle on/off.
- expand
Wildcards String - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name String
- Name of the data stream. Supports wildcards.
- data
Retention string - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
Elasticsearch
Data Stream Lifecycle Downsampling[] - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections ElasticsearchData Stream Lifecycle Elasticsearch Connection[] - Elasticsearch connection configuration block.
- enabled boolean
- Data stream lifecycle on/off.
- expand
Wildcards string - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name string
- Name of the data stream. Supports wildcards.
- data_
retention str - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings
Sequence[Elasticsearch
Data Stream Lifecycle Downsampling Args] - Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch_
connections Sequence[ElasticsearchData Stream Lifecycle Elasticsearch Connection Args] - Elasticsearch connection configuration block.
- enabled bool
- Data stream lifecycle on/off.
- expand_
wildcards str - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name str
- Name of the data stream. Supports wildcards.
- data
Retention String - Every document added to this data stream will be stored at least for this time frame. When empty, every document in this data stream will be stored indefinitely
- downsamplings List<Property Map>
- Downsampling configuration objects, each defining an after interval representing when the backing index is meant to be downsampled and a fixed_interval representing the downsampling interval.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
- enabled Boolean
- Data stream lifecycle on/off.
- expand
Wildcards String - Determines how wildcard patterns in the
indices
parameter match data streams and indices. Supports comma-separated values, such asclosed,hidden
. - name String
- Name of the data stream. Supports wildcards.
Supporting Types
ElasticsearchDataStreamLifecycleDownsampling, ElasticsearchDataStreamLifecycleDownsamplingArgs
- After string
- Interval representing when the backing index is meant to be downsampled
- Fixed
Interval string - The interval at which to aggregate the original time series index.
- After string
- Interval representing when the backing index is meant to be downsampled
- Fixed
Interval string - The interval at which to aggregate the original time series index.
- after String
- Interval representing when the backing index is meant to be downsampled
- fixed
Interval String - The interval at which to aggregate the original time series index.
- after string
- Interval representing when the backing index is meant to be downsampled
- fixed
Interval string - The interval at which to aggregate the original time series index.
- after str
- Interval representing when the backing index is meant to be downsampled
- fixed_
interval str - The interval at which to aggregate the original time series index.
- after String
- Interval representing when the backing index is meant to be downsampled
- fixed
Interval String - The interval at which to aggregate the original time series index.
ElasticsearchDataStreamLifecycleElasticsearchConnection, ElasticsearchDataStreamLifecycleElasticsearchConnectionArgs
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints List<string>
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints []string
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
- api
Key string - API Key to use for authentication to Elasticsearch
- bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- ca
Data string - PEM-encoded custom Certificate Authority certificate
- ca
File string - Path to a custom Certificate Authority certificate
- cert
Data string - PEM encoded certificate for client auth
- cert
File string - Path to a file containing the PEM encoded certificate for client auth
- endpoints string[]
- es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure boolean
- Disable TLS certificate validation
- key
Data string - PEM encoded private key for client auth
- key
File string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api_
key str - API Key to use for authentication to Elasticsearch
- bearer_
token str - Bearer Token to use for authentication to Elasticsearch
- ca_
data str - PEM-encoded custom Certificate Authority certificate
- ca_
file str - Path to a custom Certificate Authority certificate
- cert_
data str - PEM encoded certificate for client auth
- cert_
file str - Path to a file containing the PEM encoded certificate for client auth
- endpoints Sequence[str]
- es_
client_ strauthentication - ES Client Authentication field to be used with the JWT token
- insecure bool
- Disable TLS certificate validation
- key_
data str - PEM encoded private key for client auth
- key_
file str - Path to a file containing the PEM encoded private key for client auth
- password str
- Password to use for API authentication to Elasticsearch.
- username str
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
Import
$ pulumi import elasticstack:index/elasticsearchDataStreamLifecycle:ElasticsearchDataStreamLifecycle my_data_stream_lifecycle <cluster_uuid>/<data_stream_name>
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.