class InspectorStartAssessmentRun
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Scheduler.Targets.Alpha.InspectorStartAssessmentRun |
Go | github.com/aws/aws-cdk-go/awscdkschedulertargetsalpha/v2#InspectorStartAssessmentRun |
Java | software.amazon.awscdk.services.scheduler.targets.alpha.InspectorStartAssessmentRun |
Python | aws_cdk.aws_scheduler_targets_alpha.InspectorStartAssessmentRun |
TypeScript (source) | @aws-cdk/aws-scheduler-targets-alpha » InspectorStartAssessmentRun |
Implements
ISchedule
Extends
Schedule
Use an Amazon Inspector as a target for AWS EventBridge Scheduler.
Example
import * as inspector from 'aws-cdk-lib/aws-inspector';
declare const assessmentTemplate: inspector.CfnAssessmentTemplate;
new Schedule(this, 'Schedule', {
schedule: ScheduleExpression.rate(Duration.minutes(60)),
target: new targets.InspectorStartAssessmentRun(assessmentTemplate),
});
Initializer
new InspectorStartAssessmentRun(template: CfnAssessmentTemplate, props?: ScheduleTargetBaseProps)
Parameters
- template
Cfn
Assessment Template - props
Schedule
Target Base Props
Methods
Name | Description |
---|---|
bind(schedule) | Create a return a Schedule Target Configuration for the given schedule. |
protected add |
bind(schedule)
public bind(schedule: ISchedule): ScheduleTargetConfig
Parameters
- schedule
ISchedule
Returns
Create a return a Schedule Target Configuration for the given schedule.
TargetActionToRole(role)
protected addprotected addTargetActionToRole(role: IRole): void
Parameters
- role
IRole