Class: AWSCDK::AppIntegrations::CfnDataIntegrationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_integrations/cfn_data_integration_props.rb

Overview

Properties for defining a CfnDataIntegration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_key:, name:, source_uri:, description: nil, file_configuration: nil, object_configuration: nil, schedule_config: nil, tags: nil) ⇒ CfnDataIntegrationProps

Returns a new instance of CfnDataIntegrationProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'app_integrations/cfn_data_integration_props.rb', line 17

def initialize(kms_key:, name:, source_uri:, description: nil, file_configuration: nil, object_configuration: nil, schedule_config: nil, tags: nil)
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKey")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @source_uri = source_uri
  Jsii::Type.check_type(@source_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceUri")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @file_configuration = file_configuration.is_a?(Hash) ? ::AWSCDK::AppIntegrations::CfnDataIntegration::FileConfigurationProperty.new(**file_configuration.transform_keys(&:to_sym)) : file_configuration
  Jsii::Type.check_type(@file_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBpbnRlZ3JhdGlvbnMuQ2ZuRGF0YUludGVncmF0aW9uLkZpbGVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "fileConfiguration") unless @file_configuration.nil?
  @object_configuration = object_configuration
  Jsii::Type.check_type(@object_configuration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "objectConfiguration") unless @object_configuration.nil?
  @schedule_config = schedule_config.is_a?(Hash) ? ::AWSCDK::AppIntegrations::CfnDataIntegration::ScheduleConfigProperty.new(**schedule_config.transform_keys(&:to_sym)) : schedule_config
  Jsii::Type.check_type(@schedule_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBpbnRlZ3JhdGlvbnMuQ2ZuRGF0YUludGVncmF0aW9uLlNjaGVkdWxlQ29uZmlnUHJvcGVydHkifV19fQ==")), "scheduleConfig") unless @schedule_config.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description of the DataIntegration.



55
56
57
# File 'app_integrations/cfn_data_integration_props.rb', line 55

def description
  @description
end

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

The configuration for what files should be pulled from the source.



60
61
62
# File 'app_integrations/cfn_data_integration_props.rb', line 60

def file_configuration
  @file_configuration
end

#kms_keyString (readonly)

The KMS key for the DataIntegration.



40
41
42
# File 'app_integrations/cfn_data_integration_props.rb', line 40

def kms_key
  @kms_key
end

#nameString (readonly)

The name of the DataIntegration.



45
46
47
# File 'app_integrations/cfn_data_integration_props.rb', line 45

def name
  @name
end

#object_configurationObject? (readonly)

The configuration for what data should be pulled from the source.



65
66
67
# File 'app_integrations/cfn_data_integration_props.rb', line 65

def object_configuration
  @object_configuration
end

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

The name of the data and how often it should be pulled from the source.



70
71
72
# File 'app_integrations/cfn_data_integration_props.rb', line 70

def schedule_config
  @schedule_config
end

#source_uriString (readonly)

The URI of the data source.



50
51
52
# File 'app_integrations/cfn_data_integration_props.rb', line 50

def source_uri
  @source_uri
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



77
78
79
# File 'app_integrations/cfn_data_integration_props.rb', line 77

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



79
80
81
82
83
84
85
86
87
88
89
90
# File 'app_integrations/cfn_data_integration_props.rb', line 79

def self.jsii_properties
  {
    :kms_key => "kmsKey",
    :name => "name",
    :source_uri => "sourceUri",
    :description => "description",
    :file_configuration => "fileConfiguration",
    :object_configuration => "objectConfiguration",
    :schedule_config => "scheduleConfig",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'app_integrations/cfn_data_integration_props.rb', line 92

def to_jsii
  result = {}
  result.merge!({
    "kmsKey" => @kms_key,
    "name" => @name,
    "sourceUri" => @source_uri,
    "description" => @description,
    "fileConfiguration" => @file_configuration,
    "objectConfiguration" => @object_configuration,
    "scheduleConfig" => @schedule_config,
    "tags" => @tags,
  })
  result.compact
end