@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.828Z") @Stability(value=Stable) public class CfnAssessmentTemplate extends CfnResource implements IInspectable
The AWS::Inspector::AssessmentTemplate resource creates an Amazon Inspector assessment template, which specifies the Inspector assessment targets that will be evaluated by an assessment run and its related configurations.
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.inspector.*;
CfnAssessmentTemplate cfnAssessmentTemplate = CfnAssessmentTemplate.Builder.create(this, "MyCfnAssessmentTemplate")
.assessmentTargetArn("assessmentTargetArn")
.durationInSeconds(123)
.rulesPackageArns(List.of("rulesPackageArns"))
// the properties below are optional
.assessmentTemplateName("assessmentTemplateName")
.userAttributesForFindings(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAssessmentTemplate.Builder
A fluent builder for
CfnAssessmentTemplate. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAssessmentTemplate(software.constructs.Construct scope,
String id,
CfnAssessmentTemplateProps props)
Create a new `AWS::Inspector::AssessmentTemplate`.
|
protected |
CfnAssessmentTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAssessmentTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssessmentTargetArn()
The ARN of the assessment target to be included in the assessment template.
|
String |
getAssessmentTemplateName()
The user-defined name that identifies the assessment template that you want to create.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
|
protected Map<String,Object> |
getCfnProperties() |
Number |
getDurationInSeconds()
The duration of the assessment run in seconds.
|
List<String> |
getRulesPackageArns()
The ARNs of the rules packages that you want to use in the assessment template.
|
Object |
getUserAttributesForFindings()
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAssessmentTargetArn(String value)
The ARN of the assessment target to be included in the assessment template.
|
void |
setAssessmentTemplateName(String value)
The user-defined name that identifies the assessment template that you want to create.
|
void |
setDurationInSeconds(Number value)
The duration of the assessment run in seconds.
|
void |
setRulesPackageArns(List<String> value)
The ARNs of the rules packages that you want to use in the assessment template.
|
void |
setUserAttributesForFindings(IResolvable value)
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
|
void |
setUserAttributesForFindings(List<Object> value)
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAssessmentTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAssessmentTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAssessmentTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAssessmentTemplateProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getAssessmentTargetArn()
@Stability(value=Stable)
public void setAssessmentTargetArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getDurationInSeconds()
@Stability(value=Stable)
public void setDurationInSeconds(@NotNull
Number value)
@Stability(value=Stable) @NotNull public List<String> getRulesPackageArns()
@Stability(value=Stable)
public void setRulesPackageArns(@NotNull
List<String> value)
@Stability(value=Stable) @Nullable public String getAssessmentTemplateName()
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.
@Stability(value=Stable)
public void setAssessmentTemplateName(@Nullable
String value)
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.
@Stability(value=Stable) @Nullable public Object getUserAttributesForFindings()
Within an assessment template, each key must be unique.
@Stability(value=Stable)
public void setUserAttributesForFindings(@Nullable
IResolvable value)
Within an assessment template, each key must be unique.
@Stability(value=Stable)
public void setUserAttributesForFindings(@Nullable
List<Object> value)
Within an assessment template, each key must be unique.
Copyright © 2022. All rights reserved.