CfnCisScanConfigurationPropsMixin

class aws_cdk.mixins_preview.aws_inspectorv2.mixins.CfnCisScanConfigurationPropsMixin(props, *, strategy=None)

Bases: Mixin

The CIS scan configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

CisTargetsProperty

class CfnCisScanConfigurationPropsMixin.CisTargetsProperty(*, account_ids=None, target_resource_tags=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-accountids

target_resource_tags

The CIS target resource tags.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-targetresourcetags

DailyScheduleProperty

class CfnCisScanConfigurationPropsMixin.DailyScheduleProperty(*, start_time=None)

Bases: object

A daily schedule.

Parameters:

start_time (Union[IResolvable, TimeProperty, Dict[str, Any], None]) – The schedule start time.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html

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

start_time

The schedule start time.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html#cfn-inspectorv2-cisscanconfiguration-dailyschedule-starttime

MonthlyScheduleProperty

class CfnCisScanConfigurationPropsMixin.MonthlyScheduleProperty(*, day=None, start_time=None)

Bases: object

A 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-day

start_time

The monthly schedule’s start time.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-starttime

ScheduleProperty

class CfnCisScanConfigurationPropsMixin.ScheduleProperty(*, daily=None, monthly=None, one_time=None, weekly=None)

Bases: object

The schedule the CIS scan configuration runs on.

Each CIS scan configuration has exactly one type of schedule.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-daily

monthly

A monthly schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-monthly

one_time

A one time schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-onetime

weekly

A weekly schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-weekly

TimeProperty

class CfnCisScanConfigurationPropsMixin.TimeProperty(*, time_of_day=None, time_zone=None)

Bases: object

The time.

Parameters:
  • time_of_day (Optional[str]) – The time of day in 24-hour format (00:00).

  • time_zone (Optional[str]) – The timezone.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timeofday

Type:

The time of day in 24-hour format (00

time_zone

The timezone.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timezone

WeeklyScheduleProperty

class CfnCisScanConfigurationPropsMixin.WeeklyScheduleProperty(*, days=None, start_time=None)

Bases: object

A 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-days

start_time

The weekly schedule’s start time.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-starttime