aws_sdk_elastictranscoder/operation/update_pipeline/_update_pipeline_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The <code>UpdatePipelineRequest</code> structure.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdatePipelineInput {
7 /// <p>The ID of the pipeline that you want to update.</p>
8 pub id: ::std::option::Option<::std::string::String>,
9 /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
10 /// <p>Constraints: Maximum 40 characters</p>
11 pub name: ::std::option::Option<::std::string::String>,
12 /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.</p>
13 pub input_bucket: ::std::option::Option<::std::string::String>,
14 /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.</p>
15 pub role: ::std::option::Option<::std::string::String>,
16 /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
17 /// <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>
18 pub aws_kms_key_arn: ::std::option::Option<::std::string::String>,
19 /// <p>The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
20 /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
21 /// </important>
22 /// <ul>
23 /// <li>
24 /// <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 jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
25 /// <li>
26 /// <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. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
27 /// <li>
28 /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
29 /// <li>
30 /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
31 /// </ul>
32 pub notifications: ::std::option::Option<crate::types::Notifications>,
33 /// <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>
34 /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
35 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
36 /// <ul>
37 /// <li>
38 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
39 /// <li>
40 /// <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>
41 /// <li>
42 /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
43 /// <ul>
44 /// <li>
45 /// <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>
46 /// <p>A canonical user ID is not the same as an AWS account number.</p>
47 /// </important></li>
48 /// <li>
49 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
50 /// <li>
51 /// <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>
52 /// </ul></li>
53 /// <li>
54 /// <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>
55 /// <li>
56 /// <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>
57 /// <ul>
58 /// <li>
59 /// <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>
60 /// <li>
61 /// <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>
62 /// <li>
63 /// <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>
64 /// <li>
65 /// <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>
66 /// </ul></li>
67 /// <li>
68 /// <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>
69 /// </ul>
70 pub content_config: ::std::option::Option<crate::types::PipelineOutputConfig>,
71 /// <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>
72 /// <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>
73 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
74 /// <ul>
75 /// <li>
76 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
77 /// <li>
78 /// <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>
79 /// <li>
80 /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
81 /// <ul>
82 /// <li>
83 /// <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>
84 /// <p>A canonical user ID is not the same as an AWS account number.</p>
85 /// </important></li>
86 /// <li>
87 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
88 /// <li>
89 /// <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>
90 /// </ul></li>
91 /// <li>
92 /// <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>
93 /// <li>
94 /// <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>
95 /// <ul>
96 /// <li>
97 /// <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>
98 /// <li>
99 /// <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>
100 /// <li>
101 /// <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>
102 /// <li>
103 /// <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>
104 /// </ul></li>
105 /// <li>
106 /// <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>
107 /// </ul>
108 pub thumbnail_config: ::std::option::Option<crate::types::PipelineOutputConfig>,
109}
110impl UpdatePipelineInput {
111 /// <p>The ID of the pipeline that you want to update.</p>
112 pub fn id(&self) -> ::std::option::Option<&str> {
113 self.id.as_deref()
114 }
115 /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
116 /// <p>Constraints: Maximum 40 characters</p>
117 pub fn name(&self) -> ::std::option::Option<&str> {
118 self.name.as_deref()
119 }
120 /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.</p>
121 pub fn input_bucket(&self) -> ::std::option::Option<&str> {
122 self.input_bucket.as_deref()
123 }
124 /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.</p>
125 pub fn role(&self) -> ::std::option::Option<&str> {
126 self.role.as_deref()
127 }
128 /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
129 /// <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>
130 pub fn aws_kms_key_arn(&self) -> ::std::option::Option<&str> {
131 self.aws_kms_key_arn.as_deref()
132 }
133 /// <p>The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
134 /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
135 /// </important>
136 /// <ul>
137 /// <li>
138 /// <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 jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
139 /// <li>
140 /// <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. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
141 /// <li>
142 /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
143 /// <li>
144 /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
145 /// </ul>
146 pub fn notifications(&self) -> ::std::option::Option<&crate::types::Notifications> {
147 self.notifications.as_ref()
148 }
149 /// <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>
150 /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
151 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
152 /// <ul>
153 /// <li>
154 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
155 /// <li>
156 /// <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>
157 /// <li>
158 /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
159 /// <ul>
160 /// <li>
161 /// <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>
162 /// <p>A canonical user ID is not the same as an AWS account number.</p>
163 /// </important></li>
164 /// <li>
165 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
166 /// <li>
167 /// <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>
168 /// </ul></li>
169 /// <li>
170 /// <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>
171 /// <li>
172 /// <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>
173 /// <ul>
174 /// <li>
175 /// <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>
176 /// <li>
177 /// <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>
178 /// <li>
179 /// <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>
180 /// <li>
181 /// <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>
182 /// </ul></li>
183 /// <li>
184 /// <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>
185 /// </ul>
186 pub fn content_config(&self) -> ::std::option::Option<&crate::types::PipelineOutputConfig> {
187 self.content_config.as_ref()
188 }
189 /// <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>
190 /// <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>
191 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
192 /// <ul>
193 /// <li>
194 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
195 /// <li>
196 /// <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>
197 /// <li>
198 /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
199 /// <ul>
200 /// <li>
201 /// <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>
202 /// <p>A canonical user ID is not the same as an AWS account number.</p>
203 /// </important></li>
204 /// <li>
205 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
206 /// <li>
207 /// <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>
208 /// </ul></li>
209 /// <li>
210 /// <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>
211 /// <li>
212 /// <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>
213 /// <ul>
214 /// <li>
215 /// <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>
216 /// <li>
217 /// <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>
218 /// <li>
219 /// <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>
220 /// <li>
221 /// <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>
222 /// </ul></li>
223 /// <li>
224 /// <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>
225 /// </ul>
226 pub fn thumbnail_config(&self) -> ::std::option::Option<&crate::types::PipelineOutputConfig> {
227 self.thumbnail_config.as_ref()
228 }
229}
230impl UpdatePipelineInput {
231 /// Creates a new builder-style object to manufacture [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
232 pub fn builder() -> crate::operation::update_pipeline::builders::UpdatePipelineInputBuilder {
233 crate::operation::update_pipeline::builders::UpdatePipelineInputBuilder::default()
234 }
235}
236
237/// A builder for [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
238#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
239#[non_exhaustive]
240pub struct UpdatePipelineInputBuilder {
241 pub(crate) id: ::std::option::Option<::std::string::String>,
242 pub(crate) name: ::std::option::Option<::std::string::String>,
243 pub(crate) input_bucket: ::std::option::Option<::std::string::String>,
244 pub(crate) role: ::std::option::Option<::std::string::String>,
245 pub(crate) aws_kms_key_arn: ::std::option::Option<::std::string::String>,
246 pub(crate) notifications: ::std::option::Option<crate::types::Notifications>,
247 pub(crate) content_config: ::std::option::Option<crate::types::PipelineOutputConfig>,
248 pub(crate) thumbnail_config: ::std::option::Option<crate::types::PipelineOutputConfig>,
249}
250impl UpdatePipelineInputBuilder {
251 /// <p>The ID of the pipeline that you want to update.</p>
252 /// This field is required.
253 pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
254 self.id = ::std::option::Option::Some(input.into());
255 self
256 }
257 /// <p>The ID of the pipeline that you want to update.</p>
258 pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
259 self.id = input;
260 self
261 }
262 /// <p>The ID of the pipeline that you want to update.</p>
263 pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
264 &self.id
265 }
266 /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
267 /// <p>Constraints: Maximum 40 characters</p>
268 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
269 self.name = ::std::option::Option::Some(input.into());
270 self
271 }
272 /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
273 /// <p>Constraints: Maximum 40 characters</p>
274 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275 self.name = input;
276 self
277 }
278 /// <p>The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.</p>
279 /// <p>Constraints: Maximum 40 characters</p>
280 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
281 &self.name
282 }
283 /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.</p>
284 pub fn input_bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
285 self.input_bucket = ::std::option::Option::Some(input.into());
286 self
287 }
288 /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.</p>
289 pub fn set_input_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
290 self.input_bucket = input;
291 self
292 }
293 /// <p>The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.</p>
294 pub fn get_input_bucket(&self) -> &::std::option::Option<::std::string::String> {
295 &self.input_bucket
296 }
297 /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.</p>
298 pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
299 self.role = ::std::option::Option::Some(input.into());
300 self
301 }
302 /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.</p>
303 pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
304 self.role = input;
305 self
306 }
307 /// <p>The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.</p>
308 pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
309 &self.role
310 }
311 /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
312 /// <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>
313 pub fn aws_kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
314 self.aws_kms_key_arn = ::std::option::Option::Some(input.into());
315 self
316 }
317 /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
318 /// <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>
319 pub fn set_aws_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
320 self.aws_kms_key_arn = input;
321 self
322 }
323 /// <p>The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.</p>
324 /// <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>
325 pub fn get_aws_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
326 &self.aws_kms_key_arn
327 }
328 /// <p>The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
329 /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
330 /// </important>
331 /// <ul>
332 /// <li>
333 /// <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 jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
334 /// <li>
335 /// <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. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
336 /// <li>
337 /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
338 /// <li>
339 /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
340 /// </ul>
341 pub fn notifications(mut self, input: crate::types::Notifications) -> Self {
342 self.notifications = ::std::option::Option::Some(input);
343 self
344 }
345 /// <p>The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
346 /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
347 /// </important>
348 /// <ul>
349 /// <li>
350 /// <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 jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
351 /// <li>
352 /// <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. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
353 /// <li>
354 /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
355 /// <li>
356 /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
357 /// </ul>
358 pub fn set_notifications(mut self, input: ::std::option::Option<crate::types::Notifications>) -> Self {
359 self.notifications = input;
360 self
361 }
362 /// <p>The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status.</p><important>
363 /// <p>To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.</p>
364 /// </important>
365 /// <ul>
366 /// <li>
367 /// <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 jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
368 /// <li>
369 /// <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. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
370 /// <li>
371 /// <p><b>Warning</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
372 /// <li>
373 /// <p><b>Error</b>: The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic.</p></li>
374 /// </ul>
375 pub fn get_notifications(&self) -> &::std::option::Option<crate::types::Notifications> {
376 &self.notifications
377 }
378 /// <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>
379 /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
380 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
381 /// <ul>
382 /// <li>
383 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
384 /// <li>
385 /// <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>
386 /// <li>
387 /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
388 /// <ul>
389 /// <li>
390 /// <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>
391 /// <p>A canonical user ID is not the same as an AWS account number.</p>
392 /// </important></li>
393 /// <li>
394 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
395 /// <li>
396 /// <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>
397 /// </ul></li>
398 /// <li>
399 /// <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>
400 /// <li>
401 /// <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>
402 /// <ul>
403 /// <li>
404 /// <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>
405 /// <li>
406 /// <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>
407 /// <li>
408 /// <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>
409 /// <li>
410 /// <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>
411 /// </ul></li>
412 /// <li>
413 /// <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>
414 /// </ul>
415 pub fn content_config(mut self, input: crate::types::PipelineOutputConfig) -> Self {
416 self.content_config = ::std::option::Option::Some(input);
417 self
418 }
419 /// <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>
420 /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
421 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
422 /// <ul>
423 /// <li>
424 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
425 /// <li>
426 /// <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>
427 /// <li>
428 /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
429 /// <ul>
430 /// <li>
431 /// <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>
432 /// <p>A canonical user ID is not the same as an AWS account number.</p>
433 /// </important></li>
434 /// <li>
435 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
436 /// <li>
437 /// <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>
438 /// </ul></li>
439 /// <li>
440 /// <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>
441 /// <li>
442 /// <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>
443 /// <ul>
444 /// <li>
445 /// <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>
446 /// <li>
447 /// <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>
448 /// <li>
449 /// <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>
450 /// <li>
451 /// <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>
452 /// </ul></li>
453 /// <li>
454 /// <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>
455 /// </ul>
456 pub fn set_content_config(mut self, input: ::std::option::Option<crate::types::PipelineOutputConfig>) -> Self {
457 self.content_config = input;
458 self
459 }
460 /// <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>
461 /// <p>If you specify values for <code>ContentConfig</code>, you must also specify values for <code>ThumbnailConfig</code>.</p>
462 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
463 /// <ul>
464 /// <li>
465 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.</p></li>
466 /// <li>
467 /// <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>
468 /// <li>
469 /// <p><b>Grantee Type</b>: Specify the type of value that appears in the <code>Grantee</code> object:</p>
470 /// <ul>
471 /// <li>
472 /// <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>
473 /// <p>A canonical user ID is not the same as an AWS account number.</p>
474 /// </important></li>
475 /// <li>
476 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
477 /// <li>
478 /// <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>
479 /// </ul></li>
480 /// <li>
481 /// <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>
482 /// <li>
483 /// <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>
484 /// <ul>
485 /// <li>
486 /// <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>
487 /// <li>
488 /// <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>
489 /// <li>
490 /// <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>
491 /// <li>
492 /// <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>
493 /// </ul></li>
494 /// <li>
495 /// <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>
496 /// </ul>
497 pub fn get_content_config(&self) -> &::std::option::Option<crate::types::PipelineOutputConfig> {
498 &self.content_config
499 }
500 /// <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>
501 /// <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>
502 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
503 /// <ul>
504 /// <li>
505 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
506 /// <li>
507 /// <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>
508 /// <li>
509 /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
510 /// <ul>
511 /// <li>
512 /// <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>
513 /// <p>A canonical user ID is not the same as an AWS account number.</p>
514 /// </important></li>
515 /// <li>
516 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
517 /// <li>
518 /// <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>
519 /// </ul></li>
520 /// <li>
521 /// <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>
522 /// <li>
523 /// <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>
524 /// <ul>
525 /// <li>
526 /// <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>
527 /// <li>
528 /// <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>
529 /// <li>
530 /// <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>
531 /// <li>
532 /// <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>
533 /// </ul></li>
534 /// <li>
535 /// <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>
536 /// </ul>
537 pub fn thumbnail_config(mut self, input: crate::types::PipelineOutputConfig) -> Self {
538 self.thumbnail_config = ::std::option::Option::Some(input);
539 self
540 }
541 /// <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>
542 /// <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>
543 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
544 /// <ul>
545 /// <li>
546 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
547 /// <li>
548 /// <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>
549 /// <li>
550 /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
551 /// <ul>
552 /// <li>
553 /// <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>
554 /// <p>A canonical user ID is not the same as an AWS account number.</p>
555 /// </important></li>
556 /// <li>
557 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
558 /// <li>
559 /// <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>
560 /// </ul></li>
561 /// <li>
562 /// <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>
563 /// <li>
564 /// <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>
565 /// <ul>
566 /// <li>
567 /// <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>
568 /// <li>
569 /// <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>
570 /// <li>
571 /// <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>
572 /// <li>
573 /// <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>
574 /// </ul></li>
575 /// <li>
576 /// <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>
577 /// </ul>
578 pub fn set_thumbnail_config(mut self, input: ::std::option::Option<crate::types::PipelineOutputConfig>) -> Self {
579 self.thumbnail_config = input;
580 self
581 }
582 /// <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>
583 /// <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>
584 /// <p>If you specify values for <code>ContentConfig</code> and <code>ThumbnailConfig</code>, omit the <code>OutputBucket</code> object.</p>
585 /// <ul>
586 /// <li>
587 /// <p><b>Bucket</b>: The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.</p></li>
588 /// <li>
589 /// <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>
590 /// <li>
591 /// <p><b>GranteeType</b>: Specify the type of value that appears in the Grantee object:</p>
592 /// <ul>
593 /// <li>
594 /// <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>
595 /// <p>A canonical user ID is not the same as an AWS account number.</p>
596 /// </important></li>
597 /// <li>
598 /// <p><b>Email</b>: The value in the <code>Grantee</code> object is the registered email address of an AWS account.</p></li>
599 /// <li>
600 /// <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>
601 /// </ul></li>
602 /// <li>
603 /// <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>
604 /// <li>
605 /// <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>
606 /// <ul>
607 /// <li>
608 /// <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>
609 /// <li>
610 /// <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>
611 /// <li>
612 /// <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>
613 /// <li>
614 /// <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>
615 /// </ul></li>
616 /// <li>
617 /// <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>
618 /// </ul>
619 pub fn get_thumbnail_config(&self) -> &::std::option::Option<crate::types::PipelineOutputConfig> {
620 &self.thumbnail_config
621 }
622 /// Consumes the builder and constructs a [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
623 pub fn build(
624 self,
625 ) -> ::std::result::Result<crate::operation::update_pipeline::UpdatePipelineInput, ::aws_smithy_types::error::operation::BuildError> {
626 ::std::result::Result::Ok(crate::operation::update_pipeline::UpdatePipelineInput {
627 id: self.id,
628 name: self.name,
629 input_bucket: self.input_bucket,
630 role: self.role,
631 aws_kms_key_arn: self.aws_kms_key_arn,
632 notifications: self.notifications,
633 content_config: self.content_config,
634 thumbnail_config: self.thumbnail_config,
635 })
636 }
637}