Class: AWSCDK::CloudFront::CfnRealtimeLogConfig::KinesisStreamConfigProperty

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, stream_arn:) ⇒ KinesisStreamConfigProperty

Returns a new instance of KinesisStreamConfigProperty.

Parameters:

  • role_arn (String)

    The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.

  • stream_arn (String)

    The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.



594
595
596
597
598
599
# File 'cloud_front/cfn_realtime_log_config.rb', line 594

def initialize(role_arn:, stream_arn:)
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @stream_arn = stream_arn
  Jsii::Type.check_type(@stream_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamArn")
end

Instance Attribute Details

#role_arnString (readonly)

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.

For more information the IAM role, see Real-time log configuration IAM role in the Amazon CloudFront Developer Guide .



607
608
609
# File 'cloud_front/cfn_realtime_log_config.rb', line 607

def role_arn
  @role_arn
end

#stream_arnString (readonly)

The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.



612
613
614
# File 'cloud_front/cfn_realtime_log_config.rb', line 612

def stream_arn
  @stream_arn
end

Class Method Details

.jsii_propertiesObject



614
615
616
617
618
619
# File 'cloud_front/cfn_realtime_log_config.rb', line 614

def self.jsii_properties
  {
    :role_arn => "roleArn",
    :stream_arn => "streamArn",
  }
end

Instance Method Details

#to_jsiiObject



621
622
623
624
625
626
627
628
# File 'cloud_front/cfn_realtime_log_config.rb', line 621

def to_jsii
  result = {}
  result.merge!({
    "roleArn" => @role_arn,
    "streamArn" => @stream_arn,
  })
  result.compact
end