Skip to content
v2.278.0

MutationActionSetStateParameterProperty Struct ​

Represents the state configuration when an action modifies a property of another element within the same component.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';

declare const componentPropertyProperty_: amplifyuibuilder.CfnComponent.ComponentPropertyProperty;
const mutationActionSetStateParameterProperty: amplifyuibuilder.CfnComponent.MutationActionSetStateParameterProperty = {
  componentName: 'componentName',
  property: 'property',
  set: {
    bindingProperties: {
      property: 'property',

      // the properties below are optional
      field: 'field',
    },
    bindings: {
      bindingsKey: {
        element: 'element',
        property: 'property',
      },
    },
    collectionBindingProperties: {
      property: 'property',

      // the properties below are optional
      field: 'field',
    },
    componentName: 'componentName',
    concat: [componentPropertyProperty_],
    condition: {
      else: componentPropertyProperty_,
      field: 'field',
      operand: 'operand',
      operandType: 'operandType',
      operator: 'operator',
      property: 'property',
      then: componentPropertyProperty_,
    },
    configured: false,
    defaultValue: 'defaultValue',
    event: 'event',
    importedValue: 'importedValue',
    model: 'model',
    property: 'property',
    type: 'type',
    userAttribute: 'userAttribute',
    value: 'value',
  },
};
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_amplifyuibuilder as amplifyuibuilder

# component_property_property_: amplifyuibuilder.CfnComponent.ComponentPropertyProperty

mutation_action_set_state_parameter_property = amplifyuibuilder.CfnComponent.MutationActionSetStateParameterProperty(
    component_name="componentName",
    property="property",
    set=amplifyuibuilder.CfnComponent.ComponentPropertyProperty(
        binding_properties=amplifyuibuilder.CfnComponent.ComponentPropertyBindingPropertiesProperty(
            property="property",

            # the properties below are optional
            field="field"
        ),
        bindings={
            "bindings_key": amplifyuibuilder.CfnComponent.FormBindingElementProperty(
                element="element",
                property="property"
            )
        },
        collection_binding_properties=amplifyuibuilder.CfnComponent.ComponentPropertyBindingPropertiesProperty(
            property="property",

            # the properties below are optional
            field="field"
        ),
        component_name="componentName",
        concat=[component_property_property_],
        condition=amplifyuibuilder.CfnComponent.ComponentConditionPropertyProperty(
            else=component_property_property_,
            field="field",
            operand="operand",
            operand_type="operandType",
            operator="operator",
            property="property",
            then=component_property_property_
        ),
        configured=False,
        default_value="defaultValue",
        event="event",
        imported_value="importedValue",
        model="model",
        property="property",
        type="type",
        user_attribute="userAttribute",
        value="value"
    )
)
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.amplifyuibuilder.*;

ComponentPropertyProperty componentPropertyProperty_;

MutationActionSetStateParameterProperty mutationActionSetStateParameterProperty = 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();
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.AmplifyUIBuilder;

ComponentPropertyProperty componentPropertyProperty_;

var mutationActionSetStateParameterProperty = new MutationActionSetStateParameterProperty {
    ComponentName = "componentName",
    Property = "property",
    Set = new ComponentPropertyProperty {
        BindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        Bindings = new Dictionary<string, object> {
            { "bindingsKey", new FormBindingElementProperty {
                Element = "element",
                Property = "property"
            } }
        },
        CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        ComponentName = "componentName",
        Concat = new [] { componentPropertyProperty_ },
        Condition = new ComponentConditionPropertyProperty {
            Else = componentPropertyProperty_,
            Field = "field",
            Operand = "operand",
            OperandType = "operandType",
            Operator = "operator",
            Property = "property",
            Then = componentPropertyProperty_
        },
        Configured = false,
        DefaultValue = "defaultValue",
        Event = "event",
        ImportedValue = "importedValue",
        Model = "model",
        Property = "property",
        Type = "type",
        UserAttribute = "userAttribute",
        Value = "value"
    }
};
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"

var componentPropertyProperty_ ComponentPropertyProperty

mutationActionSetStateParameterProperty := &MutationActionSetStateParameterProperty{
	ComponentName: jsii.String("componentName"),
	Property: jsii.String("property"),
	Set: &ComponentPropertyProperty{
		BindingProperties: &ComponentPropertyBindingPropertiesProperty{
			Property: jsii.String("property"),

			// the properties below are optional
			Field: jsii.String("field"),
		},
		Bindings: map[string]interface{}{
			"bindingsKey": &FormBindingElementProperty{
				"element": jsii.String("element"),
				"property": jsii.String("property"),
			},
		},
		CollectionBindingProperties: &ComponentPropertyBindingPropertiesProperty{
			Property: jsii.String("property"),

			// the properties below are optional
			Field: jsii.String("field"),
		},
		ComponentName: jsii.String("componentName"),
		Concat: []interface{}{
			componentPropertyProperty_,
		},
		Condition: &ComponentConditionPropertyProperty{
			Else: componentPropertyProperty_,
			Field: jsii.String("field"),
			Operand: jsii.String("operand"),
			OperandType: jsii.String("operandType"),
			Operator: jsii.String("operator"),
			Property: jsii.String("property"),
			Then: componentPropertyProperty_,
		},
		Configured: jsii.Boolean(false),
		DefaultValue: jsii.String("defaultValue"),
		Event: jsii.String("event"),
		ImportedValue: jsii.String("importedValue"),
		Model: jsii.String("model"),
		Property: jsii.String("property"),
		Type: jsii.String("type"),
		UserAttribute: jsii.String("userAttribute"),
		Value: jsii.String("value"),
	},
}

Properties ​

componentNamestringcomponent_namestrcomponentNameStringComponentNamestringComponentName*string required #
The name of the component that is being modified.
propertystringpropertystrpropertyStringPropertystringProperty*string required #
The name of the component property to apply the state configuration to.
The state configuration to assign to the property.