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.101.0 (build b95fe5d)", date="2024-07-12T19:34:03.079Z") @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")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .targets(CisTargetsProperty.builder()
                 .accountIds(List.of("accountIds"))
                 // the properties below are optional
                 .targetResourceTags(Map.of(
                         "targetResourceTagsKey", List.of("targetResourceTags")))
                 .build())
         .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, @Nullable 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.
    • CfnCisScanConfiguration

      @Stability(Stable) public CfnCisScanConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id)
      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.
  • 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) @Nullable public String getScanName()
      The name of the CIS scan configuration.
    • setScanName

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

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

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

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

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

      @Stability(Stable) public void setSecurityLevel(@Nullable String value)
      The CIS scan configuration's CIS Benchmark level.
    • 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.
    • getTargets

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

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

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