Class CfnAssessmentTemplate
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.
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAssessmentTemplate : CfnResource, IInspectable, IAssessmentTemplateRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnAssessmentTemplate Inherits CfnResource Implements IInspectable, IAssessmentTemplateRef, IConstruct, IDependable, IEnvironmentAware
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Inspector;
CfnAssessmentTemplate cfnAssessmentTemplate;
var assessmentTemplate = AssessmentTemplate.FromCfnAssessmentTemplate(this, "MyAssessmentTemplate", cfnAssessmentTemplate);
new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Minutes(60)),
Target = new InspectorStartAssessmentRun(assessmentTemplate)
});
Synopsis
Constructors
| CfnAssessmentTemplate(Construct, string, ICfnAssessmentTemplateProps) | The |
Properties
| AssessmentTargetArn | The ARN of the assessment target to be included in the assessment template. |
| AssessmentTemplateName | The user-defined name that identifies the assessment template that you want to create. |
| AssessmentTemplateRef | A reference to a AssessmentTemplate resource. |
| AttrArn | The Amazon Resource Name (ARN) that specifies the assessment template that is created. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | The |
| DurationInSeconds | The duration of the assessment run in seconds. |
| RulesPackageArns | The ARNs of the rules packages that you want to use in the assessment template. |
| UserAttributesForFindings | The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnAssessmentTemplate(Construct, string, ICfnAssessmentTemplateProps)
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.
public CfnAssessmentTemplate(Construct scope, string id, ICfnAssessmentTemplateProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnAssessmentTemplateProps
Resource properties.
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
Properties
AssessmentTargetArn
The ARN of the assessment target to be included in the assessment template.
public virtual string AssessmentTargetArn { get; set; }
Property Value
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
AssessmentTemplateName
The user-defined name that identifies the assessment template that you want to create.
public virtual string? AssessmentTemplateName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
AssessmentTemplateRef
A reference to a AssessmentTemplate resource.
public virtual IAssessmentTemplateReference AssessmentTemplateRef { get; }
Property Value
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
AttrArn
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
CfnProperties
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.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
DurationInSeconds
The duration of the assessment run in seconds.
public virtual double DurationInSeconds { get; set; }
Property Value
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
RulesPackageArns
The ARNs of the rules packages that you want to use in the assessment template.
public virtual string[] RulesPackageArns { get; set; }
Property Value
string[]
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
UserAttributesForFindings
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
public virtual object? UserAttributesForFindings { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or ICfnTag)[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
RenderProperties(IDictionary<string, object>)
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.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused