Class CfnCisScanConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-12T12:32:04.054Z") @Stability(Stable) public class CfnCisScanConfiguration extends CfnResource implements IInspectable, ITaggableV2
The CIS scan configuration.

Example:

 // 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;
 CfnCisScanConfiguration cfnCisScanConfiguration = CfnCisScanConfiguration.Builder.create(this, "MyCfnCisScanConfiguration")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnCisScanConfiguration

      protected CfnCisScanConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnCisScanConfiguration

      protected CfnCisScanConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnCisScanConfiguration

      @Stability(Stable) public CfnCisScanConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCisScanConfigurationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The CIS scan configuration's scan configuration ARN.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getScanName

      @Stability(Stable) @NotNull public String getScanName()
      The name of the CIS scan configuration.
    • setScanName

      @Stability(Stable) public void setScanName(@NotNull String value)
      The name of the CIS scan configuration.
    • getSchedule

      @Stability(Stable) @NotNull public Object getSchedule()
      The CIS scan configuration's schedule.
    • setSchedule

      @Stability(Stable) public void setSchedule(@NotNull IResolvable value)
      The CIS scan configuration's schedule.
    • setSchedule

      @Stability(Stable) public void setSchedule(@NotNull CfnCisScanConfiguration.ScheduleProperty value)
      The CIS scan configuration's schedule.
    • getSecurityLevel

      @Stability(Stable) @NotNull public String getSecurityLevel()
      The CIS scan configuration's CIS Benchmark level.
    • setSecurityLevel

      @Stability(Stable) public void setSecurityLevel(@NotNull String value)
      The CIS scan configuration's CIS Benchmark level.
    • getTargets

      @Stability(Stable) @NotNull public Object getTargets()
      The CIS scan configuration's targets.
    • setTargets

      @Stability(Stable) public void setTargets(@NotNull IResolvable value)
      The CIS scan configuration's targets.
    • setTargets

      @Stability(Stable) public void setTargets(@NotNull CfnCisScanConfiguration.CisTargetsProperty value)
      The CIS scan configuration's targets.
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      The CIS scan configuration's tags.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      The CIS scan configuration's tags.