CfnCisScanConfigurationPropsMixin
- class aws_cdk.mixins_preview.aws_inspectorv2.mixins.CfnCisScanConfigurationPropsMixin(props, *, strategy=None)
Bases:
MixinThe CIS scan configuration.
- See:
- CloudformationResource:
AWS::InspectorV2::CisScanConfiguration
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins # one_time: Any cfn_cis_scan_configuration_props_mixin = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin(inspectorv2_mixins.CfnCisScanConfigurationMixinProps( scan_name="scanName", schedule=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.ScheduleProperty( daily=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.DailyScheduleProperty( start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ), monthly=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.MonthlyScheduleProperty( day="day", start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ), one_time=one_time, weekly=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.WeeklyScheduleProperty( days=["days"], start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ) ), security_level="securityLevel", tags={ "tags_key": "tags" }, targets=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.CisTargetsProperty( account_ids=["accountIds"], target_resource_tags={ "target_resource_tags_key": ["targetResourceTags"] } ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::InspectorV2::CisScanConfiguration.- Parameters:
props (
Union[CfnCisScanConfigurationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['scanName', 'schedule', 'securityLevel', 'tags', 'targets']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CisTargetsProperty
- class CfnCisScanConfigurationPropsMixin.CisTargetsProperty(*, account_ids=None, target_resource_tags=None)
Bases:
objectThe CIS targets.
- Parameters:
account_ids (
Optional[Sequence[str]]) – The CIS target account ids.target_resource_tags (
Union[IResolvable,Mapping[str,Sequence[str]],None]) – The CIS target resource tags.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins cis_targets_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.CisTargetsProperty( account_ids=["accountIds"], target_resource_tags={ "target_resource_tags_key": ["targetResourceTags"] } )
Attributes
- account_ids
The CIS target account ids.
- target_resource_tags
The CIS target resource tags.
DailyScheduleProperty
- class CfnCisScanConfigurationPropsMixin.DailyScheduleProperty(*, start_time=None)
Bases:
objectA daily schedule.
- Parameters:
start_time (
Union[IResolvable,TimeProperty,Dict[str,Any],None]) – The schedule start time.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins daily_schedule_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.DailyScheduleProperty( start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) )
Attributes
MonthlyScheduleProperty
- class CfnCisScanConfigurationPropsMixin.MonthlyScheduleProperty(*, day=None, start_time=None)
Bases:
objectA monthly schedule.
- Parameters:
day (
Optional[str]) – The monthly schedule’s day.start_time (
Union[IResolvable,TimeProperty,Dict[str,Any],None]) – The monthly schedule’s start time.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins monthly_schedule_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.MonthlyScheduleProperty( day="day", start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) )
Attributes
- day
The monthly schedule’s day.
- start_time
The monthly schedule’s start time.
ScheduleProperty
- class CfnCisScanConfigurationPropsMixin.ScheduleProperty(*, daily=None, monthly=None, one_time=None, weekly=None)
Bases:
objectThe schedule the CIS scan configuration runs on.
Each CIS scan configuration has exactly one type of schedule.
- Parameters:
daily (
Union[IResolvable,DailyScheduleProperty,Dict[str,Any],None]) – A daily schedule.monthly (
Union[IResolvable,MonthlyScheduleProperty,Dict[str,Any],None]) – A monthly schedule.one_time (
Any) – A one time schedule.weekly (
Union[IResolvable,WeeklyScheduleProperty,Dict[str,Any],None]) – A weekly schedule.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins # one_time: Any schedule_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.ScheduleProperty( daily=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.DailyScheduleProperty( start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ), monthly=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.MonthlyScheduleProperty( day="day", start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ), one_time=one_time, weekly=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.WeeklyScheduleProperty( days=["days"], start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) ) )
Attributes
- daily
A daily schedule.
- monthly
A monthly schedule.
- one_time
A one time schedule.
TimeProperty
- class CfnCisScanConfigurationPropsMixin.TimeProperty(*, time_of_day=None, time_zone=None)
Bases:
objectThe time.
- Parameters:
time_of_day (
Optional[str]) – The time of day in 24-hour format (00:00).time_zone (
Optional[str]) – The timezone.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins time_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" )
Attributes
- time_of_day
00).
- See:
- Type:
The time of day in 24-hour format (00
WeeklyScheduleProperty
- class CfnCisScanConfigurationPropsMixin.WeeklyScheduleProperty(*, days=None, start_time=None)
Bases:
objectA weekly schedule.
- Parameters:
days (
Optional[Sequence[str]]) – The weekly schedule’s days.start_time (
Union[IResolvable,TimeProperty,Dict[str,Any],None]) – The weekly schedule’s start time.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_inspectorv2 import mixins as inspectorv2_mixins weekly_schedule_property = inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.WeeklyScheduleProperty( days=["days"], start_time=inspectorv2_mixins.CfnCisScanConfigurationPropsMixin.TimeProperty( time_of_day="timeOfDay", time_zone="timeZone" ) )
Attributes
- days
The weekly schedule’s days.
- start_time
The weekly schedule’s start time.