Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateLogStream = CreateLogStream' {}
- newCreateLogStream :: Text -> Text -> CreateLogStream
- createLogStream_logGroupName :: Lens' CreateLogStream Text
- createLogStream_logStreamName :: Lens' CreateLogStream Text
- data CreateLogStreamResponse = CreateLogStreamResponse' {
- newCreateLogStreamResponse :: CreateLogStreamResponse
Creating a Request
data CreateLogStream Source #
See: newCreateLogStream
smart constructor.
CreateLogStream' | |
|
Instances
:: Text | |
-> Text | |
-> CreateLogStream |
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
createLogStream_logGroupName :: Lens' CreateLogStream Text Source #
The name of the log group.
createLogStream_logStreamName :: Lens' CreateLogStream Text Source #
The name of the log stream.
Destructuring the Response
data CreateLogStreamResponse Source #
See: newCreateLogStreamResponse
smart constructor.
Instances
Eq CreateLogStreamResponse Source # | |
Defined in Amazonka.CloudWatchLogs.CreateLogStream | |
Read CreateLogStreamResponse Source # | |
Show CreateLogStreamResponse Source # | |
Defined in Amazonka.CloudWatchLogs.CreateLogStream showsPrec :: Int -> CreateLogStreamResponse -> ShowS # show :: CreateLogStreamResponse -> String # showList :: [CreateLogStreamResponse] -> ShowS # | |
Generic CreateLogStreamResponse Source # | |
Defined in Amazonka.CloudWatchLogs.CreateLogStream type Rep CreateLogStreamResponse :: Type -> Type # | |
NFData CreateLogStreamResponse Source # | |
Defined in Amazonka.CloudWatchLogs.CreateLogStream rnf :: CreateLogStreamResponse -> () # | |
type Rep CreateLogStreamResponse Source # | |
Defined in Amazonka.CloudWatchLogs.CreateLogStream |
newCreateLogStreamResponse :: CreateLogStreamResponse Source #
Create a value of CreateLogStreamResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.