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 in a studio.
After invoking this operation, you must poll GetStreamingSession until the streaming session is in state READY.
Synopsis
- data CreateStreamingSession = CreateStreamingSession' {}
- newCreateStreamingSession :: Text -> CreateStreamingSession
- createStreamingSession_ownedBy :: Lens' CreateStreamingSession (Maybe Text)
- createStreamingSession_clientToken :: Lens' CreateStreamingSession (Maybe Text)
- createStreamingSession_ec2InstanceType :: Lens' CreateStreamingSession (Maybe StreamingInstanceType)
- createStreamingSession_launchProfileId :: Lens' CreateStreamingSession (Maybe Text)
- createStreamingSession_streamingImageId :: Lens' CreateStreamingSession (Maybe Text)
- createStreamingSession_tags :: Lens' CreateStreamingSession (Maybe (HashMap Text Text))
- createStreamingSession_studioId :: Lens' CreateStreamingSession Text
- data CreateStreamingSessionResponse = CreateStreamingSessionResponse' {}
- newCreateStreamingSessionResponse :: Int -> CreateStreamingSessionResponse
- createStreamingSessionResponse_session :: Lens' CreateStreamingSessionResponse (Maybe StreamingSession)
- createStreamingSessionResponse_httpStatus :: Lens' CreateStreamingSessionResponse Int
Creating a Request
data CreateStreamingSession Source #
A collection of streaming sessions.
See: newCreateStreamingSession
smart constructor.
CreateStreamingSession' | |
|
Instances
newCreateStreamingSession Source #
Create a value of CreateStreamingSession
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:ownedBy:CreateStreamingSession'
, createStreamingSession_ownedBy
- The user ID of the user that owns the streaming session.
$sel:clientToken:CreateStreamingSession'
, createStreamingSession_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:ec2InstanceType:CreateStreamingSession'
, createStreamingSession_ec2InstanceType
- The EC2 Instance type used for the streaming session.
$sel:launchProfileId:CreateStreamingSession'
, createStreamingSession_launchProfileId
- The launch profile ID.
$sel:streamingImageId:CreateStreamingSession'
, createStreamingSession_streamingImageId
- The ID of the streaming image.
$sel:tags:CreateStreamingSession'
, createStreamingSession_tags
- A collection of labels, in the form of key:value pairs, that apply to
this resource.
$sel:studioId:CreateStreamingSession'
, createStreamingSession_studioId
- The studio ID.
Request Lenses
createStreamingSession_ownedBy :: Lens' CreateStreamingSession (Maybe Text) Source #
The user ID of the user that owns the streaming session.
createStreamingSession_clientToken :: Lens' CreateStreamingSession (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.
createStreamingSession_ec2InstanceType :: Lens' CreateStreamingSession (Maybe StreamingInstanceType) Source #
The EC2 Instance type used for the streaming session.
createStreamingSession_launchProfileId :: Lens' CreateStreamingSession (Maybe Text) Source #
The launch profile ID.
createStreamingSession_streamingImageId :: Lens' CreateStreamingSession (Maybe Text) Source #
The ID of the streaming image.
createStreamingSession_tags :: Lens' CreateStreamingSession (Maybe (HashMap Text Text)) Source #
A collection of labels, in the form of key:value pairs, that apply to this resource.
createStreamingSession_studioId :: Lens' CreateStreamingSession Text Source #
The studio ID.
Destructuring the Response
data CreateStreamingSessionResponse Source #
See: newCreateStreamingSessionResponse
smart constructor.
CreateStreamingSessionResponse' | |
|
Instances
Eq CreateStreamingSessionResponse Source # | |
Read CreateStreamingSessionResponse Source # | |
Show CreateStreamingSessionResponse Source # | |
Defined in Amazonka.Nimble.CreateStreamingSession | |
Generic CreateStreamingSessionResponse Source # | |
NFData CreateStreamingSessionResponse Source # | |
Defined in Amazonka.Nimble.CreateStreamingSession rnf :: CreateStreamingSessionResponse -> () # | |
type Rep CreateStreamingSessionResponse Source # | |
Defined in Amazonka.Nimble.CreateStreamingSession type Rep CreateStreamingSessionResponse = D1 ('MetaData "CreateStreamingSessionResponse" "Amazonka.Nimble.CreateStreamingSession" "libZSservicesZSamazonka-nimbleZSamazonka-nimble" 'False) (C1 ('MetaCons "CreateStreamingSessionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StreamingSession)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateStreamingSessionResponse Source #
Create a value of CreateStreamingSessionResponse
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:session:CreateStreamingSessionResponse'
, createStreamingSessionResponse_session
- The session.
$sel:httpStatus:CreateStreamingSessionResponse'
, createStreamingSessionResponse_httpStatus
- The response's http status code.
Response Lenses
createStreamingSessionResponse_session :: Lens' CreateStreamingSessionResponse (Maybe StreamingSession) Source #
The session.
createStreamingSessionResponse_httpStatus :: Lens' CreateStreamingSessionResponse Int Source #
The response's http status code.