Example #1
0
        /// <summary>
        /// <para>The TestRole operation tests the IAM role used to create the pipeline.</para> <para>The <c>TestRole</c> 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.</para>
        /// </summary>
        ///
        /// <param name="testRoleRequest">Container for the necessary parameters to execute the TestRole service method on
        /// AmazonElasticTranscoder.</param>
        ///
        /// <returns>The response from the TestRole service method, as returned by AmazonElasticTranscoder.</returns>
        ///
        /// <exception cref="T:Amazon.ElasticTranscoder.Model.ResourceNotFoundException" />
        /// <exception cref="T:Amazon.ElasticTranscoder.Model.AccessDeniedException" />
        /// <exception cref="T:Amazon.ElasticTranscoder.Model.InternalServiceException" />
        /// <exception cref="T:Amazon.ElasticTranscoder.Model.ValidationException" />
        /// <exception cref="T:Amazon.ElasticTranscoder.Model.IncompatibleVersionException" />
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task <TestRoleResponse> TestRoleAsync(TestRoleRequest testRoleRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new TestRoleRequestMarshaller();
            var unmarshaller = TestRoleResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, TestRoleRequest, TestRoleResponse>(testRoleRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Example #2
0
        internal virtual TestRoleResponse TestRole(TestRoleRequest request)
        {
            var marshaller   = new TestRoleRequestMarshaller();
            var unmarshaller = TestRoleResponseUnmarshaller.Instance;

            return(Invoke <TestRoleRequest, TestRoleResponse>(request, marshaller, unmarshaller));
        }
Example #3
0
        public virtual Task <TestRoleResponse> TestRoleAsync(TestRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new TestRoleRequestMarshaller();
            var unmarshaller = TestRoleResponseUnmarshaller.Instance;

            return(InvokeAsync <TestRoleRequest, TestRoleResponse>(request, marshaller,
                                                                   unmarshaller, cancellationToken));
        }
Example #4
0
        public virtual Task<TestRoleResponse> TestRoleAsync(TestRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();
            options.RequestMarshaller = TestRoleRequestMarshaller.Instance;
            options.ResponseUnmarshaller = TestRoleResponseUnmarshaller.Instance;

            return InvokeAsync<TestRoleResponse>(request, options, cancellationToken);
        }
Example #5
0
        internal virtual TestRoleResponse TestRole(TestRoleRequest request)
        {
            var options = new InvokeOptions();
            options.RequestMarshaller = TestRoleRequestMarshaller.Instance;
            options.ResponseUnmarshaller = TestRoleResponseUnmarshaller.Instance;

            return Invoke<TestRoleResponse>(request, options);
        }
Example #6
0
        internal TestRoleResponse TestRole(TestRoleRequest request)
        {
            var task = TestRoleAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }