Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
LogStream
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CloudWatch
Assembly: Pulumi.Aws.dll
Syntax
public class LogStream : CustomResource

Constructors

View Source

LogStream(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 Source

Arn

The Amazon Resource Name (ARN) specifying the log stream.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.