Auth0
LogStream
With this resource, you can manage your Auth0 log streams.
Example Usage
using Pulumi;
using Auth0 = Pulumi.Auth0;
class MyStack : Stack
{
public MyStack()
{
var example = new Auth0.LogStream("example", new Auth0.LogStreamArgs
{
Filters =
{
{
{ "name", "auth.login.fail" },
{ "type", "category" },
},
{
{ "name", "auth.signup.fail" },
{ "type", "category" },
},
},
Sink = new Auth0.Inputs.LogStreamSinkArgs
{
AwsAccountId = "my_account_id",
AwsRegion = "us-east-2",
},
Status = "active",
Type = "eventbridge",
});
}
}
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v2/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth0.NewLogStream(ctx, "example", &auth0.LogStreamArgs{
Filters: pulumi.StringMapArray{
pulumi.StringMap{
"name": pulumi.String("auth.login.fail"),
"type": pulumi.String("category"),
},
pulumi.StringMap{
"name": pulumi.String("auth.signup.fail"),
"type": pulumi.String("category"),
},
},
Sink: &LogStreamSinkArgs{
AwsAccountId: pulumi.String("my_account_id"),
AwsRegion: pulumi.String("us-east-2"),
},
Status: pulumi.String("active"),
Type: pulumi.String("eventbridge"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LogStream("example", LogStreamArgs.builder()
.filters(
Map.ofEntries(
Map.entry("name", "auth.login.fail"),
Map.entry("type", "category")
),
Map.ofEntries(
Map.entry("name", "auth.signup.fail"),
Map.entry("type", "category")
))
.sink(LogStreamSinkArgs.builder()
.awsAccountId("my_account_id")
.awsRegion("us-east-2")
.build())
.status("active")
.type("eventbridge")
.build());
}
}
import pulumi
import pulumi_auth0 as auth0
example = auth0.LogStream("example",
filters=[
{
"name": "auth.login.fail",
"type": "category",
},
{
"name": "auth.signup.fail",
"type": "category",
},
],
sink=auth0.LogStreamSinkArgs(
aws_account_id="my_account_id",
aws_region="us-east-2",
),
status="active",
type="eventbridge")
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const example = new auth0.LogStream("example", {
filters: [
{
name: "auth.login.fail",
type: "category",
},
{
name: "auth.signup.fail",
type: "category",
},
],
sink: {
awsAccountId: "my_account_id",
awsRegion: "us-east-2",
},
status: "active",
type: "eventbridge",
});
resources:
example:
type: auth0:LogStream
properties:
filters:
- name: auth.login.fail
type: category
- name: auth.signup.fail
type: category
sink:
awsAccountId: my_account_id
awsRegion: us-east-2
status: active
type: eventbridge
Create a LogStream Resource
new LogStream(name: string, args: LogStreamArgs, opts?: CustomResourceOptions);
@overload
def LogStream(resource_name: str,
opts: Optional[ResourceOptions] = None,
filters: Optional[Sequence[Mapping[str, str]]] = None,
name: Optional[str] = None,
sink: Optional[LogStreamSinkArgs] = None,
status: Optional[str] = None,
type: Optional[str] = None)
@overload
def LogStream(resource_name: str,
args: LogStreamArgs,
opts: Optional[ResourceOptions] = None)
func NewLogStream(ctx *Context, name string, args LogStreamArgs, opts ...ResourceOption) (*LogStream, error)
public LogStream(string name, LogStreamArgs args, CustomResourceOptions? opts = null)
public LogStream(String name, LogStreamArgs args)
public LogStream(String name, LogStreamArgs args, CustomResourceOptions options)
type: auth0:LogStream
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogStreamArgs
- 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 LogStreamArgs
- 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 LogStreamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogStreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogStreamArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LogStream Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LogStream resource accepts the following input properties:
- Sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- Type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- Filters
List<Immutable
Dictionary<string, string>> Only logs events matching these filters will be delivered by the stream.
- Name string
Name of the log stream
- Status string
The current status of the log stream. Options are "active", "paused", "suspended"
- Sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- Type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- Filters []map[string]string
Only logs events matching these filters will be delivered by the stream.
- Name string
Name of the log stream
- Status string
The current status of the log stream. Options are "active", "paused", "suspended"
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- type String
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters List<Map<String,String>>
Only logs events matching these filters will be delivered by the stream.
- name String
Name of the log stream
- status String
The current status of the log stream. Options are "active", "paused", "suspended"
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters {[key: string]: string}[]
Only logs events matching these filters will be delivered by the stream.
- name string
Name of the log stream
- status string
The current status of the log stream. Options are "active", "paused", "suspended"
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- type str
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters Sequence[Mapping[str, str]]
Only logs events matching these filters will be delivered by the stream.
- name str
Name of the log stream
- status str
The current status of the log stream. Options are "active", "paused", "suspended"
- sink Property Map
List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- type String
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters List<Map<String>>
Only logs events matching these filters will be delivered by the stream.
- name String
Name of the log stream
- status String
The current status of the log stream. Options are "active", "paused", "suspended"
Outputs
All input properties are implicitly available as output properties. Additionally, the LogStream 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 an Existing LogStream Resource
Get an existing LogStream 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?: LogStreamState, opts?: CustomResourceOptions): LogStream
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
filters: Optional[Sequence[Mapping[str, str]]] = None,
name: Optional[str] = None,
sink: Optional[LogStreamSinkArgs] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> LogStream
func GetLogStream(ctx *Context, name string, id IDInput, state *LogStreamState, opts ...ResourceOption) (*LogStream, error)
public static LogStream Get(string name, Input<string> id, LogStreamState? state, CustomResourceOptions? opts = null)
public static LogStream get(String name, Output<String> id, LogStreamState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Filters
List<Immutable
Dictionary<string, string>> Only logs events matching these filters will be delivered by the stream.
- Name string
Name of the log stream
- Sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- Status string
The current status of the log stream. Options are "active", "paused", "suspended"
- Type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- Filters []map[string]string
Only logs events matching these filters will be delivered by the stream.
- Name string
Name of the log stream
- Sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- Status string
The current status of the log stream. Options are "active", "paused", "suspended"
- Type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters List<Map<String,String>>
Only logs events matching these filters will be delivered by the stream.
- name String
Name of the log stream
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- status String
The current status of the log stream. Options are "active", "paused", "suspended"
- type String
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters {[key: string]: string}[]
Only logs events matching these filters will be delivered by the stream.
- name string
Name of the log stream
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- status string
The current status of the log stream. Options are "active", "paused", "suspended"
- type string
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters Sequence[Mapping[str, str]]
Only logs events matching these filters will be delivered by the stream.
- name str
Name of the log stream
- sink
Log
Stream Sink Args List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- status str
The current status of the log stream. Options are "active", "paused", "suspended"
- type str
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
- filters List<Map<String>>
Only logs events matching these filters will be delivered by the stream.
- name String
Name of the log stream
- sink Property Map
List(Resource) The sink configuration for the log stream. For details, see Sink Configuration.
- status String
The current status of the log stream. Options are "active", "paused", "suspended"
- type String
The type of log stream. Options are "eventbridge", "eventgrid", "http", "datadog", "splunk", "sumo"
Supporting Types
LogStreamSink
- Aws
Account stringId The AWS Account ID
- Aws
Partner stringEvent Source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- Aws
Region string The AWS Region (i.e "us-east-2")
- Azure
Partner stringTopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- Azure
Region string The Azure region code (i.e. "ne")
- Azure
Resource stringGroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- Azure
Subscription stringId The unique alphanumeric string that identifies your Azure subscription
- Datadog
Api stringKey The Datadog API key
- Datadog
Region string The Datadog region
- string
Sent in the HTTP "Authorization" header with each request
- Http
Content stringFormat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- Http
Content stringType The ContentType header to send over HTTP. Common value is "application/json"
- Http
Custom List<ImmutableHeaders Dictionary<string, string>> Additional HTTP headers to be included as part of the HTTP request
- Http
Endpoint string The HTTP endpoint to send streaming logs
- Splunk
Domain string The Splunk domain name
- Splunk
Port string - Splunk
Secure bool This toggle should be turned off when using self-signed certificates
- Splunk
Token string The Splunk access token
- Sumo
Source stringAddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
- Aws
Account stringId The AWS Account ID
- Aws
Partner stringEvent Source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- Aws
Region string The AWS Region (i.e "us-east-2")
- Azure
Partner stringTopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- Azure
Region string The Azure region code (i.e. "ne")
- Azure
Resource stringGroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- Azure
Subscription stringId The unique alphanumeric string that identifies your Azure subscription
- Datadog
Api stringKey The Datadog API key
- Datadog
Region string The Datadog region
- string
Sent in the HTTP "Authorization" header with each request
- Http
Content stringFormat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- Http
Content stringType The ContentType header to send over HTTP. Common value is "application/json"
- Http
Custom []map[string]stringHeaders Additional HTTP headers to be included as part of the HTTP request
- Http
Endpoint string The HTTP endpoint to send streaming logs
- Splunk
Domain string The Splunk domain name
- Splunk
Port string - Splunk
Secure bool This toggle should be turned off when using self-signed certificates
- Splunk
Token string The Splunk access token
- Sumo
Source stringAddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
- aws
Account StringId The AWS Account ID
- aws
Partner StringEvent Source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- aws
Region String The AWS Region (i.e "us-east-2")
- azure
Partner StringTopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- azure
Region String The Azure region code (i.e. "ne")
- azure
Resource StringGroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- azure
Subscription StringId The unique alphanumeric string that identifies your Azure subscription
- datadog
Api StringKey The Datadog API key
- datadog
Region String The Datadog region
- String
Sent in the HTTP "Authorization" header with each request
- http
Content StringFormat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- http
Content StringType The ContentType header to send over HTTP. Common value is "application/json"
- http
Custom List<Map<String,String>>Headers Additional HTTP headers to be included as part of the HTTP request
- http
Endpoint String The HTTP endpoint to send streaming logs
- splunk
Domain String The Splunk domain name
- splunk
Port String - splunk
Secure Boolean This toggle should be turned off when using self-signed certificates
- splunk
Token String The Splunk access token
- sumo
Source StringAddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
- aws
Account stringId The AWS Account ID
- aws
Partner stringEvent Source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- aws
Region string The AWS Region (i.e "us-east-2")
- azure
Partner stringTopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- azure
Region string The Azure region code (i.e. "ne")
- azure
Resource stringGroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- azure
Subscription stringId The unique alphanumeric string that identifies your Azure subscription
- datadog
Api stringKey The Datadog API key
- datadog
Region string The Datadog region
- string
Sent in the HTTP "Authorization" header with each request
- http
Content stringFormat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- http
Content stringType The ContentType header to send over HTTP. Common value is "application/json"
- http
Custom {[key: string]: string}[]Headers Additional HTTP headers to be included as part of the HTTP request
- http
Endpoint string The HTTP endpoint to send streaming logs
- splunk
Domain string The Splunk domain name
- splunk
Port string - splunk
Secure boolean This toggle should be turned off when using self-signed certificates
- splunk
Token string The Splunk access token
- sumo
Source stringAddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
- aws_
account_ strid The AWS Account ID
- aws_
partner_ strevent_ source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- aws_
region str The AWS Region (i.e "us-east-2")
- azure_
partner_ strtopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- azure_
region str The Azure region code (i.e. "ne")
- azure_
resource_ strgroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- azure_
subscription_ strid The unique alphanumeric string that identifies your Azure subscription
- datadog_
api_ strkey The Datadog API key
- datadog_
region str The Datadog region
- str
Sent in the HTTP "Authorization" header with each request
- http_
content_ strformat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- http_
content_ strtype The ContentType header to send over HTTP. Common value is "application/json"
- http_
custom_ Sequence[Mapping[str, str]]headers Additional HTTP headers to be included as part of the HTTP request
- http_
endpoint str The HTTP endpoint to send streaming logs
- splunk_
domain str The Splunk domain name
- splunk_
port str - splunk_
secure bool This toggle should be turned off when using self-signed certificates
- splunk_
token str The Splunk access token
- sumo_
source_ straddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
- aws
Account StringId The AWS Account ID
- aws
Partner StringEvent Source Name of the Partner Event Source to be used with AWS. Generally generated by Auth0 and passed to AWS so this should generally be an output attribute.
- aws
Region String The AWS Region (i.e "us-east-2")
- azure
Partner StringTopic Name of the Partner Topic to be used with Azure. Generally should not be specified.
- azure
Region String The Azure region code (i.e. "ne")
- azure
Resource StringGroup The Azure EventGrid resource group which allows you to manage all Azure assets within one subscription
- azure
Subscription StringId The unique alphanumeric string that identifies your Azure subscription
- datadog
Api StringKey The Datadog API key
- datadog
Region String The Datadog region
- String
Sent in the HTTP "Authorization" header with each request
- http
Content StringFormat The format of data sent over HTTP. Options are "JSONLINES", "JSONARRAY" or "JSONOBJECT"
- http
Content StringType The ContentType header to send over HTTP. Common value is "application/json"
- http
Custom List<Map<String>>Headers Additional HTTP headers to be included as part of the HTTP request
- http
Endpoint String The HTTP endpoint to send streaming logs
- splunk
Domain String The Splunk domain name
- splunk
Port String - splunk
Secure Boolean This toggle should be turned off when using self-signed certificates
- splunk
Token String The Splunk access token
- sumo
Source StringAddress Generated URL for your defined HTTP source in Sumo Logic for collecting streaming data from Auth0
Import
Existing log stream can be imported using log stream id, e.g.
$ pulumi import auth0:index/logStream:LogStream example lst_XXXXXXXXXXXXXXXX
Package Details
- Repository
- https://github.com/pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
auth0
Terraform Provider.