Class: AWSCDK::Config::CfnConfigurationRecorder::RecordingModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnConfigurationRecorder::RecordingModeProperty
- Defined in:
- config/cfn_configuration_recorder.rb
Overview
Specifies the default recording frequency that AWS Config uses to record configuration changes.
AWS Config supports Continuous recording and Daily recording .
- Continuous recording allows you to record configuration changes continuously whenever a change occurs.
- Daily recording allows you to receive a configuration item (CI) representing the most recent state of your resources over the last 24-hour period, only if it’s different from the previous CI recorded.
AWS Firewall Manager depends on continuous recording to monitor your resources. If you are using Firewall Manager, it is recommended that you set the recording frequency to Continuous.
You can also override the recording frequency for specific resource types.
Instance Attribute Summary collapse
-
#recording_frequency ⇒ String
readonly
The default recording frequency that AWS Config uses to record configuration changes.
-
#recording_mode_overrides ⇒ AWSCDK::IResolvable, ...
readonly
An array of
recordingModeOverrideobjects for you to specify your overrides for the recording mode.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(recording_frequency:, recording_mode_overrides: nil) ⇒ RecordingModeProperty
constructor
A new instance of RecordingModeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(recording_frequency:, recording_mode_overrides: nil) ⇒ RecordingModeProperty
Returns a new instance of RecordingModeProperty.
859 860 861 862 863 864 |
# File 'config/cfn_configuration_recorder.rb', line 859 def initialize(recording_frequency:, recording_mode_overrides: nil) @recording_frequency = recording_frequency Jsii::Type.check_type(@recording_frequency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recordingFrequency") @recording_mode_overrides = recording_mode_overrides Jsii::Type.check_type(@recording_mode_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29uZmlnLkNmbkNvbmZpZ3VyYXRpb25SZWNvcmRlci5SZWNvcmRpbmdNb2RlT3ZlcnJpZGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "recordingModeOverrides") unless @recording_mode_overrides.nil? end |
Instance Attribute Details
#recording_frequency ⇒ String (readonly)
The default recording frequency that AWS Config uses to record configuration changes.
Daily recording cannot be specified for the following resource types:
AWS::Config::ResourceComplianceAWS::Config::ConformancePackComplianceAWS::Config::ConfigurationRecorderFor the allSupported (
ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types will be set to Continuous recording.
878 879 880 |
# File 'config/cfn_configuration_recorder.rb', line 878 def recording_frequency @recording_frequency end |
#recording_mode_overrides ⇒ AWSCDK::IResolvable, ... (readonly)
An array of recordingModeOverride objects for you to specify your overrides for the recording mode.
The recording_mode_override object in the recording_mode_overrides array consists of three fields: a description , the new recording_frequency , and an array of resource_types to override.
885 886 887 |
# File 'config/cfn_configuration_recorder.rb', line 885 def recording_mode_overrides @recording_mode_overrides end |
Class Method Details
.jsii_properties ⇒ Object
887 888 889 890 891 892 |
# File 'config/cfn_configuration_recorder.rb', line 887 def self.jsii_properties { :recording_frequency => "recordingFrequency", :recording_mode_overrides => "recordingModeOverrides", } end |
Instance Method Details
#to_jsii ⇒ Object
894 895 896 897 898 899 900 901 |
# File 'config/cfn_configuration_recorder.rb', line 894 def to_jsii result = {} result.merge!({ "recordingFrequency" => @recording_frequency, "recordingModeOverrides" => @recording_mode_overrides, }) result.compact end |