Class: AWSCDK::CloudFront::CfnRealtimeLogConfig::EndPointProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_realtime_log_config.rb

Overview

Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kinesis_stream_config:, stream_type:) ⇒ EndPointProperty

Returns a new instance of EndPointProperty.

Parameters:



549
550
551
552
553
554
# File 'cloud_front/cfn_realtime_log_config.rb', line 549

def initialize(kinesis_stream_config:, stream_type:)
  @kinesis_stream_config = kinesis_stream_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnRealtimeLogConfig::KinesisStreamConfigProperty.new(**kinesis_stream_config.transform_keys(&:to_sym)) : kinesis_stream_config
  Jsii::Type.check_type(@kinesis_stream_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmblJlYWx0aW1lTG9nQ29uZmlnLktpbmVzaXNTdHJlYW1Db25maWdQcm9wZXJ0eSJ9XX19")), "kinesisStreamConfig")
  @stream_type = stream_type
  Jsii::Type.check_type(@stream_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamType")
end

Instance Attribute Details

#kinesis_stream_configAWSCDK::IResolvable, AWSCDK::CloudFront::CfnRealtimeLogConfig::KinesisStreamConfigProperty (readonly)

Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.



560
561
562
# File 'cloud_front/cfn_realtime_log_config.rb', line 560

def kinesis_stream_config
  @kinesis_stream_config
end

#stream_typeString (readonly)

The type of data stream where you are sending real-time log data.

The only valid value is Kinesis .



567
568
569
# File 'cloud_front/cfn_realtime_log_config.rb', line 567

def stream_type
  @stream_type
end

Class Method Details

.jsii_propertiesObject



569
570
571
572
573
574
# File 'cloud_front/cfn_realtime_log_config.rb', line 569

def self.jsii_properties
  {
    :kinesis_stream_config => "kinesisStreamConfig",
    :stream_type => "streamType",
  }
end

Instance Method Details

#to_jsiiObject



576
577
578
579
580
581
582
583
# File 'cloud_front/cfn_realtime_log_config.rb', line 576

def to_jsii
  result = {}
  result.merge!({
    "kinesisStreamConfig" => @kinesis_stream_config,
    "streamType" => @stream_type,
  })
  result.compact
end