1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateTemplate`](crate::operation::create_template::builders::CreateTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID for the Amazon Web Services account that the group is in. You use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p><br>
    ///   - [`template_id(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::template_id) / [`set_template_id(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_template_id):<br>required: **true**<br><p>An ID for the template that you want to create. This template is unique per Amazon Web Services Region; in each Amazon Web Services account.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_name):<br>required: **false**<br><p>A display name for the template.</p><br>
    ///   - [`permissions(ResourcePermission)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::permissions) / [`set_permissions(Option<Vec::<ResourcePermission>>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_permissions):<br>required: **false**<br><p>A list of resource permissions to be set on the template. </p><br>
    ///   - [`source_entity(TemplateSourceEntity)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::source_entity) / [`set_source_entity(Option<TemplateSourceEntity>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_source_entity):<br>required: **false**<br><p>The entity that you are using as a source when you create the template. In <code>SourceEntity</code>, you specify the type of object you're using as source: <code>SourceTemplate</code> for a template or <code>SourceAnalysis</code> for an analysis. Both of these require an Amazon Resource Name (ARN). For <code>SourceTemplate</code>, specify the ARN of the source template. For <code>SourceAnalysis</code>, specify the ARN of the source analysis. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region. </p>  <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> or <code>SourceAnalysis</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder. </p>  <p>Either a <code>SourceEntity</code> or a <code>Definition</code> must be provided in order for the request to be valid.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_tags):<br>required: **false**<br><p>Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.</p><br>
    ///   - [`version_description(impl Into<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::version_description) / [`set_version_description(Option<String>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_version_description):<br>required: **false**<br><p>A description of the current template version being created. This API operation creates the first version of the template. Every time <code>UpdateTemplate</code> is called, a new version is created. Each version of the template maintains a description of the version in the <code>VersionDescription</code> field.</p><br>
    ///   - [`definition(TemplateVersionDefinition)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::definition) / [`set_definition(Option<TemplateVersionDefinition>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_definition):<br>required: **false**<br><p>The definition of a template.</p>  <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>  <p>Either a <code>SourceEntity</code> or a <code>Definition</code> must be provided in order for the request to be valid.</p><br>
    ///   - [`validation_strategy(ValidationStrategy)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::validation_strategy) / [`set_validation_strategy(Option<ValidationStrategy>)`](crate::operation::create_template::builders::CreateTemplateFluentBuilder::set_validation_strategy):<br>required: **false**<br><p>TThe option to relax the validation needed to create a template with definition objects. This skips the validation step for specific errors.</p><br>
    /// - On success, responds with [`CreateTemplateOutput`](crate::operation::create_template::CreateTemplateOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::create_template::CreateTemplateOutput::arn): <p>The ARN for the template.</p>
    ///   - [`version_arn(Option<String>)`](crate::operation::create_template::CreateTemplateOutput::version_arn): <p>The ARN for the template, including the version information of the first version.</p>
    ///   - [`template_id(Option<String>)`](crate::operation::create_template::CreateTemplateOutput::template_id): <p>The ID of the template.</p>
    ///   - [`creation_status(Option<ResourceStatus>)`](crate::operation::create_template::CreateTemplateOutput::creation_status): <p>The template creation status.</p>
    ///   - [`status(i32)`](crate::operation::create_template::CreateTemplateOutput::status): <p>The HTTP status of the request.</p>
    ///   - [`request_id(Option<String>)`](crate::operation::create_template::CreateTemplateOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
    /// - On failure, responds with [`SdkError<CreateTemplateError>`](crate::operation::create_template::CreateTemplateError)
    pub fn create_template(&self) -> crate::operation::create_template::builders::CreateTemplateFluentBuilder {
        crate::operation::create_template::builders::CreateTemplateFluentBuilder::new(self.handle.clone())
    }
}