Class CfnAssessmentTemplatePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.inspector.CfnAssessmentTemplatePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTemplatePropsMixin>
- Enclosing class:
CfnAssessmentTemplatePropsMixin
@Stability(Stable)
public static final class CfnAssessmentTemplatePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTemplatePropsMixin>
A fluent builder for
CfnAssessmentTemplatePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetArn(String assessmentTargetArn) The ARN of the assessment target to be included in the assessment template.assessmentTargetArn(IAssessmentTargetRef assessmentTargetArn) The ARN of the assessment target to be included in the assessment template.assessmentTemplateName(String assessmentTemplateName) The user-defined name that identifies the assessment template that you want to create.build()create()create(CfnPropertyMixinOptions options) durationInSeconds(Number durationInSeconds) The duration of the assessment run in seconds.rulesPackageArns(List<String> rulesPackageArns) The ARNs of the rules packages that you want to use in the assessment template.userAttributesForFindings(List<? extends Object> userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.userAttributesForFindings(IResolvable userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
-
Method Details
-
create
@Stability(Stable) public static CfnAssessmentTemplatePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnAssessmentTemplatePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnAssessmentTemplatePropsMixin.Builder.
-
assessmentTargetArn
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder assessmentTargetArn(String assessmentTargetArn) The ARN of the assessment target to be included in the assessment template.- Parameters:
assessmentTargetArn- The ARN of the assessment target to be included in the assessment template. This parameter is required.- Returns:
this- See Also:
-
assessmentTargetArn
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder assessmentTargetArn(IAssessmentTargetRef assessmentTargetArn) The ARN of the assessment target to be included in the assessment template.- Parameters:
assessmentTargetArn- The ARN of the assessment target to be included in the assessment template. This parameter is required.- Returns:
this- See Also:
-
assessmentTemplateName
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder assessmentTemplateName(String assessmentTemplateName) The user-defined name that identifies the assessment template that you want to create.You can create several assessment templates for the same assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
- Parameters:
assessmentTemplateName- The user-defined name that identifies the assessment template that you want to create. This parameter is required.- Returns:
this- See Also:
-
durationInSeconds
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder durationInSeconds(Number durationInSeconds) The duration of the assessment run in seconds.- Parameters:
durationInSeconds- The duration of the assessment run in seconds. This parameter is required.- Returns:
this- See Also:
-
rulesPackageArns
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder rulesPackageArns(List<String> rulesPackageArns) The ARNs of the rules packages that you want to use in the assessment template.- Parameters:
rulesPackageArns- The ARNs of the rules packages that you want to use in the assessment template. This parameter is required.- Returns:
this- See Also:
-
userAttributesForFindings
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder userAttributesForFindings(IResolvable userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.Within an assessment template, each key must be unique.
- Parameters:
userAttributesForFindings- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. This parameter is required.- Returns:
this- See Also:
-
userAttributesForFindings
@Stability(Stable) public CfnAssessmentTemplatePropsMixin.Builder userAttributesForFindings(List<? extends Object> userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.Within an assessment template, each key must be unique.
- Parameters:
userAttributesForFindings- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssessmentTemplatePropsMixin>- Returns:
- a newly built instance of
CfnAssessmentTemplatePropsMixin.
-