Class: AWSCDK::AppSync::CfnDataSource::DynamoDBConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnDataSource::DynamoDBConfigProperty
- Defined in:
- app_sync/cfn_data_source.rb
Overview
The DynamoDBConfig property type specifies the AwsRegion and TableName for an Amazon DynamoDB table in your account for an AWS AppSync data source.
DynamoDBConfig is a property of the AWS::AppSync::DataSource property type.
Instance Attribute Summary collapse
-
#aws_region ⇒ String
readonly
The AWS Region.
-
#delta_sync_config ⇒ AWSCDK::IResolvable, ...
readonly
The
DeltaSyncConfigfor a versioned datasource. -
#table_name ⇒ String
readonly
The table name.
-
#use_caller_credentials ⇒ Boolean, ...
readonly
Set to
TRUEto use AWS Identity and Access Management with this data source. -
#versioned ⇒ Boolean, ...
readonly
Set to TRUE to use Conflict Detection and Resolution with this data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_region:, table_name:, delta_sync_config: nil, use_caller_credentials: nil, versioned: nil) ⇒ DynamoDBConfigProperty
constructor
A new instance of DynamoDBConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_region:, table_name:, delta_sync_config: nil, use_caller_credentials: nil, versioned: nil) ⇒ DynamoDBConfigProperty
Returns a new instance of DynamoDBConfigProperty.
830 831 832 833 834 835 836 837 838 839 840 841 |
# File 'app_sync/cfn_data_source.rb', line 830 def initialize(aws_region:, table_name:, delta_sync_config: nil, use_caller_credentials: nil, versioned: nil) @aws_region = aws_region Jsii::Type.check_type(@aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsRegion") @table_name = table_name Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName") @delta_sync_config = delta_sync_config.is_a?(Hash) ? ::AWSCDK::AppSync::CfnDataSource::DeltaSyncConfigProperty.new(**delta_sync_config.transform_keys(&:to_sym)) : delta_sync_config Jsii::Type.check_type(@delta_sync_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkRhdGFTb3VyY2UuRGVsdGFTeW5jQ29uZmlnUHJvcGVydHkifV19fQ==")), "deltaSyncConfig") unless @delta_sync_config.nil? @use_caller_credentials = use_caller_credentials Jsii::Type.check_type(@use_caller_credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "useCallerCredentials") unless @use_caller_credentials.nil? @versioned = versioned Jsii::Type.check_type(@versioned, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "versioned") unless @versioned.nil? end |
Instance Attribute Details
#aws_region ⇒ String (readonly)
The AWS Region.
847 848 849 |
# File 'app_sync/cfn_data_source.rb', line 847 def aws_region @aws_region end |
#delta_sync_config ⇒ AWSCDK::IResolvable, ... (readonly)
The DeltaSyncConfig for a versioned datasource.
857 858 859 |
# File 'app_sync/cfn_data_source.rb', line 857 def delta_sync_config @delta_sync_config end |
#table_name ⇒ String (readonly)
The table name.
852 853 854 |
# File 'app_sync/cfn_data_source.rb', line 852 def table_name @table_name end |
#use_caller_credentials ⇒ Boolean, ... (readonly)
Set to TRUE to use AWS Identity and Access Management with this data source.
862 863 864 |
# File 'app_sync/cfn_data_source.rb', line 862 def use_caller_credentials @use_caller_credentials end |
#versioned ⇒ Boolean, ... (readonly)
Set to TRUE to use Conflict Detection and Resolution with this data source.
867 868 869 |
# File 'app_sync/cfn_data_source.rb', line 867 def versioned @versioned end |
Class Method Details
.jsii_properties ⇒ Object
869 870 871 872 873 874 875 876 877 |
# File 'app_sync/cfn_data_source.rb', line 869 def self.jsii_properties { :aws_region => "awsRegion", :table_name => "tableName", :delta_sync_config => "deltaSyncConfig", :use_caller_credentials => "useCallerCredentials", :versioned => "versioned", } end |
Instance Method Details
#to_jsii ⇒ Object
879 880 881 882 883 884 885 886 887 888 889 |
# File 'app_sync/cfn_data_source.rb', line 879 def to_jsii result = {} result.merge!({ "awsRegion" => @aws_region, "tableName" => @table_name, "deltaSyncConfig" => @delta_sync_config, "useCallerCredentials" => @use_caller_credentials, "versioned" => @versioned, }) result.compact end |