InspectorScanActionBaseProps Struct
Base construction properties of the InspectorScanActionBase.
| Source | aws-codepipeline-actions/lib/inspector/scan-action-base.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const artifact: codepipeline.Artifact;
declare const role: iam.Role;
const inspectorScanActionBaseProps: codepipeline_actions.InspectorScanActionBaseProps = {
actionName: 'actionName',
output: artifact,
// the properties below are optional
criticalThreshold: 123,
highThreshold: 123,
lowThreshold: 123,
mediumThreshold: 123,
role: role,
runOrder: 123,
variablesNamespace: 'variablesNamespace',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codepipeline as codepipeline
from aws_cdk import aws_codepipeline_actions as codepipeline_actions
from aws_cdk import aws_iam as iam
# artifact: codepipeline.Artifact
# role: iam.Role
inspector_scan_action_base_props = codepipeline_actions.InspectorScanActionBaseProps(
action_name="actionName",
output=artifact,
# the properties below are optional
critical_threshold=123,
high_threshold=123,
low_threshold=123,
medium_threshold=123,
role=role,
run_order=123,
variables_namespace="variablesNamespace"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.*;
import software.amazon.awscdk.services.codepipeline.actions.*;
import software.amazon.awscdk.services.iam.*;
Artifact artifact;
Role role;
InspectorScanActionBaseProps inspectorScanActionBaseProps = InspectorScanActionBaseProps.builder()
.actionName("actionName")
.output(artifact)
// the properties below are optional
.criticalThreshold(123)
.highThreshold(123)
.lowThreshold(123)
.mediumThreshold(123)
.role(role)
.runOrder(123)
.variablesNamespace("variablesNamespace")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
using Amazon.CDK.AWS.CodePipeline.Actions;
using Amazon.CDK.AWS.IAM;
Artifact artifact;
Role role;
var inspectorScanActionBaseProps = new InspectorScanActionBaseProps {
ActionName = "actionName",
Output = artifact,
// the properties below are optional
CriticalThreshold = 123,
HighThreshold = 123,
LowThreshold = 123,
MediumThreshold = 123,
Role = role,
RunOrder = 123,
VariablesNamespace = "variablesNamespace"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var artifact Artifact
var role Role
inspectorScanActionBaseProps := &InspectorScanActionBaseProps{
ActionName: jsii.String("actionName"),
Output: artifact,
// the properties below are optional
CriticalThreshold: jsii.Number(123),
HighThreshold: jsii.Number(123),
LowThreshold: jsii.Number(123),
MediumThreshold: jsii.Number(123),
Role: role,
RunOrder: jsii.Number(123),
VariablesNamespace: jsii.String("variablesNamespace"),
}
Properties
The physical, human-readable name of the Action.
Note that Action names must be unique within a single Stage.
criticalThresholdoptionalnumbercritical_thresholdoptionalint | floatcriticalThresholdoptionalNumberCriticalThresholdoptionaldoubleCriticalThresholdoptional*float64 #The number of critical severity vulnerabilities found in your source beyond which CodePipeline should fail the action.
Default: no threshold
highThresholdoptionalnumberhigh_thresholdoptionalint | floathighThresholdoptionalNumberHighThresholdoptionaldoubleHighThresholdoptional*float64 #The number of high severity vulnerabilities found in your source beyond which CodePipeline should fail the action.
Default: no threshold
lowThresholdoptionalnumberlow_thresholdoptionalint | floatlowThresholdoptionalNumberLowThresholdoptionaldoubleLowThresholdoptional*float64 #The number of low severity vulnerabilities found in your source beyond which CodePipeline should fail the action.
Default: no threshold
mediumThresholdoptionalnumbermedium_thresholdoptionalint | floatmediumThresholdoptionalNumberMediumThresholdoptionaldoubleMediumThresholdoptional*float64 #The number of medium severity vulnerabilities found in your source beyond which CodePipeline should fail the action.
Default: no threshold
Vulnerability details of your source in the form of a Software Bill of Materials (SBOM) file.
The Role in which context's this Action will be executing in.
Default: a new Role will be generated
notes
The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your IAction.bind method in the ActionBindOptions.role property.
runOrderoptionalnumberrun_orderoptionalint | floatrunOrderoptionalNumberRunOrderoptionaldoubleRunOrderoptional*float64 = 1 #The runOrder property for this Action.
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
variablesNamespaceoptionalstringvariables_namespaceoptionalstrvariablesNamespaceoptionalStringVariablesNamespaceoptionalstringVariablesNamespaceoptional*string #The name of the namespace to use for variables emitted by this action.
Default: a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set