Class: AWSCDK::SecurityLake::CfnSubscriber::AWSLogSourceProperty

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

Overview

Adds a natively supported AWS service as an Amazon Security Lake source.

Enables source types for member accounts in required AWS Regions, based on the parameters you specify. You can choose any source type in any Region for either accounts that are part of a trusted organization or standalone accounts. Once you add an AWS service as a source, Security Lake starts collecting logs and events from it.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_name: nil, source_version: nil) ⇒ AWSLogSourceProperty

Returns a new instance of AWSLogSourceProperty.

Parameters:

  • source_name (String, nil) (defaults to: nil)

    Source name of the natively supported AWS service that is supported as an Amazon Security Lake source.

  • source_version (String, nil) (defaults to: nil)

    Source version of the natively supported AWS service that is supported as an Amazon Security Lake source.



633
634
635
636
637
638
# File 'security_lake/cfn_subscriber.rb', line 633

def initialize(source_name: nil, source_version: nil)
  @source_name = source_name
  Jsii::Type.check_type(@source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceName") unless @source_name.nil?
  @source_version = source_version
  Jsii::Type.check_type(@source_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceVersion") unless @source_version.nil?
end

Instance Attribute Details

#source_nameString? (readonly)

Source name of the natively supported AWS service that is supported as an Amazon Security Lake source.

For the list of sources supported by Amazon Security Lake see Collecting data from AWS services in the Amazon Security Lake User Guide.



646
647
648
# File 'security_lake/cfn_subscriber.rb', line 646

def source_name
  @source_name
end

#source_versionString? (readonly)

Source version of the natively supported AWS service that is supported as an Amazon Security Lake source.

For more details about source versions supported by Amazon Security Lake see OCSF source identification in the Amazon Security Lake User Guide.



653
654
655
# File 'security_lake/cfn_subscriber.rb', line 653

def source_version
  @source_version
end

Class Method Details

.jsii_propertiesObject



655
656
657
658
659
660
# File 'security_lake/cfn_subscriber.rb', line 655

def self.jsii_properties
  {
    :source_name => "sourceName",
    :source_version => "sourceVersion",
  }
end

Instance Method Details

#to_jsiiObject



662
663
664
665
666
667
668
669
# File 'security_lake/cfn_subscriber.rb', line 662

def to_jsii
  result = {}
  result.merge!({
    "sourceName" => @source_name,
    "sourceVersion" => @source_version,
  })
  result.compact
end