1414
1515
1616if TYPE_CHECKING :
17+ from datadog_api_client .v2 .model .observability_pipeline_open_search_destination_data_stream import (
18+ ObservabilityPipelineOpenSearchDestinationDataStream ,
19+ )
1720 from datadog_api_client .v2 .model .observability_pipeline_open_search_destination_type import (
1821 ObservabilityPipelineOpenSearchDestinationType ,
1922 )
2225class ObservabilityPipelineOpenSearchDestination (ModelNormal ):
2326 @cached_property
2427 def openapi_types (_ ):
28+ from datadog_api_client .v2 .model .observability_pipeline_open_search_destination_data_stream import (
29+ ObservabilityPipelineOpenSearchDestinationDataStream ,
30+ )
2531 from datadog_api_client .v2 .model .observability_pipeline_open_search_destination_type import (
2632 ObservabilityPipelineOpenSearchDestinationType ,
2733 )
2834
2935 return {
3036 "bulk_index" : (str ,),
37+ "data_stream" : (ObservabilityPipelineOpenSearchDestinationDataStream ,),
3138 "id" : (str ,),
3239 "inputs" : ([str ],),
3340 "type" : (ObservabilityPipelineOpenSearchDestinationType ,),
3441 }
3542
3643 attribute_map = {
3744 "bulk_index" : "bulk_index" ,
45+ "data_stream" : "data_stream" ,
3846 "id" : "id" ,
3947 "inputs" : "inputs" ,
4048 "type" : "type" ,
@@ -46,6 +54,7 @@ def __init__(
4654 inputs : List [str ],
4755 type : ObservabilityPipelineOpenSearchDestinationType ,
4856 bulk_index : Union [str , UnsetType ] = unset ,
57+ data_stream : Union [ObservabilityPipelineOpenSearchDestinationDataStream , UnsetType ] = unset ,
4958 ** kwargs ,
5059 ):
5160 """
@@ -56,6 +65,9 @@ def __init__(
5665 :param bulk_index: The index to write logs to.
5766 :type bulk_index: str, optional
5867
68+ :param data_stream: Configuration options for writing to OpenSearch Data Streams instead of a fixed index.
69+ :type data_stream: ObservabilityPipelineOpenSearchDestinationDataStream, optional
70+
5971 :param id: The unique identifier for this component.
6072 :type id: str
6173
@@ -67,6 +79,8 @@ def __init__(
6779 """
6880 if bulk_index is not unset :
6981 kwargs ["bulk_index" ] = bulk_index
82+ if data_stream is not unset :
83+ kwargs ["data_stream" ] = data_stream
7084 super ().__init__ (kwargs )
7185
7286 self_ .id = id
0 commit comments