| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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.
- Don't use ':' (colon) or '*' (asterisk) characters.
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.
Constructors
| CreateLogStream' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateLogStream, createLogStream_logGroupName - The name of the log group.
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.
Constructors
| CreateLogStreamResponse' | |
Instances
newCreateLogStreamResponse :: CreateLogStreamResponse Source #
Create a value of CreateLogStreamResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.