Class: AWSCDK::AmplifyUIBuilder::CfnForm::FormDataTypeConfigProperty

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

Overview

The FormDataTypeConfig property specifies the data type configuration for the data source associated with a form.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_source_type:, data_type_name:) ⇒ FormDataTypeConfigProperty

Returns a new instance of FormDataTypeConfigProperty.

Parameters:

  • data_source_type (String)

    The data source type, either an Amplify DataStore model or a custom data type.

  • data_type_name (String)

    The unique name of the data type you are using as the data source for the form.



1243
1244
1245
1246
1247
1248
# File 'amplify_ui_builder/cfn_form.rb', line 1243

def initialize(data_source_type:, data_type_name:)
  @data_source_type = data_source_type
  Jsii::Type.check_type(@data_source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSourceType")
  @data_type_name = data_type_name
  Jsii::Type.check_type(@data_type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataTypeName")
end

Instance Attribute Details

#data_source_typeString (readonly)

The data source type, either an Amplify DataStore model or a custom data type.



1254
1255
1256
# File 'amplify_ui_builder/cfn_form.rb', line 1254

def data_source_type
  @data_source_type
end

#data_type_nameString (readonly)

The unique name of the data type you are using as the data source for the form.



1259
1260
1261
# File 'amplify_ui_builder/cfn_form.rb', line 1259

def data_type_name
  @data_type_name
end

Class Method Details

.jsii_propertiesObject



1261
1262
1263
1264
1265
1266
# File 'amplify_ui_builder/cfn_form.rb', line 1261

def self.jsii_properties
  {
    :data_source_type => "dataSourceType",
    :data_type_name => "dataTypeName",
  }
end

Instance Method Details

#to_jsiiObject



1268
1269
1270
1271
1272
1273
1274
1275
# File 'amplify_ui_builder/cfn_form.rb', line 1268

def to_jsii
  result = {}
  result.merge!({
    "dataSourceType" => @data_source_type,
    "dataTypeName" => @data_type_name,
  })
  result.compact
end