Class LogStream
Provides a CloudWatch Log Stream resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var yada = new Aws.CloudWatch.LogGroup("yada", new Aws.CloudWatch.LogGroupArgs
{
});
var foo = new Aws.CloudWatch.LogStream("foo", new Aws.CloudWatch.LogStreamArgs
{
LogGroupName = yada.Name,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CloudWatch
Assembly: Pulumi.Aws.dll
Syntax
public class LogStream : CustomResource
Constructors
View SourceLogStream(String, LogStreamArgs, CustomResourceOptions)
Create a LogStream resource with the given unique name, arguments, and options.
Declaration
public LogStream(string name, LogStreamArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LogStreamArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The Amazon Resource Name (ARN) specifying the log stream.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LogGroupName
The name of the log group under which the log stream is to be created.
Declaration
public Output<string> LogGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the log stream. Must not be longer than 512 characters and must not contain :
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, LogStreamState, CustomResourceOptions)
Get an existing LogStream resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static LogStream Get(string name, Input<string> id, LogStreamState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LogStreamState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| LogStream |