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
The ARN that specifies the assessment target for which you want to create the assessment template.
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.
The duration of the assessment run in seconds.
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
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.