1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. inspector
  5. AssessmentTemplate

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.inspector.AssessmentTemplate

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Inspector::AssessmentTemplate

Create AssessmentTemplate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AssessmentTemplate(name: string, args: AssessmentTemplateArgs, opts?: CustomResourceOptions);
@overload
def AssessmentTemplate(resource_name: str,
                       args: AssessmentTemplateArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def AssessmentTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       assessment_target_arn: Optional[str] = None,
                       duration_in_seconds: Optional[int] = None,
                       rules_package_arns: Optional[Sequence[str]] = None,
                       assessment_template_name: Optional[str] = None,
                       user_attributes_for_findings: Optional[Sequence[AssessmentTemplateTagArgs]] = None)
func NewAssessmentTemplate(ctx *Context, name string, args AssessmentTemplateArgs, opts ...ResourceOption) (*AssessmentTemplate, error)
public AssessmentTemplate(string name, AssessmentTemplateArgs args, CustomResourceOptions? opts = null)
public AssessmentTemplate(String name, AssessmentTemplateArgs args)
public AssessmentTemplate(String name, AssessmentTemplateArgs args, CustomResourceOptions options)
type: aws-native:inspector:AssessmentTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AssessmentTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AssessmentTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AssessmentTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AssessmentTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AssessmentTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AssessmentTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AssessmentTemplate resource accepts the following input properties:

AssessmentTargetArn This property is required. string
The ARN of the assessment target to be included in the assessment template.
DurationInSeconds This property is required. int
The duration of the assessment run in seconds.
RulesPackageArns This property is required. List<string>
The ARNs of the rules packages that you want to use in the assessment template.
AssessmentTemplateName string
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.
UserAttributesForFindings List<Pulumi.AwsNative.Inspector.Inputs.AssessmentTemplateTag>
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.
AssessmentTargetArn This property is required. string
The ARN of the assessment target to be included in the assessment template.
DurationInSeconds This property is required. int
The duration of the assessment run in seconds.
RulesPackageArns This property is required. []string
The ARNs of the rules packages that you want to use in the assessment template.
AssessmentTemplateName string
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.
UserAttributesForFindings []AssessmentTemplateTagArgs
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.
assessmentTargetArn This property is required. String
The ARN of the assessment target to be included in the assessment template.
durationInSeconds This property is required. Integer
The duration of the assessment run in seconds.
rulesPackageArns This property is required. List<String>
The ARNs of the rules packages that you want to use in the assessment template.
assessmentTemplateName String
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.
userAttributesForFindings List<AssessmentTemplateTag>
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.
assessmentTargetArn This property is required. string
The ARN of the assessment target to be included in the assessment template.
durationInSeconds This property is required. number
The duration of the assessment run in seconds.
rulesPackageArns This property is required. string[]
The ARNs of the rules packages that you want to use in the assessment template.
assessmentTemplateName string
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.
userAttributesForFindings AssessmentTemplateTag[]
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.
assessment_target_arn This property is required. str
The ARN of the assessment target to be included in the assessment template.
duration_in_seconds This property is required. int
The duration of the assessment run in seconds.
rules_package_arns This property is required. Sequence[str]
The ARNs of the rules packages that you want to use in the assessment template.
assessment_template_name str
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.
user_attributes_for_findings Sequence[AssessmentTemplateTagArgs]
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.
assessmentTargetArn This property is required. String
The ARN of the assessment target to be included in the assessment template.
durationInSeconds This property is required. Number
The duration of the assessment run in seconds.
rulesPackageArns This property is required. List<String>
The ARNs of the rules packages that you want to use in the assessment template.
assessmentTemplateName String
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.
userAttributesForFindings List<Property Map>
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the AssessmentTemplate resource produces the following output properties:

Arn string
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
Id string
The provider-assigned unique ID for this managed resource.
arn String
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
id String
The provider-assigned unique ID for this managed resource.
arn string
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
id string
The provider-assigned unique ID for this managed resource.
arn str
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
id str
The provider-assigned unique ID for this managed resource.
arn String
The Amazon Resource Name (ARN) that specifies the assessment template that is created.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

AssessmentTemplateTag
, AssessmentTemplateTagArgs

Key This property is required. string
A tag key.
Value This property is required. string
A value assigned to a tag key.
Key This property is required. string
A tag key.
Value This property is required. string
A value assigned to a tag key.
key This property is required. String
A tag key.
value This property is required. String
A value assigned to a tag key.
key This property is required. string
A tag key.
value This property is required. string
A value assigned to a tag key.
key This property is required. str
A tag key.
value This property is required. str
A value assigned to a tag key.
key This property is required. String
A tag key.
value This property is required. String
A value assigned to a tag key.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi