RecordingModeProperty Struct
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const recordingModeProperty: config.CfnConfigurationRecorder.RecordingModeProperty = {
recordingFrequency: 'recordingFrequency',
// the properties below are optional
recordingModeOverrides: [{
recordingFrequency: 'recordingFrequency',
resourceTypes: ['resourceTypes'],
// the properties below are optional
description: 'description',
}],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config
recording_mode_property = config.CfnConfigurationRecorder.RecordingModeProperty(
recording_frequency="recordingFrequency",
# the properties below are optional
recording_mode_overrides=[config.CfnConfigurationRecorder.RecordingModeOverrideProperty(
recording_frequency="recordingFrequency",
resource_types=["resourceTypes"],
# the properties below are optional
description="description"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;
RecordingModeProperty recordingModeProperty = RecordingModeProperty.builder()
.recordingFrequency("recordingFrequency")
// the properties below are optional
.recordingModeOverrides(List.of(RecordingModeOverrideProperty.builder()
.recordingFrequency("recordingFrequency")
.resourceTypes(List.of("resourceTypes"))
// the properties below are optional
.description("description")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;
var recordingModeProperty = new RecordingModeProperty {
RecordingFrequency = "recordingFrequency",
// the properties below are optional
RecordingModeOverrides = new [] { new RecordingModeOverrideProperty {
RecordingFrequency = "recordingFrequency",
ResourceTypes = new [] { "resourceTypes" },
// the properties below are optional
Description = "description"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
recordingModeProperty := &RecordingModeProperty{
RecordingFrequency: jsii.String("recordingFrequency"),
// the properties below are optional
RecordingModeOverrides: []interface{}{
&RecordingModeOverrideProperty{
RecordingFrequency: jsii.String("recordingFrequency"),
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
// the properties below are optional
Description: jsii.String("description"),
},
},
}
Properties
recordingFrequencystringrecording_frequencystrrecordingFrequencyStringRecordingFrequencystringRecordingFrequency*stringrequired#notes
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.
recordingModeOverridesoptionalIResolvable | IResolvable | CfnConfigurationRecorder.RecordingModeOverrideProperty[]recording_mode_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RecordingModeOverrideProperty]]]recordingModeOverridesoptionalIResolvableRecordingModeOverridesoptionalIResolvableRecordingModeOverridesoptionalinterface{}#The recordingModeOverride object in the recordingModeOverrides array consists of three fields: a description , the new recordingFrequency , and an array of resourceTypes to override.