jetstream.Stream
Explore with Pulumi AI
# jetstream.Stream Resource
The jetstream.Stream
Resource creates a JetStream Stream, supports editing resources in place.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as jetstream from "@pulumi/jetstream";
const oRDERS = new jetstream.Stream("oRDERS", {
subjects: ["ORDERS.*"],
storage: "file",
maxAge: 60 * 60 * 24 * 365,
});
import pulumi
import pulumi_jetstream as jetstream
o_rders = jetstream.Stream("oRDERS",
subjects=["ORDERS.*"],
storage="file",
max_age=60 * 60 * 24 * 365)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/jetstream/jetstream"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := jetstream.NewStream(ctx, "oRDERS", &jetstream.StreamArgs{
Subjects: pulumi.StringArray{
pulumi.String("ORDERS.*"),
},
Storage: pulumi.String("file"),
MaxAge: 60 * 60 * 24 * 365,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Jetstream = Pulumi.Jetstream;
return await Deployment.RunAsync(() =>
{
var oRDERS = new Jetstream.Stream("oRDERS", new()
{
Subjects = new[]
{
"ORDERS.*",
},
Storage = "file",
MaxAge = 60 * 60 * 24 * 365,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.jetstream.Stream;
import com.pulumi.jetstream.StreamArgs;
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 oRDERS = new Stream("oRDERS", StreamArgs.builder()
.subjects("ORDERS.*")
.storage("file")
.maxAge(60 * 60 * 24 * 365)
.build());
}
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as jetstream from "@pulumi/jetstream";
const oRDERSARCHIVE = new jetstream.Stream("oRDERSARCHIVE", {
storage: "file",
maxAge: 5 * 60 * 60 * 24 * 365,
mirrorDirect: true,
mirror: {
name: "ORDERS",
},
});
import pulumi
import pulumi_jetstream as jetstream
o_rdersarchive = jetstream.Stream("oRDERSARCHIVE",
storage="file",
max_age=5 * 60 * 60 * 24 * 365,
mirror_direct=True,
mirror={
"name": "ORDERS",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/jetstream/jetstream"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := jetstream.NewStream(ctx, "oRDERSARCHIVE", &jetstream.StreamArgs{
Storage: pulumi.String("file"),
MaxAge: 5 * 60 * 60 * 24 * 365,
MirrorDirect: pulumi.Bool(true),
Mirror: &jetstream.StreamMirrorArgs{
Name: pulumi.String("ORDERS"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Jetstream = Pulumi.Jetstream;
return await Deployment.RunAsync(() =>
{
var oRDERSARCHIVE = new Jetstream.Stream("oRDERSARCHIVE", new()
{
Storage = "file",
MaxAge = 5 * 60 * 60 * 24 * 365,
MirrorDirect = true,
Mirror = new Jetstream.Inputs.StreamMirrorArgs
{
Name = "ORDERS",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.jetstream.Stream;
import com.pulumi.jetstream.StreamArgs;
import com.pulumi.jetstream.inputs.StreamMirrorArgs;
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 oRDERSARCHIVE = new Stream("oRDERSARCHIVE", StreamArgs.builder()
.storage("file")
.maxAge(5 * 60 * 60 * 24 * 365)
.mirrorDirect(true)
.mirror(StreamMirrorArgs.builder()
.name("ORDERS")
.build())
.build());
}
}
Coming soon!
Sources and Mirrors
Above the ORDERS_ARCHIVE
stream is a mirror of ORDERS
, valid options for specifying a mirror and sources are:
name
- The name of the stream to mirrorfilter_subject
- (optional) For sources this filters the sourcestart_seq
- (optional) Starts the mirror or source at this sequence in the sourcestart_time
- (optional) Starts the mirror or source at this time in the source, in RFC3339 formatexternal
- (optional) Reference to an external stream with keysapi
anddeliver
mirror_direct
- (optional) If true the mirror will participate in a serving direct get requests for individual messages from the origin stream
Create Stream Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Stream(name: string, args?: StreamArgs, opts?: CustomResourceOptions);
@overload
def Stream(resource_name: str,
args: Optional[StreamArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Stream(resource_name: str,
opts: Optional[ResourceOptions] = None,
ack: Optional[bool] = None,
allow_direct: Optional[bool] = None,
allow_msg_ttl: Optional[bool] = None,
allow_rollup_hdrs: Optional[bool] = None,
compression: Optional[str] = None,
deny_delete: Optional[bool] = None,
deny_purge: Optional[bool] = None,
description: Optional[str] = None,
discard: Optional[str] = None,
discard_new_per_subject: Optional[bool] = None,
duplicate_window: Optional[float] = None,
inactive_threshold: Optional[float] = None,
max_ack_pending: Optional[float] = None,
max_age: Optional[float] = None,
max_bytes: Optional[float] = None,
max_consumers: Optional[float] = None,
max_msg_size: Optional[float] = None,
max_msgs: Optional[float] = None,
max_msgs_per_subject: Optional[float] = None,
metadata: Optional[Mapping[str, str]] = None,
mirror: Optional[StreamMirrorArgs] = None,
mirror_direct: Optional[bool] = None,
name: Optional[str] = None,
placement_cluster: Optional[str] = None,
placement_tags: Optional[Sequence[str]] = None,
replicas: Optional[float] = None,
republish_destination: Optional[str] = None,
republish_headers_only: Optional[bool] = None,
republish_source: Optional[str] = None,
retention: Optional[str] = None,
sources: Optional[Sequence[StreamSourceArgs]] = None,
storage: Optional[str] = None,
stream_id: Optional[str] = None,
subject_delete_marker_ttl: Optional[float] = None,
subject_transform: Optional[StreamSubjectTransformArgs] = None,
subjects: Optional[Sequence[str]] = None)
func NewStream(ctx *Context, name string, args *StreamArgs, opts ...ResourceOption) (*Stream, error)
public Stream(string name, StreamArgs? args = null, CustomResourceOptions? opts = null)
public Stream(String name, StreamArgs args)
public Stream(String name, StreamArgs args, CustomResourceOptions options)
type: jetstream:Stream
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 StreamArgs
- 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 StreamArgs
- 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 StreamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamArgs
- 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 streamResource = new Jetstream.Stream("streamResource", new()
{
Ack = false,
AllowDirect = false,
AllowMsgTtl = false,
AllowRollupHdrs = false,
Compression = "string",
DenyDelete = false,
DenyPurge = false,
Description = "string",
Discard = "string",
DiscardNewPerSubject = false,
DuplicateWindow = 0,
InactiveThreshold = 0,
MaxAckPending = 0,
MaxAge = 0,
MaxBytes = 0,
MaxConsumers = 0,
MaxMsgSize = 0,
MaxMsgs = 0,
MaxMsgsPerSubject = 0,
Metadata =
{
{ "string", "string" },
},
Mirror = new Jetstream.Inputs.StreamMirrorArgs
{
Name = "string",
External = new Jetstream.Inputs.StreamMirrorExternalArgs
{
Api = "string",
Deliver = "string",
},
FilterSubject = "string",
StartSeq = 0,
StartTime = "string",
SubjectTransforms = new[]
{
new Jetstream.Inputs.StreamMirrorSubjectTransformArgs
{
Destination = "string",
Source = "string",
},
},
},
MirrorDirect = false,
Name = "string",
PlacementCluster = "string",
PlacementTags = new[]
{
"string",
},
Replicas = 0,
RepublishDestination = "string",
RepublishHeadersOnly = false,
RepublishSource = "string",
Retention = "string",
Sources = new[]
{
new Jetstream.Inputs.StreamSourceArgs
{
Name = "string",
External = new Jetstream.Inputs.StreamSourceExternalArgs
{
Api = "string",
Deliver = "string",
},
FilterSubject = "string",
StartSeq = 0,
StartTime = "string",
SubjectTransforms = new[]
{
new Jetstream.Inputs.StreamSourceSubjectTransformArgs
{
Destination = "string",
Source = "string",
},
},
},
},
Storage = "string",
StreamId = "string",
SubjectDeleteMarkerTtl = 0,
SubjectTransform = new Jetstream.Inputs.StreamSubjectTransformArgs
{
Destination = "string",
Source = "string",
},
Subjects = new[]
{
"string",
},
});
example, err := jetstream.NewStream(ctx, "streamResource", &jetstream.StreamArgs{
Ack: pulumi.Bool(false),
AllowDirect: pulumi.Bool(false),
AllowMsgTtl: pulumi.Bool(false),
AllowRollupHdrs: pulumi.Bool(false),
Compression: pulumi.String("string"),
DenyDelete: pulumi.Bool(false),
DenyPurge: pulumi.Bool(false),
Description: pulumi.String("string"),
Discard: pulumi.String("string"),
DiscardNewPerSubject: pulumi.Bool(false),
DuplicateWindow: pulumi.Float64(0),
InactiveThreshold: pulumi.Float64(0),
MaxAckPending: pulumi.Float64(0),
MaxAge: pulumi.Float64(0),
MaxBytes: pulumi.Float64(0),
MaxConsumers: pulumi.Float64(0),
MaxMsgSize: pulumi.Float64(0),
MaxMsgs: pulumi.Float64(0),
MaxMsgsPerSubject: pulumi.Float64(0),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Mirror: &jetstream.StreamMirrorArgs{
Name: pulumi.String("string"),
External: &jetstream.StreamMirrorExternalArgs{
Api: pulumi.String("string"),
Deliver: pulumi.String("string"),
},
FilterSubject: pulumi.String("string"),
StartSeq: pulumi.Float64(0),
StartTime: pulumi.String("string"),
SubjectTransforms: jetstream.StreamMirrorSubjectTransformArray{
&jetstream.StreamMirrorSubjectTransformArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
},
},
},
MirrorDirect: pulumi.Bool(false),
Name: pulumi.String("string"),
PlacementCluster: pulumi.String("string"),
PlacementTags: pulumi.StringArray{
pulumi.String("string"),
},
Replicas: pulumi.Float64(0),
RepublishDestination: pulumi.String("string"),
RepublishHeadersOnly: pulumi.Bool(false),
RepublishSource: pulumi.String("string"),
Retention: pulumi.String("string"),
Sources: jetstream.StreamSourceArray{
&jetstream.StreamSourceArgs{
Name: pulumi.String("string"),
External: &jetstream.StreamSourceExternalArgs{
Api: pulumi.String("string"),
Deliver: pulumi.String("string"),
},
FilterSubject: pulumi.String("string"),
StartSeq: pulumi.Float64(0),
StartTime: pulumi.String("string"),
SubjectTransforms: jetstream.StreamSourceSubjectTransformArray{
&jetstream.StreamSourceSubjectTransformArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
},
},
},
},
Storage: pulumi.String("string"),
StreamId: pulumi.String("string"),
SubjectDeleteMarkerTtl: pulumi.Float64(0),
SubjectTransform: &jetstream.StreamSubjectTransformArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
},
Subjects: pulumi.StringArray{
pulumi.String("string"),
},
})
var streamResource = new Stream("streamResource", StreamArgs.builder()
.ack(false)
.allowDirect(false)
.allowMsgTtl(false)
.allowRollupHdrs(false)
.compression("string")
.denyDelete(false)
.denyPurge(false)
.description("string")
.discard("string")
.discardNewPerSubject(false)
.duplicateWindow(0)
.inactiveThreshold(0)
.maxAckPending(0)
.maxAge(0)
.maxBytes(0)
.maxConsumers(0)
.maxMsgSize(0)
.maxMsgs(0)
.maxMsgsPerSubject(0)
.metadata(Map.of("string", "string"))
.mirror(StreamMirrorArgs.builder()
.name("string")
.external(StreamMirrorExternalArgs.builder()
.api("string")
.deliver("string")
.build())
.filterSubject("string")
.startSeq(0)
.startTime("string")
.subjectTransforms(StreamMirrorSubjectTransformArgs.builder()
.destination("string")
.source("string")
.build())
.build())
.mirrorDirect(false)
.name("string")
.placementCluster("string")
.placementTags("string")
.replicas(0)
.republishDestination("string")
.republishHeadersOnly(false)
.republishSource("string")
.retention("string")
.sources(StreamSourceArgs.builder()
.name("string")
.external(StreamSourceExternalArgs.builder()
.api("string")
.deliver("string")
.build())
.filterSubject("string")
.startSeq(0)
.startTime("string")
.subjectTransforms(StreamSourceSubjectTransformArgs.builder()
.destination("string")
.source("string")
.build())
.build())
.storage("string")
.streamId("string")
.subjectDeleteMarkerTtl(0)
.subjectTransform(StreamSubjectTransformArgs.builder()
.destination("string")
.source("string")
.build())
.subjects("string")
.build());
stream_resource = jetstream.Stream("streamResource",
ack=False,
allow_direct=False,
allow_msg_ttl=False,
allow_rollup_hdrs=False,
compression="string",
deny_delete=False,
deny_purge=False,
description="string",
discard="string",
discard_new_per_subject=False,
duplicate_window=0,
inactive_threshold=0,
max_ack_pending=0,
max_age=0,
max_bytes=0,
max_consumers=0,
max_msg_size=0,
max_msgs=0,
max_msgs_per_subject=0,
metadata={
"string": "string",
},
mirror={
"name": "string",
"external": {
"api": "string",
"deliver": "string",
},
"filter_subject": "string",
"start_seq": 0,
"start_time": "string",
"subject_transforms": [{
"destination": "string",
"source": "string",
}],
},
mirror_direct=False,
name="string",
placement_cluster="string",
placement_tags=["string"],
replicas=0,
republish_destination="string",
republish_headers_only=False,
republish_source="string",
retention="string",
sources=[{
"name": "string",
"external": {
"api": "string",
"deliver": "string",
},
"filter_subject": "string",
"start_seq": 0,
"start_time": "string",
"subject_transforms": [{
"destination": "string",
"source": "string",
}],
}],
storage="string",
stream_id="string",
subject_delete_marker_ttl=0,
subject_transform={
"destination": "string",
"source": "string",
},
subjects=["string"])
const streamResource = new jetstream.Stream("streamResource", {
ack: false,
allowDirect: false,
allowMsgTtl: false,
allowRollupHdrs: false,
compression: "string",
denyDelete: false,
denyPurge: false,
description: "string",
discard: "string",
discardNewPerSubject: false,
duplicateWindow: 0,
inactiveThreshold: 0,
maxAckPending: 0,
maxAge: 0,
maxBytes: 0,
maxConsumers: 0,
maxMsgSize: 0,
maxMsgs: 0,
maxMsgsPerSubject: 0,
metadata: {
string: "string",
},
mirror: {
name: "string",
external: {
api: "string",
deliver: "string",
},
filterSubject: "string",
startSeq: 0,
startTime: "string",
subjectTransforms: [{
destination: "string",
source: "string",
}],
},
mirrorDirect: false,
name: "string",
placementCluster: "string",
placementTags: ["string"],
replicas: 0,
republishDestination: "string",
republishHeadersOnly: false,
republishSource: "string",
retention: "string",
sources: [{
name: "string",
external: {
api: "string",
deliver: "string",
},
filterSubject: "string",
startSeq: 0,
startTime: "string",
subjectTransforms: [{
destination: "string",
source: "string",
}],
}],
storage: "string",
streamId: "string",
subjectDeleteMarkerTtl: 0,
subjectTransform: {
destination: "string",
source: "string",
},
subjects: ["string"],
});
type: jetstream:Stream
properties:
ack: false
allowDirect: false
allowMsgTtl: false
allowRollupHdrs: false
compression: string
denyDelete: false
denyPurge: false
description: string
discard: string
discardNewPerSubject: false
duplicateWindow: 0
inactiveThreshold: 0
maxAckPending: 0
maxAge: 0
maxBytes: 0
maxConsumers: 0
maxMsgSize: 0
maxMsgs: 0
maxMsgsPerSubject: 0
metadata:
string: string
mirror:
external:
api: string
deliver: string
filterSubject: string
name: string
startSeq: 0
startTime: string
subjectTransforms:
- destination: string
source: string
mirrorDirect: false
name: string
placementCluster: string
placementTags:
- string
replicas: 0
republishDestination: string
republishHeadersOnly: false
republishSource: string
retention: string
sources:
- external:
api: string
deliver: string
filterSubject: string
name: string
startSeq: 0
startTime: string
subjectTransforms:
- destination: string
source: string
storage: string
streamId: string
subjectDeleteMarkerTtl: 0
subjectTransform:
destination: string
source: string
subjects:
- string
Stream 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 Stream resource accepts the following input properties:
- Ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- Allow
Direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- Allow
Msg boolTtl - (optional) Enables Per Message TTLs
- Allow
Rollup boolHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- Compression string
- (optional) Enable stream compression by setting the value to
s2
- Deny
Delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- Deny
Purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- Description string
- (optional) Contains additional information about this stream (string)
- Discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - Discard
New boolPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- Duplicate
Window double - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- Inactive
Threshold double - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- Max
Ack doublePending - (optional) Maximum pending Acks before consumers are paused
- Max
Age double - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- Max
Bytes double - (optional) The maximum size of all messages that can be kept in the stream (number)
- Max
Consumers double - (optional) Number of consumers this stream allows (number)
- Max
Msg doubleSize - (optional) The maximum individual message size that the stream will accept (number)
- Max
Msgs double - (optional) The maximum amount of messages that can be kept in the stream (number)
- Max
Msgs doublePer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- Metadata Dictionary<string, string>
- (optional) A map of strings with arbitrary metadata for the stream
- Mirror
Stream
Mirror - (optional) Stream to mirror
- Mirror
Direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- Name string
- The name of the stream (string)
- Placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<string>
- (optional) Place the stream only on servers with these tags
- Replicas double
- (optional) How many replicas of the data to keep in a clustered environment (number)
- Republish
Destination string - (optional) The destination to publish messages to
- Republish
Headers boolOnly - (optional) Republish only message headers, no bodies
- Republish
Source string - (optional) Republish matching messages to
republish_destination
- Retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - Sources
List<Stream
Source> - (optional) List of streams to source
- Storage string
- (optional) The storage engine to use to back the stream (string)
- Stream
Id string - Subject
Delete doubleMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- Subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- Subjects List<string>
- The list of subjects that will be consumed by the Stream (["list", "string"])
- Ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- Allow
Direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- Allow
Msg boolTtl - (optional) Enables Per Message TTLs
- Allow
Rollup boolHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- Compression string
- (optional) Enable stream compression by setting the value to
s2
- Deny
Delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- Deny
Purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- Description string
- (optional) Contains additional information about this stream (string)
- Discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - Discard
New boolPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- Duplicate
Window float64 - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- Inactive
Threshold float64 - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- Max
Ack float64Pending - (optional) Maximum pending Acks before consumers are paused
- Max
Age float64 - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- Max
Bytes float64 - (optional) The maximum size of all messages that can be kept in the stream (number)
- Max
Consumers float64 - (optional) Number of consumers this stream allows (number)
- Max
Msg float64Size - (optional) The maximum individual message size that the stream will accept (number)
- Max
Msgs float64 - (optional) The maximum amount of messages that can be kept in the stream (number)
- Max
Msgs float64Per Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- Metadata map[string]string
- (optional) A map of strings with arbitrary metadata for the stream
- Mirror
Stream
Mirror Args - (optional) Stream to mirror
- Mirror
Direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- Name string
- The name of the stream (string)
- Placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- []string
- (optional) Place the stream only on servers with these tags
- Replicas float64
- (optional) How many replicas of the data to keep in a clustered environment (number)
- Republish
Destination string - (optional) The destination to publish messages to
- Republish
Headers boolOnly - (optional) Republish only message headers, no bodies
- Republish
Source string - (optional) Republish matching messages to
republish_destination
- Retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - Sources
[]Stream
Source Args - (optional) List of streams to source
- Storage string
- (optional) The storage engine to use to back the stream (string)
- Stream
Id string - Subject
Delete float64Marker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- Subject
Transform StreamSubject Transform Args - Subject transform to apply to matching messages
- Subjects []string
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack Boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct Boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg BooleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup BooleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression String
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete Boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge Boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description String
- (optional) Contains additional information about this stream (string)
- discard String
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New BooleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window Double - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold Double - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack DoublePending - (optional) Maximum pending Acks before consumers are paused
- max
Age Double - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes Double - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers Double - (optional) Number of consumers this stream allows (number)
- max
Msg DoubleSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs Double - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs DoublePer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Map<String,String>
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror - (optional) Stream to mirror
- mirror
Direct Boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name String
- The name of the stream (string)
- placement
Cluster String - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<String>
- (optional) Place the stream only on servers with these tags
- replicas Double
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination String - (optional) The destination to publish messages to
- republish
Headers BooleanOnly - (optional) Republish only message headers, no bodies
- republish
Source String - (optional) Republish matching messages to
republish_destination
- retention String
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
List<Stream
Source> - (optional) List of streams to source
- storage String
- (optional) The storage engine to use to back the stream (string)
- stream
Id String - subject
Delete DoubleMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- subjects List<String>
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg booleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup booleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression string
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description string
- (optional) Contains additional information about this stream (string)
- discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New booleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window number - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold number - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack numberPending - (optional) Maximum pending Acks before consumers are paused
- max
Age number - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes number - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers number - (optional) Number of consumers this stream allows (number)
- max
Msg numberSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs number - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs numberPer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata {[key: string]: string}
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror - (optional) Stream to mirror
- mirror
Direct boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name string
- The name of the stream (string)
- placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- string[]
- (optional) Place the stream only on servers with these tags
- replicas number
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination string - (optional) The destination to publish messages to
- republish
Headers booleanOnly - (optional) Republish only message headers, no bodies
- republish
Source string - (optional) Republish matching messages to
republish_destination
- retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
Stream
Source[] - (optional) List of streams to source
- storage string
- (optional) The storage engine to use to back the stream (string)
- stream
Id string - subject
Delete numberMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- subjects string[]
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow_
direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow_
msg_ boolttl - (optional) Enables Per Message TTLs
- allow_
rollup_ boolhdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression str
- (optional) Enable stream compression by setting the value to
s2
- deny_
delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny_
purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description str
- (optional) Contains additional information about this stream (string)
- discard str
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard_
new_ boolper_ subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate_
window float - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive_
threshold float - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max_
ack_ floatpending - (optional) Maximum pending Acks before consumers are paused
- max_
age float - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max_
bytes float - (optional) The maximum size of all messages that can be kept in the stream (number)
- max_
consumers float - (optional) Number of consumers this stream allows (number)
- max_
msg_ floatsize - (optional) The maximum individual message size that the stream will accept (number)
- max_
msgs float - (optional) The maximum amount of messages that can be kept in the stream (number)
- max_
msgs_ floatper_ subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Mapping[str, str]
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror Args - (optional) Stream to mirror
- mirror_
direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name str
- The name of the stream (string)
- placement_
cluster str - (optional) Place the stream in a specific cluster, influenced by placement_tags
- Sequence[str]
- (optional) Place the stream only on servers with these tags
- replicas float
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish_
destination str - (optional) The destination to publish messages to
- republish_
headers_ boolonly - (optional) Republish only message headers, no bodies
- republish_
source str - (optional) Republish matching messages to
republish_destination
- retention str
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
Sequence[Stream
Source Args] - (optional) List of streams to source
- storage str
- (optional) The storage engine to use to back the stream (string)
- stream_
id str - subject_
delete_ floatmarker_ ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject_
transform StreamSubject Transform Args - Subject transform to apply to matching messages
- subjects Sequence[str]
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack Boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct Boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg BooleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup BooleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression String
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete Boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge Boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description String
- (optional) Contains additional information about this stream (string)
- discard String
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New BooleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window Number - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold Number - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack NumberPending - (optional) Maximum pending Acks before consumers are paused
- max
Age Number - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes Number - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers Number - (optional) Number of consumers this stream allows (number)
- max
Msg NumberSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs Number - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs NumberPer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Map<String>
- (optional) A map of strings with arbitrary metadata for the stream
- mirror Property Map
- (optional) Stream to mirror
- mirror
Direct Boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name String
- The name of the stream (string)
- placement
Cluster String - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<String>
- (optional) Place the stream only on servers with these tags
- replicas Number
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination String - (optional) The destination to publish messages to
- republish
Headers BooleanOnly - (optional) Republish only message headers, no bodies
- republish
Source String - (optional) Republish matching messages to
republish_destination
- retention String
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources List<Property Map>
- (optional) List of streams to source
- storage String
- (optional) The storage engine to use to back the stream (string)
- stream
Id String - subject
Delete NumberMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform Property Map - Subject transform to apply to matching messages
- subjects List<String>
- The list of subjects that will be consumed by the Stream (["list", "string"])
Outputs
All input properties are implicitly available as output properties. Additionally, the Stream 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 Stream Resource
Get an existing Stream 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?: StreamState, opts?: CustomResourceOptions): Stream
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ack: Optional[bool] = None,
allow_direct: Optional[bool] = None,
allow_msg_ttl: Optional[bool] = None,
allow_rollup_hdrs: Optional[bool] = None,
compression: Optional[str] = None,
deny_delete: Optional[bool] = None,
deny_purge: Optional[bool] = None,
description: Optional[str] = None,
discard: Optional[str] = None,
discard_new_per_subject: Optional[bool] = None,
duplicate_window: Optional[float] = None,
inactive_threshold: Optional[float] = None,
max_ack_pending: Optional[float] = None,
max_age: Optional[float] = None,
max_bytes: Optional[float] = None,
max_consumers: Optional[float] = None,
max_msg_size: Optional[float] = None,
max_msgs: Optional[float] = None,
max_msgs_per_subject: Optional[float] = None,
metadata: Optional[Mapping[str, str]] = None,
mirror: Optional[StreamMirrorArgs] = None,
mirror_direct: Optional[bool] = None,
name: Optional[str] = None,
placement_cluster: Optional[str] = None,
placement_tags: Optional[Sequence[str]] = None,
replicas: Optional[float] = None,
republish_destination: Optional[str] = None,
republish_headers_only: Optional[bool] = None,
republish_source: Optional[str] = None,
retention: Optional[str] = None,
sources: Optional[Sequence[StreamSourceArgs]] = None,
storage: Optional[str] = None,
stream_id: Optional[str] = None,
subject_delete_marker_ttl: Optional[float] = None,
subject_transform: Optional[StreamSubjectTransformArgs] = None,
subjects: Optional[Sequence[str]] = None) -> Stream
func GetStream(ctx *Context, name string, id IDInput, state *StreamState, opts ...ResourceOption) (*Stream, error)
public static Stream Get(string name, Input<string> id, StreamState? state, CustomResourceOptions? opts = null)
public static Stream get(String name, Output<String> id, StreamState state, CustomResourceOptions options)
resources: _: type: jetstream:Stream 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.
- Ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- Allow
Direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- Allow
Msg boolTtl - (optional) Enables Per Message TTLs
- Allow
Rollup boolHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- Compression string
- (optional) Enable stream compression by setting the value to
s2
- Deny
Delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- Deny
Purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- Description string
- (optional) Contains additional information about this stream (string)
- Discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - Discard
New boolPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- Duplicate
Window double - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- Inactive
Threshold double - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- Max
Ack doublePending - (optional) Maximum pending Acks before consumers are paused
- Max
Age double - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- Max
Bytes double - (optional) The maximum size of all messages that can be kept in the stream (number)
- Max
Consumers double - (optional) Number of consumers this stream allows (number)
- Max
Msg doubleSize - (optional) The maximum individual message size that the stream will accept (number)
- Max
Msgs double - (optional) The maximum amount of messages that can be kept in the stream (number)
- Max
Msgs doublePer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- Metadata Dictionary<string, string>
- (optional) A map of strings with arbitrary metadata for the stream
- Mirror
Stream
Mirror - (optional) Stream to mirror
- Mirror
Direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- Name string
- The name of the stream (string)
- Placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<string>
- (optional) Place the stream only on servers with these tags
- Replicas double
- (optional) How many replicas of the data to keep in a clustered environment (number)
- Republish
Destination string - (optional) The destination to publish messages to
- Republish
Headers boolOnly - (optional) Republish only message headers, no bodies
- Republish
Source string - (optional) Republish matching messages to
republish_destination
- Retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - Sources
List<Stream
Source> - (optional) List of streams to source
- Storage string
- (optional) The storage engine to use to back the stream (string)
- Stream
Id string - Subject
Delete doubleMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- Subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- Subjects List<string>
- The list of subjects that will be consumed by the Stream (["list", "string"])
- Ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- Allow
Direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- Allow
Msg boolTtl - (optional) Enables Per Message TTLs
- Allow
Rollup boolHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- Compression string
- (optional) Enable stream compression by setting the value to
s2
- Deny
Delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- Deny
Purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- Description string
- (optional) Contains additional information about this stream (string)
- Discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - Discard
New boolPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- Duplicate
Window float64 - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- Inactive
Threshold float64 - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- Max
Ack float64Pending - (optional) Maximum pending Acks before consumers are paused
- Max
Age float64 - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- Max
Bytes float64 - (optional) The maximum size of all messages that can be kept in the stream (number)
- Max
Consumers float64 - (optional) Number of consumers this stream allows (number)
- Max
Msg float64Size - (optional) The maximum individual message size that the stream will accept (number)
- Max
Msgs float64 - (optional) The maximum amount of messages that can be kept in the stream (number)
- Max
Msgs float64Per Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- Metadata map[string]string
- (optional) A map of strings with arbitrary metadata for the stream
- Mirror
Stream
Mirror Args - (optional) Stream to mirror
- Mirror
Direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- Name string
- The name of the stream (string)
- Placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- []string
- (optional) Place the stream only on servers with these tags
- Replicas float64
- (optional) How many replicas of the data to keep in a clustered environment (number)
- Republish
Destination string - (optional) The destination to publish messages to
- Republish
Headers boolOnly - (optional) Republish only message headers, no bodies
- Republish
Source string - (optional) Republish matching messages to
republish_destination
- Retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - Sources
[]Stream
Source Args - (optional) List of streams to source
- Storage string
- (optional) The storage engine to use to back the stream (string)
- Stream
Id string - Subject
Delete float64Marker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- Subject
Transform StreamSubject Transform Args - Subject transform to apply to matching messages
- Subjects []string
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack Boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct Boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg BooleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup BooleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression String
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete Boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge Boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description String
- (optional) Contains additional information about this stream (string)
- discard String
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New BooleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window Double - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold Double - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack DoublePending - (optional) Maximum pending Acks before consumers are paused
- max
Age Double - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes Double - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers Double - (optional) Number of consumers this stream allows (number)
- max
Msg DoubleSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs Double - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs DoublePer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Map<String,String>
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror - (optional) Stream to mirror
- mirror
Direct Boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name String
- The name of the stream (string)
- placement
Cluster String - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<String>
- (optional) Place the stream only on servers with these tags
- replicas Double
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination String - (optional) The destination to publish messages to
- republish
Headers BooleanOnly - (optional) Republish only message headers, no bodies
- republish
Source String - (optional) Republish matching messages to
republish_destination
- retention String
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
List<Stream
Source> - (optional) List of streams to source
- storage String
- (optional) The storage engine to use to back the stream (string)
- stream
Id String - subject
Delete DoubleMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- subjects List<String>
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg booleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup booleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression string
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description string
- (optional) Contains additional information about this stream (string)
- discard string
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New booleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window number - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold number - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack numberPending - (optional) Maximum pending Acks before consumers are paused
- max
Age number - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes number - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers number - (optional) Number of consumers this stream allows (number)
- max
Msg numberSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs number - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs numberPer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata {[key: string]: string}
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror - (optional) Stream to mirror
- mirror
Direct boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name string
- The name of the stream (string)
- placement
Cluster string - (optional) Place the stream in a specific cluster, influenced by placement_tags
- string[]
- (optional) Place the stream only on servers with these tags
- replicas number
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination string - (optional) The destination to publish messages to
- republish
Headers booleanOnly - (optional) Republish only message headers, no bodies
- republish
Source string - (optional) Republish matching messages to
republish_destination
- retention string
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
Stream
Source[] - (optional) List of streams to source
- storage string
- (optional) The storage engine to use to back the stream (string)
- stream
Id string - subject
Delete numberMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform StreamSubject Transform - Subject transform to apply to matching messages
- subjects string[]
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack bool
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow_
direct bool - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow_
msg_ boolttl - (optional) Enables Per Message TTLs
- allow_
rollup_ boolhdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression str
- (optional) Enable stream compression by setting the value to
s2
- deny_
delete bool - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny_
purge bool - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description str
- (optional) Contains additional information about this stream (string)
- discard str
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard_
new_ boolper_ subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate_
window float - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive_
threshold float - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max_
ack_ floatpending - (optional) Maximum pending Acks before consumers are paused
- max_
age float - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max_
bytes float - (optional) The maximum size of all messages that can be kept in the stream (number)
- max_
consumers float - (optional) Number of consumers this stream allows (number)
- max_
msg_ floatsize - (optional) The maximum individual message size that the stream will accept (number)
- max_
msgs float - (optional) The maximum amount of messages that can be kept in the stream (number)
- max_
msgs_ floatper_ subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Mapping[str, str]
- (optional) A map of strings with arbitrary metadata for the stream
- mirror
Stream
Mirror Args - (optional) Stream to mirror
- mirror_
direct bool - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name str
- The name of the stream (string)
- placement_
cluster str - (optional) Place the stream in a specific cluster, influenced by placement_tags
- Sequence[str]
- (optional) Place the stream only on servers with these tags
- replicas float
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish_
destination str - (optional) The destination to publish messages to
- republish_
headers_ boolonly - (optional) Republish only message headers, no bodies
- republish_
source str - (optional) Republish matching messages to
republish_destination
- retention str
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources
Sequence[Stream
Source Args] - (optional) List of streams to source
- storage str
- (optional) The storage engine to use to back the stream (string)
- stream_
id str - subject_
delete_ floatmarker_ ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject_
transform StreamSubject Transform Args - Subject transform to apply to matching messages
- subjects Sequence[str]
- The list of subjects that will be consumed by the Stream (["list", "string"])
- ack Boolean
- (optional) If the Stream should support confirming receiving messages via acknowledgements (bool)
- allow
Direct Boolean - (optional) Allow higher performance, direct access to get individual messages via the $JS.DS.GET API (bool)
- allow
Msg BooleanTtl - (optional) Enables Per Message TTLs
- allow
Rollup BooleanHdrs - (optional) Allows the use of the Nats-Rollup header to replace all contents of a stream, or subject in a stream, with a single new message (bool)
- compression String
- (optional) Enable stream compression by setting the value to
s2
- deny
Delete Boolean - (optional) Restricts the ability to delete messages from a stream via the API. Cannot be changed once set to true (bool)
- deny
Purge Boolean - (optional) Restricts the ability to purge messages from a stream via the API. Cannot be change once set to true (bool)
- description String
- (optional) Contains additional information about this stream (string)
- discard String
- (optional) When a Stream reach it's limits either old messages are deleted or new ones are denied (
new
orold
) - discard
New BooleanPer Subject - (optional) When discard policy is new and the stream is one with max messages per subject set, this will apply the new behavior to every subject. Essentially turning discard new from maximum number of subjects into maximum number of messages in a subject (bool)
- duplicate
Window Number - (optional) The time window size for duplicate tracking, duration specified in seconds (number)
- inactive
Threshold Number - (optional) Removes the consumer after a idle period, specified as a duration in seconds
- max
Ack NumberPending - (optional) Maximum pending Acks before consumers are paused
- max
Age Number - (optional) The maximum oldest message that can be kept in the stream, duration specified in seconds (number)
- max
Bytes Number - (optional) The maximum size of all messages that can be kept in the stream (number)
- max
Consumers Number - (optional) Number of consumers this stream allows (number)
- max
Msg NumberSize - (optional) The maximum individual message size that the stream will accept (number)
- max
Msgs Number - (optional) The maximum amount of messages that can be kept in the stream (number)
- max
Msgs NumberPer Subject - (optional) The maximum amount of messages that can be kept in the stream on a per-subject basis (number)
- metadata Map<String>
- (optional) A map of strings with arbitrary metadata for the stream
- mirror Property Map
- (optional) Stream to mirror
- mirror
Direct Boolean - If true, and the stream is a mirror, the mirror will participate in a serving direct get requests for individual messages from origin stream
- name String
- The name of the stream (string)
- placement
Cluster String - (optional) Place the stream in a specific cluster, influenced by placement_tags
- List<String>
- (optional) Place the stream only on servers with these tags
- replicas Number
- (optional) How many replicas of the data to keep in a clustered environment (number)
- republish
Destination String - (optional) The destination to publish messages to
- republish
Headers BooleanOnly - (optional) Republish only message headers, no bodies
- republish
Source String - (optional) Republish matching messages to
republish_destination
- retention String
- (optional) The retention policy to apply over and above max_msgs, max_bytes and max_age (string). Options are
limits
,interest
andworkqueue
. Defaults tolimits
. - sources List<Property Map>
- (optional) List of streams to source
- storage String
- (optional) The storage engine to use to back the stream (string)
- stream
Id String - subject
Delete NumberMarker Ttl - (optional) Enables placing markers when Max Age removes messages, duration specified in seconds (number)
- subject
Transform Property Map - Subject transform to apply to matching messages
- subjects List<String>
- The list of subjects that will be consumed by the Stream (["list", "string"])
Supporting Types
StreamMirror, StreamMirrorArgs
- Name string
- The name of the stream (string)
- External
Stream
Mirror External - Streams replicated from other accounts
- Filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- Start
Seq double - The sequence to start mirroring from
- Start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- Subject
Transforms List<StreamMirror Subject Transform> - The subject filtering sources and associated destination transforms
- Name string
- The name of the stream (string)
- External
Stream
Mirror External - Streams replicated from other accounts
- Filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- Start
Seq float64 - The sequence to start mirroring from
- Start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- Subject
Transforms []StreamMirror Subject Transform - The subject filtering sources and associated destination transforms
- name String
- The name of the stream (string)
- external
Stream
Mirror External - Streams replicated from other accounts
- filter
Subject String - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq Double - The sequence to start mirroring from
- start
Time String - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms List<StreamMirror Subject Transform> - The subject filtering sources and associated destination transforms
- name string
- The name of the stream (string)
- external
Stream
Mirror External - Streams replicated from other accounts
- filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq number - The sequence to start mirroring from
- start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms StreamMirror Subject Transform[] - The subject filtering sources and associated destination transforms
- name str
- The name of the stream (string)
- external
Stream
Mirror External - Streams replicated from other accounts
- filter_
subject str - Only copy messages matching a specific subject, not usable for mirrors
- start_
seq float - The sequence to start mirroring from
- start_
time str - The time stamp in the source stream to start from, in RFC3339 format
- subject_
transforms Sequence[StreamMirror Subject Transform] - The subject filtering sources and associated destination transforms
- name String
- The name of the stream (string)
- external Property Map
- Streams replicated from other accounts
- filter
Subject String - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq Number - The sequence to start mirroring from
- start
Time String - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms List<Property Map> - The subject filtering sources and associated destination transforms
StreamMirrorExternal, StreamMirrorExternalArgs
StreamMirrorSubjectTransform, StreamMirrorSubjectTransformArgs
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
- destination string
- The subject transform destination
- source string
- (optional) List of streams to source
- destination str
- The subject transform destination
- source str
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
StreamSource, StreamSourceArgs
- Name string
- The name of the stream (string)
- External
Stream
Source External - Streams replicated from other accounts
- Filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- Start
Seq double - The sequence to start mirroring from
- Start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- Subject
Transforms List<StreamSource Subject Transform> - The subject filtering sources and associated destination transforms
- Name string
- The name of the stream (string)
- External
Stream
Source External - Streams replicated from other accounts
- Filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- Start
Seq float64 - The sequence to start mirroring from
- Start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- Subject
Transforms []StreamSource Subject Transform - The subject filtering sources and associated destination transforms
- name String
- The name of the stream (string)
- external
Stream
Source External - Streams replicated from other accounts
- filter
Subject String - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq Double - The sequence to start mirroring from
- start
Time String - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms List<StreamSource Subject Transform> - The subject filtering sources and associated destination transforms
- name string
- The name of the stream (string)
- external
Stream
Source External - Streams replicated from other accounts
- filter
Subject string - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq number - The sequence to start mirroring from
- start
Time string - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms StreamSource Subject Transform[] - The subject filtering sources and associated destination transforms
- name str
- The name of the stream (string)
- external
Stream
Source External - Streams replicated from other accounts
- filter_
subject str - Only copy messages matching a specific subject, not usable for mirrors
- start_
seq float - The sequence to start mirroring from
- start_
time str - The time stamp in the source stream to start from, in RFC3339 format
- subject_
transforms Sequence[StreamSource Subject Transform] - The subject filtering sources and associated destination transforms
- name String
- The name of the stream (string)
- external Property Map
- Streams replicated from other accounts
- filter
Subject String - Only copy messages matching a specific subject, not usable for mirrors
- start
Seq Number - The sequence to start mirroring from
- start
Time String - The time stamp in the source stream to start from, in RFC3339 format
- subject
Transforms List<Property Map> - The subject filtering sources and associated destination transforms
StreamSourceExternal, StreamSourceExternalArgs
StreamSourceSubjectTransform, StreamSourceSubjectTransformArgs
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
- destination string
- The subject transform destination
- source string
- (optional) List of streams to source
- destination str
- The subject transform destination
- source str
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
StreamSubjectTransform, StreamSubjectTransformArgs
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- Destination string
- The subject transform destination
- Source string
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
- destination string
- The subject transform destination
- source string
- (optional) List of streams to source
- destination str
- The subject transform destination
- source str
- (optional) List of streams to source
- destination String
- The subject transform destination
- source String
- (optional) List of streams to source
Package Details
- Repository
- jetstream nats-io/terraform-provider-jetstream
- License
- Notes
- This Pulumi package is based on the
jetstream
Terraform Provider.