Skip to content
v2.278.0

ComponentBindingPropertiesValuePropertiesProperty Struct ​

The ComponentBindingPropertiesValueProperties property specifies the data binding configuration for a specific property using data stored in AWS .

For AWS connected properties, you can bind a property to data stored in an Amazon S3 bucket, an Amplify DataStore model or an authenticated user attribute.

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 predicateProperty_: amplifyuibuilder.CfnComponent.PredicateProperty;
const componentBindingPropertiesValuePropertiesProperty: amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValuePropertiesProperty = {
  bucket: 'bucket',
  defaultValue: 'defaultValue',
  field: 'field',
  key: 'key',
  model: 'model',
  predicates: [{
    and: [predicateProperty_],
    field: 'field',
    operand: 'operand',
    operandType: 'operandType',
    operator: 'operator',
    or: [predicateProperty_],
  }],
  slotName: 'slotName',
  userAttribute: 'userAttribute',
};
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

# predicate_property_: amplifyuibuilder.CfnComponent.PredicateProperty

component_binding_properties_value_properties_property = amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValuePropertiesProperty(
    bucket="bucket",
    default_value="defaultValue",
    field="field",
    key="key",
    model="model",
    predicates=[amplifyuibuilder.CfnComponent.PredicateProperty(
        and=[predicate_property_],
        field="field",
        operand="operand",
        operand_type="operandType",
        operator="operator",
        or=[predicate_property_]
    )],
    slot_name="slotName",
    user_attribute="userAttribute"
)
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.*;

PredicateProperty predicateProperty_;

ComponentBindingPropertiesValuePropertiesProperty componentBindingPropertiesValuePropertiesProperty = ComponentBindingPropertiesValuePropertiesProperty.builder()
        .bucket("bucket")
        .defaultValue("defaultValue")
        .field("field")
        .key("key")
        .model("model")
        .predicates(List.of(PredicateProperty.builder()
                .and(List.of(predicateProperty_))
                .field("field")
                .operand("operand")
                .operandType("operandType")
                .operator("operator")
                .or(List.of(predicateProperty_))
                .build()))
        .slotName("slotName")
        .userAttribute("userAttribute")
        .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;

PredicateProperty predicateProperty_;

var componentBindingPropertiesValuePropertiesProperty = new ComponentBindingPropertiesValuePropertiesProperty {
    Bucket = "bucket",
    DefaultValue = "defaultValue",
    Field = "field",
    Key = "key",
    Model = "model",
    Predicates = new [] { new PredicateProperty {
        And = new [] { predicateProperty_ },
        Field = "field",
        Operand = "operand",
        OperandType = "operandType",
        Operator = "operator",
        Or = new [] { predicateProperty_ }
    } },
    SlotName = "slotName",
    UserAttribute = "userAttribute"
};
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 predicateProperty_ PredicateProperty

componentBindingPropertiesValuePropertiesProperty := &ComponentBindingPropertiesValuePropertiesProperty{
	Bucket: jsii.String("bucket"),
	DefaultValue: jsii.String("defaultValue"),
	Field: jsii.String("field"),
	Key: jsii.String("key"),
	Model: jsii.String("model"),
	Predicates: []interface{}{
		&PredicateProperty{
			And: []interface{}{
				predicateProperty_,
			},
			Field: jsii.String("field"),
			Operand: jsii.String("operand"),
			OperandType: jsii.String("operandType"),
			Operator: jsii.String("operator"),
			Or: []interface{}{
				predicateProperty_,
			},
		},
	},
	SlotName: jsii.String("slotName"),
	UserAttribute: jsii.String("userAttribute"),
}

Properties ​

bucketoptionalstringbucketoptionalstrbucketoptionalStringBucketoptionalstringBucketoptional*string #
An Amazon S3 bucket.
defaultValueoptionalstringdefault_valueoptionalstrdefaultValueoptionalStringDefaultValueoptionalstringDefaultValueoptional*string #
The default value to assign to the property.
fieldoptionalstringfieldoptionalstrfieldoptionalStringFieldoptionalstringFieldoptional*string #
The field to bind the data to.
keyoptionalstringkeyoptionalstrkeyoptionalStringKeyoptionalstringKeyoptional*string #
The storage key for an Amazon S3 bucket.
modeloptionalstringmodeloptionalstrmodeloptionalStringModeloptionalstringModeloptional*string #
An Amplify DataStore model.
predicatesoptionalIResolvable | IResolvable | CfnComponent.PredicateProperty[]predicatesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PredicateProperty]]]predicatesoptionalIResolvablePredicatesoptionalIResolvablePredicatesoptionalinterface{} #
A list of predicates for binding a component's properties to data.
slotNameoptionalstringslot_nameoptionalstrslotNameoptionalStringSlotNameoptionalstringSlotNameoptional*string #
The name of a component slot.
userAttributeoptionalstringuser_attributeoptionalstruserAttributeoptionalStringUserAttributeoptionalstringUserAttributeoptional*string #
An authenticated user attribute.