Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::CustomArtifactConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application.rb

Overview

The configuration of connectors and user-defined functions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(artifact_type:, maven_reference: nil, s3_content_location: nil) ⇒ CustomArtifactConfigurationProperty

Returns a new instance of CustomArtifactConfigurationProperty.

Parameters:



1202
1203
1204
1205
1206
1207
1208
1209
# File 'kinesis_analyticsv2/cfn_application.rb', line 1202

def initialize(artifact_type:, maven_reference: nil, s3_content_location: nil)
  @artifact_type = artifact_type
  Jsii::Type.check_type(@artifact_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "artifactType")
  @maven_reference = maven_reference.is_a?(Hash) ? ::AWSCDK::KinesisAnalyticsv2::CfnApplication::MavenReferenceProperty.new(**maven_reference.transform_keys(&:to_sym)) : maven_reference
  Jsii::Type.check_type(@maven_reference, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb24uTWF2ZW5SZWZlcmVuY2VQcm9wZXJ0eSJ9XX19")), "mavenReference") unless @maven_reference.nil?
  @s3_content_location = s3_content_location.is_a?(Hash) ? ::AWSCDK::KinesisAnalyticsv2::CfnApplication::S3ContentLocationProperty.new(**s3_content_location.transform_keys(&:to_sym)) : s3_content_location
  Jsii::Type.check_type(@s3_content_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb24uUzNDb250ZW50TG9jYXRpb25Qcm9wZXJ0eSJ9XX19")), "s3ContentLocation") unless @s3_content_location.nil?
end

Instance Attribute Details

#artifact_typeString (readonly)

Set this to either UDF or DEPENDENCY_JAR .

UDF stands for user-defined functions. This type of artifact must be in an S3 bucket. A DEPENDENCY_JAR can be in either Maven or an S3 bucket.



1217
1218
1219
# File 'kinesis_analyticsv2/cfn_application.rb', line 1217

def artifact_type
  @artifact_type
end

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

The parameters required to fully specify a Maven reference.



1222
1223
1224
# File 'kinesis_analyticsv2/cfn_application.rb', line 1222

def maven_reference
  @maven_reference
end

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

The location of the custom artifacts.



1227
1228
1229
# File 'kinesis_analyticsv2/cfn_application.rb', line 1227

def s3_content_location
  @s3_content_location
end

Class Method Details

.jsii_propertiesObject



1229
1230
1231
1232
1233
1234
1235
# File 'kinesis_analyticsv2/cfn_application.rb', line 1229

def self.jsii_properties
  {
    :artifact_type => "artifactType",
    :maven_reference => "mavenReference",
    :s3_content_location => "s3ContentLocation",
  }
end

Instance Method Details

#to_jsiiObject



1237
1238
1239
1240
1241
1242
1243
1244
1245
# File 'kinesis_analyticsv2/cfn_application.rb', line 1237

def to_jsii
  result = {}
  result.merge!({
    "artifactType" => @artifact_type,
    "mavenReference" => @maven_reference,
    "s3ContentLocation" => @s3_content_location,
  })
  result.compact
end