Class: AWSCDK::Interfaces::AWSSecuritylake::AWSLogSourceReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_securitylake/aws_log_source_reference.rb

Overview

A reference to a AwsLogSource resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_name:, source_version:) ⇒ AWSLogSourceReference

Returns a new instance of AWSLogSourceReference.

Parameters:

  • source_name (String)

    The SourceName of the AwsLogSource resource.

  • source_version (String)

    The SourceVersion of the AwsLogSource resource.



9
10
11
12
13
14
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 9

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

Instance Attribute Details

#source_nameString (readonly)

The SourceName of the AwsLogSource resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 19

def source_name
  @source_name
end

#source_versionString (readonly)

The SourceVersion of the AwsLogSource resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 23

def source_version
  @source_version
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 25

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

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 32

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