Class: AWSCDK::Glue::CfnIntegrationResourcePropertyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_integration_resource_property_props.rb

Overview

Properties for defining a CfnIntegrationResourceProperty.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, source_processing_properties: nil, tags: nil, target_processing_properties: nil) ⇒ CfnIntegrationResourcePropertyProps

Returns a new instance of CfnIntegrationResourcePropertyProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'glue/cfn_integration_resource_property_props.rb', line 13

def initialize(resource_arn:, source_processing_properties: nil, tags: nil, target_processing_properties: nil)
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
  @source_processing_properties = source_processing_properties.is_a?(Hash) ? ::AWSCDK::Glue::CfnIntegrationResourceProperty::SourceProcessingPropertiesProperty.new(**source_processing_properties.transform_keys(&:to_sym)) : source_processing_properties
  Jsii::Type.check_type(@source_processing_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmbkludGVncmF0aW9uUmVzb3VyY2VQcm9wZXJ0eS5Tb3VyY2VQcm9jZXNzaW5nUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "sourceProcessingProperties") unless @source_processing_properties.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?
  @target_processing_properties = target_processing_properties.is_a?(Hash) ? ::AWSCDK::Glue::CfnIntegrationResourceProperty::TargetProcessingPropertiesProperty.new(**target_processing_properties.transform_keys(&:to_sym)) : target_processing_properties
  Jsii::Type.check_type(@target_processing_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmbkludGVncmF0aW9uUmVzb3VyY2VQcm9wZXJ0eS5UYXJnZXRQcm9jZXNzaW5nUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "targetProcessingProperties") unless @target_processing_properties.nil?
end

Instance Attribute Details

#resource_arnString (readonly)

The connection ARN of the source, or the database ARN of the target.



28
29
30
# File 'glue/cfn_integration_resource_property_props.rb', line 28

def resource_arn
  @resource_arn
end

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

The resource properties associated with the integration source.



33
34
35
# File 'glue/cfn_integration_resource_property_props.rb', line 33

def source_processing_properties
  @source_processing_properties
end

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

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



38
39
40
# File 'glue/cfn_integration_resource_property_props.rb', line 38

def tags
  @tags
end

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

The structure used to define the resource properties associated with the integration target.



43
44
45
# File 'glue/cfn_integration_resource_property_props.rb', line 43

def target_processing_properties
  @target_processing_properties
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'glue/cfn_integration_resource_property_props.rb', line 45

def self.jsii_properties
  {
    :resource_arn => "resourceArn",
    :source_processing_properties => "sourceProcessingProperties",
    :tags => "tags",
    :target_processing_properties => "targetProcessingProperties",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'glue/cfn_integration_resource_property_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "resourceArn" => @resource_arn,
    "sourceProcessingProperties" => @source_processing_properties,
    "tags" => @tags,
    "targetProcessingProperties" => @target_processing_properties,
  })
  result.compact
end