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 temporary URL to start an AppStream 2.0 streaming session for the specified user. A streaming URL enables application streaming to be tested without user setup.
Synopsis
- data CreateStreamingURL = CreateStreamingURL' {}
- newCreateStreamingURL :: Text -> Text -> Text -> CreateStreamingURL
- createStreamingURL_sessionContext :: Lens' CreateStreamingURL (Maybe Text)
- createStreamingURL_applicationId :: Lens' CreateStreamingURL (Maybe Text)
- createStreamingURL_validity :: Lens' CreateStreamingURL (Maybe Integer)
- createStreamingURL_stackName :: Lens' CreateStreamingURL Text
- createStreamingURL_fleetName :: Lens' CreateStreamingURL Text
- createStreamingURL_userId :: Lens' CreateStreamingURL Text
- data CreateStreamingURLResponse = CreateStreamingURLResponse' {
- streamingURL :: Maybe Text
- expires :: Maybe POSIX
- httpStatus :: Int
- newCreateStreamingURLResponse :: Int -> CreateStreamingURLResponse
- createStreamingURLResponse_streamingURL :: Lens' CreateStreamingURLResponse (Maybe Text)
- createStreamingURLResponse_expires :: Lens' CreateStreamingURLResponse (Maybe UTCTime)
- createStreamingURLResponse_httpStatus :: Lens' CreateStreamingURLResponse Int
Creating a Request
data CreateStreamingURL Source #
See: newCreateStreamingURL
smart constructor.
CreateStreamingURL' | |
|
Instances
newCreateStreamingURL Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateStreamingURL |
Create a value of CreateStreamingURL
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:sessionContext:CreateStreamingURL'
, createStreamingURL_sessionContext
- The session context. For more information, see
Session Context
in the Amazon AppStream 2.0 Administration Guide.
$sel:applicationId:CreateStreamingURL'
, createStreamingURL_applicationId
- The name of the application to launch after the session starts. This is
the name that you specified as Name in the Image Assistant. If your
fleet is enabled for the Desktop stream view, you can also choose to
launch directly to the operating system desktop. To do so, specify
Desktop.
$sel:validity:CreateStreamingURL'
, createStreamingURL_validity
- The time that the streaming URL will be valid, in seconds. Specify a
value between 1 and 604800 seconds. The default is 60 seconds.
$sel:stackName:CreateStreamingURL'
, createStreamingURL_stackName
- The name of the stack.
$sel:fleetName:CreateStreamingURL'
, createStreamingURL_fleetName
- The name of the fleet.
$sel:userId:CreateStreamingURL'
, createStreamingURL_userId
- The identifier of the user.
Request Lenses
createStreamingURL_sessionContext :: Lens' CreateStreamingURL (Maybe Text) Source #
The session context. For more information, see Session Context in the Amazon AppStream 2.0 Administration Guide.
createStreamingURL_applicationId :: Lens' CreateStreamingURL (Maybe Text) Source #
The name of the application to launch after the session starts. This is the name that you specified as Name in the Image Assistant. If your fleet is enabled for the Desktop stream view, you can also choose to launch directly to the operating system desktop. To do so, specify Desktop.
createStreamingURL_validity :: Lens' CreateStreamingURL (Maybe Integer) Source #
The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.
createStreamingURL_stackName :: Lens' CreateStreamingURL Text Source #
The name of the stack.
createStreamingURL_fleetName :: Lens' CreateStreamingURL Text Source #
The name of the fleet.
createStreamingURL_userId :: Lens' CreateStreamingURL Text Source #
The identifier of the user.
Destructuring the Response
data CreateStreamingURLResponse Source #
See: newCreateStreamingURLResponse
smart constructor.
CreateStreamingURLResponse' | |
|
Instances
newCreateStreamingURLResponse Source #
Create a value of CreateStreamingURLResponse
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:streamingURL:CreateStreamingURLResponse'
, createStreamingURLResponse_streamingURL
- The URL to start the AppStream 2.0 streaming session.
$sel:expires:CreateStreamingURLResponse'
, createStreamingURLResponse_expires
- The elapsed time, in seconds after the Unix epoch, when this URL
expires.
$sel:httpStatus:CreateStreamingURLResponse'
, createStreamingURLResponse_httpStatus
- The response's http status code.
Response Lenses
createStreamingURLResponse_streamingURL :: Lens' CreateStreamingURLResponse (Maybe Text) Source #
The URL to start the AppStream 2.0 streaming session.
createStreamingURLResponse_expires :: Lens' CreateStreamingURLResponse (Maybe UTCTime) Source #
The elapsed time, in seconds after the Unix epoch, when this URL expires.
createStreamingURLResponse_httpStatus :: Lens' CreateStreamingURLResponse Int Source #
The response's http status code.