We recommend new projects start with resources from the AWS provider.
aws-native.inspector.AssessmentTemplate
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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:
- Assessment
Target Arn This property is required. string - 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. List<string> - The ARNs of the rules packages that you want to use in the assessment template.
- Assessment
Template stringName - 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 List<Pulumi.For Findings Aws Native. Inspector. Inputs. Assessment Template Tag> - 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. string - 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. []string - The ARNs of the rules packages that you want to use in the assessment template.
- Assessment
Template stringName - 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 []AssessmentFor Findings Template Tag Args - 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. String - The ARN of the assessment target to be included in the assessment template.
- duration
In Seconds This property is required. Integer - The duration of the assessment run in seconds.
- rules
Package Arns This property is required. List<String> - The ARNs of the rules packages that you want to use in the assessment template.
- assessment
Template StringName - 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 List<AssessmentFor Findings Template Tag> - 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. string - The ARN of the assessment target to be included in the assessment template.
- duration
In Seconds This property is required. number - The duration of the assessment run in seconds.
- rules
Package Arns This property is required. string[] - The ARNs of the rules packages that you want to use in the assessment template.
- assessment
Template stringName - 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 AssessmentFor Findings Template Tag[] - 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_ strname - 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_ Sequence[Assessmentfor_ findings Template Tag Args] - 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. String - The ARN of the assessment target to be included in the assessment template.
- duration
In Seconds This property is required. Number - The duration of the assessment run in seconds.
- rules
Package Arns This property is required. List<String> - The ARNs of the rules packages that you want to use in the assessment template.
- assessment
Template StringName - 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 List<Property Map>For Findings - 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:
Supporting Types
AssessmentTemplateTag, AssessmentTemplateTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.