1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ImportResourcesToDraftAppVersion`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_arn(impl Into<String>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::app_arn) / [`set_app_arn(Option<String>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::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>
    ///   - [`source_arns(impl Into<String>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::source_arns) / [`set_source_arns(Option<Vec::<String>>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::set_source_arns):<br>required: **false**<br><p>The Amazon Resource Names (ARNs) for the resources.</p><br>
    ///   - [`terraform_sources(TerraformSource)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::terraform_sources) / [`set_terraform_sources(Option<Vec::<TerraformSource>>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::set_terraform_sources):<br>required: **false**<br><p>A list of terraform file s3 URLs you need to import.</p><br>
    ///   - [`import_strategy(ResourceImportStrategyType)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::import_strategy) / [`set_import_strategy(Option<ResourceImportStrategyType>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::set_import_strategy):<br>required: **false**<br><p>The import strategy you would like to set to import resources into Resilience Hub application.</p><br>
    ///   - [`eks_sources(EksSource)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::eks_sources) / [`set_eks_sources(Option<Vec::<EksSource>>)`](crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::set_eks_sources):<br>required: **false**<br><p>The input sources of the Amazon Elastic Kubernetes Service resources you need to import.</p><br>
    /// - On success, responds with [`ImportResourcesToDraftAppVersionOutput`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput) with field(s):
    ///   - [`app_arn(String)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::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>
    ///   - [`app_version(String)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::app_version): <p>The version of the application.</p>
    ///   - [`source_arns(Option<Vec::<String>>)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::source_arns): <p>The Amazon Resource Names (ARNs) for the resources you have imported.</p>
    ///   - [`status(ResourceImportStatusType)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::status): <p>Status of the action.</p>
    ///   - [`terraform_sources(Option<Vec::<TerraformSource>>)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::terraform_sources): <p>A list of terraform file s3 URLs you have imported.</p>
    ///   - [`eks_sources(Option<Vec::<EksSource>>)`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionOutput::eks_sources): <p>The input sources of the Amazon Elastic Kubernetes Service resources you have imported.</p>
    /// - On failure, responds with [`SdkError<ImportResourcesToDraftAppVersionError>`](crate::operation::import_resources_to_draft_app_version::ImportResourcesToDraftAppVersionError)
    pub fn import_resources_to_draft_app_version(
        &self,
    ) -> crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder {
        crate::operation::import_resources_to_draft_app_version::builders::ImportResourcesToDraftAppVersionFluentBuilder::new(self.handle.clone())
    }
}