aws-sdk-lakeformation 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,482 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::LakeFormation
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
15
+ BatchGrantPermissionsRequest = Shapes::StructureShape.new(name: 'BatchGrantPermissionsRequest')
16
+ BatchGrantPermissionsResponse = Shapes::StructureShape.new(name: 'BatchGrantPermissionsResponse')
17
+ BatchPermissionsFailureEntry = Shapes::StructureShape.new(name: 'BatchPermissionsFailureEntry')
18
+ BatchPermissionsFailureList = Shapes::ListShape.new(name: 'BatchPermissionsFailureList')
19
+ BatchPermissionsRequestEntry = Shapes::StructureShape.new(name: 'BatchPermissionsRequestEntry')
20
+ BatchPermissionsRequestEntryList = Shapes::ListShape.new(name: 'BatchPermissionsRequestEntryList')
21
+ BatchRevokePermissionsRequest = Shapes::StructureShape.new(name: 'BatchRevokePermissionsRequest')
22
+ BatchRevokePermissionsResponse = Shapes::StructureShape.new(name: 'BatchRevokePermissionsResponse')
23
+ CatalogIdString = Shapes::StringShape.new(name: 'CatalogIdString')
24
+ CatalogResource = Shapes::StructureShape.new(name: 'CatalogResource')
25
+ ColumnNames = Shapes::ListShape.new(name: 'ColumnNames')
26
+ ColumnWildcard = Shapes::StructureShape.new(name: 'ColumnWildcard')
27
+ ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
28
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
29
+ DataLakePrincipal = Shapes::StructureShape.new(name: 'DataLakePrincipal')
30
+ DataLakePrincipalList = Shapes::ListShape.new(name: 'DataLakePrincipalList')
31
+ DataLakePrincipalString = Shapes::StringShape.new(name: 'DataLakePrincipalString')
32
+ DataLakeResourceType = Shapes::StringShape.new(name: 'DataLakeResourceType')
33
+ DataLakeSettings = Shapes::StructureShape.new(name: 'DataLakeSettings')
34
+ DataLocationResource = Shapes::StructureShape.new(name: 'DataLocationResource')
35
+ DatabaseResource = Shapes::StructureShape.new(name: 'DatabaseResource')
36
+ DeregisterResourceRequest = Shapes::StructureShape.new(name: 'DeregisterResourceRequest')
37
+ DeregisterResourceResponse = Shapes::StructureShape.new(name: 'DeregisterResourceResponse')
38
+ DescribeResourceRequest = Shapes::StructureShape.new(name: 'DescribeResourceRequest')
39
+ DescribeResourceResponse = Shapes::StructureShape.new(name: 'DescribeResourceResponse')
40
+ DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
41
+ EntityNotFoundException = Shapes::StructureShape.new(name: 'EntityNotFoundException')
42
+ ErrorDetail = Shapes::StructureShape.new(name: 'ErrorDetail')
43
+ FieldNameString = Shapes::StringShape.new(name: 'FieldNameString')
44
+ FilterCondition = Shapes::StructureShape.new(name: 'FilterCondition')
45
+ FilterConditionList = Shapes::ListShape.new(name: 'FilterConditionList')
46
+ GetDataLakeSettingsRequest = Shapes::StructureShape.new(name: 'GetDataLakeSettingsRequest')
47
+ GetDataLakeSettingsResponse = Shapes::StructureShape.new(name: 'GetDataLakeSettingsResponse')
48
+ GetEffectivePermissionsForPathRequest = Shapes::StructureShape.new(name: 'GetEffectivePermissionsForPathRequest')
49
+ GetEffectivePermissionsForPathResponse = Shapes::StructureShape.new(name: 'GetEffectivePermissionsForPathResponse')
50
+ GrantPermissionsRequest = Shapes::StructureShape.new(name: 'GrantPermissionsRequest')
51
+ GrantPermissionsResponse = Shapes::StructureShape.new(name: 'GrantPermissionsResponse')
52
+ IAMRoleArn = Shapes::StringShape.new(name: 'IAMRoleArn')
53
+ Identifier = Shapes::StringShape.new(name: 'Identifier')
54
+ InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
55
+ InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
56
+ LastModifiedTimestamp = Shapes::TimestampShape.new(name: 'LastModifiedTimestamp')
57
+ ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
58
+ ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
59
+ ListResourcesRequest = Shapes::StructureShape.new(name: 'ListResourcesRequest')
60
+ ListResourcesResponse = Shapes::StructureShape.new(name: 'ListResourcesResponse')
61
+ MessageString = Shapes::StringShape.new(name: 'MessageString')
62
+ NameString = Shapes::StringShape.new(name: 'NameString')
63
+ NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
64
+ OperationTimeoutException = Shapes::StructureShape.new(name: 'OperationTimeoutException')
65
+ PageSize = Shapes::IntegerShape.new(name: 'PageSize')
66
+ Permission = Shapes::StringShape.new(name: 'Permission')
67
+ PermissionList = Shapes::ListShape.new(name: 'PermissionList')
68
+ PrincipalPermissions = Shapes::StructureShape.new(name: 'PrincipalPermissions')
69
+ PrincipalPermissionsList = Shapes::ListShape.new(name: 'PrincipalPermissionsList')
70
+ PrincipalResourcePermissions = Shapes::StructureShape.new(name: 'PrincipalResourcePermissions')
71
+ PrincipalResourcePermissionsList = Shapes::ListShape.new(name: 'PrincipalResourcePermissionsList')
72
+ PutDataLakeSettingsRequest = Shapes::StructureShape.new(name: 'PutDataLakeSettingsRequest')
73
+ PutDataLakeSettingsResponse = Shapes::StructureShape.new(name: 'PutDataLakeSettingsResponse')
74
+ RegisterResourceRequest = Shapes::StructureShape.new(name: 'RegisterResourceRequest')
75
+ RegisterResourceResponse = Shapes::StructureShape.new(name: 'RegisterResourceResponse')
76
+ Resource = Shapes::StructureShape.new(name: 'Resource')
77
+ ResourceArnString = Shapes::StringShape.new(name: 'ResourceArnString')
78
+ ResourceInfo = Shapes::StructureShape.new(name: 'ResourceInfo')
79
+ ResourceInfoList = Shapes::ListShape.new(name: 'ResourceInfoList')
80
+ RevokePermissionsRequest = Shapes::StructureShape.new(name: 'RevokePermissionsRequest')
81
+ RevokePermissionsResponse = Shapes::StructureShape.new(name: 'RevokePermissionsResponse')
82
+ StringValue = Shapes::StringShape.new(name: 'StringValue')
83
+ StringValueList = Shapes::ListShape.new(name: 'StringValueList')
84
+ TableResource = Shapes::StructureShape.new(name: 'TableResource')
85
+ TableWithColumnsResource = Shapes::StructureShape.new(name: 'TableWithColumnsResource')
86
+ Token = Shapes::StringShape.new(name: 'Token')
87
+ UpdateResourceRequest = Shapes::StructureShape.new(name: 'UpdateResourceRequest')
88
+ UpdateResourceResponse = Shapes::StructureShape.new(name: 'UpdateResourceResponse')
89
+
90
+ AlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
91
+ AlreadyExistsException.struct_class = Types::AlreadyExistsException
92
+
93
+ BatchGrantPermissionsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
94
+ BatchGrantPermissionsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: BatchPermissionsRequestEntryList, required: true, location_name: "Entries"))
95
+ BatchGrantPermissionsRequest.struct_class = Types::BatchGrantPermissionsRequest
96
+
97
+ BatchGrantPermissionsResponse.add_member(:failures, Shapes::ShapeRef.new(shape: BatchPermissionsFailureList, location_name: "Failures"))
98
+ BatchGrantPermissionsResponse.struct_class = Types::BatchGrantPermissionsResponse
99
+
100
+ BatchPermissionsFailureEntry.add_member(:request_entry, Shapes::ShapeRef.new(shape: BatchPermissionsRequestEntry, location_name: "RequestEntry"))
101
+ BatchPermissionsFailureEntry.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetail, location_name: "Error"))
102
+ BatchPermissionsFailureEntry.struct_class = Types::BatchPermissionsFailureEntry
103
+
104
+ BatchPermissionsFailureList.member = Shapes::ShapeRef.new(shape: BatchPermissionsFailureEntry)
105
+
106
+ BatchPermissionsRequestEntry.add_member(:id, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "Id"))
107
+ BatchPermissionsRequestEntry.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, location_name: "Principal"))
108
+ BatchPermissionsRequestEntry.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "Resource"))
109
+ BatchPermissionsRequestEntry.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionList, location_name: "Permissions"))
110
+ BatchPermissionsRequestEntry.add_member(:permissions_with_grant_option, Shapes::ShapeRef.new(shape: PermissionList, location_name: "PermissionsWithGrantOption"))
111
+ BatchPermissionsRequestEntry.struct_class = Types::BatchPermissionsRequestEntry
112
+
113
+ BatchPermissionsRequestEntryList.member = Shapes::ShapeRef.new(shape: BatchPermissionsRequestEntry)
114
+
115
+ BatchRevokePermissionsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
116
+ BatchRevokePermissionsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: BatchPermissionsRequestEntryList, required: true, location_name: "Entries"))
117
+ BatchRevokePermissionsRequest.struct_class = Types::BatchRevokePermissionsRequest
118
+
119
+ BatchRevokePermissionsResponse.add_member(:failures, Shapes::ShapeRef.new(shape: BatchPermissionsFailureList, location_name: "Failures"))
120
+ BatchRevokePermissionsResponse.struct_class = Types::BatchRevokePermissionsResponse
121
+
122
+ CatalogResource.struct_class = Types::CatalogResource
123
+
124
+ ColumnNames.member = Shapes::ShapeRef.new(shape: NameString)
125
+
126
+ ColumnWildcard.add_member(:excluded_column_names, Shapes::ShapeRef.new(shape: ColumnNames, location_name: "ExcludedColumnNames"))
127
+ ColumnWildcard.struct_class = Types::ColumnWildcard
128
+
129
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
130
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
131
+
132
+ DataLakePrincipal.add_member(:data_lake_principal_identifier, Shapes::ShapeRef.new(shape: DataLakePrincipalString, location_name: "DataLakePrincipalIdentifier"))
133
+ DataLakePrincipal.struct_class = Types::DataLakePrincipal
134
+
135
+ DataLakePrincipalList.member = Shapes::ShapeRef.new(shape: DataLakePrincipal)
136
+
137
+ DataLakeSettings.add_member(:data_lake_admins, Shapes::ShapeRef.new(shape: DataLakePrincipalList, location_name: "DataLakeAdmins"))
138
+ DataLakeSettings.add_member(:create_database_default_permissions, Shapes::ShapeRef.new(shape: PrincipalPermissionsList, location_name: "CreateDatabaseDefaultPermissions"))
139
+ DataLakeSettings.add_member(:create_table_default_permissions, Shapes::ShapeRef.new(shape: PrincipalPermissionsList, location_name: "CreateTableDefaultPermissions"))
140
+ DataLakeSettings.struct_class = Types::DataLakeSettings
141
+
142
+ DataLocationResource.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
143
+ DataLocationResource.struct_class = Types::DataLocationResource
144
+
145
+ DatabaseResource.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
146
+ DatabaseResource.struct_class = Types::DatabaseResource
147
+
148
+ DeregisterResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
149
+ DeregisterResourceRequest.struct_class = Types::DeregisterResourceRequest
150
+
151
+ DeregisterResourceResponse.struct_class = Types::DeregisterResourceResponse
152
+
153
+ DescribeResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
154
+ DescribeResourceRequest.struct_class = Types::DescribeResourceRequest
155
+
156
+ DescribeResourceResponse.add_member(:resource_info, Shapes::ShapeRef.new(shape: ResourceInfo, location_name: "ResourceInfo"))
157
+ DescribeResourceResponse.struct_class = Types::DescribeResourceResponse
158
+
159
+ EntityNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
160
+ EntityNotFoundException.struct_class = Types::EntityNotFoundException
161
+
162
+ ErrorDetail.add_member(:error_code, Shapes::ShapeRef.new(shape: NameString, location_name: "ErrorCode"))
163
+ ErrorDetail.add_member(:error_message, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "ErrorMessage"))
164
+ ErrorDetail.struct_class = Types::ErrorDetail
165
+
166
+ FilterCondition.add_member(:field, Shapes::ShapeRef.new(shape: FieldNameString, location_name: "Field"))
167
+ FilterCondition.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
168
+ FilterCondition.add_member(:string_value_list, Shapes::ShapeRef.new(shape: StringValueList, location_name: "StringValueList"))
169
+ FilterCondition.struct_class = Types::FilterCondition
170
+
171
+ FilterConditionList.member = Shapes::ShapeRef.new(shape: FilterCondition)
172
+
173
+ GetDataLakeSettingsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
174
+ GetDataLakeSettingsRequest.struct_class = Types::GetDataLakeSettingsRequest
175
+
176
+ GetDataLakeSettingsResponse.add_member(:data_lake_settings, Shapes::ShapeRef.new(shape: DataLakeSettings, location_name: "DataLakeSettings"))
177
+ GetDataLakeSettingsResponse.struct_class = Types::GetDataLakeSettingsResponse
178
+
179
+ GetEffectivePermissionsForPathRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
180
+ GetEffectivePermissionsForPathRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
181
+ GetEffectivePermissionsForPathRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
182
+ GetEffectivePermissionsForPathRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
183
+ GetEffectivePermissionsForPathRequest.struct_class = Types::GetEffectivePermissionsForPathRequest
184
+
185
+ GetEffectivePermissionsForPathResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: PrincipalResourcePermissionsList, location_name: "Permissions"))
186
+ GetEffectivePermissionsForPathResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
187
+ GetEffectivePermissionsForPathResponse.struct_class = Types::GetEffectivePermissionsForPathResponse
188
+
189
+ GrantPermissionsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
190
+ GrantPermissionsRequest.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, required: true, location_name: "Principal"))
191
+ GrantPermissionsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, required: true, location_name: "Resource"))
192
+ GrantPermissionsRequest.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionList, required: true, location_name: "Permissions"))
193
+ GrantPermissionsRequest.add_member(:permissions_with_grant_option, Shapes::ShapeRef.new(shape: PermissionList, location_name: "PermissionsWithGrantOption"))
194
+ GrantPermissionsRequest.struct_class = Types::GrantPermissionsRequest
195
+
196
+ GrantPermissionsResponse.struct_class = Types::GrantPermissionsResponse
197
+
198
+ InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
199
+ InternalServiceException.struct_class = Types::InternalServiceException
200
+
201
+ InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
202
+ InvalidInputException.struct_class = Types::InvalidInputException
203
+
204
+ ListPermissionsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
205
+ ListPermissionsRequest.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, location_name: "Principal"))
206
+ ListPermissionsRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: DataLakeResourceType, location_name: "ResourceType"))
207
+ ListPermissionsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "Resource"))
208
+ ListPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
209
+ ListPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
210
+ ListPermissionsRequest.struct_class = Types::ListPermissionsRequest
211
+
212
+ ListPermissionsResponse.add_member(:principal_resource_permissions, Shapes::ShapeRef.new(shape: PrincipalResourcePermissionsList, location_name: "PrincipalResourcePermissions"))
213
+ ListPermissionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
214
+ ListPermissionsResponse.struct_class = Types::ListPermissionsResponse
215
+
216
+ ListResourcesRequest.add_member(:filter_condition_list, Shapes::ShapeRef.new(shape: FilterConditionList, location_name: "FilterConditionList"))
217
+ ListResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
218
+ ListResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
219
+ ListResourcesRequest.struct_class = Types::ListResourcesRequest
220
+
221
+ ListResourcesResponse.add_member(:resource_info_list, Shapes::ShapeRef.new(shape: ResourceInfoList, location_name: "ResourceInfoList"))
222
+ ListResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
223
+ ListResourcesResponse.struct_class = Types::ListResourcesResponse
224
+
225
+ OperationTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
226
+ OperationTimeoutException.struct_class = Types::OperationTimeoutException
227
+
228
+ PermissionList.member = Shapes::ShapeRef.new(shape: Permission)
229
+
230
+ PrincipalPermissions.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, location_name: "Principal"))
231
+ PrincipalPermissions.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionList, location_name: "Permissions"))
232
+ PrincipalPermissions.struct_class = Types::PrincipalPermissions
233
+
234
+ PrincipalPermissionsList.member = Shapes::ShapeRef.new(shape: PrincipalPermissions)
235
+
236
+ PrincipalResourcePermissions.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, location_name: "Principal"))
237
+ PrincipalResourcePermissions.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "Resource"))
238
+ PrincipalResourcePermissions.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionList, location_name: "Permissions"))
239
+ PrincipalResourcePermissions.add_member(:permissions_with_grant_option, Shapes::ShapeRef.new(shape: PermissionList, location_name: "PermissionsWithGrantOption"))
240
+ PrincipalResourcePermissions.struct_class = Types::PrincipalResourcePermissions
241
+
242
+ PrincipalResourcePermissionsList.member = Shapes::ShapeRef.new(shape: PrincipalResourcePermissions)
243
+
244
+ PutDataLakeSettingsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
245
+ PutDataLakeSettingsRequest.add_member(:data_lake_settings, Shapes::ShapeRef.new(shape: DataLakeSettings, required: true, location_name: "DataLakeSettings"))
246
+ PutDataLakeSettingsRequest.struct_class = Types::PutDataLakeSettingsRequest
247
+
248
+ PutDataLakeSettingsResponse.struct_class = Types::PutDataLakeSettingsResponse
249
+
250
+ RegisterResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
251
+ RegisterResourceRequest.add_member(:use_service_linked_role, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "UseServiceLinkedRole"))
252
+ RegisterResourceRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, location_name: "RoleArn"))
253
+ RegisterResourceRequest.struct_class = Types::RegisterResourceRequest
254
+
255
+ RegisterResourceResponse.struct_class = Types::RegisterResourceResponse
256
+
257
+ Resource.add_member(:catalog, Shapes::ShapeRef.new(shape: CatalogResource, location_name: "Catalog"))
258
+ Resource.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseResource, location_name: "Database"))
259
+ Resource.add_member(:table, Shapes::ShapeRef.new(shape: TableResource, location_name: "Table"))
260
+ Resource.add_member(:table_with_columns, Shapes::ShapeRef.new(shape: TableWithColumnsResource, location_name: "TableWithColumns"))
261
+ Resource.add_member(:data_location, Shapes::ShapeRef.new(shape: DataLocationResource, location_name: "DataLocation"))
262
+ Resource.struct_class = Types::Resource
263
+
264
+ ResourceInfo.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, location_name: "ResourceArn"))
265
+ ResourceInfo.add_member(:role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, location_name: "RoleArn"))
266
+ ResourceInfo.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModifiedTimestamp, location_name: "LastModified"))
267
+ ResourceInfo.struct_class = Types::ResourceInfo
268
+
269
+ ResourceInfoList.member = Shapes::ShapeRef.new(shape: ResourceInfo)
270
+
271
+ RevokePermissionsRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
272
+ RevokePermissionsRequest.add_member(:principal, Shapes::ShapeRef.new(shape: DataLakePrincipal, required: true, location_name: "Principal"))
273
+ RevokePermissionsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, required: true, location_name: "Resource"))
274
+ RevokePermissionsRequest.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionList, required: true, location_name: "Permissions"))
275
+ RevokePermissionsRequest.add_member(:permissions_with_grant_option, Shapes::ShapeRef.new(shape: PermissionList, location_name: "PermissionsWithGrantOption"))
276
+ RevokePermissionsRequest.struct_class = Types::RevokePermissionsRequest
277
+
278
+ RevokePermissionsResponse.struct_class = Types::RevokePermissionsResponse
279
+
280
+ StringValueList.member = Shapes::ShapeRef.new(shape: StringValue)
281
+
282
+ TableResource.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
283
+ TableResource.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
284
+ TableResource.struct_class = Types::TableResource
285
+
286
+ TableWithColumnsResource.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, location_name: "DatabaseName"))
287
+ TableWithColumnsResource.add_member(:name, Shapes::ShapeRef.new(shape: NameString, location_name: "Name"))
288
+ TableWithColumnsResource.add_member(:column_names, Shapes::ShapeRef.new(shape: ColumnNames, location_name: "ColumnNames"))
289
+ TableWithColumnsResource.add_member(:column_wildcard, Shapes::ShapeRef.new(shape: ColumnWildcard, location_name: "ColumnWildcard"))
290
+ TableWithColumnsResource.struct_class = Types::TableWithColumnsResource
291
+
292
+ UpdateResourceRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "RoleArn"))
293
+ UpdateResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
294
+ UpdateResourceRequest.struct_class = Types::UpdateResourceRequest
295
+
296
+ UpdateResourceResponse.struct_class = Types::UpdateResourceResponse
297
+
298
+
299
+ # @api private
300
+ API = Seahorse::Model::Api.new.tap do |api|
301
+
302
+ api.version = "2017-03-31"
303
+
304
+ api.metadata = {
305
+ "apiVersion" => "2017-03-31",
306
+ "endpointPrefix" => "lakeformation",
307
+ "jsonVersion" => "1.1",
308
+ "protocol" => "json",
309
+ "serviceFullName" => "AWS Lake Formation",
310
+ "serviceId" => "LakeFormation",
311
+ "signatureVersion" => "v4",
312
+ "signingName" => "lakeformation",
313
+ "targetPrefix" => "AWSLakeFormation",
314
+ "uid" => "lakeformation-2017-03-31",
315
+ }
316
+
317
+ api.add_operation(:batch_grant_permissions, Seahorse::Model::Operation.new.tap do |o|
318
+ o.name = "BatchGrantPermissions"
319
+ o.http_method = "POST"
320
+ o.http_request_uri = "/"
321
+ o.input = Shapes::ShapeRef.new(shape: BatchGrantPermissionsRequest)
322
+ o.output = Shapes::ShapeRef.new(shape: BatchGrantPermissionsResponse)
323
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
324
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
325
+ end)
326
+
327
+ api.add_operation(:batch_revoke_permissions, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "BatchRevokePermissions"
329
+ o.http_method = "POST"
330
+ o.http_request_uri = "/"
331
+ o.input = Shapes::ShapeRef.new(shape: BatchRevokePermissionsRequest)
332
+ o.output = Shapes::ShapeRef.new(shape: BatchRevokePermissionsResponse)
333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
334
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
335
+ end)
336
+
337
+ api.add_operation(:deregister_resource, Seahorse::Model::Operation.new.tap do |o|
338
+ o.name = "DeregisterResource"
339
+ o.http_method = "POST"
340
+ o.http_request_uri = "/"
341
+ o.input = Shapes::ShapeRef.new(shape: DeregisterResourceRequest)
342
+ o.output = Shapes::ShapeRef.new(shape: DeregisterResourceResponse)
343
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
344
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
345
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
346
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
347
+ end)
348
+
349
+ api.add_operation(:describe_resource, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "DescribeResource"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/"
353
+ o.input = Shapes::ShapeRef.new(shape: DescribeResourceRequest)
354
+ o.output = Shapes::ShapeRef.new(shape: DescribeResourceResponse)
355
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
356
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
357
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
358
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
359
+ end)
360
+
361
+ api.add_operation(:get_data_lake_settings, Seahorse::Model::Operation.new.tap do |o|
362
+ o.name = "GetDataLakeSettings"
363
+ o.http_method = "POST"
364
+ o.http_request_uri = "/"
365
+ o.input = Shapes::ShapeRef.new(shape: GetDataLakeSettingsRequest)
366
+ o.output = Shapes::ShapeRef.new(shape: GetDataLakeSettingsResponse)
367
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
368
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
369
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
370
+ end)
371
+
372
+ api.add_operation(:get_effective_permissions_for_path, Seahorse::Model::Operation.new.tap do |o|
373
+ o.name = "GetEffectivePermissionsForPath"
374
+ o.http_method = "POST"
375
+ o.http_request_uri = "/"
376
+ o.input = Shapes::ShapeRef.new(shape: GetEffectivePermissionsForPathRequest)
377
+ o.output = Shapes::ShapeRef.new(shape: GetEffectivePermissionsForPathResponse)
378
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
379
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
380
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
381
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
382
+ o[:pager] = Aws::Pager.new(
383
+ limit_key: "max_results",
384
+ tokens: {
385
+ "next_token" => "next_token"
386
+ }
387
+ )
388
+ end)
389
+
390
+ api.add_operation(:grant_permissions, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "GrantPermissions"
392
+ o.http_method = "POST"
393
+ o.http_request_uri = "/"
394
+ o.input = Shapes::ShapeRef.new(shape: GrantPermissionsRequest)
395
+ o.output = Shapes::ShapeRef.new(shape: GrantPermissionsResponse)
396
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
397
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
399
+ end)
400
+
401
+ api.add_operation(:list_permissions, Seahorse::Model::Operation.new.tap do |o|
402
+ o.name = "ListPermissions"
403
+ o.http_method = "POST"
404
+ o.http_request_uri = "/"
405
+ o.input = Shapes::ShapeRef.new(shape: ListPermissionsRequest)
406
+ o.output = Shapes::ShapeRef.new(shape: ListPermissionsResponse)
407
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
408
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
409
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
410
+ o[:pager] = Aws::Pager.new(
411
+ limit_key: "max_results",
412
+ tokens: {
413
+ "next_token" => "next_token"
414
+ }
415
+ )
416
+ end)
417
+
418
+ api.add_operation(:list_resources, Seahorse::Model::Operation.new.tap do |o|
419
+ o.name = "ListResources"
420
+ o.http_method = "POST"
421
+ o.http_request_uri = "/"
422
+ o.input = Shapes::ShapeRef.new(shape: ListResourcesRequest)
423
+ o.output = Shapes::ShapeRef.new(shape: ListResourcesResponse)
424
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
425
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
426
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
427
+ o[:pager] = Aws::Pager.new(
428
+ limit_key: "max_results",
429
+ tokens: {
430
+ "next_token" => "next_token"
431
+ }
432
+ )
433
+ end)
434
+
435
+ api.add_operation(:put_data_lake_settings, Seahorse::Model::Operation.new.tap do |o|
436
+ o.name = "PutDataLakeSettings"
437
+ o.http_method = "POST"
438
+ o.http_request_uri = "/"
439
+ o.input = Shapes::ShapeRef.new(shape: PutDataLakeSettingsRequest)
440
+ o.output = Shapes::ShapeRef.new(shape: PutDataLakeSettingsResponse)
441
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
442
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
443
+ end)
444
+
445
+ api.add_operation(:register_resource, Seahorse::Model::Operation.new.tap do |o|
446
+ o.name = "RegisterResource"
447
+ o.http_method = "POST"
448
+ o.http_request_uri = "/"
449
+ o.input = Shapes::ShapeRef.new(shape: RegisterResourceRequest)
450
+ o.output = Shapes::ShapeRef.new(shape: RegisterResourceResponse)
451
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
452
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
453
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
454
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
455
+ end)
456
+
457
+ api.add_operation(:revoke_permissions, Seahorse::Model::Operation.new.tap do |o|
458
+ o.name = "RevokePermissions"
459
+ o.http_method = "POST"
460
+ o.http_request_uri = "/"
461
+ o.input = Shapes::ShapeRef.new(shape: RevokePermissionsRequest)
462
+ o.output = Shapes::ShapeRef.new(shape: RevokePermissionsResponse)
463
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
464
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
465
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
466
+ end)
467
+
468
+ api.add_operation(:update_resource, Seahorse::Model::Operation.new.tap do |o|
469
+ o.name = "UpdateResource"
470
+ o.http_method = "POST"
471
+ o.http_request_uri = "/"
472
+ o.input = Shapes::ShapeRef.new(shape: UpdateResourceRequest)
473
+ o.output = Shapes::ShapeRef.new(shape: UpdateResourceResponse)
474
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
475
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
476
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
477
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
478
+ end)
479
+ end
480
+
481
+ end
482
+ end