Class: AWSCDK::GuardDuty::CfnDetector::CFNKubernetesConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnDetector::CFNKubernetesConfigurationProperty
- Defined in:
- guard_duty/cfn_detector.rb
Overview
Describes which Kubernetes protection data sources are enabled for the detector.
Instance Attribute Summary collapse
-
#audit_logs ⇒ AWSCDK::IResolvable, AWSCDK::GuardDuty::CfnDetector::CFNKubernetesAuditLogsConfigurationProperty
readonly
Describes whether Kubernetes audit logs are enabled as a data source for the detector.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audit_logs:) ⇒ CFNKubernetesConfigurationProperty
constructor
A new instance of CFNKubernetesConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(audit_logs:) ⇒ CFNKubernetesConfigurationProperty
Returns a new instance of CFNKubernetesConfigurationProperty.
771 772 773 774 |
# File 'guard_duty/cfn_detector.rb', line 771 def initialize(audit_logs:) @audit_logs = audit_logs.is_a?(Hash) ? ::AWSCDK::GuardDuty::CfnDetector::CFNKubernetesAuditLogsConfigurationProperty.new(**audit_logs.transform_keys(&:to_sym)) : audit_logs Jsii::Type.check_type(@audit_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ndWFyZGR1dHkuQ2ZuRGV0ZWN0b3IuQ0ZOS3ViZXJuZXRlc0F1ZGl0TG9nc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "auditLogs") end |
Instance Attribute Details
#audit_logs ⇒ AWSCDK::IResolvable, AWSCDK::GuardDuty::CfnDetector::CFNKubernetesAuditLogsConfigurationProperty (readonly)
Describes whether Kubernetes audit logs are enabled as a data source for the detector.
780 781 782 |
# File 'guard_duty/cfn_detector.rb', line 780 def audit_logs @audit_logs end |
Class Method Details
.jsii_properties ⇒ Object
782 783 784 785 786 |
# File 'guard_duty/cfn_detector.rb', line 782 def self.jsii_properties { :audit_logs => "auditLogs", } end |
Instance Method Details
#to_jsii ⇒ Object
788 789 790 791 792 793 794 |
# File 'guard_duty/cfn_detector.rb', line 788 def to_jsii result = {} result.merge!({ "auditLogs" => @audit_logs, }) result.compact end |