Class: AWSCDK::Interfaces::AWSSecuritylake::AWSLogSourceReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSSecuritylake::AWSLogSourceReference
- Defined in:
- interfaces/aws_securitylake/aws_log_source_reference.rb
Overview
A reference to a AwsLogSource resource.
Instance Attribute Summary collapse
-
#source_name ⇒ String
readonly
The SourceName of the AwsLogSource resource.
-
#source_version ⇒ String
readonly
The SourceVersion of the AwsLogSource resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source_name:, source_version:) ⇒ AWSLogSourceReference
constructor
A new instance of AWSLogSourceReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source_name:, source_version:) ⇒ AWSLogSourceReference
Returns a new instance of AWSLogSourceReference.
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_name ⇒ String (readonly)
The SourceName of the AwsLogSource resource.
19 20 21 |
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 19 def source_name @source_name end |
#source_version ⇒ String (readonly)
The SourceVersion of the AwsLogSource resource.
23 24 25 |
# File 'interfaces/aws_securitylake/aws_log_source_reference.rb', line 23 def source_version @source_version end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |