blib/lib/Paws/AppSync/UpdateDataSource.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::UpdateDataSource;
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 => ['ParamInURI'], uri_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 => 'UpdateDataSource');
18 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apis/{apiId}/datasources/{name}');
19 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
20 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppSync::UpdateDataSourceResponse');
21 1;
22  
23 ### main pod documentation begin ###
24  
25 =head1 NAME
26  
27 Paws::AppSync::UpdateDataSource - Arguments for method UpdateDataSource on L<Paws::AppSync>
28  
29 =head1 DESCRIPTION
30  
31 This class represents the parameters used for calling the method UpdateDataSource on the
32 L<AWS AppSync|Paws::AppSync> service. Use the attributes of this class
33 as arguments to method UpdateDataSource.
34  
35 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDataSource.
36  
37 =head1 SYNOPSIS
38  
39 my $appsync = Paws->service('AppSync');
40 my $UpdateDataSourceResponse = $appsync->UpdateDataSource(
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 = $UpdateDataSourceResponse->DataSource;
91  
92 # Returns a L<Paws::AppSync::UpdateDataSourceResponse> 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/UpdateDataSource>
96  
97 =head1 ATTRIBUTES
98  
99  
100 =head2 B<REQUIRED> ApiId => Str
101  
102 The API ID.
103  
104  
105  
106 =head2 Description => Str
107  
108 The new description for the data source.
109  
110  
111  
112 =head2 DynamodbConfig => L<Paws::AppSync::DynamodbDataSourceConfig>
113  
114 The new Amazon DynamoDB configuration.
115  
116  
117  
118 =head2 ElasticsearchConfig => L<Paws::AppSync::ElasticsearchDataSourceConfig>
119  
120 The new Elasticsearch Service configuration.
121  
122  
123  
124 =head2 HttpConfig => L<Paws::AppSync::HttpDataSourceConfig>
125  
126 The new HTTP endpoint configuration.
127  
128  
129  
130 =head2 LambdaConfig => L<Paws::AppSync::LambdaDataSourceConfig>
131  
132 The new AWS Lambda configuration.
133  
134  
135  
136 =head2 B<REQUIRED> Name => Str
137  
138 The new name for the data source.
139  
140  
141  
142 =head2 RelationalDatabaseConfig => L<Paws::AppSync::RelationalDatabaseDataSourceConfig>
143  
144 The new relational database configuration.
145  
146  
147  
148 =head2 ServiceRoleArn => Str
149  
150 The new service role ARN for the data source.
151  
152  
153  
154 =head2 B<REQUIRED> Type => Str
155  
156 The new data source type.
157  
158 Valid values are: C<"AWS_LAMBDA">, C<"AMAZON_DYNAMODB">, C<"AMAZON_ELASTICSEARCH">, C<"NONE">, C<"HTTP">, C<"RELATIONAL_DATABASE">
159  
160  
161 =head1 SEE ALSO
162  
163 This class forms part of L<Paws>, documenting arguments for method UpdateDataSource in L<Paws::AppSync>
164  
165 =head1 BUGS and CONTRIBUTIONS
166  
167 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
168  
169 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
170  
171 =cut
172