aws_sdk_elastictranscoder/client/
test_role.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`TestRole`](crate::operation::test_role::builders::TestRoleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`role(impl Into<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::role) / [`set_role(Option<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::set_role):<br>required: **true**<br><p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to test.</p><br>
7    ///   - [`input_bucket(impl Into<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::input_bucket) / [`set_input_bucket(Option<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::set_input_bucket):<br>required: **true**<br><p>The Amazon S3 bucket that contains media files to be transcoded. The action attempts to read from this bucket.</p><br>
8    ///   - [`output_bucket(impl Into<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::output_bucket) / [`set_output_bucket(Option<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::set_output_bucket):<br>required: **true**<br><p>The Amazon S3 bucket that Elastic Transcoder writes transcoded media files to. The action attempts to read from this bucket.</p><br>
9    ///   - [`topics(impl Into<String>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::topics) / [`set_topics(Option<Vec::<String>>)`](crate::operation::test_role::builders::TestRoleFluentBuilder::set_topics):<br>required: **true**<br><p>The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics that you want the action to send a test notification to.</p><br>
10    /// - On success, responds with [`TestRoleOutput`](crate::operation::test_role::TestRoleOutput) with field(s):
11    ///   - [`success(Option<String>)`](crate::operation::test_role::TestRoleOutput::success): <p>If the operation is successful, this value is <code>true</code>; otherwise, the value is <code>false</code>.</p>
12    ///   - [`messages(Option<Vec::<String>>)`](crate::operation::test_role::TestRoleOutput::messages): <p>If the <code>Success</code> element contains <code>false</code>, this value is an array of one or more error messages that were generated during the test process.</p>
13    /// - On failure, responds with [`SdkError<TestRoleError>`](crate::operation::test_role::TestRoleError)
14    #[deprecated]
15    pub fn test_role(&self) -> crate::operation::test_role::builders::TestRoleFluentBuilder {
16        crate::operation::test_role::builders::TestRoleFluentBuilder::new(self.handle.clone())
17    }
18}