Struct aws_sdk_quicksight::client::fluent_builders::CreateTemplate
source · [−]pub struct CreateTemplate { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateTemplate
.
Creates a template from an existing Amazon QuickSight analysis or template. You can use the resulting template to create a dashboard.
A template is an entity in Amazon QuickSight that encapsulates the metadata required to create an analysis and that you can use to create s dashboard. A template adds a layer of abstraction by using placeholders to replace the dataset associated with the analysis. You can use templates to create dashboards by replacing dataset placeholders with datasets that follow the same schema that was used to create the source analysis and template.
Implementations
sourceimpl CreateTemplate
impl CreateTemplate
sourcepub async fn send(
self
) -> Result<CreateTemplateOutput, SdkError<CreateTemplateError>>
pub async fn send(
self
) -> Result<CreateTemplateOutput, SdkError<CreateTemplateError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
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.
sourcepub fn template_id(self, input: impl Into<String>) -> Self
pub fn template_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_template_id(self, input: Option<String>) -> Self
pub fn set_template_id(self, input: Option<String>) -> Self
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.
sourcepub fn permissions(self, input: ResourcePermission) -> Self
pub fn permissions(self, input: ResourcePermission) -> Self
Appends an item to Permissions
.
To override the contents of this collection use set_permissions
.
A list of resource permissions to be set on the template.
sourcepub fn set_permissions(self, input: Option<Vec<ResourcePermission>>) -> Self
pub fn set_permissions(self, input: Option<Vec<ResourcePermission>>) -> Self
A list of resource permissions to be set on the template.
sourcepub fn source_entity(self, input: TemplateSourceEntity) -> Self
pub fn source_entity(self, input: TemplateSourceEntity) -> Self
The entity that you are using as a source when you create the template. In SourceEntity
, you specify the type of object you're using as source: SourceTemplate
for a template or SourceAnalysis
for an analysis. Both of these require an Amazon Resource Name (ARN). For SourceTemplate
, specify the ARN of the source template. For SourceAnalysis
, specify the ARN of the source analysis. The SourceTemplate
ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.
Use the DataSetReferences
entity within SourceTemplate
or SourceAnalysis
to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.
sourcepub fn set_source_entity(self, input: Option<TemplateSourceEntity>) -> Self
pub fn set_source_entity(self, input: Option<TemplateSourceEntity>) -> Self
The entity that you are using as a source when you create the template. In SourceEntity
, you specify the type of object you're using as source: SourceTemplate
for a template or SourceAnalysis
for an analysis. Both of these require an Amazon Resource Name (ARN). For SourceTemplate
, specify the ARN of the source template. For SourceAnalysis
, specify the ARN of the source analysis. The SourceTemplate
ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.
Use the DataSetReferences
entity within SourceTemplate
or SourceAnalysis
to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.
Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.
sourcepub fn version_description(self, input: impl Into<String>) -> Self
pub fn version_description(self, input: impl Into<String>) -> Self
A description of the current template version being created. This API operation creates the first version of the template. Every time UpdateTemplate
is called, a new version is created. Each version of the template maintains a description of the version in the VersionDescription
field.
sourcepub fn set_version_description(self, input: Option<String>) -> Self
pub fn set_version_description(self, input: Option<String>) -> Self
A description of the current template version being created. This API operation creates the first version of the template. Every time UpdateTemplate
is called, a new version is created. Each version of the template maintains a description of the version in the VersionDescription
field.
Trait Implementations
sourceimpl Clone for CreateTemplate
impl Clone for CreateTemplate
sourcefn clone(&self) -> CreateTemplate
fn clone(&self) -> CreateTemplate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateTemplate
impl Send for CreateTemplate
impl Sync for CreateTemplate
impl Unpin for CreateTemplate
impl !UnwindSafe for CreateTemplate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more