Class CfnCodeSecurityScanConfiguration
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.CfnCodeSecurityScanConfiguration
- All Implemented Interfaces:
- IInspectable,- ITaggableV2,- ICodeSecurityScanConfigurationRef,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:41.357Z")
@Stability(Stable)
public class CfnCodeSecurityScanConfiguration
extends CfnResource
implements IInspectable, ICodeSecurityScanConfigurationRef, ITaggableV2
Creates a scan configuration for code security scanning.
 
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.*;
 CfnCodeSecurityScanConfiguration cfnCodeSecurityScanConfiguration = CfnCodeSecurityScanConfiguration.Builder.create(this, "MyCfnCodeSecurityScanConfiguration")
         .configuration(CodeSecurityScanConfigurationProperty.builder()
                 .ruleSetCategories(List.of("ruleSetCategories"))
                 // the properties below are optional
                 .continuousIntegrationScanConfiguration(ContinuousIntegrationScanConfigurationProperty.builder()
                         .supportedEvents(List.of("supportedEvents"))
                         .build())
                 .periodicScanConfiguration(PeriodicScanConfigurationProperty.builder()
                         .frequency("frequency")
                         .frequencyExpression("frequencyExpression")
                         .build())
                 .build())
         .level("level")
         .name("name")
         .scopeSettings(ScopeSettingsProperty.builder()
                 .projectSelectionScope("projectSelectionScope")
                 .build())
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCodeSecurityScanConfiguration.static interfaceContains the configuration settings for code security scans.static interfaceConfiguration settings for continuous integration scans that run automatically when code changes are made.static interfaceConfiguration settings for periodic scans that run on a scheduled basis.static interfaceThe scope settings that define which repositories will be scanned.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.inspectorv2.ICodeSecurityScanConfigurationRefICodeSecurityScanConfigurationRef.Jsii$Default, ICodeSecurityScanConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnCodeSecurityScanConfiguration(software.constructs.Construct scope, String id) CfnCodeSecurityScanConfiguration(software.constructs.Construct scope, String id, CfnCodeSecurityScanConfigurationProps props) 
- 
Method SummaryModifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the scan configuration.Tag Manager which manages the tags for this resource.A reference to a CodeSecurityScanConfiguration resource.The configuration settings for the code security scan.getLevel()The security level for the scan configuration.getName()The name of the scan configuration.The scope settings that define which repositories will be scanned.getTags()The tags to apply to the scan configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetConfiguration(IResolvable value) The configuration settings for the code security scan.voidThe configuration settings for the code security scan.voidThe security level for the scan configuration.voidThe name of the scan configuration.voidsetScopeSettings(IResolvable value) The scope settings that define which repositories will be scanned.voidThe scope settings that define which repositories will be scanned.voidThe tags to apply to the scan configuration.Methods inherited from class software.amazon.awscdk.CfnResourceaddDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.ConstructgetNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnCodeSecurityScanConfigurationprotected CfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnCodeSecurityScanConfigurationprotected CfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnCodeSecurityScanConfiguration@Stability(Stable) public CfnCodeSecurityScanConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnCodeSecurityScanConfigurationProps 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.
 
- 
CfnCodeSecurityScanConfiguration@Stability(Stable) public CfnCodeSecurityScanConfiguration(@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- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin 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:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrArnThe Amazon Resource Name (ARN) of the scan configuration.
- 
getCdkTagManagerTag Manager which manages the tags for this resource.- Specified by:
- getCdkTagManagerin interface- ITaggableV2
 
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getCodeSecurityScanConfigurationRef@Stability(Stable) @NotNull public CodeSecurityScanConfigurationReference getCodeSecurityScanConfigurationRef()A reference to a CodeSecurityScanConfiguration resource.- Specified by:
- getCodeSecurityScanConfigurationRefin interface- ICodeSecurityScanConfigurationRef
 
- 
getConfigurationThe configuration settings for the code security scan.Returns union: either IResolvableorCfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty
- 
setConfigurationThe configuration settings for the code security scan.
- 
setConfiguration@Stability(Stable) public void setConfiguration(@Nullable CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty value) The configuration settings for the code security scan.
- 
getLevelThe security level for the scan configuration.
- 
setLevelThe security level for the scan configuration.
- 
getNameThe name of the scan configuration.
- 
setNameThe name of the scan configuration.
- 
getScopeSettingsThe scope settings that define which repositories will be scanned.Returns union: either IResolvableorCfnCodeSecurityScanConfiguration.ScopeSettingsProperty
- 
setScopeSettingsThe scope settings that define which repositories will be scanned.
- 
setScopeSettings@Stability(Stable) public void setScopeSettings(@Nullable CfnCodeSecurityScanConfiguration.ScopeSettingsProperty value) The scope settings that define which repositories will be scanned.
- 
getTagsThe tags to apply to the scan configuration.
- 
setTagsThe tags to apply to the scan configuration.
 
-