aws_sdk_resiliencehub/operation/put_draft_app_version_template/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::put_draft_app_version_template::_put_draft_app_version_template_output::PutDraftAppVersionTemplateOutputBuilder;
3
4pub use crate::operation::put_draft_app_version_template::_put_draft_app_version_template_input::PutDraftAppVersionTemplateInputBuilder;
5
6impl crate::operation::put_draft_app_version_template::builders::PutDraftAppVersionTemplateInputBuilder {
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::put_draft_app_version_template::PutDraftAppVersionTemplateOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.put_draft_app_version_template();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `PutDraftAppVersionTemplate`.
24///
25/// <p>Adds or updates the app template for an Resilience Hub application draft version.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct PutDraftAppVersionTemplateFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::put_draft_app_version_template::builders::PutDraftAppVersionTemplateInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateOutput,
35        crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateError,
36    > for PutDraftAppVersionTemplateFluentBuilder
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::put_draft_app_version_template::PutDraftAppVersionTemplateOutput,
44            crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl PutDraftAppVersionTemplateFluentBuilder {
51    /// Creates a new `PutDraftAppVersionTemplateFluentBuilder`.
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 PutDraftAppVersionTemplate as a reference.
60    pub fn as_input(&self) -> &crate::operation::put_draft_app_version_template::builders::PutDraftAppVersionTemplateInputBuilder {
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::put_draft_app_version_template::PutDraftAppVersionTemplateOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateError,
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::put_draft_app_version_template::PutDraftAppVersionTemplate::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplate::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::put_draft_app_version_template::PutDraftAppVersionTemplateOutput,
97        crate::operation::put_draft_app_version_template::PutDraftAppVersionTemplateError,
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>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
112    pub fn app_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.app_arn(input.into());
114        self
115    }
116    /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
117    pub fn set_app_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_app_arn(input);
119        self
120    }
121    /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
122    pub fn get_app_arn(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_app_arn()
124    }
125    /// <p>A JSON string that provides information about your application structure. To learn more about the <code>appTemplateBody</code> template, see the sample template provided in the <i>Examples</i> section.</p>
126    /// <p>The <code>appTemplateBody</code> JSON string has the following structure:</p>
127    /// <ul>
128    /// <li>
129    /// <p><b> <code>resources</code> </b></p>
130    /// <p>The list of logical resources that must be included in the Resilience Hub application.</p>
131    /// <p>Type: Array</p><note>
132    /// <p>Don't add the resources that you want to exclude.</p>
133    /// </note>
134    /// <p>Each <code>resources</code> array item includes the following fields:</p>
135    /// <ul>
136    /// <li>
137    /// <p><i> <code>logicalResourceId</code> </i></p>
138    /// <p>Logical identifier of the resource.</p>
139    /// <p>Type: Object</p>
140    /// <p>Each <code>logicalResourceId</code> object includes the following fields:</p>
141    /// <ul>
142    /// <li>
143    /// <p><code>identifier</code></p>
144    /// <p>Identifier of the resource.</p>
145    /// <p>Type: String</p></li>
146    /// <li>
147    /// <p><code>logicalStackName</code></p>
148    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
149    /// <p>Type: String</p></li>
150    /// <li>
151    /// <p><code>resourceGroupName</code></p>
152    /// <p>The name of the resource group this resource belongs to.</p>
153    /// <p>Type: String</p></li>
154    /// <li>
155    /// <p><code>terraformSourceName</code></p>
156    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
157    /// <p>Type: String</p></li>
158    /// <li>
159    /// <p><code>eksSourceName</code></p>
160    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
161    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
162    /// </note>
163    /// <p>Type: String</p></li>
164    /// </ul></li>
165    /// <li>
166    /// <p><i> <code>type</code> </i></p>
167    /// <p>The type of resource.</p>
168    /// <p>Type: string</p></li>
169    /// <li>
170    /// <p><i> <code>name</code> </i></p>
171    /// <p>The name of the resource.</p>
172    /// <p>Type: String</p></li>
173    /// <li>
174    /// <p><code>additionalInfo</code></p>
175    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
176    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
177    /// <p>Key: <code>"failover-regions"</code></p>
178    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
179    /// </note></li>
180    /// </ul></li>
181    /// <li>
182    /// <p><b> <code>appComponents</code> </b></p>
183    /// <p>List of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.</p>
184    /// <p>Type: Array</p>
185    /// <p>Each <code>appComponents</code> array item includes the following fields:</p>
186    /// <ul>
187    /// <li>
188    /// <p><code>name</code></p>
189    /// <p>Name of the Application Component.</p>
190    /// <p>Type: String</p></li>
191    /// <li>
192    /// <p><code>type</code></p>
193    /// <p>Type of Application Component. For more information about the types of Application Component, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/AppComponent.grouping.html">Grouping resources in an AppComponent</a>.</p>
194    /// <p>Type: String</p></li>
195    /// <li>
196    /// <p><code>resourceNames</code></p>
197    /// <p>The list of included resources that are assigned to the Application Component.</p>
198    /// <p>Type: Array of strings</p></li>
199    /// <li>
200    /// <p><code>additionalInfo</code></p>
201    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
202    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
203    /// <p>Key: <code>"failover-regions"</code></p>
204    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
205    /// </note></li>
206    /// </ul></li>
207    /// <li>
208    /// <p><b> <code>excludedResources</code> </b></p>
209    /// <p>The list of logical resource identifiers to be excluded from the application.</p>
210    /// <p>Type: Array</p><note>
211    /// <p>Don't add the resources that you want to include.</p>
212    /// </note>
213    /// <p>Each <code>excludedResources</code> array item includes the following fields:</p>
214    /// <ul>
215    /// <li>
216    /// <p><i> <code>logicalResourceIds</code> </i></p>
217    /// <p>Logical identifier of the resource.</p>
218    /// <p>Type: Object</p><note>
219    /// <p>You can configure only one of the following fields:</p>
220    /// <ul>
221    /// <li>
222    /// <p><code>logicalStackName</code></p></li>
223    /// <li>
224    /// <p><code>resourceGroupName</code></p></li>
225    /// <li>
226    /// <p><code>terraformSourceName</code></p></li>
227    /// <li>
228    /// <p><code>eksSourceName</code></p></li>
229    /// </ul>
230    /// </note>
231    /// <p>Each <code>logicalResourceIds</code> object includes the following fields:</p>
232    /// <ul>
233    /// <li>
234    /// <p><code>identifier</code></p>
235    /// <p>Identifier of the resource.</p>
236    /// <p>Type: String</p></li>
237    /// <li>
238    /// <p><code>logicalStackName</code></p>
239    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
240    /// <p>Type: String</p></li>
241    /// <li>
242    /// <p><code>resourceGroupName</code></p>
243    /// <p>The name of the resource group this resource belongs to.</p>
244    /// <p>Type: String</p></li>
245    /// <li>
246    /// <p><code>terraformSourceName</code></p>
247    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
248    /// <p>Type: String</p></li>
249    /// <li>
250    /// <p><code>eksSourceName</code></p>
251    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
252    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
253    /// </note>
254    /// <p>Type: String</p></li>
255    /// </ul></li>
256    /// </ul></li>
257    /// <li>
258    /// <p><b> <code>version</code> </b></p>
259    /// <p>Resilience Hub application version.</p></li>
260    /// <li>
261    /// <p><code>additionalInfo</code></p>
262    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
263    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
264    /// <p>Key: <code>"failover-regions"</code></p>
265    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
266    /// </note></li>
267    /// </ul>
268    pub fn app_template_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
269        self.inner = self.inner.app_template_body(input.into());
270        self
271    }
272    /// <p>A JSON string that provides information about your application structure. To learn more about the <code>appTemplateBody</code> template, see the sample template provided in the <i>Examples</i> section.</p>
273    /// <p>The <code>appTemplateBody</code> JSON string has the following structure:</p>
274    /// <ul>
275    /// <li>
276    /// <p><b> <code>resources</code> </b></p>
277    /// <p>The list of logical resources that must be included in the Resilience Hub application.</p>
278    /// <p>Type: Array</p><note>
279    /// <p>Don't add the resources that you want to exclude.</p>
280    /// </note>
281    /// <p>Each <code>resources</code> array item includes the following fields:</p>
282    /// <ul>
283    /// <li>
284    /// <p><i> <code>logicalResourceId</code> </i></p>
285    /// <p>Logical identifier of the resource.</p>
286    /// <p>Type: Object</p>
287    /// <p>Each <code>logicalResourceId</code> object includes the following fields:</p>
288    /// <ul>
289    /// <li>
290    /// <p><code>identifier</code></p>
291    /// <p>Identifier of the resource.</p>
292    /// <p>Type: String</p></li>
293    /// <li>
294    /// <p><code>logicalStackName</code></p>
295    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
296    /// <p>Type: String</p></li>
297    /// <li>
298    /// <p><code>resourceGroupName</code></p>
299    /// <p>The name of the resource group this resource belongs to.</p>
300    /// <p>Type: String</p></li>
301    /// <li>
302    /// <p><code>terraformSourceName</code></p>
303    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
304    /// <p>Type: String</p></li>
305    /// <li>
306    /// <p><code>eksSourceName</code></p>
307    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
308    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
309    /// </note>
310    /// <p>Type: String</p></li>
311    /// </ul></li>
312    /// <li>
313    /// <p><i> <code>type</code> </i></p>
314    /// <p>The type of resource.</p>
315    /// <p>Type: string</p></li>
316    /// <li>
317    /// <p><i> <code>name</code> </i></p>
318    /// <p>The name of the resource.</p>
319    /// <p>Type: String</p></li>
320    /// <li>
321    /// <p><code>additionalInfo</code></p>
322    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
323    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
324    /// <p>Key: <code>"failover-regions"</code></p>
325    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
326    /// </note></li>
327    /// </ul></li>
328    /// <li>
329    /// <p><b> <code>appComponents</code> </b></p>
330    /// <p>List of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.</p>
331    /// <p>Type: Array</p>
332    /// <p>Each <code>appComponents</code> array item includes the following fields:</p>
333    /// <ul>
334    /// <li>
335    /// <p><code>name</code></p>
336    /// <p>Name of the Application Component.</p>
337    /// <p>Type: String</p></li>
338    /// <li>
339    /// <p><code>type</code></p>
340    /// <p>Type of Application Component. For more information about the types of Application Component, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/AppComponent.grouping.html">Grouping resources in an AppComponent</a>.</p>
341    /// <p>Type: String</p></li>
342    /// <li>
343    /// <p><code>resourceNames</code></p>
344    /// <p>The list of included resources that are assigned to the Application Component.</p>
345    /// <p>Type: Array of strings</p></li>
346    /// <li>
347    /// <p><code>additionalInfo</code></p>
348    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
349    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
350    /// <p>Key: <code>"failover-regions"</code></p>
351    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
352    /// </note></li>
353    /// </ul></li>
354    /// <li>
355    /// <p><b> <code>excludedResources</code> </b></p>
356    /// <p>The list of logical resource identifiers to be excluded from the application.</p>
357    /// <p>Type: Array</p><note>
358    /// <p>Don't add the resources that you want to include.</p>
359    /// </note>
360    /// <p>Each <code>excludedResources</code> array item includes the following fields:</p>
361    /// <ul>
362    /// <li>
363    /// <p><i> <code>logicalResourceIds</code> </i></p>
364    /// <p>Logical identifier of the resource.</p>
365    /// <p>Type: Object</p><note>
366    /// <p>You can configure only one of the following fields:</p>
367    /// <ul>
368    /// <li>
369    /// <p><code>logicalStackName</code></p></li>
370    /// <li>
371    /// <p><code>resourceGroupName</code></p></li>
372    /// <li>
373    /// <p><code>terraformSourceName</code></p></li>
374    /// <li>
375    /// <p><code>eksSourceName</code></p></li>
376    /// </ul>
377    /// </note>
378    /// <p>Each <code>logicalResourceIds</code> object includes the following fields:</p>
379    /// <ul>
380    /// <li>
381    /// <p><code>identifier</code></p>
382    /// <p>Identifier of the resource.</p>
383    /// <p>Type: String</p></li>
384    /// <li>
385    /// <p><code>logicalStackName</code></p>
386    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
387    /// <p>Type: String</p></li>
388    /// <li>
389    /// <p><code>resourceGroupName</code></p>
390    /// <p>The name of the resource group this resource belongs to.</p>
391    /// <p>Type: String</p></li>
392    /// <li>
393    /// <p><code>terraformSourceName</code></p>
394    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
395    /// <p>Type: String</p></li>
396    /// <li>
397    /// <p><code>eksSourceName</code></p>
398    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
399    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
400    /// </note>
401    /// <p>Type: String</p></li>
402    /// </ul></li>
403    /// </ul></li>
404    /// <li>
405    /// <p><b> <code>version</code> </b></p>
406    /// <p>Resilience Hub application version.</p></li>
407    /// <li>
408    /// <p><code>additionalInfo</code></p>
409    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
410    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
411    /// <p>Key: <code>"failover-regions"</code></p>
412    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
413    /// </note></li>
414    /// </ul>
415    pub fn set_app_template_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
416        self.inner = self.inner.set_app_template_body(input);
417        self
418    }
419    /// <p>A JSON string that provides information about your application structure. To learn more about the <code>appTemplateBody</code> template, see the sample template provided in the <i>Examples</i> section.</p>
420    /// <p>The <code>appTemplateBody</code> JSON string has the following structure:</p>
421    /// <ul>
422    /// <li>
423    /// <p><b> <code>resources</code> </b></p>
424    /// <p>The list of logical resources that must be included in the Resilience Hub application.</p>
425    /// <p>Type: Array</p><note>
426    /// <p>Don't add the resources that you want to exclude.</p>
427    /// </note>
428    /// <p>Each <code>resources</code> array item includes the following fields:</p>
429    /// <ul>
430    /// <li>
431    /// <p><i> <code>logicalResourceId</code> </i></p>
432    /// <p>Logical identifier of the resource.</p>
433    /// <p>Type: Object</p>
434    /// <p>Each <code>logicalResourceId</code> object includes the following fields:</p>
435    /// <ul>
436    /// <li>
437    /// <p><code>identifier</code></p>
438    /// <p>Identifier of the resource.</p>
439    /// <p>Type: String</p></li>
440    /// <li>
441    /// <p><code>logicalStackName</code></p>
442    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
443    /// <p>Type: String</p></li>
444    /// <li>
445    /// <p><code>resourceGroupName</code></p>
446    /// <p>The name of the resource group this resource belongs to.</p>
447    /// <p>Type: String</p></li>
448    /// <li>
449    /// <p><code>terraformSourceName</code></p>
450    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
451    /// <p>Type: String</p></li>
452    /// <li>
453    /// <p><code>eksSourceName</code></p>
454    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
455    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
456    /// </note>
457    /// <p>Type: String</p></li>
458    /// </ul></li>
459    /// <li>
460    /// <p><i> <code>type</code> </i></p>
461    /// <p>The type of resource.</p>
462    /// <p>Type: string</p></li>
463    /// <li>
464    /// <p><i> <code>name</code> </i></p>
465    /// <p>The name of the resource.</p>
466    /// <p>Type: String</p></li>
467    /// <li>
468    /// <p><code>additionalInfo</code></p>
469    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
470    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
471    /// <p>Key: <code>"failover-regions"</code></p>
472    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
473    /// </note></li>
474    /// </ul></li>
475    /// <li>
476    /// <p><b> <code>appComponents</code> </b></p>
477    /// <p>List of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.</p>
478    /// <p>Type: Array</p>
479    /// <p>Each <code>appComponents</code> array item includes the following fields:</p>
480    /// <ul>
481    /// <li>
482    /// <p><code>name</code></p>
483    /// <p>Name of the Application Component.</p>
484    /// <p>Type: String</p></li>
485    /// <li>
486    /// <p><code>type</code></p>
487    /// <p>Type of Application Component. For more information about the types of Application Component, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/AppComponent.grouping.html">Grouping resources in an AppComponent</a>.</p>
488    /// <p>Type: String</p></li>
489    /// <li>
490    /// <p><code>resourceNames</code></p>
491    /// <p>The list of included resources that are assigned to the Application Component.</p>
492    /// <p>Type: Array of strings</p></li>
493    /// <li>
494    /// <p><code>additionalInfo</code></p>
495    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
496    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
497    /// <p>Key: <code>"failover-regions"</code></p>
498    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
499    /// </note></li>
500    /// </ul></li>
501    /// <li>
502    /// <p><b> <code>excludedResources</code> </b></p>
503    /// <p>The list of logical resource identifiers to be excluded from the application.</p>
504    /// <p>Type: Array</p><note>
505    /// <p>Don't add the resources that you want to include.</p>
506    /// </note>
507    /// <p>Each <code>excludedResources</code> array item includes the following fields:</p>
508    /// <ul>
509    /// <li>
510    /// <p><i> <code>logicalResourceIds</code> </i></p>
511    /// <p>Logical identifier of the resource.</p>
512    /// <p>Type: Object</p><note>
513    /// <p>You can configure only one of the following fields:</p>
514    /// <ul>
515    /// <li>
516    /// <p><code>logicalStackName</code></p></li>
517    /// <li>
518    /// <p><code>resourceGroupName</code></p></li>
519    /// <li>
520    /// <p><code>terraformSourceName</code></p></li>
521    /// <li>
522    /// <p><code>eksSourceName</code></p></li>
523    /// </ul>
524    /// </note>
525    /// <p>Each <code>logicalResourceIds</code> object includes the following fields:</p>
526    /// <ul>
527    /// <li>
528    /// <p><code>identifier</code></p>
529    /// <p>Identifier of the resource.</p>
530    /// <p>Type: String</p></li>
531    /// <li>
532    /// <p><code>logicalStackName</code></p>
533    /// <p>The name of the CloudFormation stack this resource belongs to.</p>
534    /// <p>Type: String</p></li>
535    /// <li>
536    /// <p><code>resourceGroupName</code></p>
537    /// <p>The name of the resource group this resource belongs to.</p>
538    /// <p>Type: String</p></li>
539    /// <li>
540    /// <p><code>terraformSourceName</code></p>
541    /// <p>The name of the Terraform S3 state file this resource belongs to.</p>
542    /// <p>Type: String</p></li>
543    /// <li>
544    /// <p><code>eksSourceName</code></p>
545    /// <p>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.</p><note>
546    /// <p>This parameter accepts values in "eks-cluster/namespace" format.</p>
547    /// </note>
548    /// <p>Type: String</p></li>
549    /// </ul></li>
550    /// </ul></li>
551    /// <li>
552    /// <p><b> <code>version</code> </b></p>
553    /// <p>Resilience Hub application version.</p></li>
554    /// <li>
555    /// <p><code>additionalInfo</code></p>
556    /// <p>Additional configuration parameters for an Resilience Hub application. If you want to implement <code>additionalInfo</code> through the Resilience Hub console rather than using an API call, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/app-config-param.html">Configure the application configuration parameters</a>.</p><note>
557    /// <p>Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.</p>
558    /// <p>Key: <code>"failover-regions"</code></p>
559    /// <p>Value: <code>"\[{"region":"&lt;REGION&gt;", "accounts":\[{"id":"&lt;ACCOUNT_ID&gt;"}\]}\]"</code></p>
560    /// </note></li>
561    /// </ul>
562    pub fn get_app_template_body(&self) -> &::std::option::Option<::std::string::String> {
563        self.inner.get_app_template_body()
564    }
565}