Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The TestRole operation tests the IAM role used to create the pipeline.
The TestRole
action lets you determine whether the IAM role you are
using has sufficient permissions to let Elastic Transcoder perform tasks
associated with the transcoding process. The action attempts to assume
the specified IAM role, checks read access to the input and output
buckets, and tries to send a test notification to Amazon SNS topics that
you specify.
See: AWS API Reference for TestRole.
- testRole :: Text -> Text -> Text -> TestRole
- data TestRole
- trRole :: Lens' TestRole Text
- trInputBucket :: Lens' TestRole Text
- trOutputBucket :: Lens' TestRole Text
- trTopics :: Lens' TestRole [Text]
- testRoleResponse :: Int -> TestRoleResponse
- data TestRoleResponse
- trrsSuccess :: Lens' TestRoleResponse (Maybe Text)
- trrsMessages :: Lens' TestRoleResponse [Text]
- trrsResponseStatus :: Lens' TestRoleResponse Int
Creating a Request
Creates a value of TestRole
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
The TestRoleRequest
structure.
See: testRole
smart constructor.
Request Lenses
trRole :: Lens' TestRole Text Source
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to test.
trInputBucket :: Lens' TestRole Text Source
The Amazon S3 bucket that contains media files to be transcoded. The action attempts to read from this bucket.
trOutputBucket :: Lens' TestRole Text Source
The Amazon S3 bucket that Elastic Transcoder will write transcoded media files to. The action attempts to read from this bucket.
trTopics :: Lens' TestRole [Text] Source
The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics that you want the action to send a test notification to.
Destructuring the Response
Creates a value of TestRoleResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TestRoleResponse Source
The TestRoleResponse
structure.
See: testRoleResponse
smart constructor.
Response Lenses
trrsSuccess :: Lens' TestRoleResponse (Maybe Text) Source
If the operation is successful, this value is true
; otherwise, the
value is false
.
trrsMessages :: Lens' TestRoleResponse [Text] Source
If the Success
element contains false
, this value is an array of one
or more error messages that were generated during the test process.
trrsResponseStatus :: Lens' TestRoleResponse Int Source
The response status code.