blib/lib/Paws/AmplifyBackend/UpdateBackendAuth.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::UpdateBackendAuth;
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 => ['ParamInURI'], uri_name => 'backendEnvironmentName', required => 1);
6 has ResourceConfig => (is => 'ro', isa => 'Paws::AmplifyBackend::UpdateBackendAuthResourceConfig', 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 => 'UpdateBackendAuth');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/backend/{appId}/auth/{backendEnvironmentName}');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AmplifyBackend::UpdateBackendAuthResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::AmplifyBackend::UpdateBackendAuth - Arguments for method UpdateBackendAuth on L<Paws::AmplifyBackend>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method UpdateBackendAuth on the
26 L<AmplifyBackend|Paws::AmplifyBackend> service. Use the attributes of this class
27 as arguments to method UpdateBackendAuth.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBackendAuth.
30  
31 =head1 SYNOPSIS
32  
33 my $amplifybackend = Paws->service('AmplifyBackend');
34 my $UpdateBackendAuthResponse = $amplifybackend->UpdateBackendAuth(
35 AppId => 'My__string',
36 BackendEnvironmentName => 'My__string',
37 ResourceConfig => {
38 AuthResources => 'USER_POOL_ONLY'
39 , # values: USER_POOL_ONLY, IDENTITY_POOL_AND_USER_POOL
40 Service => 'COGNITO', # values: COGNITO
41 UserPoolConfigs => {
42 ForgotPassword => {
43 DeliveryMethod => 'EMAIL', # values: EMAIL, SMS; OPTIONAL
44 EmailSettings => {
45 EmailMessage => 'My__string',
46 EmailSubject => 'My__string',
47 }, # OPTIONAL
48 SmsSettings => { SmsMessage => 'My__string', }, # OPTIONAL
49 }, # OPTIONAL
50 Mfa => {
51 MFAMode => 'ON', # values: ON, OFF, OPTIONAL; OPTIONAL
52 Settings => {
53 MfaTypes => [
54 'SMS', ... # values: SMS, TOTP
55 ], # OPTIONAL
56 SmsMessage => 'My__string',
57 }, # OPTIONAL
58 }, # OPTIONAL
59 OAuth => {
60 DomainPrefix => 'My__string',
61 OAuthGrantType => 'CODE', # values: CODE, IMPLICIT; OPTIONAL
62 OAuthScopes => [
63 'PHONE',
64 ... # values: PHONE, EMAIL, OPENID, PROFILE, AWS_COGNITO_SIGNIN_USER_ADMIN
65 ], # OPTIONAL
66 RedirectSignInURIs => [ 'My__string', ... ], # OPTIONAL
67 RedirectSignOutURIs => [ 'My__string', ... ], # OPTIONAL
68 SocialProviderSettings => {
69 Facebook => {
70 ClientId => 'My__string',
71 ClientSecret => 'My__string',
72 }, # OPTIONAL
73 Google => {
74 ClientId => 'My__string',
75 ClientSecret => 'My__string',
76 }, # OPTIONAL
77 LoginWithAmazon => {
78 ClientId => 'My__string',
79 ClientSecret => 'My__string',
80 }, # OPTIONAL
81 }, # OPTIONAL
82 }, # OPTIONAL
83 PasswordPolicy => {
84 AdditionalConstraints => [
85 'REQUIRE_DIGIT',
86 ... # values: REQUIRE_DIGIT, REQUIRE_LOWERCASE, REQUIRE_SYMBOL, REQUIRE_UPPERCASE
87 ], # OPTIONAL
88 MinimumLength => 1, # OPTIONAL
89 }, # OPTIONAL
90 },
91 IdentityPoolConfigs => {
92 UnauthenticatedLogin => 1, # OPTIONAL
93 }, # OPTIONAL
94 },
95 ResourceName => 'My__string',
96  
97 );
98  
99 # Results:
100 my $AppId = $UpdateBackendAuthResponse->AppId;
101 my $BackendEnvironmentName =
102 $UpdateBackendAuthResponse->BackendEnvironmentName;
103 my $Error = $UpdateBackendAuthResponse->Error;
104 my $JobId = $UpdateBackendAuthResponse->JobId;
105 my $Operation = $UpdateBackendAuthResponse->Operation;
106 my $Status = $UpdateBackendAuthResponse->Status;
107  
108 # Returns a L<Paws::AmplifyBackend::UpdateBackendAuthResponse> object.
109  
110 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.
111 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/amplifybackend/UpdateBackendAuth>
112  
113 =head1 ATTRIBUTES
114  
115  
116 =head2 B<REQUIRED> AppId => Str
117  
118 The app ID.
119  
120  
121  
122 =head2 B<REQUIRED> BackendEnvironmentName => Str
123  
124 The name of the backend environment.
125  
126  
127  
128 =head2 B<REQUIRED> ResourceConfig => L<Paws::AmplifyBackend::UpdateBackendAuthResourceConfig>
129  
130 The resource configuration for this request object.
131  
132  
133  
134 =head2 B<REQUIRED> ResourceName => Str
135  
136 The name of this resource.
137  
138  
139  
140  
141 =head1 SEE ALSO
142  
143 This class forms part of L<Paws>, documenting arguments for method UpdateBackendAuth in L<Paws::AmplifyBackend>
144  
145 =head1 BUGS and CONTRIBUTIONS
146  
147 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
148  
149 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
150  
151 =cut
152