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

filter: Statementstmt 0.0% 0 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppSync::CreateDataSource;
3 use Moose;
4 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
6 has DynamodbConfig => (is => 'ro', isa => 'Paws::AppSync::DynamodbDataSourceConfig', traits => ['NameInRequest'], request_name => 'dynamodbConfig');
7 has ElasticsearchConfig => (is => 'ro', isa => 'Paws::AppSync::ElasticsearchDataSourceConfig', traits => ['NameInRequest'], request_name => 'elasticsearchConfig');
8 has HttpConfig => (is => 'ro', isa => 'Paws::AppSync::HttpDataSourceConfig', traits => ['NameInRequest'], request_name => 'httpConfig');
9 has LambdaConfig => (is => 'ro', isa => 'Paws::AppSync::LambdaDataSourceConfig', traits => ['NameInRequest'], request_name => 'lambdaConfig');
10 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
11 has RelationalDatabaseConfig => (is => 'ro', isa => 'Paws::AppSync::RelationalDatabaseDataSourceConfig', traits => ['NameInRequest'], request_name => 'relationalDatabaseConfig');
12 has ServiceRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceRoleArn');
13 has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type', required => 1);
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataSource');
18 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apis/{apiId}/datasources');
19 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
20 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppSync::CreateDataSourceResponse');
21 1;
22  
23 ### main pod documentation begin ###
24  
25 =head1 NAME
26  
27 Paws::AppSync::CreateDataSource - Arguments for method CreateDataSource on L<Paws::AppSync>
28  
29 =head1 DESCRIPTION
30  
31 This class represents the parameters used for calling the method CreateDataSource on the
32 L<AWS AppSync|Paws::AppSync> service. Use the attributes of this class
33 as arguments to method CreateDataSource.
34  
35 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataSource.
36  
37 =head1 SYNOPSIS
38  
39 my $appsync = Paws->service('AppSync');
40 my $CreateDataSourceResponse = $appsync->CreateDataSource(
41 ApiId => 'MyString',
42 Name => 'MyResourceName',
43 Type => 'AWS_LAMBDA',
44 Description => 'MyString', # OPTIONAL
45 DynamodbConfig => {
46 AwsRegion => 'MyString',
47 TableName => 'MyString',
48 DeltaSyncConfig => {
49 BaseTableTTL => 1, # OPTIONAL
50 DeltaSyncTableName => 'MyString',
51 DeltaSyncTableTTL => 1, # OPTIONAL
52 }, # OPTIONAL
53 UseCallerCredentials => 1, # OPTIONAL
54 Versioned => 1, # OPTIONAL
55 }, # OPTIONAL
56 ElasticsearchConfig => {
57 AwsRegion => 'MyString',
58 Endpoint => 'MyString',
59  
60 }, # OPTIONAL
61 HttpConfig => {
62 AuthorizationConfig => {
63 AuthorizationType => 'AWS_IAM', # values: AWS_IAM
64 AwsIamConfig => {
65 SigningRegion => 'MyString',
66 SigningServiceName => 'MyString',
67 }, # OPTIONAL
68 }, # OPTIONAL
69 Endpoint => 'MyString',
70 }, # OPTIONAL
71 LambdaConfig => {
72 LambdaFunctionArn => 'MyString',
73  
74 }, # OPTIONAL
75 RelationalDatabaseConfig => {
76 RdsHttpEndpointConfig => {
77 AwsRegion => 'MyString',
78 AwsSecretStoreArn => 'MyString',
79 DatabaseName => 'MyString',
80 DbClusterIdentifier => 'MyString',
81 Schema => 'MyString',
82 }, # OPTIONAL
83 RelationalDatabaseSourceType =>
84 'RDS_HTTP_ENDPOINT', # values: RDS_HTTP_ENDPOINT; OPTIONAL
85 }, # OPTIONAL
86 ServiceRoleArn => 'MyString', # OPTIONAL
87 );
88  
89 # Results:
90 my $DataSource = $CreateDataSourceResponse->DataSource;
91  
92 # Returns a L<Paws::AppSync::CreateDataSourceResponse> object.
93  
94 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.
95 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appsync/CreateDataSource>
96  
97 =head1 ATTRIBUTES
98  
99  
100 =head2 B<REQUIRED> ApiId => Str
101  
102 The API ID for the GraphQL API for the C<DataSource>.
103  
104  
105  
106 =head2 Description => Str
107  
108 A description of the C<DataSource>.
109  
110  
111  
112 =head2 DynamodbConfig => L<Paws::AppSync::DynamodbDataSourceConfig>
113  
114 Amazon DynamoDB settings.
115  
116  
117  
118 =head2 ElasticsearchConfig => L<Paws::AppSync::ElasticsearchDataSourceConfig>
119  
120 Amazon Elasticsearch Service settings.
121  
122  
123  
124 =head2 HttpConfig => L<Paws::AppSync::HttpDataSourceConfig>
125  
126 HTTP endpoint settings.
127  
128  
129  
130 =head2 LambdaConfig => L<Paws::AppSync::LambdaDataSourceConfig>
131  
132 AWS Lambda settings.
133  
134  
135  
136 =head2 B<REQUIRED> Name => Str
137  
138 A user-supplied name for the C<DataSource>.
139  
140  
141  
142 =head2 RelationalDatabaseConfig => L<Paws::AppSync::RelationalDatabaseDataSourceConfig>
143  
144 Relational database settings.
145  
146  
147  
148 =head2 ServiceRoleArn => Str
149  
150 The AWS IAM service role ARN for the data source. The system assumes
151 this role when accessing the data source.
152  
153  
154  
155 =head2 B<REQUIRED> Type => Str
156  
157 The type of the C<DataSource>.
158  
159 Valid values are: C<"AWS_LAMBDA">, C<"AMAZON_DYNAMODB">, C<"AMAZON_ELASTICSEARCH">, C<"NONE">, C<"HTTP">, C<"RELATIONAL_DATABASE">
160  
161  
162 =head1 SEE ALSO
163  
164 This class forms part of L<Paws>, documenting arguments for method CreateDataSource in L<Paws::AppSync>
165  
166 =head1 BUGS and CONTRIBUTIONS
167  
168 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
169  
170 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
171  
172 =cut
173