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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAssessmentTemplate : CfnResource, IInspectable
Syntax (vb)
Public Class CfnAssessmentTemplate
Inherits CfnResource
Implements IInspectable
Remarks
CloudformationResource: AWS::Inspector::AssessmentTemplate
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Inspector;
CfnAssessmentTemplate assessmentTemplate;
new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Minutes(60)),
Target = new InspectorStartAssessmentRun(assessmentTemplate)
});
Synopsis
Constructors
CfnAssessmentTemplate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAssessmentTemplate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnAssessmentTemplate(Construct, String, ICfnAssessmentTemplateProps) |
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. |
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 | |
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>) |
Constructors
CfnAssessmentTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAssessmentTemplate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAssessmentTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAssessmentTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnAssessmentTemplate(Construct, String, ICfnAssessmentTemplateProps)
public CfnAssessmentTemplate(Construct scope, string id, ICfnAssessmentTemplateProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAssessmentTemplateProps
Resource properties.
Properties
AssessmentTargetArn
The ARN of the assessment target to be included in the assessment template.
public virtual string AssessmentTargetArn { get; set; }
Property Value
System.String
AssessmentTemplateName
The user-defined name that identifies the assessment template that you want to create.
public virtual string AssessmentTemplateName { get; set; }
Property Value
System.String
AttrArn
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
public virtual string AttrArn { get; }
Property Value
System.String
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
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DurationInSeconds
The duration of the assessment run in seconds.
public virtual double DurationInSeconds { get; set; }
Property Value
System.Double
RulesPackageArns
The ARNs of the rules packages that you want to use in the assessment template.
public virtual string[] RulesPackageArns { get; set; }
Property Value
System.String[]
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
System.Object
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>