The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::Inspector::CreateAssessmentTemplate - Arguments for method CreateAssessmentTemplate on Paws::Inspector

DESCRIPTION

This class represents the parameters used for calling the method CreateAssessmentTemplate on the Amazon Inspector service. Use the attributes of this class as arguments to method CreateAssessmentTemplate.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAssessmentTemplate.

SYNOPSIS

    my $inspector = Paws->service('Inspector');
 # Create assessment template
 # Creates an assessment template for the assessment target that is specified by
 # the ARN of the assessment target.
    my $CreateAssessmentTemplateResponse = $inspector->CreateAssessmentTemplate(
      'AssessmentTargetArn' =>
        'arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX',
      'AssessmentTemplateName' => 'ExampleAssessmentTemplate',
      'DurationInSeconds'      => 180,
      'RulesPackageArns'       =>
        ['arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp'],
      'UserAttributesForFindings' => [

        {
          'Key'   => 'Example',
          'Value' => 'example'
        }
      ]
    );

    # Results:
    my $assessmentTemplateArn =
      $CreateAssessmentTemplateResponse->assessmentTemplateArn;

    # Returns a L<Paws::Inspector::CreateAssessmentTemplateResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/inspector/CreateAssessmentTemplate

ATTRIBUTES

REQUIRED AssessmentTargetArn => Str

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

REQUIRED AssessmentTemplateName => Str

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.

REQUIRED DurationInSeconds => Int

The duration of the assessment run in seconds.

REQUIRED RulesPackageArns => ArrayRef[Str|Undef]

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

UserAttributesForFindings => ArrayRef[Paws::Inspector::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.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateAssessmentTemplate in Paws::Inspector

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues