Class: Aws::Inspector::Types::CreateAssessmentTemplateRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Inspector::Types::CreateAssessmentTemplateRequest
- Defined in:
- gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb
Overview
When making an API call, you may pass CreateAssessmentTemplateRequest data as a hash:
{
assessment_target_arn: "Arn", # required
assessment_template_name: "AssessmentTemplateName", # required
duration_in_seconds: 1, # required
rules_package_arns: ["Arn"], # required
user_attributes_for_findings: [
{
key: "AttributeKey", # required
value: "AttributeValue",
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#assessment_target_arn ⇒ String
The ARN that specifies the assessment target for which you want to create the assessment template.
-
#assessment_template_name ⇒ String
The user-defined name that identifies the assessment template that you want to create.
-
#duration_in_seconds ⇒ Integer
The duration of the assessment run in seconds.
-
#rules_package_arns ⇒ Array<String>
The ARNs that specify the rules packages that you want to attach to the assessment template.
-
#user_attributes_for_findings ⇒ Array<Types::Attribute>
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
Instance Attribute Details
#assessment_target_arn ⇒ String
The ARN that specifies the assessment target for which you want to create the assessment template.
873 874 875 876 877 878 879 880 881 |
# File 'gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb', line 873 class CreateAssessmentTemplateRequest < Struct.new( :assessment_target_arn, :assessment_template_name, :duration_in_seconds, :rules_package_arns, :user_attributes_for_findings) SENSITIVE = [] include Aws::Structure end |
#assessment_template_name ⇒ String
The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
873 874 875 876 877 878 879 880 881 |
# File 'gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb', line 873 class CreateAssessmentTemplateRequest < Struct.new( :assessment_target_arn, :assessment_template_name, :duration_in_seconds, :rules_package_arns, :user_attributes_for_findings) SENSITIVE = [] include Aws::Structure end |
#duration_in_seconds ⇒ Integer
The duration of the assessment run in seconds.
873 874 875 876 877 878 879 880 881 |
# File 'gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb', line 873 class CreateAssessmentTemplateRequest < Struct.new( :assessment_target_arn, :assessment_template_name, :duration_in_seconds, :rules_package_arns, :user_attributes_for_findings) SENSITIVE = [] include Aws::Structure end |
#rules_package_arns ⇒ Array<String>
The ARNs that specify the rules packages that you want to attach to the assessment template.
873 874 875 876 877 878 879 880 881 |
# File 'gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb', line 873 class CreateAssessmentTemplateRequest < Struct.new( :assessment_target_arn, :assessment_template_name, :duration_in_seconds, :rules_package_arns, :user_attributes_for_findings) SENSITIVE = [] include Aws::Structure end |
#user_attributes_for_findings ⇒ Array<Types::Attribute>
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
873 874 875 876 877 878 879 880 881 |
# File 'gems/aws-sdk-inspector/lib/aws-sdk-inspector/types.rb', line 873 class CreateAssessmentTemplateRequest < Struct.new( :assessment_target_arn, :assessment_template_name, :duration_in_seconds, :rules_package_arns, :user_attributes_for_findings) SENSITIVE = [] include Aws::Structure end |