blib/lib/Paws/AppSync/CreateGraphqlApi.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::CreateGraphqlApi;
3 use Moose;
4 has AdditionalAuthenticationProviders => (is => 'ro', isa => 'ArrayRef[Paws::AppSync::AdditionalAuthenticationProvider]', traits => ['NameInRequest'], request_name => 'additionalAuthenticationProviders');
5 has AuthenticationType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authenticationType', required => 1);
6 has LogConfig => (is => 'ro', isa => 'Paws::AppSync::LogConfig', traits => ['NameInRequest'], request_name => 'logConfig');
7 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
8 has OpenIDConnectConfig => (is => 'ro', isa => 'Paws::AppSync::OpenIDConnectConfig', traits => ['NameInRequest'], request_name => 'openIDConnectConfig');
9 has Tags => (is => 'ro', isa => 'Paws::AppSync::TagMap', traits => ['NameInRequest'], request_name => 'tags');
10 has UserPoolConfig => (is => 'ro', isa => 'Paws::AppSync::UserPoolConfig', traits => ['NameInRequest'], request_name => 'userPoolConfig');
11 has XrayEnabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'xrayEnabled');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGraphqlApi');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apis');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppSync::CreateGraphqlApiResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::AppSync::CreateGraphqlApi - Arguments for method CreateGraphqlApi on L<Paws::AppSync>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateGraphqlApi on the
30 L<AWS AppSync|Paws::AppSync> service. Use the attributes of this class
31 as arguments to method CreateGraphqlApi.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGraphqlApi.
34  
35 =head1 SYNOPSIS
36  
37 my $appsync = Paws->service('AppSync');
38 my $CreateGraphqlApiResponse = $appsync->CreateGraphqlApi(
39 AuthenticationType => 'API_KEY',
40 Name => 'MyString',
41 AdditionalAuthenticationProviders => [
42 {
43 AuthenticationType => 'API_KEY'
44 , # values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT
45 OpenIDConnectConfig => {
46 Issuer => 'MyString',
47 AuthTTL => 1, # OPTIONAL
48 ClientId => 'MyString',
49 IatTTL => 1, # OPTIONAL
50 }, # OPTIONAL
51 UserPoolConfig => {
52 AwsRegion => 'MyString',
53 UserPoolId => 'MyString',
54 AppIdClientRegex => 'MyString',
55 }, # OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 LogConfig => {
60 CloudWatchLogsRoleArn => 'MyString',
61 FieldLogLevel => 'NONE', # values: NONE, ERROR, ALL
62 ExcludeVerboseContent => 1, # OPTIONAL
63 }, # OPTIONAL
64 OpenIDConnectConfig => {
65 Issuer => 'MyString',
66 AuthTTL => 1, # OPTIONAL
67 ClientId => 'MyString',
68 IatTTL => 1, # OPTIONAL
69 }, # OPTIONAL
70 Tags => {
71 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
72 }, # OPTIONAL
73 UserPoolConfig => {
74 AwsRegion => 'MyString',
75 DefaultAction => 'ALLOW', # values: ALLOW, DENY
76 UserPoolId => 'MyString',
77 AppIdClientRegex => 'MyString',
78 }, # OPTIONAL
79 XrayEnabled => 1, # OPTIONAL
80 );
81  
82 # Results:
83 my $GraphqlApi = $CreateGraphqlApiResponse->GraphqlApi;
84  
85 # Returns a L<Paws::AppSync::CreateGraphqlApiResponse> object.
86  
87 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.
88 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appsync/CreateGraphqlApi>
89  
90 =head1 ATTRIBUTES
91  
92  
93 =head2 AdditionalAuthenticationProviders => ArrayRef[L<Paws::AppSync::AdditionalAuthenticationProvider>]
94  
95 A list of additional authentication providers for the C<GraphqlApi>
96 API.
97  
98  
99  
100 =head2 B<REQUIRED> AuthenticationType => Str
101  
102 The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
103 pools.
104  
105 Valid values are: C<"API_KEY">, C<"AWS_IAM">, C<"AMAZON_COGNITO_USER_POOLS">, C<"OPENID_CONNECT">
106  
107 =head2 LogConfig => L<Paws::AppSync::LogConfig>
108  
109 The Amazon CloudWatch Logs configuration.
110  
111  
112  
113 =head2 B<REQUIRED> Name => Str
114  
115 A user-supplied name for the C<GraphqlApi>.
116  
117  
118  
119 =head2 OpenIDConnectConfig => L<Paws::AppSync::OpenIDConnectConfig>
120  
121 The OpenID Connect configuration.
122  
123  
124  
125 =head2 Tags => L<Paws::AppSync::TagMap>
126  
127 A C<TagMap> object.
128  
129  
130  
131 =head2 UserPoolConfig => L<Paws::AppSync::UserPoolConfig>
132  
133 The Amazon Cognito user pool configuration.
134  
135  
136  
137 =head2 XrayEnabled => Bool
138  
139 A flag indicating whether to enable X-Ray tracing for the
140 C<GraphqlApi>.
141  
142  
143  
144  
145 =head1 SEE ALSO
146  
147 This class forms part of L<Paws>, documenting arguments for method CreateGraphqlApi in L<Paws::AppSync>
148  
149 =head1 BUGS and CONTRIBUTIONS
150  
151 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
152  
153 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
154  
155 =cut
156