blib/lib/Paws/AppSync/UpdateFunction.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppSync::UpdateFunction;
3 use Moose;
4 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
5 has DataSourceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dataSourceName', required => 1);
6 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
7 has FunctionId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'functionId', required => 1);
8 has FunctionVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'functionVersion', required => 1);
9 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
10 has RequestMappingTemplate => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'requestMappingTemplate');
11 has ResponseMappingTemplate => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'responseMappingTemplate');
12 has SyncConfig => (is => 'ro', isa => 'Paws::AppSync::SyncConfig', traits => ['NameInRequest'], request_name => 'syncConfig');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunction');
17 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apis/{apiId}/functions/{functionId}');
18 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
19 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppSync::UpdateFunctionResponse');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::AppSync::UpdateFunction - Arguments for method UpdateFunction on L<Paws::AppSync>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method UpdateFunction on the
31 L<AWS AppSync|Paws::AppSync> service. Use the attributes of this class
32 as arguments to method UpdateFunction.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunction.
35  
36 =head1 SYNOPSIS
37  
38 my $appsync = Paws->service('AppSync');
39 my $UpdateFunctionResponse = $appsync->UpdateFunction(
40 ApiId => 'MyString',
41 DataSourceName => 'MyResourceName',
42 FunctionId => 'MyResourceName',
43 FunctionVersion => 'MyString',
44 Name => 'MyResourceName',
45 Description => 'MyString', # OPTIONAL
46 RequestMappingTemplate => 'MyMappingTemplate', # OPTIONAL
47 ResponseMappingTemplate => 'MyMappingTemplate', # OPTIONAL
48 SyncConfig => {
49 ConflictDetection => 'VERSION', # values: VERSION, NONE; OPTIONAL
50 ConflictHandler => 'OPTIMISTIC_CONCURRENCY'
51 , # values: OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE; OPTIONAL
52 LambdaConflictHandlerConfig =>
53 { LambdaConflictHandlerArn => 'MyString', }, # OPTIONAL
54 }, # OPTIONAL
55 );
56  
57 # Results:
58 my $FunctionConfiguration = $UpdateFunctionResponse->FunctionConfiguration;
59  
60 # Returns a L<Paws::AppSync::UpdateFunctionResponse> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appsync/UpdateFunction>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 B<REQUIRED> ApiId => Str
69  
70 The GraphQL API ID.
71  
72  
73  
74 =head2 B<REQUIRED> DataSourceName => Str
75  
76 The C<Function> C<DataSource> name.
77  
78  
79  
80 =head2 Description => Str
81  
82 The C<Function> description.
83  
84  
85  
86 =head2 B<REQUIRED> FunctionId => Str
87  
88 The function ID.
89  
90  
91  
92 =head2 B<REQUIRED> FunctionVersion => Str
93  
94 The C<version> of the request mapping template. Currently the supported
95 value is 2018-05-29.
96  
97  
98  
99 =head2 B<REQUIRED> Name => Str
100  
101 The C<Function> name.
102  
103  
104  
105 =head2 RequestMappingTemplate => Str
106  
107 The C<Function> request mapping template. Functions support only the
108 2018-05-29 version of the request mapping template.
109  
110  
111  
112 =head2 ResponseMappingTemplate => Str
113  
114 The C<Function> request mapping template.
115  
116  
117  
118 =head2 SyncConfig => L<Paws::AppSync::SyncConfig>
119  
120  
121  
122  
123  
124  
125 =head1 SEE ALSO
126  
127 This class forms part of L<Paws>, documenting arguments for method UpdateFunction in L<Paws::AppSync>
128  
129 =head1 BUGS and CONTRIBUTIONS
130  
131 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
132  
133 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
134  
135 =cut
136