Class: AWSCDK::AmplifyUIBuilder::CfnComponent::ComponentBindingPropertiesValuePropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify_ui_builder/cfn_component.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket: nil, default_value: nil, field: nil, key: nil, model: nil, predicates: nil, slot_name: nil, user_attribute: nil) ⇒ ComponentBindingPropertiesValuePropertiesProperty

Returns a new instance of ComponentBindingPropertiesValuePropertiesProperty.

Parameters:

  • bucket (String, nil) (defaults to: nil)

    An Amazon S3 bucket.

  • default_value (String, nil) (defaults to: nil)

    The default value to assign to the property.

  • field (String, nil) (defaults to: nil)

    The field to bind the data to.

  • key (String, nil) (defaults to: nil)

    The storage key for an Amazon S3 bucket.

  • model (String, nil) (defaults to: nil)

    An Amplify DataStore model.

  • predicates (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::AmplifyUIBuilder::CfnComponent::PredicateProperty>, nil) (defaults to: nil)

    A list of predicates for binding a component's properties to data.

  • slot_name (String, nil) (defaults to: nil)

    The name of a component slot.

  • user_attribute (String, nil) (defaults to: nil)

    An authenticated user attribute.



832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'amplify_ui_builder/cfn_component.rb', line 832

def initialize(bucket: nil, default_value: nil, field: nil, key: nil, model: nil, predicates: nil, slot_name: nil, user_attribute: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") unless @bucket.nil?
  @default_value = default_value
  Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil?
  @field = field
  Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "field") unless @field.nil?
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
  @model = model
  Jsii::Type.check_type(@model, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "model") unless @model.nil?
  @predicates = predicates
  Jsii::Type.check_type(@predicates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5Db21wb25lbnQuUHJlZGljYXRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "predicates") unless @predicates.nil?
  @slot_name = slot_name
  Jsii::Type.check_type(@slot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotName") unless @slot_name.nil?
  @user_attribute = user_attribute
  Jsii::Type.check_type(@user_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userAttribute") unless @user_attribute.nil?
end

Instance Attribute Details

#bucketString? (readonly)

An Amazon S3 bucket.



855
856
857
# File 'amplify_ui_builder/cfn_component.rb', line 855

def bucket
  @bucket
end

#default_valueString? (readonly)

The default value to assign to the property.



860
861
862
# File 'amplify_ui_builder/cfn_component.rb', line 860

def default_value
  @default_value
end

#fieldString? (readonly)

The field to bind the data to.



865
866
867
# File 'amplify_ui_builder/cfn_component.rb', line 865

def field
  @field
end

#keyString? (readonly)

The storage key for an Amazon S3 bucket.



870
871
872
# File 'amplify_ui_builder/cfn_component.rb', line 870

def key
  @key
end

#modelString? (readonly)

An Amplify DataStore model.



875
876
877
# File 'amplify_ui_builder/cfn_component.rb', line 875

def model
  @model
end

#predicatesAWSCDK::IResolvable, ... (readonly)

A list of predicates for binding a component's properties to data.



880
881
882
# File 'amplify_ui_builder/cfn_component.rb', line 880

def predicates
  @predicates
end

#slot_nameString? (readonly)

The name of a component slot.



885
886
887
# File 'amplify_ui_builder/cfn_component.rb', line 885

def slot_name
  @slot_name
end

#user_attributeString? (readonly)

An authenticated user attribute.



890
891
892
# File 'amplify_ui_builder/cfn_component.rb', line 890

def user_attribute
  @user_attribute
end

Class Method Details

.jsii_propertiesObject



892
893
894
895
896
897
898
899
900
901
902
903
# File 'amplify_ui_builder/cfn_component.rb', line 892

def self.jsii_properties
  {
    :bucket => "bucket",
    :default_value => "defaultValue",
    :field => "field",
    :key => "key",
    :model => "model",
    :predicates => "predicates",
    :slot_name => "slotName",
    :user_attribute => "userAttribute",
  }
end

Instance Method Details

#to_jsiiObject



905
906
907
908
909
910
911
912
913
914
915
916
917
918
# File 'amplify_ui_builder/cfn_component.rb', line 905

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "defaultValue" => @default_value,
    "field" => @field,
    "key" => @key,
    "model" => @model,
    "predicates" => @predicates,
    "slotName" => @slot_name,
    "userAttribute" => @user_attribute,
  })
  result.compact
end