# equinix\_fabric\_stream\_subscription (Resource)
Fabric V4 API compatible resource allows creation and management of Equinix Fabric Stream Subscriptions
Additional Documentation:
* Getting Started:
* API:
## Example Usage[](#example-usage "Direct link to Example Usage")
```
resource "equinix_fabric_stream_subscription" "SPLUNK" {
type = "STREAM_SUBSCRIPTION"
name = ""
description = ""
stream_id = ""
enabled = true
event_selector = {
include = ["equinix.fabric.connection.*"]
}
metric_selector = {
include = ["equinix.fabric.connection.*"]
}
sink = {
type = "SPLUNK_HEC"
uri = ""
settings = {
event_index = ""
metric_index = ""
source = ""
}
credential = {
type = "ACCESS_TOKEN"
access_token = ""
}
}
}
resource "equinix_fabric_stream_subscription" "SLACK" {
type = "STREAM_SUBSCRIPTION"
name = ""
description = ""
stream_id = ""
enabled = true
sink = {
type = "SLACK"
uri = ""
}
}
resource "equinix_fabric_stream_subscription" "PAGER_DUTY" {
type = "STREAM_SUBSCRIPTION"
name = ""
description = ""
stream_id = ""
enabled = true
sink = {
type = "PAGERDUTY"
host = "
## Schema[](#schema "Direct link to Schema")
### Required[](#required "Direct link to Required")
* `description` (String) Customer-provided stream subscription description
* `enabled` (Boolean) Stream subscription enabled status
* `name` (String) Customer-provided stream subscription name
* `sink` (Attributes) The details of the subscriber to the Equinix Stream (see [below for nested schema](#nestedatt--sink))
* `stream_id` (String) The uuid of the stream that is the target of the stream subscription
* `type` (String) Type of the stream subscription request
### Optional[](#optional "Direct link to Optional")
* `event_selector` (Attributes) Lists of events to be included/excluded on the stream subscription (see [below for nested schema](#nestedatt--event_selector))
* `metric_selector` (Attributes) Lists of metrics to be included/excluded on the stream subscription (see [below for nested schema](#nestedatt--metric_selector))
* `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
### Read-Only[](#read-only "Direct link to Read-Only")
* `change_log` (Attributes) Details of the last change on the stream resource (see [below for nested schema](#nestedatt--change_log))
* `href` (String) Equinix assigned URI of the stream subscription resource
* `id` (String) The unique identifier of the resource
* `state` (String) Value representing provisioning status for the stream resource
* `uuid` (String) Equinix assigned unique identifier of the stream subscription resource
[]()
### Nested Schema for `sink`[](#nested-schema-for-sink "Direct link to nested-schema-for-sink")
Required:
* `type` (String) Type of the subscriber
Optional:
* `batch_enabled` (Boolean) Boolean switch enabling batch delivery of data
* `batch_size_max` (Number) Maximum size of the batch delivery if enabled
* `batch_wait_time_max` (Number) Maximum time to wait for batch delivery if enabled
* `credential` (Attributes) Access details for the specified sink type (see [below for nested schema](#nestedatt--sink--credential))
* `host` (String) Known hostname of certain data stream subscription products. Not to be confused with a variable URI
* `settings` (Attributes) Stream subscription sink settings (see [below for nested schema](#nestedatt--sink--settings))
* `uri` (String) Publicly reachable http endpoint destination for data stream
[]()
### Nested Schema for `sink.credential`[](#nested-schema-for-sinkcredential "Direct link to nested-schema-for-sinkcredential")
Required:
* `type` (String) Type of the credential being passed
Optional:
* `access_token` (String, Sensitive) Passed as Authorization header value
* `api_key` (String, Sensitive) Passed as Authorization header value
* `integration_key` (String, Sensitive) Passed as Authorization header value
* `password` (String, Sensitive) Passed as Authorization header value
* `username` (String) Passed as Authorization header value
[]()
### Nested Schema for `sink.settings`[](#nested-schema-for-sinksettings "Direct link to nested-schema-for-sinksettings")
Optional:
* `application_key` (String, Sensitive)
* `event_index` (String)
* `event_uri` (String)
* `format` (String)
* `metric_index` (String)
* `metric_uri` (String)
* `source` (String)
[]()
### Nested Schema for `event_selector`[](#nested-schema-for-event_selector "Direct link to nested-schema-for-event_selector")
Required:
* `include` (List of String) List of events to include
Optional:
* `except` (List of String) List of events to exclude
[]()
### Nested Schema for `metric_selector`[](#nested-schema-for-metric_selector "Direct link to nested-schema-for-metric_selector")
Required:
* `include` (List of String) List of metrics to include
Optional:
* `except` (List of String) List of metrics to exclude
[]()
### Nested Schema for `timeouts`[](#nested-schema-for-timeouts "Direct link to nested-schema-for-timeouts")
Optional:
* `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
* `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
* `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
* `update` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
[]()
### Nested Schema for `change_log`[](#nested-schema-for-change_log "Direct link to nested-schema-for-change_log")
Read-Only:
* `created_by` (String) User name of creator of the stream resource
* `created_by_email` (String) Email of creator of the stream resource
* `created_by_full_name` (String) Legal name of creator of the stream resource
* `created_date_time` (String) Creation time of the stream resource
* `deleted_by` (String) User name of deleter of the stream resource
* `deleted_by_email` (String) Email of deleter of the stream resource
* `deleted_by_full_name` (String) Legal name of deleter of the stream resource
* `deleted_date_time` (String) Deletion time of the stream resource
* `updated_by` (String) User name of last updater of the stream resource
* `updated_by_email` (String) Email of last updater of the stream resource
* `updated_by_full_name` (String) Legal name of last updater of the stream resource
* `updated_date_time` (String) Last update time of the stream resource