Skip to content
v2.278.0

CfnCisScanConfigurationProps Struct ​

Properties for defining a CfnCisScanConfiguration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_inspectorv2 as inspectorv2 } from 'aws-cdk-lib';

declare const oneTime: any;
const cfnCisScanConfigurationProps: inspectorv2.CfnCisScanConfigurationProps = {
  scanName: 'scanName',
  schedule: {
    daily: {
      startTime: {
        timeOfDay: 'timeOfDay',
        timeZone: 'timeZone',
      },
    },
    monthly: {
      day: 'day',
      startTime: {
        timeOfDay: 'timeOfDay',
        timeZone: 'timeZone',
      },
    },
    oneTime: oneTime,
    weekly: {
      days: ['days'],
      startTime: {
        timeOfDay: 'timeOfDay',
        timeZone: 'timeZone',
      },
    },
  },
  securityLevel: 'securityLevel',
  targets: {
    accountIds: ['accountIds'],
    targetResourceTags: {
      targetResourceTagsKey: ['targetResourceTags'],
    },
  },

  // the properties below are optional
  tags: {
    tagsKey: 'tags',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_inspectorv2 as inspectorv2

# one_time: Any

cfn_cis_scan_configuration_props = inspectorv2.CfnCisScanConfigurationProps(
    scan_name="scanName",
    schedule=inspectorv2.CfnCisScanConfiguration.ScheduleProperty(
        daily=inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty(
            start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
                time_of_day="timeOfDay",
                time_zone="timeZone"
            )
        ),
        monthly=inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty(
            day="day",
            start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
                time_of_day="timeOfDay",
                time_zone="timeZone"
            )
        ),
        one_time=one_time,
        weekly=inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty(
            days=["days"],
            start_time=inspectorv2.CfnCisScanConfiguration.TimeProperty(
                time_of_day="timeOfDay",
                time_zone="timeZone"
            )
        )
    ),
    security_level="securityLevel",
    targets=inspectorv2.CfnCisScanConfiguration.CisTargetsProperty(
        account_ids=["accountIds"],
        target_resource_tags={
            "target_resource_tags_key": ["targetResourceTags"]
        }
    ),

    # the properties below are optional
    tags={
        "tags_key": "tags"
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.inspectorv2.*;

Object oneTime;

CfnCisScanConfigurationProps cfnCisScanConfigurationProps = CfnCisScanConfigurationProps.builder()
        .scanName("scanName")
        .schedule(ScheduleProperty.builder()
                .daily(DailyScheduleProperty.builder()
                        .startTime(TimeProperty.builder()
                                .timeOfDay("timeOfDay")
                                .timeZone("timeZone")
                                .build())
                        .build())
                .monthly(MonthlyScheduleProperty.builder()
                        .day("day")
                        .startTime(TimeProperty.builder()
                                .timeOfDay("timeOfDay")
                                .timeZone("timeZone")
                                .build())
                        .build())
                .oneTime(oneTime)
                .weekly(WeeklyScheduleProperty.builder()
                        .days(List.of("days"))
                        .startTime(TimeProperty.builder()
                                .timeOfDay("timeOfDay")
                                .timeZone("timeZone")
                                .build())
                        .build())
                .build())
        .securityLevel("securityLevel")
        .targets(CisTargetsProperty.builder()
                .accountIds(List.of("accountIds"))
                .targetResourceTags(Map.of(
                        "targetResourceTagsKey", List.of("targetResourceTags")))
                .build())

        // the properties below are optional
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
csharp
// 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.InspectorV2;

var oneTime;

var cfnCisScanConfigurationProps = new CfnCisScanConfigurationProps {
    ScanName = "scanName",
    Schedule = new ScheduleProperty {
        Daily = new DailyScheduleProperty {
            StartTime = new TimeProperty {
                TimeOfDay = "timeOfDay",
                TimeZone = "timeZone"
            }
        },
        Monthly = new MonthlyScheduleProperty {
            Day = "day",
            StartTime = new TimeProperty {
                TimeOfDay = "timeOfDay",
                TimeZone = "timeZone"
            }
        },
        OneTime = oneTime,
        Weekly = new WeeklyScheduleProperty {
            Days = new [] { "days" },
            StartTime = new TimeProperty {
                TimeOfDay = "timeOfDay",
                TimeZone = "timeZone"
            }
        }
    },
    SecurityLevel = "securityLevel",
    Targets = new CisTargetsProperty {
        AccountIds = new [] { "accountIds" },
        TargetResourceTags = new Dictionary<string, string[]> {
            { "targetResourceTagsKey", new [] { "targetResourceTags" } }
        }
    },

    // the properties below are optional
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
go
// 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"

var oneTime interface{}

cfnCisScanConfigurationProps := &CfnCisScanConfigurationProps{
	ScanName: jsii.String("scanName"),
	Schedule: &ScheduleProperty{
		Daily: &DailyScheduleProperty{
			StartTime: &TimeProperty{
				TimeOfDay: jsii.String("timeOfDay"),
				TimeZone: jsii.String("timeZone"),
			},
		},
		Monthly: &MonthlyScheduleProperty{
			Day: jsii.String("day"),
			StartTime: &TimeProperty{
				TimeOfDay: jsii.String("timeOfDay"),
				TimeZone: jsii.String("timeZone"),
			},
		},
		OneTime: oneTime,
		Weekly: &WeeklyScheduleProperty{
			Days: []*string{
				jsii.String("days"),
			},
			StartTime: &TimeProperty{
				TimeOfDay: jsii.String("timeOfDay"),
				TimeZone: jsii.String("timeZone"),
			},
		},
	},
	SecurityLevel: jsii.String("securityLevel"),
	Targets: &CisTargetsProperty{
		AccountIds: []*string{
			jsii.String("accountIds"),
		},
		TargetResourceTags: map[string][]*string{
			"targetResourceTagsKey": []*string{
				jsii.String("targetResourceTags"),
			},
		},
	},

	// the properties below are optional
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

scanNamestringscan_namestrscanNameStringScanNamestringScanName*string required #
The name of the CIS scan configuration.
scheduleIResolvable | CfnCisScanConfiguration.SchedulePropertyscheduletyping.Union[IResolvable, ScheduleProperty]scheduleIResolvableScheduleIResolvableScheduleinterface{} required #
The CIS scan configuration's schedule.
securityLevelstringsecurity_levelstrsecurityLevelStringSecurityLevelstringSecurityLevel*string required #
The CIS scan configuration's CIS Benchmark level.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
The CIS scan configuration's tags.
targetsIResolvable | CfnCisScanConfiguration.CisTargetsPropertytargetstyping.Union[IResolvable, CisTargetsProperty]targetsIResolvableTargetsIResolvableTargetsinterface{} required #
The CIS scan configuration's targets.