| 1 | |||
| 2 | package Paws::CloudFront::TestFunction; | ||
| 3 | use Moose; | ||
| 4 | has EventObject => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has IfMatch => (is => 'ro', isa => 'Str', header_name => 'If-Match', traits => ['ParamInHeader'], required => 1); | ||
| 6 | has Name => (is => 'ro', isa => 'Str', uri_name => 'Name', traits => ['ParamInURI'], required => 1); | ||
| 7 | has Stage => (is => 'ro', isa => 'Str'); | ||
| 8 | |||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'TestFunction'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2020-05-31/function/{Name}/test'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFront::TestFunctionResult'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'TestFunctionRequest'); | ||
| 18 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'http://cloudfront.amazonaws.com/doc/2020-05-31/'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::CloudFront::TestFunction - Arguments for method TestFunction on L<Paws::CloudFront> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method TestFunction2020_05_31 on the | ||
| 30 | L<Amazon CloudFront|Paws::CloudFront> service. Use the attributes of this class | ||
| 31 | as arguments to method TestFunction2020_05_31. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to TestFunction2020_05_31. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $cloudfront = Paws->service('CloudFront'); | ||
| 38 | my $TestFunctionResult = $cloudfront->TestFunction( | ||
| 39 | EventObject => 'BlobFunctionEventObject', | ||
| 40 | IfMatch => 'Mystring', | ||
| 41 | Name => 'Mystring', | ||
| 42 | Stage => 'DEVELOPMENT', # OPTIONAL | ||
| 43 | ); | ||
| 44 | |||
| 45 | # Results: | ||
| 46 | my $TestResult = $TestFunctionResult->TestResult; | ||
| 47 | |||
| 48 | # Returns a L<Paws::CloudFront::TestFunctionResult> object. | ||
| 49 | |||
| 50 | 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. | ||
| 51 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront/TestFunction> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 B<REQUIRED> EventObject => Str | ||
| 57 | |||
| 58 | The event object to test the function with. For more information about | ||
| 59 | the structure of the event object, see Testing functions | ||
| 60 | (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function) | ||
| 61 | in the I<Amazon CloudFront Developer Guide>. | ||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | =head2 B<REQUIRED> IfMatch => Str | ||
| 66 | |||
| 67 | The current version (C<ETag> value) of the function that you are | ||
| 68 | testing, which you can get using C<DescribeFunction>. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 B<REQUIRED> Name => Str | ||
| 73 | |||
| 74 | The name of the function that you are testing. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 Stage => Str | ||
| 79 | |||
| 80 | The stage of the function that you are testing, either C<DEVELOPMENT> | ||
| 81 | or C<LIVE>. | ||
| 82 | |||
| 83 | Valid values are: C<"DEVELOPMENT">, C<"LIVE"> | ||
| 84 | |||
| 85 | |||
| 86 | =head1 SEE ALSO | ||
| 87 | |||
| 88 | This class forms part of L<Paws>, documenting arguments for method TestFunction2020_05_31 in L<Paws::CloudFront> | ||
| 89 | |||
| 90 | =head1 BUGS and CONTRIBUTIONS | ||
| 91 | |||
| 92 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 93 | |||
| 94 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 95 | |||
| 96 | =cut | ||
| 97 |