Class: AWSCDK::KafkaConnect::CfnCustomPluginProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KafkaConnect::CfnCustomPluginProps
- Defined in:
- kafka_connect/cfn_custom_plugin_props.rb
Overview
Properties for defining a CfnCustomPlugin.
Instance Attribute Summary collapse
-
#content_type ⇒ String
readonly
The format of the plugin file.
-
#description ⇒ String?
readonly
The description of the custom plugin.
-
#location ⇒ AWSCDK::IResolvable, AWSCDK::KafkaConnect::CfnCustomPlugin::CustomPluginLocationProperty
readonly
Information about the location of the custom plugin.
-
#name ⇒ String
readonly
The name of the custom plugin.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content_type:, location:, name:, description: nil, tags: nil) ⇒ CfnCustomPluginProps
constructor
A new instance of CfnCustomPluginProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content_type:, location:, name:, description: nil, tags: nil) ⇒ CfnCustomPluginProps
Returns a new instance of CfnCustomPluginProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#content_type ⇒ String (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 |
#description ⇒ String? (readonly)
The description of the custom plugin.
46 47 48 |
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 46 def description @description end |
#location ⇒ AWSCDK::IResolvable, AWSCDK::KafkaConnect::CfnCustomPlugin::CustomPluginLocationProperty (readonly)
Information about the location of the custom plugin.
36 37 38 |
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 36 def location @location end |
#name ⇒ String (readonly)
The name of the custom plugin.
41 42 43 |
# File 'kafka_connect/cfn_custom_plugin_props.rb', line 41 def name @name end |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |