GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paws::Inspector::CreateAssessmentTemplate(3) User Contributed Perl Documentation Paws::Inspector::CreateAssessmentTemplate(3)

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

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.

    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>

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.

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.

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

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>

2022-06-01 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.