AWS QuickSight definition PANIC docs render
Closed this issue · 1 comments
t0yv0 commented
What happened?
Another example of PANIC rendering into docs, from AWS.
Example
resource "aws_quicksight_template" "example" {
template_id = "example-id"
name = "example-name"
version_description = "version"
definition {
data_set_configuration {
data_set_schema {
column_schema_list {
name = "Column1"
data_type = "STRING"
}
column_schema_list {
name = "Column2"
data_type = "INTEGER"
}
}
placeholder = "1"
}
sheets {
title = "Test"
sheet_id = "Test1"
visuals {
bar_chart_visual {
visual_id = "BarChart"
chart_configuration {
field_wells {
bar_chart_aggregated_field_wells {
category {
categorical_dimension_field {
field_id = "1"
column {
column_name = "Column1"
data_set_identifier = "1"
}
}
}
values {
numerical_measure_field {
field_id = "2"
column {
column_name = "Column2"
data_set_identifier = "1"
}
aggregation_function {
simple_numerical_aggregation = "SUM"
}
}
}
}
}
}
}
}
}
}
}
renders to
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.quicksight.Template;
import com.pulumi.aws.quicksight.TemplateArgs;
import java.util.List;
import java.util.ArrayList;
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 Template("example", TemplateArgs.builder()
.templateId("example-id")
.name("example-name")
.versionDescription("version")
.definition(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
Output of pulumi about
N/A
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).