AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

AssessmentTemplate

An Amazon Inspector assessment template. TODO: This class should implement IAssessmentTemplate and "construct-ctor-props-type:aws-cdk-lib.aws_inspector.AssessmentTemplate" should be removed from `awslint.json` when implementing the L2 construct

Import

import { AssessmentTemplate } from 'aws-cdk-lib/aws-inspector';

Or use the module namespace:

import * as inspector from 'aws-cdk-lib/aws-inspector';
// inspector.AssessmentTemplate

Properties

Configuration passed to the constructor as ResourceProps.

accountOptional
string

The AWS account ID this resource belongs to.

Default: - the resource is in the same account as the stack it belongs to

environmentFromArnOptional
string

ARN to deduce region and account from. The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources. Cannot be supplied together with either `account` or `region`.

Default: - take environment from `account`, `region` parameters, or use Stack environment.

physicalNameOptional
string

The value passed in by users to the physical name prop of the resource. - `undefined` implies that a physical name will be allocated by CloudFormation during deployment. - a concrete value implies a specific physical name - `PhysicalName.GENERATE_IF_NEEDED` is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.

Default: - The physical name will be allocated by CloudFormation at deployment time

regionOptional
string

The AWS region this resource belongs to.

Default: - the resource is in the same region as the stack it belongs to

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter