aws_sdk_elastictranscoder/operation/create_pipeline/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_pipeline::_create_pipeline_output::CreatePipelineOutputBuilder;
3
4pub use crate::operation::create_pipeline::_create_pipeline_input::CreatePipelineInputBuilder;
5
6impl crate::operation::create_pipeline::builders::CreatePipelineInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_pipeline::CreatePipelineOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_pipeline::CreatePipelineError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_pipeline();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreatePipeline`.
24///
25/// <p>The CreatePipeline operation creates a pipeline with settings that you specify.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreatePipelineFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_pipeline::builders::CreatePipelineInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_pipeline::CreatePipelineOutput,
35        crate::operation::create_pipeline::CreatePipelineError,
36    > for CreatePipelineFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::create_pipeline::CreatePipelineOutput,
44            crate::operation::create_pipeline::CreatePipelineError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreatePipelineFluentBuilder {
51    /// Creates a new `CreatePipelineFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the CreatePipeline as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_pipeline::builders::CreatePipelineInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::create_pipeline::CreatePipelineOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_pipeline::CreatePipelineError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::create_pipeline::CreatePipeline::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_pipeline::CreatePipeline::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::create_pipeline::CreatePipelineOutput,
97        crate::operation::create_pipeline::CreatePipelineError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
112    /// <p>Constraints: Maximum 40 characters.</p>
113    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114        self.inner = self.inner.name(input.into());
115        self
116    }
117    /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
118    /// <p>Constraints: Maximum 40 characters.</p>
119    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120        self.inner = self.inner.set_name(input);
121        self
122    }
123    /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
124    /// <p>Constraints: Maximum 40 characters.</p>
125    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
126        self.inner.get_name()
127    }
128    /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode.</p>
129    pub fn input_bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130        self.inner = self.inner.input_bucket(input.into());
131        self
132    }
133    /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode.</p>
134    pub fn set_input_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135        self.inner = self.inner.set_input_bucket(input);
136        self
137    }
138    /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode.</p>
139    pub fn get_input_bucket(&self) -> &::std::option::Option<::std::string::String> {
140        self.inner.get_input_bucket()
141    }
142    /// <p>The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)</p>
143    /// <p>Specify this value when all of the following are true:</p>
144    /// <ul>
145    /// <li>
146    /// <p>You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.</p></li>
147    /// <li>
148    /// <p>You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.</p></li>
149    /// <li>
150    /// <p>You do not want to specify the permissions that Elastic Transcoder grants to the files.</p><important>
151    /// <p>When Elastic Transcoder saves files in <code>OutputBucket</code>, it grants full control over the files only to the AWS account that owns the role that is specified by <code>Role</code>.</p>
152    /// </important></li>
153    /// <li>
154    /// <p>You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.</p></li>
155    /// </ul>
156    /// <p>If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit <code>OutputBucket</code> and specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code> instead.</p>
157    pub fn output_bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158        self.inner = self.inner.output_bucket(input.into());
159        self
160    }
161    /// <p>The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)</p>
162    /// <p>Specify this value when all of the following are true:</p>
163    /// <ul>
164    /// <li>
165    /// <p>You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.</p></li>
166    /// <li>
167    /// <p>You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.</p></li>
168    /// <li>
169    /// <p>You do not want to specify the permissions that Elastic Transcoder grants to the files.</p><important>
170    /// <p>When Elastic Transcoder saves files in <code>OutputBucket</code>, it grants full control over the files only to the AWS account that owns the role that is specified by <code>Role</code>.</p>
171    /// </important></li>
172    /// <li>
173    /// <p>You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.</p></li>
174    /// </ul>
175    /// <p>If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit <code>OutputBucket</code> and specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code> instead.</p>
176    pub fn set_output_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
177        self.inner = self.inner.set_output_bucket(input);
178        self
179    }
180    /// <p>The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)</p>
181    /// <p>Specify this value when all of the following are true:</p>
182    /// <ul>
183    /// <li>
184    /// <p>You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket.</p></li>
185    /// <li>
186    /// <p>You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists.</p></li>
187    /// <li>
188    /// <p>You do not want to specify the permissions that Elastic Transcoder grants to the files.</p><important>
189    /// <p>When Elastic Transcoder saves files in <code>OutputBucket</code>, it grants full control over the files only to the AWS account that owns the role that is specified by <code>Role</code>.</p>
190    /// </important></li>
191    /// <li>
192    /// <p>You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class.</p></li>
193    /// </ul>
194    /// <p>If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit <code>OutputBucket</code> and specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code> instead.</p>
195    pub fn get_output_bucket(&self) -> &::std::option::Option<::std::string::String> {
196        self.inner.get_output_bucket()
197    }
198    /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the pipeline.</p>
199    pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
200        self.inner = self.inner.role(input.into());
201        self
202    }
203    /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the pipeline.</p>
204    pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205        self.inner = self.inner.set_role(input);
206        self
207    }
208    /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the pipeline.</p>
209    pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
210        self.inner.get_role()
211    }
212    /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
213    /// <p>If you use either <code>s3</code> or <code>s3-aws-kms</code> as your <code>Encryption:Mode</code>, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an <code>Encryption:Mode</code> of <code>aes-cbc-pkcs7</code>, <code>aes-ctr</code>, or <code>aes-gcm</code>.</p>
214    pub fn aws_kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
215        self.inner = self.inner.aws_kms_key_arn(input.into());
216        self
217    }
218    /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
219    /// <p>If you use either <code>s3</code> or <code>s3-aws-kms</code> as your <code>Encryption:Mode</code>, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an <code>Encryption:Mode</code> of <code>aes-cbc-pkcs7</code>, <code>aes-ctr</code>, or <code>aes-gcm</code>.</p>
220    pub fn set_aws_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
221        self.inner = self.inner.set_aws_kms_key_arn(input);
222        self
223    }
224    /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
225    /// <p>If you use either <code>s3</code> or <code>s3-aws-kms</code> as your <code>Encryption:Mode</code>, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an <code>Encryption:Mode</code> of <code>aes-cbc-pkcs7</code>, <code>aes-ctr</code>, or <code>aes-gcm</code>.</p>
226    pub fn get_aws_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
227        self.inner.get_aws_kms_key_arn()
228    }
229    /// <p>The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
230    /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
231    /// </important>
232    /// <ul>
233    /// <li>
234    /// <p><b>Progressing</b>: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.</p></li>
235    /// <li>
236    /// <p><b>Complete</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
237    /// <li>
238    /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
239    /// <li>
240    /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
241    /// </ul>
242    pub fn notifications(mut self, input: crate::types::Notifications) -> Self {
243        self.inner = self.inner.notifications(input);
244        self
245    }
246    /// <p>The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
247    /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
248    /// </important>
249    /// <ul>
250    /// <li>
251    /// <p><b>Progressing</b>: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.</p></li>
252    /// <li>
253    /// <p><b>Complete</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
254    /// <li>
255    /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
256    /// <li>
257    /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
258    /// </ul>
259    pub fn set_notifications(mut self, input: ::std::option::Option<crate::types::Notifications>) -> Self {
260        self.inner = self.inner.set_notifications(input);
261        self
262    }
263    /// <p>The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
264    /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
265    /// </important>
266    /// <ul>
267    /// <li>
268    /// <p><b>Progressing</b>: The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.</p></li>
269    /// <li>
270    /// <p><b>Complete</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
271    /// <li>
272    /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
273    /// <li>
274    /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
275    /// </ul>
276    pub fn get_notifications(&self) -> &::std::option::Option<crate::types::Notifications> {
277        self.inner.get_notifications()
278    }
279    /// <p>The optional <code>ContentConfig</code> object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
280    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
281    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
282    /// <ul>
283    /// <li>
284    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
285    /// <li>
286    /// <p><b>Permissions</b> (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
287    /// <li>
288    /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
289    /// <ul>
290    /// <li>
291    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.</p><important>
292    /// <p>A canonical user ID is not the same as an AWS account number.</p>
293    /// </important></li>
294    /// <li>
295    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
296    /// <li>
297    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
298    /// </ul></li>
299    /// <li>
300    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group</p></li>
301    /// <li>
302    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:</p>
303    /// <ul>
304    /// <li>
305    /// <p><code>READ</code>: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
306    /// <li>
307    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
308    /// <li>
309    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
310    /// <li>
311    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
312    /// </ul></li>
313    /// <li>
314    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.</p></li>
315    /// </ul>
316    pub fn content_config(mut self, input: crate::types::PipelineOutputConfig) -> Self {
317        self.inner = self.inner.content_config(input);
318        self
319    }
320    /// <p>The optional <code>ContentConfig</code> object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
321    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
322    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
323    /// <ul>
324    /// <li>
325    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
326    /// <li>
327    /// <p><b>Permissions</b> (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
328    /// <li>
329    /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
330    /// <ul>
331    /// <li>
332    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.</p><important>
333    /// <p>A canonical user ID is not the same as an AWS account number.</p>
334    /// </important></li>
335    /// <li>
336    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
337    /// <li>
338    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
339    /// </ul></li>
340    /// <li>
341    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group</p></li>
342    /// <li>
343    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:</p>
344    /// <ul>
345    /// <li>
346    /// <p><code>READ</code>: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
347    /// <li>
348    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
349    /// <li>
350    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
351    /// <li>
352    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
353    /// </ul></li>
354    /// <li>
355    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.</p></li>
356    /// </ul>
357    pub fn set_content_config(mut self, input: ::std::option::Option<crate::types::PipelineOutputConfig>) -> Self {
358        self.inner = self.inner.set_content_config(input);
359        self
360    }
361    /// <p>The optional <code>ContentConfig</code> object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
362    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
363    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
364    /// <ul>
365    /// <li>
366    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
367    /// <li>
368    /// <p><b>Permissions</b> (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
369    /// <li>
370    /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
371    /// <ul>
372    /// <li>
373    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.</p><important>
374    /// <p>A canonical user ID is not the same as an AWS account number.</p>
375    /// </important></li>
376    /// <li>
377    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
378    /// <li>
379    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
380    /// </ul></li>
381    /// <li>
382    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group</p></li>
383    /// <li>
384    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include:</p>
385    /// <ul>
386    /// <li>
387    /// <p><code>READ</code>: The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
388    /// <li>
389    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
390    /// <li>
391    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
392    /// <li>
393    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
394    /// </ul></li>
395    /// <li>
396    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket.</p></li>
397    /// </ul>
398    pub fn get_content_config(&self) -> &::std::option::Option<crate::types::PipelineOutputConfig> {
399        self.inner.get_content_config()
400    }
401    /// <p>The <code>ThumbnailConfig</code> object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
402    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code> even if you don't want to create thumbnails.</p>
403    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
404    /// <ul>
405    /// <li>
406    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
407    /// <li>
408    /// <p><b>Permissions</b> (Optional): The <code>Permissions</code> object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
409    /// <li>
410    /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
411    /// <ul>
412    /// <li>
413    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.</p><important>
414    /// <p>A canonical user ID is not the same as an AWS account number.</p>
415    /// </important></li>
416    /// <li>
417    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
418    /// <li>
419    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
420    /// </ul></li>
421    /// <li>
422    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.</p></li>
423    /// <li>
424    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:</p>
425    /// <ul>
426    /// <li>
427    /// <p><code>READ</code>: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
428    /// <li>
429    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
430    /// <li>
431    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
432    /// <li>
433    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
434    /// </ul></li>
435    /// <li>
436    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.</p></li>
437    /// </ul>
438    pub fn thumbnail_config(mut self, input: crate::types::PipelineOutputConfig) -> Self {
439        self.inner = self.inner.thumbnail_config(input);
440        self
441    }
442    /// <p>The <code>ThumbnailConfig</code> object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
443    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code> even if you don't want to create thumbnails.</p>
444    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
445    /// <ul>
446    /// <li>
447    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
448    /// <li>
449    /// <p><b>Permissions</b> (Optional): The <code>Permissions</code> object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
450    /// <li>
451    /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
452    /// <ul>
453    /// <li>
454    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.</p><important>
455    /// <p>A canonical user ID is not the same as an AWS account number.</p>
456    /// </important></li>
457    /// <li>
458    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
459    /// <li>
460    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
461    /// </ul></li>
462    /// <li>
463    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.</p></li>
464    /// <li>
465    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:</p>
466    /// <ul>
467    /// <li>
468    /// <p><code>READ</code>: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
469    /// <li>
470    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
471    /// <li>
472    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
473    /// <li>
474    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
475    /// </ul></li>
476    /// <li>
477    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.</p></li>
478    /// </ul>
479    pub fn set_thumbnail_config(mut self, input: ::std::option::Option<crate::types::PipelineOutputConfig>) -> Self {
480        self.inner = self.inner.set_thumbnail_config(input);
481        self
482    }
483    /// <p>The <code>ThumbnailConfig</code> object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files.</p>
484    /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code> even if you don't want to create thumbnails.</p>
485    /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
486    /// <ul>
487    /// <li>
488    /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
489    /// <li>
490    /// <p><b>Permissions</b> (Optional): The <code>Permissions</code> object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups.</p></li>
491    /// <li>
492    /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
493    /// <ul>
494    /// <li>
495    /// <p><b>Canonical</b>: The value in the <code>Grantee</code> object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.</p><important>
496    /// <p>A canonical user ID is not the same as an AWS account number.</p>
497    /// </important></li>
498    /// <li>
499    /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
500    /// <li>
501    /// <p><b>Group</b>: The value in the <code>Grantee</code> object is one of the following predefined Amazon S3 groups: <code>AllUsers</code>, <code>AuthenticatedUsers</code>, or <code>LogDelivery</code>.</p></li>
502    /// </ul></li>
503    /// <li>
504    /// <p><b>Grantee</b>: The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.</p></li>
505    /// <li>
506    /// <p><b>Access</b>: The permission that you want to give to the AWS user that you specified in <code>Grantee</code>. Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include:</p>
507    /// <ul>
508    /// <li>
509    /// <p><code>READ</code>: The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
510    /// <li>
511    /// <p><code>READ_ACP</code>: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
512    /// <li>
513    /// <p><code>WRITE_ACP</code>: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
514    /// <li>
515    /// <p><code>FULL_CONTROL</code>: The grantee has <code>READ</code>, <code>READ_ACP</code>, and <code>WRITE_ACP</code> permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.</p></li>
516    /// </ul></li>
517    /// <li>
518    /// <p><b>StorageClass</b>: The Amazon S3 storage class, <code>Standard</code> or <code>ReducedRedundancy</code>, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.</p></li>
519    /// </ul>
520    pub fn get_thumbnail_config(&self) -> &::std::option::Option<crate::types::PipelineOutputConfig> {
521        self.inner.get_thumbnail_config()
522    }
523}