Class: AWSCDK::KafkaConnect::CfnCustomPluginProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kafka_connect/cfn_custom_plugin_props.rb

Overview

Properties for defining a CfnCustomPlugin.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_type:, location:, name:, description: nil, tags: nil) ⇒ CfnCustomPluginProps

Returns a new instance of CfnCustomPluginProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 14

def initialize(content_type:, location:, name:, description: nil, tags: nil)
  @content_type = content_type
  Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType")
  @location = location.is_a?(Hash) ? ::AWSCDK::KafkaConnect::CfnCustomPlugin::CustomPluginLocationProperty.new(**location.transform_keys(&:to_sym)) : location
  Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rYWZrYWNvbm5lY3QuQ2ZuQ3VzdG9tUGx1Z2luLkN1c3RvbVBsdWdpbkxvY2F0aW9uUHJvcGVydHkifV19fQ==")), "location")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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

#content_typeString (readonly)

The format of the plugin file.



31
32
33
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 31

def content_type
  @content_type
end

#descriptionString? (readonly)

The description of the custom plugin.



46
47
48
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 46

def description
  @description
end

#nameString (readonly)

The name of the custom plugin.



41
42
43
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 41

def name
  @name
end

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

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



51
52
53
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 53

def self.jsii_properties
  {
    :content_type => "contentType",
    :location => "location",
    :name => "name",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "contentType" => @content_type,
    "location" => @location,
    "name" => @name,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end