Skip to content
v2.277.0

LayerCustomActionProperty Struct ​

A layer custom action.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const layerCustomActionProperty: quicksight.CfnDashboard.LayerCustomActionProperty = {
  actionOperations: [{
    filterOperation: {
      selectedFieldsConfiguration: {
        selectedColumns: [{
          columnName: 'columnName',

          // the properties below are optional
          dataSetIdentifier: 'dataSetIdentifier',
          topicIdentifier: 'topicIdentifier',
        }],
        selectedFieldOptions: 'selectedFieldOptions',
        selectedFields: ['selectedFields'],
      },
      targetVisualsConfiguration: {
        sameSheetTargetVisualConfiguration: {
          targetVisualOptions: 'targetVisualOptions',
          targetVisuals: ['targetVisuals'],
        },
      },
    },
    navigationOperation: {
      localNavigationConfiguration: {
        targetSheetId: 'targetSheetId',
      },
    },
    setParametersOperation: {
      parameterValueConfigurations: [{
        destinationParameterName: 'destinationParameterName',
        value: {
          customValuesConfiguration: {
            customValues: {
              dateTimeValues: ['dateTimeValues'],
              decimalValues: [123],
              integerValues: [123],
              stringValues: ['stringValues'],
            },

            // the properties below are optional
            includeNullValue: false,
          },
          selectAllValueOptions: 'selectAllValueOptions',
          sourceColumn: {
            columnName: 'columnName',

            // the properties below are optional
            dataSetIdentifier: 'dataSetIdentifier',
            topicIdentifier: 'topicIdentifier',
          },
          sourceField: 'sourceField',
          sourceParameterName: 'sourceParameterName',
        },
      }],
    },
    urlOperation: {
      urlTarget: 'urlTarget',
      urlTemplate: 'urlTemplate',
    },
  }],
  customActionId: 'customActionId',
  name: 'name',
  trigger: 'trigger',

  // the properties below are optional
  status: 'status',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

layer_custom_action_property = quicksight.CfnDashboard.LayerCustomActionProperty(
    action_operations=[quicksight.CfnDashboard.LayerCustomActionOperationProperty(
        filter_operation=quicksight.CfnDashboard.CustomActionFilterOperationProperty(
            selected_fields_configuration=quicksight.CfnDashboard.FilterOperationSelectedFieldsConfigurationProperty(
                selected_columns=[quicksight.CfnDashboard.ColumnIdentifierProperty(
                    column_name="columnName",

                    # the properties below are optional
                    data_set_identifier="dataSetIdentifier",
                    topic_identifier="topicIdentifier"
                )],
                selected_field_options="selectedFieldOptions",
                selected_fields=["selectedFields"]
            ),
            target_visuals_configuration=quicksight.CfnDashboard.FilterOperationTargetVisualsConfigurationProperty(
                same_sheet_target_visual_configuration=quicksight.CfnDashboard.SameSheetTargetVisualConfigurationProperty(
                    target_visual_options="targetVisualOptions",
                    target_visuals=["targetVisuals"]
                )
            )
        ),
        navigation_operation=quicksight.CfnDashboard.CustomActionNavigationOperationProperty(
            local_navigation_configuration=quicksight.CfnDashboard.LocalNavigationConfigurationProperty(
                target_sheet_id="targetSheetId"
            )
        ),
        set_parameters_operation=quicksight.CfnDashboard.CustomActionSetParametersOperationProperty(
            parameter_value_configurations=[quicksight.CfnDashboard.SetParameterValueConfigurationProperty(
                destination_parameter_name="destinationParameterName",
                value=quicksight.CfnDashboard.DestinationParameterValueConfigurationProperty(
                    custom_values_configuration=quicksight.CfnDashboard.CustomValuesConfigurationProperty(
                        custom_values=quicksight.CfnDashboard.CustomParameterValuesProperty(
                            date_time_values=["dateTimeValues"],
                            decimal_values=[123],
                            integer_values=[123],
                            string_values=["stringValues"]
                        ),

                        # the properties below are optional
                        include_null_value=False
                    ),
                    select_all_value_options="selectAllValueOptions",
                    source_column=quicksight.CfnDashboard.ColumnIdentifierProperty(
                        column_name="columnName",

                        # the properties below are optional
                        data_set_identifier="dataSetIdentifier",
                        topic_identifier="topicIdentifier"
                    ),
                    source_field="sourceField",
                    source_parameter_name="sourceParameterName"
                )
            )]
        ),
        url_operation=quicksight.CfnDashboard.CustomActionURLOperationProperty(
            url_target="urlTarget",
            url_template="urlTemplate"
        )
    )],
    custom_action_id="customActionId",
    name="name",
    trigger="trigger",

    # the properties below are optional
    status="status"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

LayerCustomActionProperty layerCustomActionProperty = LayerCustomActionProperty.builder()
        .actionOperations(List.of(LayerCustomActionOperationProperty.builder()
                .filterOperation(CustomActionFilterOperationProperty.builder()
                        .selectedFieldsConfiguration(FilterOperationSelectedFieldsConfigurationProperty.builder()
                                .selectedColumns(List.of(ColumnIdentifierProperty.builder()
                                        .columnName("columnName")

                                        // the properties below are optional
                                        .dataSetIdentifier("dataSetIdentifier")
                                        .topicIdentifier("topicIdentifier")
                                        .build()))
                                .selectedFieldOptions("selectedFieldOptions")
                                .selectedFields(List.of("selectedFields"))
                                .build())
                        .targetVisualsConfiguration(FilterOperationTargetVisualsConfigurationProperty.builder()
                                .sameSheetTargetVisualConfiguration(SameSheetTargetVisualConfigurationProperty.builder()
                                        .targetVisualOptions("targetVisualOptions")
                                        .targetVisuals(List.of("targetVisuals"))
                                        .build())
                                .build())
                        .build())
                .navigationOperation(CustomActionNavigationOperationProperty.builder()
                        .localNavigationConfiguration(LocalNavigationConfigurationProperty.builder()
                                .targetSheetId("targetSheetId")
                                .build())
                        .build())
                .setParametersOperation(CustomActionSetParametersOperationProperty.builder()
                        .parameterValueConfigurations(List.of(SetParameterValueConfigurationProperty.builder()
                                .destinationParameterName("destinationParameterName")
                                .value(DestinationParameterValueConfigurationProperty.builder()
                                        .customValuesConfiguration(CustomValuesConfigurationProperty.builder()
                                                .customValues(CustomParameterValuesProperty.builder()
                                                        .dateTimeValues(List.of("dateTimeValues"))
                                                        .decimalValues(List.of(123))
                                                        .integerValues(List.of(123))
                                                        .stringValues(List.of("stringValues"))
                                                        .build())

                                                // the properties below are optional
                                                .includeNullValue(false)
                                                .build())
                                        .selectAllValueOptions("selectAllValueOptions")
                                        .sourceColumn(ColumnIdentifierProperty.builder()
                                                .columnName("columnName")

                                                // the properties below are optional
                                                .dataSetIdentifier("dataSetIdentifier")
                                                .topicIdentifier("topicIdentifier")
                                                .build())
                                        .sourceField("sourceField")
                                        .sourceParameterName("sourceParameterName")
                                        .build())
                                .build()))
                        .build())
                .urlOperation(CustomActionURLOperationProperty.builder()
                        .urlTarget("urlTarget")
                        .urlTemplate("urlTemplate")
                        .build())
                .build()))
        .customActionId("customActionId")
        .name("name")
        .trigger("trigger")

        // the properties below are optional
        .status("status")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var layerCustomActionProperty = new LayerCustomActionProperty {
    ActionOperations = new [] { new LayerCustomActionOperationProperty {
        FilterOperation = new CustomActionFilterOperationProperty {
            SelectedFieldsConfiguration = new FilterOperationSelectedFieldsConfigurationProperty {
                SelectedColumns = new [] { new ColumnIdentifierProperty {
                    ColumnName = "columnName",

                    // the properties below are optional
                    DataSetIdentifier = "dataSetIdentifier",
                    TopicIdentifier = "topicIdentifier"
                } },
                SelectedFieldOptions = "selectedFieldOptions",
                SelectedFields = new [] { "selectedFields" }
            },
            TargetVisualsConfiguration = new FilterOperationTargetVisualsConfigurationProperty {
                SameSheetTargetVisualConfiguration = new SameSheetTargetVisualConfigurationProperty {
                    TargetVisualOptions = "targetVisualOptions",
                    TargetVisuals = new [] { "targetVisuals" }
                }
            }
        },
        NavigationOperation = new CustomActionNavigationOperationProperty {
            LocalNavigationConfiguration = new LocalNavigationConfigurationProperty {
                TargetSheetId = "targetSheetId"
            }
        },
        SetParametersOperation = new CustomActionSetParametersOperationProperty {
            ParameterValueConfigurations = new [] { new SetParameterValueConfigurationProperty {
                DestinationParameterName = "destinationParameterName",
                Value = new DestinationParameterValueConfigurationProperty {
                    CustomValuesConfiguration = new CustomValuesConfigurationProperty {
                        CustomValues = new CustomParameterValuesProperty {
                            DateTimeValues = new [] { "dateTimeValues" },
                            DecimalValues = new [] { 123 },
                            IntegerValues = new [] { 123 },
                            StringValues = new [] { "stringValues" }
                        },

                        // the properties below are optional
                        IncludeNullValue = false
                    },
                    SelectAllValueOptions = "selectAllValueOptions",
                    SourceColumn = new ColumnIdentifierProperty {
                        ColumnName = "columnName",

                        // the properties below are optional
                        DataSetIdentifier = "dataSetIdentifier",
                        TopicIdentifier = "topicIdentifier"
                    },
                    SourceField = "sourceField",
                    SourceParameterName = "sourceParameterName"
                }
            } }
        },
        UrlOperation = new CustomActionURLOperationProperty {
            UrlTarget = "urlTarget",
            UrlTemplate = "urlTemplate"
        }
    } },
    CustomActionId = "customActionId",
    Name = "name",
    Trigger = "trigger",

    // the properties below are optional
    Status = "status"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

layerCustomActionProperty := &LayerCustomActionProperty{
	ActionOperations: []interface{}{
		&LayerCustomActionOperationProperty{
			FilterOperation: &CustomActionFilterOperationProperty{
				SelectedFieldsConfiguration: &FilterOperationSelectedFieldsConfigurationProperty{
					SelectedColumns: []interface{}{
						&ColumnIdentifierProperty{
							ColumnName: jsii.String("columnName"),

							// the properties below are optional
							DataSetIdentifier: jsii.String("dataSetIdentifier"),
							TopicIdentifier: jsii.String("topicIdentifier"),
						},
					},
					SelectedFieldOptions: jsii.String("selectedFieldOptions"),
					SelectedFields: []*string{
						jsii.String("selectedFields"),
					},
				},
				TargetVisualsConfiguration: &FilterOperationTargetVisualsConfigurationProperty{
					SameSheetTargetVisualConfiguration: &SameSheetTargetVisualConfigurationProperty{
						TargetVisualOptions: jsii.String("targetVisualOptions"),
						TargetVisuals: []*string{
							jsii.String("targetVisuals"),
						},
					},
				},
			},
			NavigationOperation: &CustomActionNavigationOperationProperty{
				LocalNavigationConfiguration: &LocalNavigationConfigurationProperty{
					TargetSheetId: jsii.String("targetSheetId"),
				},
			},
			SetParametersOperation: &CustomActionSetParametersOperationProperty{
				ParameterValueConfigurations: []interface{}{
					&SetParameterValueConfigurationProperty{
						DestinationParameterName: jsii.String("destinationParameterName"),
						Value: &DestinationParameterValueConfigurationProperty{
							CustomValuesConfiguration: &CustomValuesConfigurationProperty{
								CustomValues: &CustomParameterValuesProperty{
									DateTimeValues: []*string{
										jsii.String("dateTimeValues"),
									},
									DecimalValues: []interface{}{
										jsii.Number(123),
									},
									IntegerValues: []interface{}{
										jsii.Number(123),
									},
									StringValues: []*string{
										jsii.String("stringValues"),
									},
								},

								// the properties below are optional
								IncludeNullValue: jsii.Boolean(false),
							},
							SelectAllValueOptions: jsii.String("selectAllValueOptions"),
							SourceColumn: &ColumnIdentifierProperty{
								ColumnName: jsii.String("columnName"),

								// the properties below are optional
								DataSetIdentifier: jsii.String("dataSetIdentifier"),
								TopicIdentifier: jsii.String("topicIdentifier"),
							},
							SourceField: jsii.String("sourceField"),
							SourceParameterName: jsii.String("sourceParameterName"),
						},
					},
				},
			},
			UrlOperation: &CustomActionURLOperationProperty{
				UrlTarget: jsii.String("urlTarget"),
				UrlTemplate: jsii.String("urlTemplate"),
			},
		},
	},
	CustomActionId: jsii.String("customActionId"),
	Name: jsii.String("name"),
	Trigger: jsii.String("trigger"),

	// the properties below are optional
	Status: jsii.String("status"),
}

Properties ​

actionOperationsIResolvable | IResolvable | CfnDashboard.LayerCustomActionOperationProperty[]action_operationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LayerCustomActionOperationProperty]]]actionOperationsIResolvableActionOperationsIResolvableActionOperationsinterface{}required#
A list of `LayerCustomActionOperations` .

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

customActionIdstringcustom_action_idstrcustomActionIdStringCustomActionIdstringCustomActionId*stringrequired#
The ID of the custom action.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the custom action.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string#
The status of the `LayerCustomAction` .
triggerstringtriggerstrtriggerStringTriggerstringTrigger*stringrequired#
The trigger of the `LayerCustomAction` .

Valid values are defined as follows:

  • DATA_POINT_CLICK : Initiates a custom action by a left pointer click on a data point.
  • DATA_POINT_MENU : Initiates a custom action by right pointer click from the menu.