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,IEnvironmentAware,ICodeSecurityScanConfigurationRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:23.131Z")
@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 Summary
Nested 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.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.inspectorv2.ICodeSecurityScanConfigurationRef
ICodeSecurityScanConfigurationRef.Jsii$Default, ICodeSecurityScanConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnCodeSecurityScanConfiguration(software.constructs.Construct scope, String id) Create a newAWS::InspectorV2::CodeSecurityScanConfiguration.CfnCodeSecurityScanConfiguration(software.constructs.Construct scope, String id, CfnCodeSecurityScanConfigurationProps props) Create a newAWS::InspectorV2::CodeSecurityScanConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe 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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCodeSecurityScanConfiguration
protected CfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCodeSecurityScanConfiguration
protected CfnCodeSecurityScanConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCodeSecurityScanConfiguration
@Stability(Stable) public CfnCodeSecurityScanConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnCodeSecurityScanConfigurationProps props) Create a newAWS::InspectorV2::CodeSecurityScanConfiguration.- 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) Create a newAWS::InspectorV2::CodeSecurityScanConfiguration.- 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
-
arnForCodeSecurityScanConfiguration
@Stability(Stable) @NotNull public static String arnForCodeSecurityScanConfiguration(@NotNull ICodeSecurityScanConfigurationRef resource) - Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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 classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the scan configuration. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCodeSecurityScanConfigurationRef
@Stability(Stable) @NotNull public CodeSecurityScanConfigurationReference getCodeSecurityScanConfigurationRef()A reference to a CodeSecurityScanConfiguration resource.- Specified by:
getCodeSecurityScanConfigurationRefin interfaceICodeSecurityScanConfigurationRef
-
getConfiguration
The configuration settings for the code security scan.Returns union: either
IResolvableorCfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty -
setConfiguration
The 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. -
getLevel
The security level for the scan configuration. -
setLevel
The security level for the scan configuration. -
getName
The name of the scan configuration. -
setName
The name of the scan configuration. -
getScopeSettings
The scope settings that define which repositories will be scanned.Returns union: either
IResolvableorCfnCodeSecurityScanConfiguration.ScopeSettingsProperty -
setScopeSettings
The 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. -
getTags
The tags to apply to the scan configuration. -
setTags
The tags to apply to the scan configuration.
-