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 image resource in a studio.
Synopsis
- data CreateStreamingImage = CreateStreamingImage' {}
- newCreateStreamingImage :: Text -> Text -> Text -> CreateStreamingImage
- createStreamingImage_clientToken :: Lens' CreateStreamingImage (Maybe Text)
- createStreamingImage_description :: Lens' CreateStreamingImage (Maybe Text)
- createStreamingImage_tags :: Lens' CreateStreamingImage (Maybe (HashMap Text Text))
- createStreamingImage_studioId :: Lens' CreateStreamingImage Text
- createStreamingImage_name :: Lens' CreateStreamingImage Text
- createStreamingImage_ec2ImageId :: Lens' CreateStreamingImage Text
- data CreateStreamingImageResponse = CreateStreamingImageResponse' {}
- newCreateStreamingImageResponse :: Int -> CreateStreamingImageResponse
- createStreamingImageResponse_streamingImage :: Lens' CreateStreamingImageResponse (Maybe StreamingImage)
- createStreamingImageResponse_httpStatus :: Lens' CreateStreamingImageResponse Int
Creating a Request
data CreateStreamingImage Source #
A collection of streaming images.
See: newCreateStreamingImage
smart constructor.
CreateStreamingImage' | |
|
Instances
newCreateStreamingImage Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateStreamingImage |
Create a value of CreateStreamingImage
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:clientToken:CreateStreamingImage'
, createStreamingImage_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:description:CreateStreamingImage'
, createStreamingImage_description
- A human-readable description of the streaming image.
$sel:tags:CreateStreamingImage'
, createStreamingImage_tags
- A collection of labels, in the form of key:value pairs, that apply to
this resource.
$sel:studioId:CreateStreamingImage'
, createStreamingImage_studioId
- The studio ID.
$sel:name:CreateStreamingImage'
, createStreamingImage_name
- A friendly name for a streaming image resource.
$sel:ec2ImageId:CreateStreamingImage'
, createStreamingImage_ec2ImageId
- The ID of an EC2 machine image with which to create this streaming
image.
Request Lenses
createStreamingImage_clientToken :: Lens' CreateStreamingImage (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.
createStreamingImage_description :: Lens' CreateStreamingImage (Maybe Text) Source #
A human-readable description of the streaming image.
createStreamingImage_tags :: Lens' CreateStreamingImage (Maybe (HashMap Text Text)) Source #
A collection of labels, in the form of key:value pairs, that apply to this resource.
createStreamingImage_studioId :: Lens' CreateStreamingImage Text Source #
The studio ID.
createStreamingImage_name :: Lens' CreateStreamingImage Text Source #
A friendly name for a streaming image resource.
createStreamingImage_ec2ImageId :: Lens' CreateStreamingImage Text Source #
The ID of an EC2 machine image with which to create this streaming image.
Destructuring the Response
data CreateStreamingImageResponse Source #
See: newCreateStreamingImageResponse
smart constructor.
CreateStreamingImageResponse' | |
|
Instances
newCreateStreamingImageResponse Source #
Create a value of CreateStreamingImageResponse
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:streamingImage:CreateStreamingImageResponse'
, createStreamingImageResponse_streamingImage
-
$sel:httpStatus:CreateStreamingImageResponse'
, createStreamingImageResponse_httpStatus
- The response's http status code.
Response Lenses
createStreamingImageResponse_streamingImage :: Lens' CreateStreamingImageResponse (Maybe StreamingImage) Source #
createStreamingImageResponse_httpStatus :: Lens' CreateStreamingImageResponse Int Source #
The response's http status code.