aws_sdk_amplify/operation/update_app/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_app::_update_app_output::UpdateAppOutputBuilder;
3
4pub use crate::operation::update_app::_update_app_input::UpdateAppInputBuilder;
5
6impl crate::operation::update_app::builders::UpdateAppInputBuilder {
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::update_app::UpdateAppOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_app::UpdateAppError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_app();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `UpdateApp`.
24///
25/// <p>Updates an existing Amplify app.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateAppFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_app::builders::UpdateAppInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl crate::client::customize::internal::CustomizableSend<crate::operation::update_app::UpdateAppOutput, crate::operation::update_app::UpdateAppError>
33 for UpdateAppFluentBuilder
34{
35 fn send(
36 self,
37 config_override: crate::config::Builder,
38 ) -> crate::client::customize::internal::BoxFuture<
39 crate::client::customize::internal::SendResult<crate::operation::update_app::UpdateAppOutput, crate::operation::update_app::UpdateAppError>,
40 > {
41 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
42 }
43}
44impl UpdateAppFluentBuilder {
45 /// Creates a new `UpdateAppFluentBuilder`.
46 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
47 Self {
48 handle,
49 inner: ::std::default::Default::default(),
50 config_override: ::std::option::Option::None,
51 }
52 }
53 /// Access the UpdateApp as a reference.
54 pub fn as_input(&self) -> &crate::operation::update_app::builders::UpdateAppInputBuilder {
55 &self.inner
56 }
57 /// Sends the request and returns the response.
58 ///
59 /// If an error occurs, an `SdkError` will be returned with additional details that
60 /// can be matched against.
61 ///
62 /// By default, any retryable failures will be retried twice. Retry behavior
63 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
64 /// set when configuring the client.
65 pub async fn send(
66 self,
67 ) -> ::std::result::Result<
68 crate::operation::update_app::UpdateAppOutput,
69 ::aws_smithy_runtime_api::client::result::SdkError<
70 crate::operation::update_app::UpdateAppError,
71 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
72 >,
73 > {
74 let input = self
75 .inner
76 .build()
77 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
78 let runtime_plugins = crate::operation::update_app::UpdateApp::operation_runtime_plugins(
79 self.handle.runtime_plugins.clone(),
80 &self.handle.conf,
81 self.config_override,
82 );
83 crate::operation::update_app::UpdateApp::orchestrate(&runtime_plugins, input).await
84 }
85
86 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
87 pub fn customize(
88 self,
89 ) -> crate::client::customize::CustomizableOperation<
90 crate::operation::update_app::UpdateAppOutput,
91 crate::operation::update_app::UpdateAppError,
92 Self,
93 > {
94 crate::client::customize::CustomizableOperation::new(self)
95 }
96 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
97 self.set_config_override(::std::option::Option::Some(config_override.into()));
98 self
99 }
100
101 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
102 self.config_override = config_override;
103 self
104 }
105 /// <p>The unique ID for an Amplify app.</p>
106 pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
107 self.inner = self.inner.app_id(input.into());
108 self
109 }
110 /// <p>The unique ID for an Amplify app.</p>
111 pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
112 self.inner = self.inner.set_app_id(input);
113 self
114 }
115 /// <p>The unique ID for an Amplify app.</p>
116 pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
117 self.inner.get_app_id()
118 }
119 /// <p>The name for an Amplify app.</p>
120 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
121 self.inner = self.inner.name(input.into());
122 self
123 }
124 /// <p>The name for an Amplify app.</p>
125 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
126 self.inner = self.inner.set_name(input);
127 self
128 }
129 /// <p>The name for an Amplify app.</p>
130 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
131 self.inner.get_name()
132 }
133 /// <p>The description for an Amplify app.</p>
134 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135 self.inner = self.inner.description(input.into());
136 self
137 }
138 /// <p>The description for an Amplify app.</p>
139 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140 self.inner = self.inner.set_description(input);
141 self
142 }
143 /// <p>The description for an Amplify app.</p>
144 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
145 self.inner.get_description()
146 }
147 /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
148 /// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code>.</p>
149 pub fn platform(mut self, input: crate::types::Platform) -> Self {
150 self.inner = self.inner.platform(input);
151 self
152 }
153 /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
154 /// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code>.</p>
155 pub fn set_platform(mut self, input: ::std::option::Option<crate::types::Platform>) -> Self {
156 self.inner = self.inner.set_platform(input);
157 self
158 }
159 /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
160 /// <p>If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to <code>WEB_COMPUTE</code>.</p>
161 pub fn get_platform(&self) -> &::std::option::Option<crate::types::Platform> {
162 self.inner.get_platform()
163 }
164 /// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
165 pub fn compute_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
166 self.inner = self.inner.compute_role_arn(input.into());
167 self
168 }
169 /// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
170 pub fn set_compute_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
171 self.inner = self.inner.set_compute_role_arn(input);
172 self
173 }
174 /// <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
175 pub fn get_compute_role_arn(&self) -> &::std::option::Option<::std::string::String> {
176 self.inner.get_compute_role_arn()
177 }
178 /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
179 pub fn iam_service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
180 self.inner = self.inner.iam_service_role_arn(input.into());
181 self
182 }
183 /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
184 pub fn set_iam_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
185 self.inner = self.inner.set_iam_service_role_arn(input);
186 self
187 }
188 /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
189 pub fn get_iam_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
190 self.inner.get_iam_service_role_arn()
191 }
192 ///
193 /// Adds a key-value pair to `environmentVariables`.
194 ///
195 /// To override the contents of this collection use [`set_environment_variables`](Self::set_environment_variables).
196 ///
197 /// <p>The environment variables for an Amplify app.</p>
198 pub fn environment_variables(
199 mut self,
200 k: impl ::std::convert::Into<::std::string::String>,
201 v: impl ::std::convert::Into<::std::string::String>,
202 ) -> Self {
203 self.inner = self.inner.environment_variables(k.into(), v.into());
204 self
205 }
206 /// <p>The environment variables for an Amplify app.</p>
207 pub fn set_environment_variables(
208 mut self,
209 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
210 ) -> Self {
211 self.inner = self.inner.set_environment_variables(input);
212 self
213 }
214 /// <p>The environment variables for an Amplify app.</p>
215 pub fn get_environment_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
216 self.inner.get_environment_variables()
217 }
218 /// <p>Enables branch auto-building for an Amplify app.</p>
219 pub fn enable_branch_auto_build(mut self, input: bool) -> Self {
220 self.inner = self.inner.enable_branch_auto_build(input);
221 self
222 }
223 /// <p>Enables branch auto-building for an Amplify app.</p>
224 pub fn set_enable_branch_auto_build(mut self, input: ::std::option::Option<bool>) -> Self {
225 self.inner = self.inner.set_enable_branch_auto_build(input);
226 self
227 }
228 /// <p>Enables branch auto-building for an Amplify app.</p>
229 pub fn get_enable_branch_auto_build(&self) -> &::std::option::Option<bool> {
230 self.inner.get_enable_branch_auto_build()
231 }
232 /// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
233 pub fn enable_branch_auto_deletion(mut self, input: bool) -> Self {
234 self.inner = self.inner.enable_branch_auto_deletion(input);
235 self
236 }
237 /// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
238 pub fn set_enable_branch_auto_deletion(mut self, input: ::std::option::Option<bool>) -> Self {
239 self.inner = self.inner.set_enable_branch_auto_deletion(input);
240 self
241 }
242 /// <p>Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.</p>
243 pub fn get_enable_branch_auto_deletion(&self) -> &::std::option::Option<bool> {
244 self.inner.get_enable_branch_auto_deletion()
245 }
246 /// <p>Enables basic authorization for an Amplify app.</p>
247 pub fn enable_basic_auth(mut self, input: bool) -> Self {
248 self.inner = self.inner.enable_basic_auth(input);
249 self
250 }
251 /// <p>Enables basic authorization for an Amplify app.</p>
252 pub fn set_enable_basic_auth(mut self, input: ::std::option::Option<bool>) -> Self {
253 self.inner = self.inner.set_enable_basic_auth(input);
254 self
255 }
256 /// <p>Enables basic authorization for an Amplify app.</p>
257 pub fn get_enable_basic_auth(&self) -> &::std::option::Option<bool> {
258 self.inner.get_enable_basic_auth()
259 }
260 /// <p>The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
261 pub fn basic_auth_credentials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
262 self.inner = self.inner.basic_auth_credentials(input.into());
263 self
264 }
265 /// <p>The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
266 pub fn set_basic_auth_credentials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
267 self.inner = self.inner.set_basic_auth_credentials(input);
268 self
269 }
270 /// <p>The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
271 pub fn get_basic_auth_credentials(&self) -> &::std::option::Option<::std::string::String> {
272 self.inner.get_basic_auth_credentials()
273 }
274 ///
275 /// Appends an item to `customRules`.
276 ///
277 /// To override the contents of this collection use [`set_custom_rules`](Self::set_custom_rules).
278 ///
279 /// <p>The custom redirect and rewrite rules for an Amplify app.</p>
280 pub fn custom_rules(mut self, input: crate::types::CustomRule) -> Self {
281 self.inner = self.inner.custom_rules(input);
282 self
283 }
284 /// <p>The custom redirect and rewrite rules for an Amplify app.</p>
285 pub fn set_custom_rules(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CustomRule>>) -> Self {
286 self.inner = self.inner.set_custom_rules(input);
287 self
288 }
289 /// <p>The custom redirect and rewrite rules for an Amplify app.</p>
290 pub fn get_custom_rules(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CustomRule>> {
291 self.inner.get_custom_rules()
292 }
293 /// <p>The build specification (build spec) for an Amplify app.</p>
294 pub fn build_spec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
295 self.inner = self.inner.build_spec(input.into());
296 self
297 }
298 /// <p>The build specification (build spec) for an Amplify app.</p>
299 pub fn set_build_spec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
300 self.inner = self.inner.set_build_spec(input);
301 self
302 }
303 /// <p>The build specification (build spec) for an Amplify app.</p>
304 pub fn get_build_spec(&self) -> &::std::option::Option<::std::string::String> {
305 self.inner.get_build_spec()
306 }
307 /// <p>The custom HTTP headers for an Amplify app.</p>
308 pub fn custom_headers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
309 self.inner = self.inner.custom_headers(input.into());
310 self
311 }
312 /// <p>The custom HTTP headers for an Amplify app.</p>
313 pub fn set_custom_headers(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
314 self.inner = self.inner.set_custom_headers(input);
315 self
316 }
317 /// <p>The custom HTTP headers for an Amplify app.</p>
318 pub fn get_custom_headers(&self) -> &::std::option::Option<::std::string::String> {
319 self.inner.get_custom_headers()
320 }
321 /// <p>Enables automated branch creation for an Amplify app.</p>
322 pub fn enable_auto_branch_creation(mut self, input: bool) -> Self {
323 self.inner = self.inner.enable_auto_branch_creation(input);
324 self
325 }
326 /// <p>Enables automated branch creation for an Amplify app.</p>
327 pub fn set_enable_auto_branch_creation(mut self, input: ::std::option::Option<bool>) -> Self {
328 self.inner = self.inner.set_enable_auto_branch_creation(input);
329 self
330 }
331 /// <p>Enables automated branch creation for an Amplify app.</p>
332 pub fn get_enable_auto_branch_creation(&self) -> &::std::option::Option<bool> {
333 self.inner.get_enable_auto_branch_creation()
334 }
335 ///
336 /// Appends an item to `autoBranchCreationPatterns`.
337 ///
338 /// To override the contents of this collection use [`set_auto_branch_creation_patterns`](Self::set_auto_branch_creation_patterns).
339 ///
340 /// <p>Describes the automated branch creation glob patterns for an Amplify app.</p>
341 pub fn auto_branch_creation_patterns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
342 self.inner = self.inner.auto_branch_creation_patterns(input.into());
343 self
344 }
345 /// <p>Describes the automated branch creation glob patterns for an Amplify app.</p>
346 pub fn set_auto_branch_creation_patterns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
347 self.inner = self.inner.set_auto_branch_creation_patterns(input);
348 self
349 }
350 /// <p>Describes the automated branch creation glob patterns for an Amplify app.</p>
351 pub fn get_auto_branch_creation_patterns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
352 self.inner.get_auto_branch_creation_patterns()
353 }
354 /// <p>The automated branch creation configuration for an Amplify app.</p>
355 pub fn auto_branch_creation_config(mut self, input: crate::types::AutoBranchCreationConfig) -> Self {
356 self.inner = self.inner.auto_branch_creation_config(input);
357 self
358 }
359 /// <p>The automated branch creation configuration for an Amplify app.</p>
360 pub fn set_auto_branch_creation_config(mut self, input: ::std::option::Option<crate::types::AutoBranchCreationConfig>) -> Self {
361 self.inner = self.inner.set_auto_branch_creation_config(input);
362 self
363 }
364 /// <p>The automated branch creation configuration for an Amplify app.</p>
365 pub fn get_auto_branch_creation_config(&self) -> &::std::option::Option<crate::types::AutoBranchCreationConfig> {
366 self.inner.get_auto_branch_creation_config()
367 }
368 /// <p>The name of the Git repository for an Amplify app.</p>
369 pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
370 self.inner = self.inner.repository(input.into());
371 self
372 }
373 /// <p>The name of the Git repository for an Amplify app.</p>
374 pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
375 self.inner = self.inner.set_repository(input);
376 self
377 }
378 /// <p>The name of the Git repository for an Amplify app.</p>
379 pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
380 self.inner.get_repository()
381 }
382 /// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
383 /// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit.</p>
384 /// <p>To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
385 /// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you update an app.</p>
386 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
387 pub fn oauth_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
388 self.inner = self.inner.oauth_token(input.into());
389 self
390 }
391 /// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
392 /// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit.</p>
393 /// <p>To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
394 /// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you update an app.</p>
395 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
396 pub fn set_oauth_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
397 self.inner = self.inner.set_oauth_token(input);
398 self
399 }
400 /// <p>The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.</p>
401 /// <p>Use <code>oauthToken</code> for repository providers other than GitHub, such as Bitbucket or CodeCommit.</p>
402 /// <p>To authorize access to GitHub as your repository provider, use <code>accessToken</code>.</p>
403 /// <p>You must specify either <code>oauthToken</code> or <code>accessToken</code> when you update an app.</p>
404 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
405 pub fn get_oauth_token(&self) -> &::std::option::Option<::std::string::String> {
406 self.inner.get_oauth_token()
407 }
408 /// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
409 /// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
410 /// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you update an app.</p>
411 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
412 pub fn access_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
413 self.inner = self.inner.access_token(input.into());
414 self
415 }
416 /// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
417 /// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
418 /// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you update an app.</p>
419 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
420 pub fn set_access_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
421 self.inner = self.inner.set_access_token(input);
422 self
423 }
424 /// <p>The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.</p>
425 /// <p>Use <code>accessToken</code> for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use <code>oauthToken</code>.</p>
426 /// <p>You must specify either <code>accessToken</code> or <code>oauthToken</code> when you update an app.</p>
427 /// <p>Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth">Migrating an existing OAuth app to the Amplify GitHub App</a> in the <i>Amplify User Guide</i> .</p>
428 pub fn get_access_token(&self) -> &::std::option::Option<::std::string::String> {
429 self.inner.get_access_token()
430 }
431 /// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
432 pub fn job_config(mut self, input: crate::types::JobConfig) -> Self {
433 self.inner = self.inner.job_config(input);
434 self
435 }
436 /// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
437 pub fn set_job_config(mut self, input: ::std::option::Option<crate::types::JobConfig>) -> Self {
438 self.inner = self.inner.set_job_config(input);
439 self
440 }
441 /// <p>Describes the configuration details that apply to the jobs for an Amplify app.</p>
442 pub fn get_job_config(&self) -> &::std::option::Option<crate::types::JobConfig> {
443 self.inner.get_job_config()
444 }
445 /// <p>The cache configuration for the Amplify app.</p>
446 pub fn cache_config(mut self, input: crate::types::CacheConfig) -> Self {
447 self.inner = self.inner.cache_config(input);
448 self
449 }
450 /// <p>The cache configuration for the Amplify app.</p>
451 pub fn set_cache_config(mut self, input: ::std::option::Option<crate::types::CacheConfig>) -> Self {
452 self.inner = self.inner.set_cache_config(input);
453 self
454 }
455 /// <p>The cache configuration for the Amplify app.</p>
456 pub fn get_cache_config(&self) -> &::std::option::Option<crate::types::CacheConfig> {
457 self.inner.get_cache_config()
458 }
459}