Analysis class
Resource for managing a QuickSight Analysis.
Example Usage
From Source Template
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.quicksight.Analysis("example", {
sourceEntity: {
sourceTemplate: {
dataSetReferences: [{
dataSetArn: dataset.arn,
dataSetPlaceholder: "1",
}],
arn: source.arn,
},
},
analysisId: "example-id",
name: "example-name",
});
import pulumi
import pulumi_aws as aws
example = aws.quicksight.Analysis("example",
source_entity={
"source_template": {
"data_set_references": [{
"data_set_arn": dataset["arn"],
"data_set_placeholder": "1",
}],
"arn": source["arn"],
},
},
analysis_id="example-id",
name="example-name")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Quicksight.Analysis("example", new()
{
SourceEntity = new Aws.Quicksight.Inputs.AnalysisSourceEntityArgs
{
SourceTemplate = new Aws.Quicksight.Inputs.AnalysisSourceEntitySourceTemplateArgs
{
DataSetReferences = new[]
{
new Aws.Quicksight.Inputs.AnalysisSourceEntitySourceTemplateDataSetReferenceArgs
{
DataSetArn = dataset.Arn,
DataSetPlaceholder = "1",
},
},
Arn = source.Arn,
},
},
AnalysisId = "example-id",
Name = "example-name",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/quicksight"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quicksight.NewAnalysis(ctx, "example", &quicksight.AnalysisArgs{
SourceEntity: &quicksight.AnalysisSourceEntityArgs{
SourceTemplate: &quicksight.AnalysisSourceEntitySourceTemplateArgs{
DataSetReferences: quicksight.AnalysisSourceEntitySourceTemplateDataSetReferenceArray{
&quicksight.AnalysisSourceEntitySourceTemplateDataSetReferenceArgs{
DataSetArn: pulumi.Any(dataset.Arn),
DataSetPlaceholder: pulumi.String("1"),
},
},
Arn: pulumi.Any(source.Arn),
},
},
AnalysisId: pulumi.String("example-id"),
Name: pulumi.String("example-name"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_quicksight_analysis" "example" {
source_entity = {
source_template = {
data_set_references = [{
"dataSetArn" = dataset.arn
"dataSetPlaceholder" = "1"
}]
arn = source.arn
}
}
analysis_id = "example-id"
name = "example-name"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.quicksight.Analysis;
import com.pulumi.aws.quicksight.AnalysisArgs;
import com.pulumi.aws.quicksight.inputs.AnalysisSourceEntityArgs;
import com.pulumi.aws.quicksight.inputs.AnalysisSourceEntitySourceTemplateArgs;
import com.pulumi.aws.quicksight.inputs.AnalysisSourceEntitySourceTemplateDataSetReferenceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Analysis("example", AnalysisArgs.builder()
.sourceEntity(AnalysisSourceEntityArgs.builder()
.sourceTemplate(AnalysisSourceEntitySourceTemplateArgs.builder()
.dataSetReferences(AnalysisSourceEntitySourceTemplateDataSetReferenceArgs.builder()
.dataSetArn(dataset.arn())
.dataSetPlaceholder("1")
.build())
.arn(source.arn())
.build())
.build())
.analysisId("example-id")
.name("example-name")
.build());
}
}
resources:
example:
type: aws:quicksight:Analysis
properties:
sourceEntity:
sourceTemplate:
dataSetReferences:
- dataSetArn: ${dataset.arn}
dataSetPlaceholder: '1'
arn: ${source.arn}
analysisId: example-id
name: example-name
With Definition
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.quicksight.Analysis("example", {
definition: {
dataSetIdentifiersDeclarations: [{
dataSetArn: dataset.arn,
identifier: "1",
}],
sheets: [{
visuals: [{
lineChartVisual: {
title: {
formatText: {
plainText: "Line Chart Example",
},
},
chartConfiguration: {
fieldWells: {
lineChartAggregatedFieldWells: {
categories: [{
categoricalDimensionField: {
column: {
dataSetIdentifier: "1",
columnName: "Column1",
},
fieldId: "1",
},
}],
values: [{
categoricalMeasureField: {
column: {
dataSetIdentifier: "1",
columnName: "Column1",
},
fieldId: "2",
aggregationFunction: "COUNT",
},
}],
},
},
},
visualId: "LineChart",
},
}],
title: "Example",
sheetId: "Example1",
}],
},
analysisId: "example-id",
name: "example-name",
});
import pulumi
import pulumi_aws as aws
example = aws.quicksight.Analysis("example",
definition={
"dataSetIdentifiersDeclarations": [{
"dataSetArn": dataset["arn"],
"identifier": "1",
}],
"sheets": [{
"visuals": [{
"lineChartVisual": {
"title": {
"formatText": {
"plainText": "Line Chart Example",
},
},
"chartConfiguration": {
"fieldWells": {
"lineChartAggregatedFieldWells": {
"categories": [{
"categoricalDimensionField": {
"column": {
"dataSetIdentifier": "1",
"columnName": "Column1",
},
"fieldId": "1",
},
}],
"values": [{
"categoricalMeasureField": {
"column": {
"dataSetIdentifier": "1",
"columnName": "Column1",
},
"fieldId": "2",
"aggregationFunction": "COUNT",
},
}],
},
},
},
"visualId": "LineChart",
},
}],
"title": "Example",
"sheetId": "Example1",
}],
},
analysis_id="example-id",
name="example-name")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Quicksight.Analysis("example", new()
{
Definition =
{
{ "dataSetIdentifiersDeclarations", new[]
{
{
{ "dataSetArn", dataset.Arn },
{ "identifier", "1" },
},
} },
{ "sheets", new[]
{
{
{ "visuals", new[]
{
{
{ "lineChartVisual",
{
{ "title",
{
{ "formatText",
{
{ "plainText", "Line Chart Example" },
} },
} },
{ "chartConfiguration",
{
{ "fieldWells",
{
{ "lineChartAggregatedFieldWells",
{
{ "categories", new[]
{
{
{ "categoricalDimensionField",
{
{ "column",
{
{ "dataSetIdentifier", "1" },
{ "columnName", "Column1" },
} },
{ "fieldId", "1" },
} },
},
} },
{ "values", new[]
{
{
{ "categoricalMeasureField",
{
{ "column",
{
{ "dataSetIdentifier", "1" },
{ "columnName", "Column1" },
} },
{ "fieldId", "2" },
{ "aggregationFunction", "COUNT" },
} },
},
} },
} },
} },
} },
{ "visualId", "LineChart" },
} },
},
} },
{ "title", "Example" },
{ "sheetId", "Example1" },
},
} },
},
AnalysisId = "example-id",
Name = "example-name",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/quicksight"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quicksight.NewAnalysis(ctx, "example", &quicksight.AnalysisArgs{
Definition: map[string][]map[string]interface{}{
"dataSetIdentifiersDeclarations": []map[string]interface{}{
map[string]interface{}{
"dataSetArn": dataset.Arn,
"identifier": "1",
},
},
"sheets": []map[string]interface{}{
map[string]interface{}{
"visuals": []map[string]map[string]interface{}{
map[string]map[string]interface{}{
"lineChartVisual": map[string]interface{}{
"title": map[string]map[string]string{
"formatText": map[string]string{
"plainText": "Line Chart Example",
},
},
"chartConfiguration": map[string]map[string]map[string][]map[string]map[string]interface{}{
"fieldWells": map[string]map[string][]map[string]map[string]interface{}{
"lineChartAggregatedFieldWells": map[string][]map[string]map[string]interface{}{
"categories": []map[string]map[string]interface{}{
map[string]map[string]interface{}{
"categoricalDimensionField": map[string]interface{}{
"column": map[string]string{
"dataSetIdentifier": "1",
"columnName": "Column1",
},
"fieldId": "1",
},
},
},
"values": []map[string]map[string]interface{}{
map[string]map[string]interface{}{
"categoricalMeasureField": map[string]interface{}{
"column": map[string]string{
"dataSetIdentifier": "1",
"columnName": "Column1",
},
"fieldId": "2",
"aggregationFunction": "COUNT",
},
},
},
},
},
},
"visualId": "LineChart",
},
},
},
"title": "Example",
"sheetId": "Example1",
},
},
},
AnalysisId: pulumi.String("example-id"),
Name: pulumi.String("example-name"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_quicksight_analysis" "example" {
definition = {
"dataSetIdentifiersDeclarations" = [{
"dataSetArn" = dataset.arn
"identifier" = "1"
}]
"sheets" = [{
"visuals" = [{
"lineChartVisual" = {
"title" = {
"formatText" = {
"plainText" = "Line Chart Example"
}
}
"chartConfiguration" = {
"fieldWells" = {
"lineChartAggregatedFieldWells" = {
"categories" = [{
"categoricalDimensionField" = {
"column" = {
"dataSetIdentifier" = "1"
"columnName" = "Column1"
}
"fieldId" = "1"
}
}]
"values" = [{
"categoricalMeasureField" = {
"column" = {
"dataSetIdentifier" = "1"
"columnName" = "Column1"
}
"fieldId" = "2"
"aggregationFunction" = "COUNT"
}
}]
}
}
}
"visualId" = "LineChart"
}
}]
"title" = "Example"
"sheetId" = "Example1"
}]
}
analysis_id = "example-id"
name = "example-name"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.quicksight.Analysis;
import com.pulumi.aws.quicksight.AnalysisArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Analysis("example", AnalysisArgs.builder()
.definition(Map.ofEntries(
Map.entry("dataSetIdentifiersDeclarations", Arrays.asList(Map.ofEntries(
Map.entry("dataSetArn", dataset.arn()),
Map.entry("identifier", "1")
))),
Map.entry("sheets", Arrays.asList(Map.ofEntries(
Map.entry("visuals", Arrays.asList(Map.of("lineChartVisual", Map.ofEntries(
Map.entry("title", Map.of("formatText", Map.of("plainText", "Line Chart Example"))),
Map.entry("chartConfiguration", Map.of("fieldWells", Map.of("lineChartAggregatedFieldWells", Map.ofEntries(
Map.entry("categories", Arrays.asList(Map.of("categoricalDimensionField", Map.ofEntries(
Map.entry("column", Map.ofEntries(
Map.entry("dataSetIdentifier", "1"),
Map.entry("columnName", "Column1")
)),
Map.entry("fieldId", "1")
)))),
Map.entry("values", Arrays.asList(Map.of("categoricalMeasureField", Map.ofEntries(
Map.entry("column", Map.ofEntries(
Map.entry("dataSetIdentifier", "1"),
Map.entry("columnName", "Column1")
)),
Map.entry("fieldId", "2"),
Map.entry("aggregationFunction", "COUNT")
))))
)))),
Map.entry("visualId", "LineChart")
)))),
Map.entry("title", "Example"),
Map.entry("sheetId", "Example1")
)))
))
.analysisId("example-id")
.name("example-name")
.build());
}
}
resources:
example:
type: aws:quicksight:Analysis
properties:
definition:
dataSetIdentifiersDeclarations:
- dataSetArn: ${dataset.arn}
identifier: '1'
sheets:
- visuals:
- lineChartVisual:
title:
formatText:
plainText: Line Chart Example
chartConfiguration:
fieldWells:
lineChartAggregatedFieldWells:
categories:
- categoricalDimensionField:
column:
dataSetIdentifier: '1'
columnName: Column1
fieldId: '1'
values:
- categoricalMeasureField:
column:
dataSetIdentifier: '1'
columnName: Column1
fieldId: '2'
aggregationFunction: COUNT
visualId: LineChart
title: Example
sheetId: Example1
analysisId: example-id
name: example-name
Import
Using pulumi import, import a QuickSight Analysis using the AWS account ID and analysis ID separated by a comma (,). For example:
$ pulumi import aws:quicksight/analysis:Analysis example 123456789012,example-id
Constructors
- Analysis(String name, {AnalysisArgs? args, CustomResourceOptions? options})
-
Creates a new Analysis.
nameThe Pulumi resource name.argsArguments used to configure this Analysis. The set of arguments for Analysis.optionsResource options controlling this resource's behavior. - Analysis.reference(String urn)
- Creates a typed reference to an existing Analysis resource.
Properties
-
analysisId
↔ Output<
String> -
Identifier for the analysis.
latefinal
-
arn
↔ Output<
String> -
ARN of the analysis.
latefinal
-
awsAccountId
↔ Output<
String> -
AWS account ID. Defaults to automatically determined account ID of the Terraform AWS provider.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createdTime
↔ Output<
String> -
The time that the analysis was created.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
lastPublishedTime
↔ Output<
String> -
latefinal
-
lastUpdatedTime
↔ Output<
String> -
The time that the analysis was last updated.
latefinal
-
name
↔ Output<
String> -
Display name for the analysis.
latefinal
-
parameters
↔ Output<
AnalysisParameters> -
The parameters for the creation of the analysis, which you want to use to override the default settings. An analysis can have any type of parameters, and some parameters might accept multiple values. See parameters.
latefinal
-
permissions
↔ Output<
List< AnalysisPermission> ?> -
A set of resource permissions on the analysis. Maximum of 64 items. See permissions.
latefinal
-
recoveryWindowInDays
↔ Output<
int?> -
A value that specifies the number of days that Amazon QuickSight waits before it deletes the analysis. Use
0to force deletion without recovery. Minimum value of7. Maximum value of30. Default to30.latefinal -
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceEntity
↔ Output<
AnalysisSourceEntity?> -
The entity that you are using as a source when you create the analysis (template). Only one of
definitionorsourceEntityshould be configured. See source_entity.latefinal -
status
↔ Output<
String> -
The analysis creation status.
latefinal
-
Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
themeArn
↔ Output<
String?> -
ARN of the theme that is being used for this analysis. The theme ARN must exist in the same AWS account where you create the analysis.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited