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

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