Class: AWSCDK::GuardDuty::CfnDetector::CFNDataSourceConfigurationsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnDetector::CFNDataSourceConfigurationsProperty
- Defined in:
- guard_duty/cfn_detector.rb
Overview
Describes whether S3 data event logs, Kubernetes audit logs, or Malware Protection will be enabled as a data source when the detector is created.
Instance Attribute Summary collapse
-
#kubernetes ⇒ AWSCDK::IResolvable, ...
readonly
Describes which Kubernetes data sources are enabled for a detector.
-
#malware_protection ⇒ AWSCDK::IResolvable, ...
readonly
Describes whether Malware Protection will be enabled as a data source.
-
#s3_logs ⇒ AWSCDK::IResolvable, ...
readonly
Describes whether S3 data event logs are enabled as a data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kubernetes: nil, malware_protection: nil, s3_logs: nil) ⇒ CFNDataSourceConfigurationsProperty
constructor
A new instance of CFNDataSourceConfigurationsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kubernetes: nil, malware_protection: nil, s3_logs: nil) ⇒ CFNDataSourceConfigurationsProperty
Returns a new instance of CFNDataSourceConfigurationsProperty.
589 590 591 592 593 594 595 596 |
# File 'guard_duty/cfn_detector.rb', line 589 def initialize(kubernetes: nil, malware_protection: nil, s3_logs: nil) @kubernetes = kubernetes.is_a?(Hash) ? ::AWSCDK::GuardDuty::CfnDetector::CFNKubernetesConfigurationProperty.new(**kubernetes.transform_keys(&:to_sym)) : kubernetes Jsii::Type.check_type(@kubernetes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ndWFyZGR1dHkuQ2ZuRGV0ZWN0b3IuQ0ZOS3ViZXJuZXRlc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "kubernetes") unless @kubernetes.nil? @malware_protection = malware_protection.is_a?(Hash) ? ::AWSCDK::GuardDuty::CfnDetector::CFNMalwareProtectionConfigurationProperty.new(**malware_protection.transform_keys(&:to_sym)) : malware_protection Jsii::Type.check_type(@malware_protection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ndWFyZGR1dHkuQ2ZuRGV0ZWN0b3IuQ0ZOTWFsd2FyZVByb3RlY3Rpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "malwareProtection") unless @malware_protection.nil? @s3_logs = s3_logs.is_a?(Hash) ? ::AWSCDK::GuardDuty::CfnDetector::CFNS3LogsConfigurationProperty.new(**s3_logs.transform_keys(&:to_sym)) : s3_logs Jsii::Type.check_type(@s3_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ndWFyZGR1dHkuQ2ZuRGV0ZWN0b3IuQ0ZOUzNMb2dzQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "s3Logs") unless @s3_logs.nil? end |
Instance Attribute Details
#kubernetes ⇒ AWSCDK::IResolvable, ... (readonly)
Describes which Kubernetes data sources are enabled for a detector.
602 603 604 |
# File 'guard_duty/cfn_detector.rb', line 602 def kubernetes @kubernetes end |
#malware_protection ⇒ AWSCDK::IResolvable, ... (readonly)
Describes whether Malware Protection will be enabled as a data source.
607 608 609 |
# File 'guard_duty/cfn_detector.rb', line 607 def malware_protection @malware_protection end |
#s3_logs ⇒ AWSCDK::IResolvable, ... (readonly)
Describes whether S3 data event logs are enabled as a data source.
612 613 614 |
# File 'guard_duty/cfn_detector.rb', line 612 def s3_logs @s3_logs end |
Class Method Details
.jsii_properties ⇒ Object
614 615 616 617 618 619 620 |
# File 'guard_duty/cfn_detector.rb', line 614 def self.jsii_properties { :kubernetes => "kubernetes", :malware_protection => "malwareProtection", :s3_logs => "s3Logs", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 629 630 |
# File 'guard_duty/cfn_detector.rb', line 622 def to_jsii result = {} result.merge!({ "kubernetes" => @kubernetes, "malwareProtection" => @malware_protection, "s3Logs" => @s3_logs, }) result.compact end |