1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateRecommendationTemplate`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`recommendation_ids(impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::recommendation_ids) / [`set_recommendation_ids(Option<Vec::<String>>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_recommendation_ids):<br>required: **false**<br><p>Identifiers for the recommendations used to create a recommendation template.</p><br>
    ///   - [`format(TemplateFormat)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::format) / [`set_format(Option<TemplateFormat>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_format):<br>required: **false**<br><p>The format for the recommendation template.</p> <dl>  <dt>   CfnJson  </dt>  <dd>   <p>The template is CloudFormation JSON.</p>  </dd>  <dt>   CfnYaml  </dt>  <dd>   <p>The template is CloudFormation YAML.</p>  </dd> </dl><br>
    ///   - [`recommendation_types(RenderRecommendationType)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::recommendation_types) / [`set_recommendation_types(Option<Vec::<RenderRecommendationType>>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_recommendation_types):<br>required: **false**<br><p>An array of strings that specify the recommendation template type or types.</p> <dl>  <dt>   Alarm  </dt>  <dd>   <p>The template is an <code>AlarmRecommendation</code> template.</p>  </dd>  <dt>   Sop  </dt>  <dd>   <p>The template is a <code>SopRecommendation</code> template.</p>  </dd>  <dt>   Test  </dt>  <dd>   <p>The template is a <code>TestRecommendation</code> template.</p>  </dd> </dl><br>
    ///   - [`assessment_arn(impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::assessment_arn) / [`set_assessment_arn(Option<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_assessment_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app-assessment/<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>
    ///   - [`name(impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_name):<br>required: **true**<br><p>The name for the recommendation template.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_client_token):<br>required: **false**<br><p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_tags):<br>required: **false**<br><p>Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.</p><br>
    ///   - [`bucket_name(impl Into<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::bucket_name) / [`set_bucket_name(Option<String>)`](crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::set_bucket_name):<br>required: **false**<br><p>The name of the Amazon S3 bucket that will contain the recommendation template.</p><br>
    /// - On success, responds with [`CreateRecommendationTemplateOutput`](crate::operation::create_recommendation_template::CreateRecommendationTemplateOutput) with field(s):
    ///   - [`recommendation_template(Option<RecommendationTemplate>)`](crate::operation::create_recommendation_template::CreateRecommendationTemplateOutput::recommendation_template): <p>The newly created recommendation template, returned as an object. This object includes the template's name, format, status, tags, Amazon S3 bucket location, and more.</p>
    /// - On failure, responds with [`SdkError<CreateRecommendationTemplateError>`](crate::operation::create_recommendation_template::CreateRecommendationTemplateError)
    pub fn create_recommendation_template(
        &self,
    ) -> crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder {
        crate::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder::new(self.handle.clone())
    }
}