amazonka-elastictranscoder-1.4.3: Amazon Elastic Transcoder SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElasticTranscoder.TestRole

Contents

Description

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.

Synopsis

Creating a Request

testRole Source #

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:

data TestRole Source #

The TestRoleRequest structure.

See: testRole smart constructor.

Instances

Eq TestRole Source # 
Data TestRole Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestRole -> c TestRole #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestRole #

toConstr :: TestRole -> Constr #

dataTypeOf :: TestRole -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TestRole) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestRole) #

gmapT :: (forall b. Data b => b -> b) -> TestRole -> TestRole #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestRole -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestRole -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestRole -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestRole -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestRole -> m TestRole #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestRole -> m TestRole #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestRole -> m TestRole #

Read TestRole Source # 
Show TestRole Source # 
Generic TestRole Source # 

Associated Types

type Rep TestRole :: * -> * #

Methods

from :: TestRole -> Rep TestRole x #

to :: Rep TestRole x -> TestRole #

Hashable TestRole Source # 

Methods

hashWithSalt :: Int -> TestRole -> Int #

hash :: TestRole -> Int #

ToJSON TestRole Source # 
NFData TestRole Source # 

Methods

rnf :: TestRole -> () #

AWSRequest TestRole Source # 
ToQuery TestRole Source # 
ToPath TestRole Source # 
ToHeaders TestRole Source # 

Methods

toHeaders :: TestRole -> [Header] #

type Rep TestRole Source # 
type Rep TestRole = D1 (MetaData "TestRole" "Network.AWS.ElasticTranscoder.TestRole" "amazonka-elastictranscoder-1.4.3-FPeCW9AYxCS7Y9Jq1TblKs" False) (C1 (MetaCons "TestRole'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_trRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_trInputBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_trOutputBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_trTopics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))
type Rs TestRole Source # 

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

testRoleResponse Source #

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.

Instances

Eq TestRoleResponse Source # 
Data TestRoleResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestRoleResponse -> c TestRoleResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestRoleResponse #

toConstr :: TestRoleResponse -> Constr #

dataTypeOf :: TestRoleResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TestRoleResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestRoleResponse) #

gmapT :: (forall b. Data b => b -> b) -> TestRoleResponse -> TestRoleResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestRoleResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestRoleResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestRoleResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestRoleResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestRoleResponse -> m TestRoleResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestRoleResponse -> m TestRoleResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestRoleResponse -> m TestRoleResponse #

Read TestRoleResponse Source # 
Show TestRoleResponse Source # 
Generic TestRoleResponse Source # 
NFData TestRoleResponse Source # 

Methods

rnf :: TestRoleResponse -> () #

type Rep TestRoleResponse Source # 
type Rep TestRoleResponse = D1 (MetaData "TestRoleResponse" "Network.AWS.ElasticTranscoder.TestRole" "amazonka-elastictranscoder-1.4.3-FPeCW9AYxCS7Y9Jq1TblKs" False) (C1 (MetaCons "TestRoleResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_trrsSuccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_trrsMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_trrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

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.