aws-sdk-lakeformation 1.62.0 → 1.64.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::LakeFormation::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,121 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :add_lf_tags_to_resource
74
- Aws::LakeFormation::Endpoints::AddLFTagsToResource.build(context)
75
- when :assume_decorated_role_with_saml
76
- Aws::LakeFormation::Endpoints::AssumeDecoratedRoleWithSAML.build(context)
77
- when :batch_grant_permissions
78
- Aws::LakeFormation::Endpoints::BatchGrantPermissions.build(context)
79
- when :batch_revoke_permissions
80
- Aws::LakeFormation::Endpoints::BatchRevokePermissions.build(context)
81
- when :cancel_transaction
82
- Aws::LakeFormation::Endpoints::CancelTransaction.build(context)
83
- when :commit_transaction
84
- Aws::LakeFormation::Endpoints::CommitTransaction.build(context)
85
- when :create_data_cells_filter
86
- Aws::LakeFormation::Endpoints::CreateDataCellsFilter.build(context)
87
- when :create_lf_tag
88
- Aws::LakeFormation::Endpoints::CreateLFTag.build(context)
89
- when :create_lake_formation_identity_center_configuration
90
- Aws::LakeFormation::Endpoints::CreateLakeFormationIdentityCenterConfiguration.build(context)
91
- when :create_lake_formation_opt_in
92
- Aws::LakeFormation::Endpoints::CreateLakeFormationOptIn.build(context)
93
- when :delete_data_cells_filter
94
- Aws::LakeFormation::Endpoints::DeleteDataCellsFilter.build(context)
95
- when :delete_lf_tag
96
- Aws::LakeFormation::Endpoints::DeleteLFTag.build(context)
97
- when :delete_lake_formation_identity_center_configuration
98
- Aws::LakeFormation::Endpoints::DeleteLakeFormationIdentityCenterConfiguration.build(context)
99
- when :delete_lake_formation_opt_in
100
- Aws::LakeFormation::Endpoints::DeleteLakeFormationOptIn.build(context)
101
- when :delete_objects_on_cancel
102
- Aws::LakeFormation::Endpoints::DeleteObjectsOnCancel.build(context)
103
- when :deregister_resource
104
- Aws::LakeFormation::Endpoints::DeregisterResource.build(context)
105
- when :describe_lake_formation_identity_center_configuration
106
- Aws::LakeFormation::Endpoints::DescribeLakeFormationIdentityCenterConfiguration.build(context)
107
- when :describe_resource
108
- Aws::LakeFormation::Endpoints::DescribeResource.build(context)
109
- when :describe_transaction
110
- Aws::LakeFormation::Endpoints::DescribeTransaction.build(context)
111
- when :extend_transaction
112
- Aws::LakeFormation::Endpoints::ExtendTransaction.build(context)
113
- when :get_data_cells_filter
114
- Aws::LakeFormation::Endpoints::GetDataCellsFilter.build(context)
115
- when :get_data_lake_principal
116
- Aws::LakeFormation::Endpoints::GetDataLakePrincipal.build(context)
117
- when :get_data_lake_settings
118
- Aws::LakeFormation::Endpoints::GetDataLakeSettings.build(context)
119
- when :get_effective_permissions_for_path
120
- Aws::LakeFormation::Endpoints::GetEffectivePermissionsForPath.build(context)
121
- when :get_lf_tag
122
- Aws::LakeFormation::Endpoints::GetLFTag.build(context)
123
- when :get_query_state
124
- Aws::LakeFormation::Endpoints::GetQueryState.build(context)
125
- when :get_query_statistics
126
- Aws::LakeFormation::Endpoints::GetQueryStatistics.build(context)
127
- when :get_resource_lf_tags
128
- Aws::LakeFormation::Endpoints::GetResourceLFTags.build(context)
129
- when :get_table_objects
130
- Aws::LakeFormation::Endpoints::GetTableObjects.build(context)
131
- when :get_temporary_glue_partition_credentials
132
- Aws::LakeFormation::Endpoints::GetTemporaryGluePartitionCredentials.build(context)
133
- when :get_temporary_glue_table_credentials
134
- Aws::LakeFormation::Endpoints::GetTemporaryGlueTableCredentials.build(context)
135
- when :get_work_unit_results
136
- Aws::LakeFormation::Endpoints::GetWorkUnitResults.build(context)
137
- when :get_work_units
138
- Aws::LakeFormation::Endpoints::GetWorkUnits.build(context)
139
- when :grant_permissions
140
- Aws::LakeFormation::Endpoints::GrantPermissions.build(context)
141
- when :list_data_cells_filter
142
- Aws::LakeFormation::Endpoints::ListDataCellsFilter.build(context)
143
- when :list_lf_tags
144
- Aws::LakeFormation::Endpoints::ListLFTags.build(context)
145
- when :list_lake_formation_opt_ins
146
- Aws::LakeFormation::Endpoints::ListLakeFormationOptIns.build(context)
147
- when :list_permissions
148
- Aws::LakeFormation::Endpoints::ListPermissions.build(context)
149
- when :list_resources
150
- Aws::LakeFormation::Endpoints::ListResources.build(context)
151
- when :list_table_storage_optimizers
152
- Aws::LakeFormation::Endpoints::ListTableStorageOptimizers.build(context)
153
- when :list_transactions
154
- Aws::LakeFormation::Endpoints::ListTransactions.build(context)
155
- when :put_data_lake_settings
156
- Aws::LakeFormation::Endpoints::PutDataLakeSettings.build(context)
157
- when :register_resource
158
- Aws::LakeFormation::Endpoints::RegisterResource.build(context)
159
- when :remove_lf_tags_from_resource
160
- Aws::LakeFormation::Endpoints::RemoveLFTagsFromResource.build(context)
161
- when :revoke_permissions
162
- Aws::LakeFormation::Endpoints::RevokePermissions.build(context)
163
- when :search_databases_by_lf_tags
164
- Aws::LakeFormation::Endpoints::SearchDatabasesByLFTags.build(context)
165
- when :search_tables_by_lf_tags
166
- Aws::LakeFormation::Endpoints::SearchTablesByLFTags.build(context)
167
- when :start_query_planning
168
- Aws::LakeFormation::Endpoints::StartQueryPlanning.build(context)
169
- when :start_transaction
170
- Aws::LakeFormation::Endpoints::StartTransaction.build(context)
171
- when :update_data_cells_filter
172
- Aws::LakeFormation::Endpoints::UpdateDataCellsFilter.build(context)
173
- when :update_lf_tag
174
- Aws::LakeFormation::Endpoints::UpdateLFTag.build(context)
175
- when :update_lake_formation_identity_center_configuration
176
- Aws::LakeFormation::Endpoints::UpdateLakeFormationIdentityCenterConfiguration.build(context)
177
- when :update_resource
178
- Aws::LakeFormation::Endpoints::UpdateResource.build(context)
179
- when :update_table_objects
180
- Aws::LakeFormation::Endpoints::UpdateTableObjects.build(context)
181
- when :update_table_storage_optimizer
182
- Aws::LakeFormation::Endpoints::UpdateTableStorageOptimizer.build(context)
183
- end
184
- end
185
70
  end
186
71
 
187
72
  def add_handlers(handlers, _config)
@@ -434,6 +434,40 @@ module Aws::LakeFormation
434
434
  #
435
435
  class CreateDataCellsFilterResponse < Aws::EmptyStructure; end
436
436
 
437
+ # @!attribute [rw] name
438
+ # A name for the expression.
439
+ # @return [String]
440
+ #
441
+ # @!attribute [rw] description
442
+ # A description with information about the LF-Tag expression.
443
+ # @return [String]
444
+ #
445
+ # @!attribute [rw] catalog_id
446
+ # The identifier for the Data Catalog. By default, the account ID. The
447
+ # Data Catalog is the persistent metadata store. It contains database
448
+ # definitions, table definitions, and other control information to
449
+ # manage your Lake Formation environment.
450
+ # @return [String]
451
+ #
452
+ # @!attribute [rw] expression
453
+ # A list of LF-Tag conditions (key-value pairs).
454
+ # @return [Array<Types::LFTag>]
455
+ #
456
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/CreateLFTagExpressionRequest AWS API Documentation
457
+ #
458
+ class CreateLFTagExpressionRequest < Struct.new(
459
+ :name,
460
+ :description,
461
+ :catalog_id,
462
+ :expression)
463
+ SENSITIVE = []
464
+ include Aws::Structure
465
+ end
466
+
467
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/CreateLFTagExpressionResponse AWS API Documentation
468
+ #
469
+ class CreateLFTagExpressionResponse < Aws::EmptyStructure; end
470
+
437
471
  # @!attribute [rw] catalog_id
438
472
  # The identifier for the Data Catalog. By default, the account ID. The
439
473
  # Data Catalog is the persistent metadata store. It contains database
@@ -849,6 +883,28 @@ module Aws::LakeFormation
849
883
  #
850
884
  class DeleteDataCellsFilterResponse < Aws::EmptyStructure; end
851
885
 
886
+ # @!attribute [rw] name
887
+ # The name for the LF-Tag expression.
888
+ # @return [String]
889
+ #
890
+ # @!attribute [rw] catalog_id
891
+ # The identifier for the Data Catalog. By default, the account ID in
892
+ # which the LF-Tag expression is saved.
893
+ # @return [String]
894
+ #
895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/DeleteLFTagExpressionRequest AWS API Documentation
896
+ #
897
+ class DeleteLFTagExpressionRequest < Struct.new(
898
+ :name,
899
+ :catalog_id)
900
+ SENSITIVE = []
901
+ include Aws::Structure
902
+ end
903
+
904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/DeleteLFTagExpressionResponse AWS API Documentation
905
+ #
906
+ class DeleteLFTagExpressionResponse < Aws::EmptyStructure; end
907
+
852
908
  # @!attribute [rw] catalog_id
853
909
  # The identifier for the Data Catalog. By default, the account ID. The
854
910
  # Data Catalog is the persistent metadata store. It contains database
@@ -1397,6 +1453,52 @@ module Aws::LakeFormation
1397
1453
  include Aws::Structure
1398
1454
  end
1399
1455
 
1456
+ # @!attribute [rw] name
1457
+ # The name for the LF-Tag expression
1458
+ # @return [String]
1459
+ #
1460
+ # @!attribute [rw] catalog_id
1461
+ # The identifier for the Data Catalog. By default, the account ID.
1462
+ # @return [String]
1463
+ #
1464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GetLFTagExpressionRequest AWS API Documentation
1465
+ #
1466
+ class GetLFTagExpressionRequest < Struct.new(
1467
+ :name,
1468
+ :catalog_id)
1469
+ SENSITIVE = []
1470
+ include Aws::Structure
1471
+ end
1472
+
1473
+ # @!attribute [rw] name
1474
+ # The name for the LF-Tag expression.
1475
+ # @return [String]
1476
+ #
1477
+ # @!attribute [rw] description
1478
+ # The description with information about the LF-Tag expression.
1479
+ # @return [String]
1480
+ #
1481
+ # @!attribute [rw] catalog_id
1482
+ # The identifier for the Data Catalog. By default, the account ID in
1483
+ # which the LF-Tag expression is saved.
1484
+ # @return [String]
1485
+ #
1486
+ # @!attribute [rw] expression
1487
+ # The body of the LF-Tag expression. It is composed of one or more
1488
+ # LF-Tag key-value pairs.
1489
+ # @return [Array<Types::LFTag>]
1490
+ #
1491
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GetLFTagExpressionResponse AWS API Documentation
1492
+ #
1493
+ class GetLFTagExpressionResponse < Struct.new(
1494
+ :name,
1495
+ :description,
1496
+ :catalog_id,
1497
+ :expression)
1498
+ SENSITIVE = []
1499
+ include Aws::Structure
1500
+ end
1501
+
1400
1502
  # @!attribute [rw] catalog_id
1401
1503
  # The identifier for the Data Catalog. By default, the account ID. The
1402
1504
  # Data Catalog is the persistent metadata store. It contains database
@@ -2032,6 +2134,54 @@ module Aws::LakeFormation
2032
2134
  include Aws::Structure
2033
2135
  end
2034
2136
 
2137
+ # A structure consists LF-Tag expression name and catalog ID.
2138
+ #
2139
+ # @!attribute [rw] name
2140
+ # The name for saved the LF-Tag expression.
2141
+ # @return [String]
2142
+ #
2143
+ # @!attribute [rw] description
2144
+ # A structure that contains information about the LF-Tag expression.
2145
+ # @return [String]
2146
+ #
2147
+ # @!attribute [rw] catalog_id
2148
+ # The identifier for the Data Catalog. By default, the account ID.
2149
+ # @return [String]
2150
+ #
2151
+ # @!attribute [rw] expression
2152
+ # A logical expression composed of one or more LF-Tags.
2153
+ # @return [Array<Types::LFTag>]
2154
+ #
2155
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/LFTagExpression AWS API Documentation
2156
+ #
2157
+ class LFTagExpression < Struct.new(
2158
+ :name,
2159
+ :description,
2160
+ :catalog_id,
2161
+ :expression)
2162
+ SENSITIVE = []
2163
+ include Aws::Structure
2164
+ end
2165
+
2166
+ # A structure containing a LF-Tag expression (keys and values).
2167
+ #
2168
+ # @!attribute [rw] catalog_id
2169
+ # The identifier for the Data Catalog. By default, the account ID.
2170
+ # @return [String]
2171
+ #
2172
+ # @!attribute [rw] name
2173
+ # The name of the LF-Tag expression to grant permissions on.
2174
+ # @return [String]
2175
+ #
2176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/LFTagExpressionResource AWS API Documentation
2177
+ #
2178
+ class LFTagExpressionResource < Struct.new(
2179
+ :catalog_id,
2180
+ :name)
2181
+ SENSITIVE = []
2182
+ include Aws::Structure
2183
+ end
2184
+
2035
2185
  # A structure containing an LF-tag key and values for a resource.
2036
2186
  #
2037
2187
  # @!attribute [rw] catalog_id
@@ -2086,8 +2236,8 @@ module Aws::LakeFormation
2086
2236
  include Aws::Structure
2087
2237
  end
2088
2238
 
2089
- # A structure containing a list of LF-tag conditions that apply to a
2090
- # resource's LF-tag policy.
2239
+ # A structure containing a list of LF-tag conditions or saved LF-Tag
2240
+ # expressions that apply to a resource's LF-tag policy.
2091
2241
  #
2092
2242
  # @!attribute [rw] catalog_id
2093
2243
  # The identifier for the Data Catalog. By default, the account ID. The
@@ -2101,16 +2251,23 @@ module Aws::LakeFormation
2101
2251
  # @return [String]
2102
2252
  #
2103
2253
  # @!attribute [rw] expression
2104
- # A list of LF-tag conditions that apply to the resource's LF-tag
2105
- # policy.
2254
+ # A list of LF-tag conditions or a saved expression that apply to the
2255
+ # resource's LF-tag policy.
2106
2256
  # @return [Array<Types::LFTag>]
2107
2257
  #
2258
+ # @!attribute [rw] expression_name
2259
+ # If provided, permissions are granted to the Data Catalog resources
2260
+ # whose assigned LF-Tags match the expression body of the saved
2261
+ # expression under the provided `ExpressionName`.
2262
+ # @return [String]
2263
+ #
2108
2264
  # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/LFTagPolicyResource AWS API Documentation
2109
2265
  #
2110
2266
  class LFTagPolicyResource < Struct.new(
2111
2267
  :catalog_id,
2112
2268
  :resource_type,
2113
- :expression)
2269
+ :expression,
2270
+ :expression_name)
2114
2271
  SENSITIVE = []
2115
2272
  include Aws::Structure
2116
2273
  end
@@ -2186,6 +2343,47 @@ module Aws::LakeFormation
2186
2343
  include Aws::Structure
2187
2344
  end
2188
2345
 
2346
+ # @!attribute [rw] catalog_id
2347
+ # The identifier for the Data Catalog. By default, the account ID.
2348
+ # @return [String]
2349
+ #
2350
+ # @!attribute [rw] max_results
2351
+ # The maximum number of results to return.
2352
+ # @return [Integer]
2353
+ #
2354
+ # @!attribute [rw] next_token
2355
+ # A continuation token, if this is not the first call to retrieve this
2356
+ # list.
2357
+ # @return [String]
2358
+ #
2359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/ListLFTagExpressionsRequest AWS API Documentation
2360
+ #
2361
+ class ListLFTagExpressionsRequest < Struct.new(
2362
+ :catalog_id,
2363
+ :max_results,
2364
+ :next_token)
2365
+ SENSITIVE = []
2366
+ include Aws::Structure
2367
+ end
2368
+
2369
+ # @!attribute [rw] lf_tag_expressions
2370
+ # Logical expressions composed of one more LF-Tag key-value pairs.
2371
+ # @return [Array<Types::LFTagExpression>]
2372
+ #
2373
+ # @!attribute [rw] next_token
2374
+ # A continuation token, if this is not the first call to retrieve this
2375
+ # list.
2376
+ # @return [String]
2377
+ #
2378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/ListLFTagExpressionsResponse AWS API Documentation
2379
+ #
2380
+ class ListLFTagExpressionsResponse < Struct.new(
2381
+ :lf_tag_expressions,
2382
+ :next_token)
2383
+ SENSITIVE = []
2384
+ include Aws::Structure
2385
+ end
2386
+
2189
2387
  # @!attribute [rw] catalog_id
2190
2388
  # The identifier for the Data Catalog. By default, the account ID. The
2191
2389
  # Data Catalog is the persistent metadata store. It contains database
@@ -2901,9 +3099,15 @@ module Aws::LakeFormation
2901
3099
  # @return [Types::LFTagKeyResource]
2902
3100
  #
2903
3101
  # @!attribute [rw] lf_tag_policy
2904
- # A list of LF-tag conditions that define a resource's LF-tag policy.
3102
+ # A list of LF-tag conditions or saved LF-Tag expressions that define
3103
+ # a resource's LF-tag policy.
2905
3104
  # @return [Types::LFTagPolicyResource]
2906
3105
  #
3106
+ # @!attribute [rw] lf_tag_expression
3107
+ # LF-Tag expression resource. A logical expression composed of one or
3108
+ # more LF-Tag key:value pairs.
3109
+ # @return [Types::LFTagExpressionResource]
3110
+ #
2907
3111
  # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/Resource AWS API Documentation
2908
3112
  #
2909
3113
  class Resource < Struct.new(
@@ -2914,7 +3118,8 @@ module Aws::LakeFormation
2914
3118
  :data_location,
2915
3119
  :data_cells_filter,
2916
3120
  :lf_tag,
2917
- :lf_tag_policy)
3121
+ :lf_tag_policy,
3122
+ :lf_tag_expression)
2918
3123
  SENSITIVE = []
2919
3124
  include Aws::Structure
2920
3125
  end
@@ -3540,6 +3745,38 @@ module Aws::LakeFormation
3540
3745
  #
3541
3746
  class UpdateDataCellsFilterResponse < Aws::EmptyStructure; end
3542
3747
 
3748
+ # @!attribute [rw] name
3749
+ # The name for the LF-Tag expression.
3750
+ # @return [String]
3751
+ #
3752
+ # @!attribute [rw] description
3753
+ # The description with information about the saved LF-Tag expression.
3754
+ # @return [String]
3755
+ #
3756
+ # @!attribute [rw] catalog_id
3757
+ # The identifier for the Data Catalog. By default, the account ID.
3758
+ # @return [String]
3759
+ #
3760
+ # @!attribute [rw] expression
3761
+ # The LF-Tag expression body composed of one more LF-Tag key-value
3762
+ # pairs.
3763
+ # @return [Array<Types::LFTag>]
3764
+ #
3765
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateLFTagExpressionRequest AWS API Documentation
3766
+ #
3767
+ class UpdateLFTagExpressionRequest < Struct.new(
3768
+ :name,
3769
+ :description,
3770
+ :catalog_id,
3771
+ :expression)
3772
+ SENSITIVE = []
3773
+ include Aws::Structure
3774
+ end
3775
+
3776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateLFTagExpressionResponse AWS API Documentation
3777
+ #
3778
+ class UpdateLFTagExpressionResponse < Aws::EmptyStructure; end
3779
+
3543
3780
  # @!attribute [rw] catalog_id
3544
3781
  # The identifier for the Data Catalog. By default, the account ID. The
3545
3782
  # Data Catalog is the persistent metadata store. It contains database
@@ -3708,7 +3945,7 @@ module Aws::LakeFormation
3708
3945
  # @return [String]
3709
3946
  #
3710
3947
  # @!attribute [rw] storage_optimizer_config
3711
- # Name of the table for which to enable the storage optimizer.
3948
+ # Name of the configuration for the storage optimizer.
3712
3949
  # @return [Hash<String,Hash<String,String>>]
3713
3950
  #
3714
3951
  # @see http://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateTableStorageOptimizerRequest AWS API Documentation
@@ -54,7 +54,7 @@ module Aws::LakeFormation
54
54
  autoload :EndpointProvider, 'aws-sdk-lakeformation/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-lakeformation/endpoints'
56
56
 
57
- GEM_VERSION = '1.62.0'
57
+ GEM_VERSION = '1.64.0'
58
58
 
59
59
  end
60
60