Class: AWSCDK::SecurityLake::CfnAWSLogSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityLake::CfnAWSLogSourceProps
- Defined in:
- security_lake/cfn_aws_log_source_props.rb
Overview
Properties for defining a CfnAwsLogSource.
Instance Attribute Summary collapse
-
#accounts ⇒ Array<String>?
readonly
Specify the AWS account information where you want to enable Security Lake.
-
#data_lake_arn ⇒ String
readonly
The Amazon Resource Name (ARN) used to create the data lake.
-
#source_name ⇒ String
readonly
The name for a AWS source.
-
#source_version ⇒ String
readonly
The version for a AWS source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_lake_arn:, source_name:, source_version:, accounts: nil) ⇒ CfnAWSLogSourceProps
constructor
A new instance of CfnAWSLogSourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_lake_arn:, source_name:, source_version:, accounts: nil) ⇒ CfnAWSLogSourceProps
Returns a new instance of CfnAWSLogSourceProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 13 def initialize(data_lake_arn:, source_name:, source_version:, accounts: nil) @data_lake_arn = data_lake_arn Jsii::Type.check_type(@data_lake_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataLakeArn") @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") @accounts = accounts Jsii::Type.check_type(@accounts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accounts") unless @accounts.nil? end |
Instance Attribute Details
#accounts ⇒ Array<String>? (readonly)
Specify the AWS account information where you want to enable Security Lake.
47 48 49 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 47 def accounts @accounts end |
#data_lake_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) used to create the data lake.
28 29 30 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 28 def data_lake_arn @data_lake_arn end |
#source_name ⇒ String (readonly)
The name for a AWS source.
This must be a Regionally unique value. For the list of sources supported by Amazon Security Lake see Collecting data from AWS services in the Amazon Security Lake User Guide.
35 36 37 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 35 def source_name @source_name end |
#source_version ⇒ String (readonly)
The version for a AWS source.
For more details about source versions supported by Amazon Security Lake see OCSF source identification in the Amazon Security Lake User Guide. This must be a Regionally unique value.
42 43 44 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 42 def source_version @source_version end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 49 def self.jsii_properties { :data_lake_arn => "dataLakeArn", :source_name => "sourceName", :source_version => "sourceVersion", :accounts => "accounts", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'security_lake/cfn_aws_log_source_props.rb', line 58 def to_jsii result = {} result.merge!({ "dataLakeArn" => @data_lake_arn, "sourceName" => @source_name, "sourceVersion" => @source_version, "accounts" => @accounts, }) result.compact end |