libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchLogs.CreateLogStream

Description

Creates a log stream for the specified log group. A log stream is a sequence of log events that originate from a single source, such as an application instance or a resource that is being monitored.

There is no limit on the number of log streams that you can create for a log group. There is a limit of 50 TPS on CreateLogStream operations, after which transactions are throttled.

You must use the following guidelines when naming a log stream:

  • Log stream names must be unique within the log group.
  • Log stream names can be between 1 and 512 characters long.
  • The ':' (colon) and '*' (asterisk) characters are not allowed.
Synopsis

Creating a Request

data CreateLogStream Source #

See: newCreateLogStream smart constructor.

Constructors

CreateLogStream' 

Fields

Instances

Instances details
Eq CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Read CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Show CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Generic CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Associated Types

type Rep CreateLogStream :: Type -> Type #

NFData CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Methods

rnf :: CreateLogStream -> () #

Hashable CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

ToJSON CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

AWSRequest CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Associated Types

type AWSResponse CreateLogStream #

ToHeaders CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

ToPath CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

ToQuery CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

type Rep CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

type Rep CreateLogStream = D1 ('MetaData "CreateLogStream" "Amazonka.CloudWatchLogs.CreateLogStream" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "CreateLogStream'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "logStreamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateLogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

newCreateLogStream Source #

Create a value of CreateLogStream with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:logGroupName:CreateLogStream', createLogStream_logGroupName - The name of the log group.

$sel:logStreamName:CreateLogStream', createLogStream_logStreamName - The name of the log stream.

Request Lenses

Destructuring the Response

data CreateLogStreamResponse Source #

See: newCreateLogStreamResponse smart constructor.

Instances

Instances details
Eq CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Read CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Show CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Generic CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Associated Types

type Rep CreateLogStreamResponse :: Type -> Type #

NFData CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

Methods

rnf :: CreateLogStreamResponse -> () #

type Rep CreateLogStreamResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.CreateLogStream

type Rep CreateLogStreamResponse = D1 ('MetaData "CreateLogStreamResponse" "Amazonka.CloudWatchLogs.CreateLogStream" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "CreateLogStreamResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newCreateLogStreamResponse :: CreateLogStreamResponse Source #

Create a value of CreateLogStreamResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.