Interface CfnComponent.ActionParametersProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnComponent.ActionParametersProperty.Jsii$Proxy
Enclosing class:
CfnComponent

@Stability(Stable) public static interface CfnComponent.ActionParametersProperty extends software.amazon.jsii.JsiiSerializable
Represents the event action configuration for an element of a Component or ComponentChild .

Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components. ActionParameters defines the action that is performed when an event occurs on the component.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.amplifyuibuilder.*;
 ComponentPropertyProperty componentPropertyProperty_;
 ActionParametersProperty actionParametersProperty = ActionParametersProperty.builder()
         .anchor(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .fields(Map.of(
                 "fieldsKey", ComponentPropertyProperty.builder()
                         .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                                 .property("property")
                                 // the properties below are optional
                                 .field("field")
                                 .build())
                         .bindings(Map.of(
                                 "bindingsKey", FormBindingElementProperty.builder()
                                         .element("element")
                                         .property("property")
                                         .build()))
                         .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                                 .property("property")
                                 // the properties below are optional
                                 .field("field")
                                 .build())
                         .componentName("componentName")
                         .concat(List.of(componentPropertyProperty_))
                         .condition(ComponentConditionPropertyProperty.builder()
                                 .else(componentPropertyProperty_)
                                 .field("field")
                                 .operand("operand")
                                 .operandType("operandType")
                                 .operator("operator")
                                 .property("property")
                                 .then(componentPropertyProperty_)
                                 .build())
                         .configured(false)
                         .defaultValue("defaultValue")
                         .event("event")
                         .importedValue("importedValue")
                         .model("model")
                         .property("property")
                         .type("type")
                         .userAttribute("userAttribute")
                         .value("value")
                         .build()))
         .global(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .id(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .model("model")
         .state(MutationActionSetStateParameterProperty.builder()
                 .componentName("componentName")
                 .property("property")
                 .set(ComponentPropertyProperty.builder()
                         .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                                 .property("property")
                                 // the properties below are optional
                                 .field("field")
                                 .build())
                         .bindings(Map.of(
                                 "bindingsKey", FormBindingElementProperty.builder()
                                         .element("element")
                                         .property("property")
                                         .build()))
                         .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                                 .property("property")
                                 // the properties below are optional
                                 .field("field")
                                 .build())
                         .componentName("componentName")
                         .concat(List.of(componentPropertyProperty_))
                         .condition(ComponentConditionPropertyProperty.builder()
                                 .else(componentPropertyProperty_)
                                 .field("field")
                                 .operand("operand")
                                 .operandType("operandType")
                                 .operator("operator")
                                 .property("property")
                                 .then(componentPropertyProperty_)
                                 .build())
                         .configured(false)
                         .defaultValue("defaultValue")
                         .event("event")
                         .importedValue("importedValue")
                         .model("model")
                         .property("property")
                         .type("type")
                         .userAttribute("userAttribute")
                         .value("value")
                         .build())
                 .build())
         .target(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .type(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .url(ComponentPropertyProperty.builder()
                 .bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .bindings(Map.of(
                         "bindingsKey", FormBindingElementProperty.builder()
                                 .element("element")
                                 .property("property")
                                 .build()))
                 .collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
                         .property("property")
                         // the properties below are optional
                         .field("field")
                         .build())
                 .componentName("componentName")
                 .concat(List.of(componentPropertyProperty_))
                 .condition(ComponentConditionPropertyProperty.builder()
                         .else(componentPropertyProperty_)
                         .field("field")
                         .operand("operand")
                         .operandType("operandType")
                         .operator("operator")
                         .property("property")
                         .then(componentPropertyProperty_)
                         .build())
                 .configured(false)
                 .defaultValue("defaultValue")
                 .event("event")
                 .importedValue("importedValue")
                 .model("model")
                 .property("property")
                 .type("type")
                 .userAttribute("userAttribute")
                 .value("value")
                 .build())
         .build();
 
  • Method Details

    • getAnchor

      @Stability(Stable) @Nullable default Object getAnchor()
      The HTML anchor link to the location to open.

      Specify this value for a navigation action.

    • getFields

      @Stability(Stable) @Nullable default Object getFields()
      A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model.

      Use when the action performs an operation on an Amplify DataStore model.

    • getGlobal

      @Stability(Stable) @Nullable default Object getGlobal()
      Specifies whether the user should be signed out globally.

      Specify this value for an auth sign out action.

    • getId

      @Stability(Stable) @Nullable default Object getId()
      The unique ID of the component that the ActionParameters apply to.
    • getModel

      @Stability(Stable) @Nullable default String getModel()
      The name of the data model.

      Use when the action performs an operation on an Amplify DataStore model.

    • getState

      @Stability(Stable) @Nullable default Object getState()
      A key-value pair that specifies the state property name and its initial value.
    • getTarget

      @Stability(Stable) @Nullable default Object getTarget()
      The element within the same component to modify when the action occurs.
    • getType

      @Stability(Stable) @Nullable default Object getType()
      The type of navigation action.

      Valid values are url and anchor . This value is required for a navigation action.

    • getUrl

      @Stability(Stable) @Nullable default Object getUrl()
      The URL to the location to open.

      Specify this value for a navigation action.

    • builder

      @Stability(Stable) static CfnComponent.ActionParametersProperty.Builder builder()
      Returns:
      a CfnComponent.ActionParametersProperty.Builder of CfnComponent.ActionParametersProperty