You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Inspector::Types::CreateAssessmentTemplateRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateAssessmentTemplateRequest as input to an Aws::Client method, you can use a vanilla 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",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#assessment_target_arnString

The ARN that specifies the assessment target for which you want to create the assessment template.

Returns:

  • (String)

    The ARN that specifies the assessment target for which you want to create the assessment template.

#assessment_template_nameString

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.

Returns:

  • (String)

    The user-defined name that identifies the assessment template that you want to create.

#duration_in_secondsInteger

The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

Returns:

  • (Integer)

    The duration of the assessment run in seconds.

#rules_package_arnsArray<String>

The ARNs that specify the rules packages that you want to attach to the assessment template.

Returns:

  • (Array<String>)

    The ARNs that specify the rules packages that you want to attach to the assessment template.

#user_attributes_for_findingsArray<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.

Returns:

  • (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.