Class: AWSCDK::SecurityLake::CfnAWSLogSourceProps

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

Overview

Properties for defining a CfnAwsLogSource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_lake_arn:, source_name:, source_version:, accounts: nil) ⇒ CfnAWSLogSourceProps

Returns a new instance of CfnAWSLogSourceProps.

Parameters:

  • data_lake_arn (String)

    The Amazon Resource Name (ARN) used to create the data lake.

  • source_name (String)

    The name for a AWS source.

  • source_version (String)

    The version for a AWS source.

  • accounts (Array<String>, nil) (defaults to: nil)

    Specify the AWS account information where you want to enable Security Lake.



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

#accountsArray<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_arnString (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_nameString (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_versionString (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_propertiesObject



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_jsiiObject



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