aws_sdk_resiliencehub/client/
add_draft_app_version_resource_mappings.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AddDraftAppVersionResourceMappings`](crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_arn(impl Into<String>)`](crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder::app_arn) / [`set_app_arn(Option<String>)`](crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder::set_app_arn):<br>required: **true**<br><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><br>
7    ///   - [`resource_mappings(ResourceMapping)`](crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder::resource_mappings) / [`set_resource_mappings(Option<Vec::<ResourceMapping>>)`](crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder::set_resource_mappings):<br>required: **true**<br><p>Mappings used to map logical resources from the template to physical resources. You can use the mapping type <code>CFN_STACK</code> if the application template uses a logical stack name. Or you can map individual resources by using the mapping type <code>RESOURCE</code>. We recommend using the mapping type <code>CFN_STACK</code> if the application is backed by a CloudFormation stack.</p><br>
8    /// - On success, responds with [`AddDraftAppVersionResourceMappingsOutput`](crate::operation::add_draft_app_version_resource_mappings::AddDraftAppVersionResourceMappingsOutput) with field(s):
9    ///   - [`app_arn(String)`](crate::operation::add_draft_app_version_resource_mappings::AddDraftAppVersionResourceMappingsOutput::app_arn): <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>
10    ///   - [`app_version(String)`](crate::operation::add_draft_app_version_resource_mappings::AddDraftAppVersionResourceMappingsOutput::app_version): <p>The version of the application.</p>
11    ///   - [`resource_mappings(Vec::<ResourceMapping>)`](crate::operation::add_draft_app_version_resource_mappings::AddDraftAppVersionResourceMappingsOutput::resource_mappings): <p>List of sources that are used to map a logical resource from the template to a physical resource. You can use sources such as CloudFormation, Terraform state files, AppRegistry applications, or Amazon EKS.</p>
12    /// - On failure, responds with [`SdkError<AddDraftAppVersionResourceMappingsError>`](crate::operation::add_draft_app_version_resource_mappings::AddDraftAppVersionResourceMappingsError)
13    pub fn add_draft_app_version_resource_mappings(
14        &self,
15    ) -> crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder {
16        crate::operation::add_draft_app_version_resource_mappings::builders::AddDraftAppVersionResourceMappingsFluentBuilder::new(self.handle.clone())
17    }
18}