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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-02T11:25:32.936Z")
@Stability(Stable)
public class CfnCodeSecurityScanConfiguration
extends CfnResource
implements IInspectable, 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 class
A fluent builder forCfnCodeSecurityScanConfiguration
.static interface
Contains the configuration settings for code security scans.static interface
Configuration settings for continuous integration scans that run automatically when code changes are made.static interface
Configuration settings for periodic scans that run on a scheduled basis.static interface
The scope settings that define which repositories will be scanned.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnCodeSecurityScanConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCodeSecurityScanConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) CfnCodeSecurityScanConfiguration
(software.constructs.Construct scope, String id) CfnCodeSecurityScanConfiguration
(software.constructs.Construct scope, String id, CfnCodeSecurityScanConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the scan configuration.Tag Manager which manages the tags for this 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConfiguration
(IResolvable value) The configuration settings for the code security scan.void
The configuration settings for the code security scan.void
The security level for the scan configuration.void
The name of the scan configuration.void
setScopeSettings
(IResolvable value) The scope settings that define which repositories will be scanned.void
The scope settings that define which repositories will be scanned.void
The 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConfiguration
The configuration settings for the code security scan. -
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. -
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.
-