Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a template from an existing Amazon QuickSight analysis or another template.
Synopsis
- data UpdateTemplate = UpdateTemplate' {}
- newUpdateTemplate :: Text -> Text -> TemplateSourceEntity -> UpdateTemplate
- updateTemplate_versionDescription :: Lens' UpdateTemplate (Maybe Text)
- updateTemplate_name :: Lens' UpdateTemplate (Maybe Text)
- updateTemplate_awsAccountId :: Lens' UpdateTemplate Text
- updateTemplate_templateId :: Lens' UpdateTemplate Text
- updateTemplate_sourceEntity :: Lens' UpdateTemplate TemplateSourceEntity
- data UpdateTemplateResponse = UpdateTemplateResponse' {
- requestId :: Maybe Text
- arn :: Maybe Text
- creationStatus :: Maybe ResourceStatus
- templateId :: Maybe Text
- versionArn :: Maybe Text
- status :: Int
- newUpdateTemplateResponse :: Int -> UpdateTemplateResponse
- updateTemplateResponse_requestId :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_arn :: Lens' UpdateTemplateResponse (Maybe Text)
- updateTemplateResponse_creationStatus :: Lens' UpdateTemplateResponse (Maybe ResourceStatus)
- 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
:: Text | |
-> Text | |
-> TemplateSourceEntity | |
-> UpdateTemplate |
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: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.
$sel:name:UpdateTemplate'
, updateTemplate_name
- The name for the template.
$sel:awsAccountId:UpdateTemplate'
, updateTemplate_awsAccountId
- The ID of the Amazon Web Services account that contains the template
that you're updating.
$sel:templateId:UpdateTemplate'
, updateTemplate_templateId
- The ID 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.
Request Lenses
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_name :: Lens' UpdateTemplate (Maybe Text) Source #
The name for the template.
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.
updateTemplate_sourceEntity :: Lens' UpdateTemplate 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.
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:
$sel:requestId:UpdateTemplateResponse'
, updateTemplateResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:arn:UpdateTemplateResponse'
, updateTemplateResponse_arn
- The Amazon Resource Name (ARN) for the template.
$sel:creationStatus:UpdateTemplateResponse'
, updateTemplateResponse_creationStatus
- The creation status of the template.
$sel:templateId: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.
$sel:status:UpdateTemplateResponse'
, updateTemplateResponse_status
- The HTTP status of the request.
Response Lenses
updateTemplateResponse_requestId :: Lens' UpdateTemplateResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
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_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.