ImageCustomActionProperty Struct
A custom action defined on an image.
| Source | |
|---|---|
| Type last changed |
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 imageCustomActionProperty: quicksight.CfnAnalysis.ImageCustomActionProperty = {
actionOperations: [{
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
image_custom_action_property = quicksight.CfnAnalysis.ImageCustomActionProperty(
action_operations=[quicksight.CfnAnalysis.ImageCustomActionOperationProperty(
navigation_operation=quicksight.CfnAnalysis.CustomActionNavigationOperationProperty(
local_navigation_configuration=quicksight.CfnAnalysis.LocalNavigationConfigurationProperty(
target_sheet_id="targetSheetId"
)
),
set_parameters_operation=quicksight.CfnAnalysis.CustomActionSetParametersOperationProperty(
parameter_value_configurations=[quicksight.CfnAnalysis.SetParameterValueConfigurationProperty(
destination_parameter_name="destinationParameterName",
value=quicksight.CfnAnalysis.DestinationParameterValueConfigurationProperty(
custom_values_configuration=quicksight.CfnAnalysis.CustomValuesConfigurationProperty(
custom_values=quicksight.CfnAnalysis.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.CfnAnalysis.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.CfnAnalysis.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.*;
ImageCustomActionProperty imageCustomActionProperty = ImageCustomActionProperty.builder()
.actionOperations(List.of(ImageCustomActionOperationProperty.builder()
.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 imageCustomActionProperty = new ImageCustomActionProperty {
ActionOperations = new [] { new ImageCustomActionOperationProperty {
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"
imageCustomActionProperty := &ImageCustomActionProperty{
ActionOperations: []interface{}{
&ImageCustomActionOperationProperty{
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 | CfnAnalysis.action_operationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ImageCustomActionOperationProperty]]]actionOperationsIResolvableActionOperationsIResolvableActionOperationsinterface{} required #A list of `ImageCustomActionOperations` .
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
customActionIdstringcustom_action_idstrcustomActionIdStringCustomActionIdstringCustomActionId*string required #The ID of the custom action.
The name of the custom action.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #The status of the custom action.
The trigger of the `VisualCustomAction` .
Valid values are defined as follows:
CLICK: Initiates a custom action by a left pointer click on a data point.MENU: Initiates a custom action by right pointer click from the menu.