Class: AWSCDK::SecurityLake::CfnSubscriber::SourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_lake/cfn_subscriber.rb

Overview

Sources are logs and events generated from a single system that match a specific event class in the Open Cybersecurity Schema Framework (OCSF) schema.

Amazon Security Lake can collect logs and events from a variety of sources, including natively supported AWS services and third-party custom sources.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_log_source: nil, custom_log_source: nil) ⇒ SourceProperty

Returns a new instance of SourceProperty.

Parameters:



727
728
729
730
731
732
# File 'security_lake/cfn_subscriber.rb', line 727

def initialize(aws_log_source: nil, custom_log_source: nil)
  @aws_log_source = aws_log_source.is_a?(Hash) ? ::AWSCDK::SecurityLake::CfnSubscriber::AWSLogSourceProperty.new(**aws_log_source.transform_keys(&:to_sym)) : aws_log_source
  Jsii::Type.check_type(@aws_log_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWxha2UuQ2ZuU3Vic2NyaWJlci5Bd3NMb2dTb3VyY2VQcm9wZXJ0eSJ9XX19")), "awsLogSource") unless @aws_log_source.nil?
  @custom_log_source = custom_log_source.is_a?(Hash) ? ::AWSCDK::SecurityLake::CfnSubscriber::CustomLogSourceProperty.new(**custom_log_source.transform_keys(&:to_sym)) : custom_log_source
  Jsii::Type.check_type(@custom_log_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWxha2UuQ2ZuU3Vic2NyaWJlci5DdXN0b21Mb2dTb3VyY2VQcm9wZXJ0eSJ9XX19")), "customLogSource") unless @custom_log_source.nil?
end

Instance Attribute Details

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

The natively supported AWS service which is used a Amazon Security Lake source to collect logs and events from.



738
739
740
# File 'security_lake/cfn_subscriber.rb', line 738

def aws_log_source
  @aws_log_source
end

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

The custom log source AWS which is used a Amazon Security Lake source to collect logs and events from.



743
744
745
# File 'security_lake/cfn_subscriber.rb', line 743

def custom_log_source
  @custom_log_source
end

Class Method Details

.jsii_propertiesObject



745
746
747
748
749
750
# File 'security_lake/cfn_subscriber.rb', line 745

def self.jsii_properties
  {
    :aws_log_source => "awsLogSource",
    :custom_log_source => "customLogSource",
  }
end

Instance Method Details

#to_jsiiObject



752
753
754
755
756
757
758
759
# File 'security_lake/cfn_subscriber.rb', line 752

def to_jsii
  result = {}
  result.merge!({
    "awsLogSource" => @aws_log_source,
    "customLogSource" => @custom_log_source,
  })
  result.compact
end