blib/lib/Paws/AmplifyBackend/CreateBackendAPI.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AmplifyBackend::CreateBackendAPI;
3 use Moose;
4 has AppId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'appId', required => 1);
5 has BackendEnvironmentName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'backendEnvironmentName', required => 1);
6 has ResourceConfig => (is => 'ro', isa => 'Paws::AmplifyBackend::BackendAPIResourceConfig', traits => ['NameInRequest'], request_name => 'resourceConfig', required => 1);
7 has ResourceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceName', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateBackendAPI');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/backend/{appId}/api');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AmplifyBackend::CreateBackendAPIResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::AmplifyBackend::CreateBackendAPI - Arguments for method CreateBackendAPI on L<Paws::AmplifyBackend>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateBackendAPI on the
26 L<AmplifyBackend|Paws::AmplifyBackend> service. Use the attributes of this class
27 as arguments to method CreateBackendAPI.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateBackendAPI.
30  
31 =head1 SYNOPSIS
32  
33 my $amplifybackend = Paws->service('AmplifyBackend');
34 my $CreateBackendAPIResponse = $amplifybackend->CreateBackendAPI(
35 AppId => 'My__string',
36 BackendEnvironmentName => 'My__string',
37 ResourceConfig => {
38 AdditionalAuthTypes => [
39 {
40 Mode => 'API_KEY'
41 , # values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT; OPTIONAL
42 Settings => {
43 CognitoUserPoolId => 'My__string',
44 Description => 'My__string',
45 ExpirationTime => 1, # OPTIONAL
46 OpenIDAuthTTL => 'My__string',
47 OpenIDClientId => 'My__string',
48 OpenIDIatTTL => 'My__string',
49 OpenIDIssueURL => 'My__string',
50 OpenIDProviderName => 'My__string',
51 }, # OPTIONAL
52 },
53 ...
54 ], # OPTIONAL
55 ApiName => 'My__string',
56 ConflictResolution => {
57 ResolutionStrategy => 'OPTIMISTIC_CONCURRENCY'
58 , # values: OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE; OPTIONAL
59 }, # OPTIONAL
60 DefaultAuthType => {
61 Mode => 'API_KEY'
62 , # values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT; OPTIONAL
63 Settings => {
64 CognitoUserPoolId => 'My__string',
65 Description => 'My__string',
66 ExpirationTime => 1, # OPTIONAL
67 OpenIDAuthTTL => 'My__string',
68 OpenIDClientId => 'My__string',
69 OpenIDIatTTL => 'My__string',
70 OpenIDIssueURL => 'My__string',
71 OpenIDProviderName => 'My__string',
72 }, # OPTIONAL
73 },
74 Service => 'My__string',
75 TransformSchema => 'My__string',
76 },
77 ResourceName => 'My__string',
78  
79 );
80  
81 # Results:
82 my $AppId = $CreateBackendAPIResponse->AppId;
83 my $BackendEnvironmentName =
84 $CreateBackendAPIResponse->BackendEnvironmentName;
85 my $Error = $CreateBackendAPIResponse->Error;
86 my $JobId = $CreateBackendAPIResponse->JobId;
87 my $Operation = $CreateBackendAPIResponse->Operation;
88 my $Status = $CreateBackendAPIResponse->Status;
89  
90 # Returns a L<Paws::AmplifyBackend::CreateBackendAPIResponse> object.
91  
92 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.
93 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/amplifybackend/CreateBackendAPI>
94  
95 =head1 ATTRIBUTES
96  
97  
98 =head2 B<REQUIRED> AppId => Str
99  
100 The app ID.
101  
102  
103  
104 =head2 B<REQUIRED> BackendEnvironmentName => Str
105  
106 The name of the backend environment.
107  
108  
109  
110 =head2 B<REQUIRED> ResourceConfig => L<Paws::AmplifyBackend::BackendAPIResourceConfig>
111  
112 The resource configuration for this request.
113  
114  
115  
116 =head2 B<REQUIRED> ResourceName => Str
117  
118 The name of this resource.
119  
120  
121  
122  
123 =head1 SEE ALSO
124  
125 This class forms part of L<Paws>, documenting arguments for method CreateBackendAPI in L<Paws::AmplifyBackend>
126  
127 =head1 BUGS and CONTRIBUTIONS
128  
129 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
130  
131 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
132  
133 =cut
134