Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates a template from an existing Amazon QuickSight analysis or another template.
Synopsis
- data UpdateTemplate = UpdateTemplate' {}
- newUpdateTemplate :: Text -> Text -> UpdateTemplate
- updateTemplate_definition :: Lens' UpdateTemplate (Maybe TemplateVersionDefinition)
- updateTemplate_name :: Lens' UpdateTemplate (Maybe Text)
- updateTemplate_sourceEntity :: Lens' UpdateTemplate (Maybe TemplateSourceEntity)
- updateTemplate_versionDescription :: Lens' UpdateTemplate (Maybe Text)
- updateTemplate_awsAccountId :: Lens' UpdateTemplate Text
- updateTemplate_templateId :: Lens' UpdateTemplate Text
- data UpdateTemplateResponse = UpdateTemplateResponse' {
- arn :: Maybe Text
- creationStatus :: Maybe ResourceStatus
- requestId :: Maybe Text
- templateId :: Maybe Text
- versionArn :: Maybe Text
- status :: Int
- newUpdateTemplateResponse :: Int -> UpdateTemplateResponse
- updateTemplateResponse_arn :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_creationStatus :: Lens' UpdateTemplateResponse (Maybe ResourceStatus)
- updateTemplateResponse_requestId :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_templateId :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_versionArn :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_status :: Lens' UpdateTemplateResponse Int
Creating a Request
data UpdateTemplate Source #
See: newUpdateTemplate
smart constructor.
UpdateTemplate' | |
|
Instances
Create a value of UpdateTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:definition:UpdateTemplate'
, updateTemplate_definition
- The definition of a template.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
UpdateTemplate
, updateTemplate_name
- The name for the template.
$sel:sourceEntity:UpdateTemplate'
, updateTemplate_sourceEntity
- The entity that you are using as a source when you update 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.
$sel:versionDescription:UpdateTemplate'
, updateTemplate_versionDescription
- A description of the current template version that is being updated.
Every time you call UpdateTemplate
, you create a new version of the
template. Each version of the template maintains a description of the
version in the VersionDescription
field.
UpdateTemplate
, updateTemplate_awsAccountId
- The ID of the Amazon Web Services account that contains the template
that you're updating.
UpdateTemplate
, updateTemplate_templateId
- The ID for the template.
Request Lenses
updateTemplate_definition :: Lens' UpdateTemplate (Maybe TemplateVersionDefinition) Source #
The definition of a template.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
updateTemplate_name :: Lens' UpdateTemplate (Maybe Text) Source #
The name for the template.
updateTemplate_sourceEntity :: Lens' UpdateTemplate (Maybe TemplateSourceEntity) Source #
The entity that you are using as a source when you update 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.
updateTemplate_versionDescription :: Lens' UpdateTemplate (Maybe Text) Source #
A description of the current template version that is being updated.
Every time you call UpdateTemplate
, you create a new version of the
template. Each version of the template maintains a description of the
version in the VersionDescription
field.
updateTemplate_awsAccountId :: Lens' UpdateTemplate Text Source #
The ID of the Amazon Web Services account that contains the template that you're updating.
updateTemplate_templateId :: Lens' UpdateTemplate Text Source #
The ID for the template.
Destructuring the Response
data UpdateTemplateResponse Source #
See: newUpdateTemplateResponse
smart constructor.
UpdateTemplateResponse' | |
|
Instances
newUpdateTemplateResponse Source #
Create a value of UpdateTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateTemplateResponse
, updateTemplateResponse_arn
- The Amazon Resource Name (ARN) for the template.
UpdateTemplateResponse
, updateTemplateResponse_creationStatus
- The creation status of the template.
$sel:requestId:UpdateTemplateResponse'
, updateTemplateResponse_requestId
- The Amazon Web Services request ID for this operation.
UpdateTemplate
, updateTemplateResponse_templateId
- The ID for the template.
$sel:versionArn:UpdateTemplateResponse'
, updateTemplateResponse_versionArn
- The ARN for the template, including the version information of the first
version.
UpdateTemplateResponse
, updateTemplateResponse_status
- The HTTP status of the request.
Response Lenses
updateTemplateResponse_arn :: Lens' UpdateTemplateResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the template.
updateTemplateResponse_creationStatus :: Lens' UpdateTemplateResponse (Maybe ResourceStatus) Source #
The creation status of the template.
updateTemplateResponse_requestId :: Lens' UpdateTemplateResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateTemplateResponse_templateId :: Lens' UpdateTemplateResponse (Maybe Text) Source #
The ID for the template.
updateTemplateResponse_versionArn :: Lens' UpdateTemplateResponse (Maybe Text) Source #
The ARN for the template, including the version information of the first version.
updateTemplateResponse_status :: Lens' UpdateTemplateResponse Int Source #
The HTTP status of the request.