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 streaming session stream for a streaming session.
After invoking this API, invoke GetStreamingSessionStream with the returned streamId to poll the resource until it is in state READY.
Synopsis
- data CreateStreamingSessionStream = CreateStreamingSessionStream' {}
- newCreateStreamingSessionStream :: Text -> Text -> CreateStreamingSessionStream
- createStreamingSessionStream_expirationInSeconds :: Lens' CreateStreamingSessionStream (Maybe Natural)
- createStreamingSessionStream_clientToken :: Lens' CreateStreamingSessionStream (Maybe Text)
- createStreamingSessionStream_studioId :: Lens' CreateStreamingSessionStream Text
- createStreamingSessionStream_sessionId :: Lens' CreateStreamingSessionStream Text
- data CreateStreamingSessionStreamResponse = CreateStreamingSessionStreamResponse' {}
- newCreateStreamingSessionStreamResponse :: Int -> CreateStreamingSessionStreamResponse
- createStreamingSessionStreamResponse_stream :: Lens' CreateStreamingSessionStreamResponse (Maybe StreamingSessionStream)
- createStreamingSessionStreamResponse_httpStatus :: Lens' CreateStreamingSessionStreamResponse Int
Creating a Request
data CreateStreamingSessionStream Source #
A list collection streams.
See: newCreateStreamingSessionStream
smart constructor.
CreateStreamingSessionStream' | |
|
Instances
newCreateStreamingSessionStream Source #
:: Text | |
-> Text | |
-> CreateStreamingSessionStream |
Create a value of CreateStreamingSessionStream
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:expirationInSeconds:CreateStreamingSessionStream'
, createStreamingSessionStream_expirationInSeconds
- The expiration time in seconds.
$sel:clientToken:CreateStreamingSessionStream'
, createStreamingSessionStream_clientToken
- To make an idempotent API request using one of these actions, specify a
client token in the request. You should not reuse the same client token
for other API requests. If you retry a request that completed
successfully using the same client token and the same parameters, the
retry succeeds without performing any further actions. If you retry a
successful request using the same client token, but one or more of the
parameters are different, the retry fails with a ValidationException
error.
$sel:studioId:CreateStreamingSessionStream'
, createStreamingSessionStream_studioId
- The studio ID.
$sel:sessionId:CreateStreamingSessionStream'
, createStreamingSessionStream_sessionId
- The session ID.
Request Lenses
createStreamingSessionStream_expirationInSeconds :: Lens' CreateStreamingSessionStream (Maybe Natural) Source #
The expiration time in seconds.
createStreamingSessionStream_clientToken :: Lens' CreateStreamingSessionStream (Maybe Text) Source #
To make an idempotent API request using one of these actions, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails with a ValidationException error.
createStreamingSessionStream_studioId :: Lens' CreateStreamingSessionStream Text Source #
The studio ID.
createStreamingSessionStream_sessionId :: Lens' CreateStreamingSessionStream Text Source #
The session ID.
Destructuring the Response
data CreateStreamingSessionStreamResponse Source #
See: newCreateStreamingSessionStreamResponse
smart constructor.
CreateStreamingSessionStreamResponse' | |
|
Instances
newCreateStreamingSessionStreamResponse Source #
Create a value of CreateStreamingSessionStreamResponse
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:stream:CreateStreamingSessionStreamResponse'
, createStreamingSessionStreamResponse_stream
- The stream.
$sel:httpStatus:CreateStreamingSessionStreamResponse'
, createStreamingSessionStreamResponse_httpStatus
- The response's http status code.
Response Lenses
createStreamingSessionStreamResponse_stream :: Lens' CreateStreamingSessionStreamResponse (Maybe StreamingSessionStream) Source #
The stream.
createStreamingSessionStreamResponse_httpStatus :: Lens' CreateStreamingSessionStreamResponse Int Source #
The response's http status code.