aws-sdk-glue 1.60.0 → 1.65.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-glue.rb +1 -1
- data/lib/aws-sdk-glue/client.rb +722 -6
- data/lib/aws-sdk-glue/client_api.rb +336 -0
- data/lib/aws-sdk-glue/types.rb +1363 -60
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b4f5408cc63aa2dc2a0475d3b9719e206cc95975878850718e3eb4d6a88dc4
|
4
|
+
data.tar.gz: cb877565ddc3f9e78d08b6001b06a264513f06f77e7ebc628b1c97c5330a9a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c61586337b3567ea6fba9cc6a57a1f126a21c1f20a1c7ba13f93cf0d0fce4d69eba4991f3793f5eb1e3393b25952fcb1a6937ad158b1db697002cc53365a5a40
|
7
|
+
data.tar.gz: f0a10d32bd9d0702679f49cf273632eaf7d6c5a8dd8aad64faff45f7cd074a92a9b793c8f10c2827eb773b5945cef6634d0a602e201c952dd5e1a3f65e258407
|
data/lib/aws-sdk-glue.rb
CHANGED
data/lib/aws-sdk-glue/client.rb
CHANGED
@@ -888,6 +888,7 @@ module Aws::Glue
|
|
888
888
|
# resp.partitions[0].parameters #=> Hash
|
889
889
|
# resp.partitions[0].parameters["KeyString"] #=> String
|
890
890
|
# resp.partitions[0].last_analyzed_time #=> Time
|
891
|
+
# resp.partitions[0].catalog_id #=> String
|
891
892
|
# resp.unprocessed_keys #=> Array
|
892
893
|
# resp.unprocessed_keys[0].values #=> Array
|
893
894
|
# resp.unprocessed_keys[0].values[0] #=> String
|
@@ -996,6 +997,7 @@ module Aws::Glue
|
|
996
997
|
# resp.workflows[0].last_modified_on #=> Time
|
997
998
|
# resp.workflows[0].last_run.name #=> String
|
998
999
|
# resp.workflows[0].last_run.workflow_run_id #=> String
|
1000
|
+
# resp.workflows[0].last_run.previous_run_id #=> String
|
999
1001
|
# resp.workflows[0].last_run.workflow_run_properties #=> Hash
|
1000
1002
|
# resp.workflows[0].last_run.workflow_run_properties["IdString"] #=> String
|
1001
1003
|
# resp.workflows[0].last_run.started_on #=> Time
|
@@ -1475,6 +1477,10 @@ module Aws::Glue
|
|
1475
1477
|
# permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
|
1476
1478
|
# },
|
1477
1479
|
# ],
|
1480
|
+
# target_database: {
|
1481
|
+
# catalog_id: "CatalogIdString",
|
1482
|
+
# database_name: "NameString",
|
1483
|
+
# },
|
1478
1484
|
# },
|
1479
1485
|
# })
|
1480
1486
|
#
|
@@ -1772,9 +1778,10 @@ module Aws::Glue
|
|
1772
1778
|
# or 1 DPU. The default is 0.0625 DPU.
|
1773
1779
|
#
|
1774
1780
|
# * When you specify an Apache Spark ETL job
|
1775
|
-
# (`JobCommand.Name`="glueetl")
|
1776
|
-
#
|
1777
|
-
#
|
1781
|
+
# (`JobCommand.Name`="glueetl") or Apache Spark streaming ETL job
|
1782
|
+
# (`JobCommand.Name`="gluestreaming"), you can allocate from 2 to
|
1783
|
+
# 100 DPUs. The default is 10 DPUs. This job type cannot have a
|
1784
|
+
# fractional DPU allocation.
|
1778
1785
|
#
|
1779
1786
|
#
|
1780
1787
|
#
|
@@ -2374,6 +2381,11 @@ module Aws::Glue
|
|
2374
2381
|
# parameters: {
|
2375
2382
|
# "KeyString" => "ParametersMapValue",
|
2376
2383
|
# },
|
2384
|
+
# target_table: {
|
2385
|
+
# catalog_id: "CatalogIdString",
|
2386
|
+
# database_name: "NameString",
|
2387
|
+
# name: "NameString",
|
2388
|
+
# },
|
2377
2389
|
# },
|
2378
2390
|
# })
|
2379
2391
|
#
|
@@ -2600,6 +2612,80 @@ module Aws::Glue
|
|
2600
2612
|
req.send_request(options)
|
2601
2613
|
end
|
2602
2614
|
|
2615
|
+
# Delete the partition column statistics of a column.
|
2616
|
+
#
|
2617
|
+
# @option params [String] :catalog_id
|
2618
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
2619
|
+
# none is supplied, the AWS account ID is used by default.
|
2620
|
+
#
|
2621
|
+
# @option params [required, String] :database_name
|
2622
|
+
# The name of the catalog database where the partitions reside.
|
2623
|
+
#
|
2624
|
+
# @option params [required, String] :table_name
|
2625
|
+
# The name of the partitions' table.
|
2626
|
+
#
|
2627
|
+
# @option params [required, Array<String>] :partition_values
|
2628
|
+
# A list of partition values identifying the partition.
|
2629
|
+
#
|
2630
|
+
# @option params [required, String] :column_name
|
2631
|
+
# Name of the column.
|
2632
|
+
#
|
2633
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2634
|
+
#
|
2635
|
+
# @example Request syntax with placeholder values
|
2636
|
+
#
|
2637
|
+
# resp = client.delete_column_statistics_for_partition({
|
2638
|
+
# catalog_id: "CatalogIdString",
|
2639
|
+
# database_name: "NameString", # required
|
2640
|
+
# table_name: "NameString", # required
|
2641
|
+
# partition_values: ["ValueString"], # required
|
2642
|
+
# column_name: "NameString", # required
|
2643
|
+
# })
|
2644
|
+
#
|
2645
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteColumnStatisticsForPartition AWS API Documentation
|
2646
|
+
#
|
2647
|
+
# @overload delete_column_statistics_for_partition(params = {})
|
2648
|
+
# @param [Hash] params ({})
|
2649
|
+
def delete_column_statistics_for_partition(params = {}, options = {})
|
2650
|
+
req = build_request(:delete_column_statistics_for_partition, params)
|
2651
|
+
req.send_request(options)
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
# Retrieves table statistics of columns.
|
2655
|
+
#
|
2656
|
+
# @option params [String] :catalog_id
|
2657
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
2658
|
+
# none is supplied, the AWS account ID is used by default.
|
2659
|
+
#
|
2660
|
+
# @option params [required, String] :database_name
|
2661
|
+
# The name of the catalog database where the partitions reside.
|
2662
|
+
#
|
2663
|
+
# @option params [required, String] :table_name
|
2664
|
+
# The name of the partitions' table.
|
2665
|
+
#
|
2666
|
+
# @option params [required, String] :column_name
|
2667
|
+
# The name of the column.
|
2668
|
+
#
|
2669
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2670
|
+
#
|
2671
|
+
# @example Request syntax with placeholder values
|
2672
|
+
#
|
2673
|
+
# resp = client.delete_column_statistics_for_table({
|
2674
|
+
# catalog_id: "CatalogIdString",
|
2675
|
+
# database_name: "NameString", # required
|
2676
|
+
# table_name: "NameString", # required
|
2677
|
+
# column_name: "NameString", # required
|
2678
|
+
# })
|
2679
|
+
#
|
2680
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteColumnStatisticsForTable AWS API Documentation
|
2681
|
+
#
|
2682
|
+
# @overload delete_column_statistics_for_table(params = {})
|
2683
|
+
# @param [Hash] params ({})
|
2684
|
+
def delete_column_statistics_for_table(params = {}, options = {})
|
2685
|
+
req = build_request(:delete_column_statistics_for_table, params)
|
2686
|
+
req.send_request(options)
|
2687
|
+
end
|
2688
|
+
|
2603
2689
|
# Deletes a connection from the Data Catalog.
|
2604
2690
|
#
|
2605
2691
|
# @option params [String] :catalog_id
|
@@ -2819,12 +2905,17 @@ module Aws::Glue
|
|
2819
2905
|
# @option params [String] :policy_hash_condition
|
2820
2906
|
# The hash value returned when this policy was set.
|
2821
2907
|
#
|
2908
|
+
# @option params [String] :resource_arn
|
2909
|
+
# The ARN of the AWS Glue resource for the resource policy to be
|
2910
|
+
# deleted.
|
2911
|
+
#
|
2822
2912
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2823
2913
|
#
|
2824
2914
|
# @example Request syntax with placeholder values
|
2825
2915
|
#
|
2826
2916
|
# resp = client.delete_resource_policy({
|
2827
2917
|
# policy_hash_condition: "HashString",
|
2918
|
+
# resource_arn: "GlueResourceArn",
|
2828
2919
|
# })
|
2829
2920
|
#
|
2830
2921
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy AWS API Documentation
|
@@ -3182,6 +3273,166 @@ module Aws::Glue
|
|
3182
3273
|
req.send_request(options)
|
3183
3274
|
end
|
3184
3275
|
|
3276
|
+
# Retrieves partition statistics of columns.
|
3277
|
+
#
|
3278
|
+
# @option params [String] :catalog_id
|
3279
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
3280
|
+
# none is supplied, the AWS account ID is used by default.
|
3281
|
+
#
|
3282
|
+
# @option params [required, String] :database_name
|
3283
|
+
# The name of the catalog database where the partitions reside.
|
3284
|
+
#
|
3285
|
+
# @option params [required, String] :table_name
|
3286
|
+
# The name of the partitions' table.
|
3287
|
+
#
|
3288
|
+
# @option params [required, Array<String>] :partition_values
|
3289
|
+
# A list of partition values identifying the partition.
|
3290
|
+
#
|
3291
|
+
# @option params [required, Array<String>] :column_names
|
3292
|
+
# A list of the column names.
|
3293
|
+
#
|
3294
|
+
# @return [Types::GetColumnStatisticsForPartitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3295
|
+
#
|
3296
|
+
# * {Types::GetColumnStatisticsForPartitionResponse#column_statistics_list #column_statistics_list} => Array<Types::ColumnStatistics>
|
3297
|
+
# * {Types::GetColumnStatisticsForPartitionResponse#errors #errors} => Array<Types::ColumnError>
|
3298
|
+
#
|
3299
|
+
# @example Request syntax with placeholder values
|
3300
|
+
#
|
3301
|
+
# resp = client.get_column_statistics_for_partition({
|
3302
|
+
# catalog_id: "CatalogIdString",
|
3303
|
+
# database_name: "NameString", # required
|
3304
|
+
# table_name: "NameString", # required
|
3305
|
+
# partition_values: ["ValueString"], # required
|
3306
|
+
# column_names: ["NameString"], # required
|
3307
|
+
# })
|
3308
|
+
#
|
3309
|
+
# @example Response structure
|
3310
|
+
#
|
3311
|
+
# resp.column_statistics_list #=> Array
|
3312
|
+
# resp.column_statistics_list[0].column_name #=> String
|
3313
|
+
# resp.column_statistics_list[0].column_type #=> String
|
3314
|
+
# resp.column_statistics_list[0].analyzed_time #=> Time
|
3315
|
+
# resp.column_statistics_list[0].statistics_data.type #=> String, one of "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "LONG", "STRING", "BINARY"
|
3316
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_trues #=> Integer
|
3317
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_falses #=> Integer
|
3318
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_nulls #=> Integer
|
3319
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.minimum_value #=> Time
|
3320
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.maximum_value #=> Time
|
3321
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.number_of_nulls #=> Integer
|
3322
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.number_of_distinct_values #=> Integer
|
3323
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.minimum_value.unscaled_value #=> String
|
3324
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.minimum_value.scale #=> Integer
|
3325
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.maximum_value.unscaled_value #=> String
|
3326
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.maximum_value.scale #=> Integer
|
3327
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.number_of_nulls #=> Integer
|
3328
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.number_of_distinct_values #=> Integer
|
3329
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.minimum_value #=> Float
|
3330
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.maximum_value #=> Float
|
3331
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.number_of_nulls #=> Integer
|
3332
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.number_of_distinct_values #=> Integer
|
3333
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.minimum_value #=> Integer
|
3334
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.maximum_value #=> Integer
|
3335
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.number_of_nulls #=> Integer
|
3336
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.number_of_distinct_values #=> Integer
|
3337
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.maximum_length #=> Integer
|
3338
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.average_length #=> Float
|
3339
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.number_of_nulls #=> Integer
|
3340
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.number_of_distinct_values #=> Integer
|
3341
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.maximum_length #=> Integer
|
3342
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.average_length #=> Float
|
3343
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.number_of_nulls #=> Integer
|
3344
|
+
# resp.errors #=> Array
|
3345
|
+
# resp.errors[0].column_name #=> String
|
3346
|
+
# resp.errors[0].error.error_code #=> String
|
3347
|
+
# resp.errors[0].error.error_message #=> String
|
3348
|
+
#
|
3349
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetColumnStatisticsForPartition AWS API Documentation
|
3350
|
+
#
|
3351
|
+
# @overload get_column_statistics_for_partition(params = {})
|
3352
|
+
# @param [Hash] params ({})
|
3353
|
+
def get_column_statistics_for_partition(params = {}, options = {})
|
3354
|
+
req = build_request(:get_column_statistics_for_partition, params)
|
3355
|
+
req.send_request(options)
|
3356
|
+
end
|
3357
|
+
|
3358
|
+
# Retrieves table statistics of columns.
|
3359
|
+
#
|
3360
|
+
# @option params [String] :catalog_id
|
3361
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
3362
|
+
# none is supplied, the AWS account ID is used by default.
|
3363
|
+
#
|
3364
|
+
# @option params [required, String] :database_name
|
3365
|
+
# The name of the catalog database where the partitions reside.
|
3366
|
+
#
|
3367
|
+
# @option params [required, String] :table_name
|
3368
|
+
# The name of the partitions' table.
|
3369
|
+
#
|
3370
|
+
# @option params [required, Array<String>] :column_names
|
3371
|
+
# A list of the column names.
|
3372
|
+
#
|
3373
|
+
# @return [Types::GetColumnStatisticsForTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3374
|
+
#
|
3375
|
+
# * {Types::GetColumnStatisticsForTableResponse#column_statistics_list #column_statistics_list} => Array<Types::ColumnStatistics>
|
3376
|
+
# * {Types::GetColumnStatisticsForTableResponse#errors #errors} => Array<Types::ColumnError>
|
3377
|
+
#
|
3378
|
+
# @example Request syntax with placeholder values
|
3379
|
+
#
|
3380
|
+
# resp = client.get_column_statistics_for_table({
|
3381
|
+
# catalog_id: "CatalogIdString",
|
3382
|
+
# database_name: "NameString", # required
|
3383
|
+
# table_name: "NameString", # required
|
3384
|
+
# column_names: ["NameString"], # required
|
3385
|
+
# })
|
3386
|
+
#
|
3387
|
+
# @example Response structure
|
3388
|
+
#
|
3389
|
+
# resp.column_statistics_list #=> Array
|
3390
|
+
# resp.column_statistics_list[0].column_name #=> String
|
3391
|
+
# resp.column_statistics_list[0].column_type #=> String
|
3392
|
+
# resp.column_statistics_list[0].analyzed_time #=> Time
|
3393
|
+
# resp.column_statistics_list[0].statistics_data.type #=> String, one of "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "LONG", "STRING", "BINARY"
|
3394
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_trues #=> Integer
|
3395
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_falses #=> Integer
|
3396
|
+
# resp.column_statistics_list[0].statistics_data.boolean_column_statistics_data.number_of_nulls #=> Integer
|
3397
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.minimum_value #=> Time
|
3398
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.maximum_value #=> Time
|
3399
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.number_of_nulls #=> Integer
|
3400
|
+
# resp.column_statistics_list[0].statistics_data.date_column_statistics_data.number_of_distinct_values #=> Integer
|
3401
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.minimum_value.unscaled_value #=> String
|
3402
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.minimum_value.scale #=> Integer
|
3403
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.maximum_value.unscaled_value #=> String
|
3404
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.maximum_value.scale #=> Integer
|
3405
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.number_of_nulls #=> Integer
|
3406
|
+
# resp.column_statistics_list[0].statistics_data.decimal_column_statistics_data.number_of_distinct_values #=> Integer
|
3407
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.minimum_value #=> Float
|
3408
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.maximum_value #=> Float
|
3409
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.number_of_nulls #=> Integer
|
3410
|
+
# resp.column_statistics_list[0].statistics_data.double_column_statistics_data.number_of_distinct_values #=> Integer
|
3411
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.minimum_value #=> Integer
|
3412
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.maximum_value #=> Integer
|
3413
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.number_of_nulls #=> Integer
|
3414
|
+
# resp.column_statistics_list[0].statistics_data.long_column_statistics_data.number_of_distinct_values #=> Integer
|
3415
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.maximum_length #=> Integer
|
3416
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.average_length #=> Float
|
3417
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.number_of_nulls #=> Integer
|
3418
|
+
# resp.column_statistics_list[0].statistics_data.string_column_statistics_data.number_of_distinct_values #=> Integer
|
3419
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.maximum_length #=> Integer
|
3420
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.average_length #=> Float
|
3421
|
+
# resp.column_statistics_list[0].statistics_data.binary_column_statistics_data.number_of_nulls #=> Integer
|
3422
|
+
# resp.errors #=> Array
|
3423
|
+
# resp.errors[0].column_name #=> String
|
3424
|
+
# resp.errors[0].error.error_code #=> String
|
3425
|
+
# resp.errors[0].error.error_message #=> String
|
3426
|
+
#
|
3427
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetColumnStatisticsForTable AWS API Documentation
|
3428
|
+
#
|
3429
|
+
# @overload get_column_statistics_for_table(params = {})
|
3430
|
+
# @param [Hash] params ({})
|
3431
|
+
def get_column_statistics_for_table(params = {}, options = {})
|
3432
|
+
req = build_request(:get_column_statistics_for_table, params)
|
3433
|
+
req.send_request(options)
|
3434
|
+
end
|
3435
|
+
|
3185
3436
|
# Retrieves a connection definition from the Data Catalog.
|
3186
3437
|
#
|
3187
3438
|
# @option params [String] :catalog_id
|
@@ -3566,6 +3817,9 @@ module Aws::Glue
|
|
3566
3817
|
# resp.database.create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String
|
3567
3818
|
# resp.database.create_table_default_permissions[0].permissions #=> Array
|
3568
3819
|
# resp.database.create_table_default_permissions[0].permissions[0] #=> String, one of "ALL", "SELECT", "ALTER", "DROP", "DELETE", "INSERT", "CREATE_DATABASE", "CREATE_TABLE", "DATA_LOCATION_ACCESS"
|
3820
|
+
# resp.database.target_database.catalog_id #=> String
|
3821
|
+
# resp.database.target_database.database_name #=> String
|
3822
|
+
# resp.database.catalog_id #=> String
|
3569
3823
|
#
|
3570
3824
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabase AWS API Documentation
|
3571
3825
|
#
|
@@ -3588,6 +3842,16 @@ module Aws::Glue
|
|
3588
3842
|
# @option params [Integer] :max_results
|
3589
3843
|
# The maximum number of databases to return in one response.
|
3590
3844
|
#
|
3845
|
+
# @option params [String] :resource_share_type
|
3846
|
+
# Allows you to specify that you want to list the databases shared with
|
3847
|
+
# your account. The allowable values are `FOREIGN` or `ALL`.
|
3848
|
+
#
|
3849
|
+
# * If set to `FOREIGN`, will list the databases shared with your
|
3850
|
+
# account.
|
3851
|
+
#
|
3852
|
+
# * If set to `ALL`, will list the databases shared with your account,
|
3853
|
+
# as well as the databases in yor local account.
|
3854
|
+
#
|
3591
3855
|
# @return [Types::GetDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3592
3856
|
#
|
3593
3857
|
# * {Types::GetDatabasesResponse#database_list #database_list} => Array<Types::Database>
|
@@ -3601,6 +3865,7 @@ module Aws::Glue
|
|
3601
3865
|
# catalog_id: "CatalogIdString",
|
3602
3866
|
# next_token: "Token",
|
3603
3867
|
# max_results: 1,
|
3868
|
+
# resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
|
3604
3869
|
# })
|
3605
3870
|
#
|
3606
3871
|
# @example Response structure
|
@@ -3616,6 +3881,9 @@ module Aws::Glue
|
|
3616
3881
|
# resp.database_list[0].create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String
|
3617
3882
|
# resp.database_list[0].create_table_default_permissions[0].permissions #=> Array
|
3618
3883
|
# resp.database_list[0].create_table_default_permissions[0].permissions[0] #=> String, one of "ALL", "SELECT", "ALTER", "DROP", "DELETE", "INSERT", "CREATE_DATABASE", "CREATE_TABLE", "DATA_LOCATION_ACCESS"
|
3884
|
+
# resp.database_list[0].target_database.catalog_id #=> String
|
3885
|
+
# resp.database_list[0].target_database.database_name #=> String
|
3886
|
+
# resp.database_list[0].catalog_id #=> String
|
3619
3887
|
# resp.next_token #=> String
|
3620
3888
|
#
|
3621
3889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabases AWS API Documentation
|
@@ -4548,6 +4816,7 @@ module Aws::Glue
|
|
4548
4816
|
# resp.partition.parameters #=> Hash
|
4549
4817
|
# resp.partition.parameters["KeyString"] #=> String
|
4550
4818
|
# resp.partition.last_analyzed_time #=> Time
|
4819
|
+
# resp.partition.catalog_id #=> String
|
4551
4820
|
#
|
4552
4821
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartition AWS API Documentation
|
4553
4822
|
#
|
@@ -4736,6 +5005,7 @@ module Aws::Glue
|
|
4736
5005
|
# resp.partitions[0].parameters #=> Hash
|
4737
5006
|
# resp.partitions[0].parameters["KeyString"] #=> String
|
4738
5007
|
# resp.partitions[0].last_analyzed_time #=> Time
|
5008
|
+
# resp.partitions[0].catalog_id #=> String
|
4739
5009
|
# resp.next_token #=> String
|
4740
5010
|
#
|
4741
5011
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartitions AWS API Documentation
|
@@ -4832,8 +5102,61 @@ module Aws::Glue
|
|
4832
5102
|
req.send_request(options)
|
4833
5103
|
end
|
4834
5104
|
|
5105
|
+
# Retrieves the security configurations for the resource policies set on
|
5106
|
+
# individual resources, and also the account-level policy.
|
5107
|
+
#
|
5108
|
+
# This operation also returns the Data Catalog resource policy. However,
|
5109
|
+
# if you enabled metadata encryption in Data Catalog settings, and you
|
5110
|
+
# do not have permission on the AWS KMS key, the operation can't return
|
5111
|
+
# the Data Catalog resource policy.
|
5112
|
+
#
|
5113
|
+
# @option params [String] :next_token
|
5114
|
+
# A continuation token, if this is a continuation request.
|
5115
|
+
#
|
5116
|
+
# @option params [Integer] :max_results
|
5117
|
+
# The maximum size of a list to return.
|
5118
|
+
#
|
5119
|
+
# @return [Types::GetResourcePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5120
|
+
#
|
5121
|
+
# * {Types::GetResourcePoliciesResponse#get_resource_policies_response_list #get_resource_policies_response_list} => Array<Types::GluePolicy>
|
5122
|
+
# * {Types::GetResourcePoliciesResponse#next_token #next_token} => String
|
5123
|
+
#
|
5124
|
+
# @example Request syntax with placeholder values
|
5125
|
+
#
|
5126
|
+
# resp = client.get_resource_policies({
|
5127
|
+
# next_token: "Token",
|
5128
|
+
# max_results: 1,
|
5129
|
+
# })
|
5130
|
+
#
|
5131
|
+
# @example Response structure
|
5132
|
+
#
|
5133
|
+
# resp.get_resource_policies_response_list #=> Array
|
5134
|
+
# resp.get_resource_policies_response_list[0].policy_in_json #=> String
|
5135
|
+
# resp.get_resource_policies_response_list[0].policy_hash #=> String
|
5136
|
+
# resp.get_resource_policies_response_list[0].create_time #=> Time
|
5137
|
+
# resp.get_resource_policies_response_list[0].update_time #=> Time
|
5138
|
+
# resp.next_token #=> String
|
5139
|
+
#
|
5140
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicies AWS API Documentation
|
5141
|
+
#
|
5142
|
+
# @overload get_resource_policies(params = {})
|
5143
|
+
# @param [Hash] params ({})
|
5144
|
+
def get_resource_policies(params = {}, options = {})
|
5145
|
+
req = build_request(:get_resource_policies, params)
|
5146
|
+
req.send_request(options)
|
5147
|
+
end
|
5148
|
+
|
4835
5149
|
# Retrieves a specified resource policy.
|
4836
5150
|
#
|
5151
|
+
# @option params [String] :resource_arn
|
5152
|
+
# The ARN of the AWS Glue resource for the resource policy to be
|
5153
|
+
# retrieved. For more information about AWS Glue resource ARNs, see the
|
5154
|
+
# [AWS Glue ARN string pattern][1]
|
5155
|
+
#
|
5156
|
+
#
|
5157
|
+
#
|
5158
|
+
# [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
|
5159
|
+
#
|
4837
5160
|
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4838
5161
|
#
|
4839
5162
|
# * {Types::GetResourcePolicyResponse#policy_in_json #policy_in_json} => String
|
@@ -4841,6 +5164,12 @@ module Aws::Glue
|
|
4841
5164
|
# * {Types::GetResourcePolicyResponse#create_time #create_time} => Time
|
4842
5165
|
# * {Types::GetResourcePolicyResponse#update_time #update_time} => Time
|
4843
5166
|
#
|
5167
|
+
# @example Request syntax with placeholder values
|
5168
|
+
#
|
5169
|
+
# resp = client.get_resource_policy({
|
5170
|
+
# resource_arn: "GlueResourceArn",
|
5171
|
+
# })
|
5172
|
+
#
|
4844
5173
|
# @example Response structure
|
4845
5174
|
#
|
4846
5175
|
# resp.policy_in_json #=> String
|
@@ -5018,6 +5347,10 @@ module Aws::Glue
|
|
5018
5347
|
# resp.table.parameters["KeyString"] #=> String
|
5019
5348
|
# resp.table.created_by #=> String
|
5020
5349
|
# resp.table.is_registered_with_lake_formation #=> Boolean
|
5350
|
+
# resp.table.target_table.catalog_id #=> String
|
5351
|
+
# resp.table.target_table.database_name #=> String
|
5352
|
+
# resp.table.target_table.name #=> String
|
5353
|
+
# resp.table.catalog_id #=> String
|
5021
5354
|
#
|
5022
5355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTable AWS API Documentation
|
5023
5356
|
#
|
@@ -5112,6 +5445,10 @@ module Aws::Glue
|
|
5112
5445
|
# resp.table_version.table.parameters["KeyString"] #=> String
|
5113
5446
|
# resp.table_version.table.created_by #=> String
|
5114
5447
|
# resp.table_version.table.is_registered_with_lake_formation #=> Boolean
|
5448
|
+
# resp.table_version.table.target_table.catalog_id #=> String
|
5449
|
+
# resp.table_version.table.target_table.database_name #=> String
|
5450
|
+
# resp.table_version.table.target_table.name #=> String
|
5451
|
+
# resp.table_version.table.catalog_id #=> String
|
5115
5452
|
# resp.table_version.version_id #=> String
|
5116
5453
|
#
|
5117
5454
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersion AWS API Documentation
|
@@ -5215,6 +5552,10 @@ module Aws::Glue
|
|
5215
5552
|
# resp.table_versions[0].table.parameters["KeyString"] #=> String
|
5216
5553
|
# resp.table_versions[0].table.created_by #=> String
|
5217
5554
|
# resp.table_versions[0].table.is_registered_with_lake_formation #=> Boolean
|
5555
|
+
# resp.table_versions[0].table.target_table.catalog_id #=> String
|
5556
|
+
# resp.table_versions[0].table.target_table.database_name #=> String
|
5557
|
+
# resp.table_versions[0].table.target_table.name #=> String
|
5558
|
+
# resp.table_versions[0].table.catalog_id #=> String
|
5218
5559
|
# resp.table_versions[0].version_id #=> String
|
5219
5560
|
# resp.next_token #=> String
|
5220
5561
|
#
|
@@ -5319,6 +5660,10 @@ module Aws::Glue
|
|
5319
5660
|
# resp.table_list[0].parameters["KeyString"] #=> String
|
5320
5661
|
# resp.table_list[0].created_by #=> String
|
5321
5662
|
# resp.table_list[0].is_registered_with_lake_formation #=> Boolean
|
5663
|
+
# resp.table_list[0].target_table.catalog_id #=> String
|
5664
|
+
# resp.table_list[0].target_table.database_name #=> String
|
5665
|
+
# resp.table_list[0].target_table.name #=> String
|
5666
|
+
# resp.table_list[0].catalog_id #=> String
|
5322
5667
|
# resp.next_token #=> String
|
5323
5668
|
#
|
5324
5669
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTables AWS API Documentation
|
@@ -5508,6 +5853,7 @@ module Aws::Glue
|
|
5508
5853
|
# resp.user_defined_function.resource_uris #=> Array
|
5509
5854
|
# resp.user_defined_function.resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE"
|
5510
5855
|
# resp.user_defined_function.resource_uris[0].uri #=> String
|
5856
|
+
# resp.user_defined_function.catalog_id #=> String
|
5511
5857
|
#
|
5512
5858
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunction AWS API Documentation
|
5513
5859
|
#
|
@@ -5568,6 +5914,7 @@ module Aws::Glue
|
|
5568
5914
|
# resp.user_defined_functions[0].resource_uris #=> Array
|
5569
5915
|
# resp.user_defined_functions[0].resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE"
|
5570
5916
|
# resp.user_defined_functions[0].resource_uris[0].uri #=> String
|
5917
|
+
# resp.user_defined_functions[0].catalog_id #=> String
|
5571
5918
|
# resp.next_token #=> String
|
5572
5919
|
#
|
5573
5920
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunctions AWS API Documentation
|
@@ -5609,6 +5956,7 @@ module Aws::Glue
|
|
5609
5956
|
# resp.workflow.last_modified_on #=> Time
|
5610
5957
|
# resp.workflow.last_run.name #=> String
|
5611
5958
|
# resp.workflow.last_run.workflow_run_id #=> String
|
5959
|
+
# resp.workflow.last_run.previous_run_id #=> String
|
5612
5960
|
# resp.workflow.last_run.workflow_run_properties #=> Hash
|
5613
5961
|
# resp.workflow.last_run.workflow_run_properties["IdString"] #=> String
|
5614
5962
|
# resp.workflow.last_run.started_on #=> Time
|
@@ -5781,6 +6129,7 @@ module Aws::Glue
|
|
5781
6129
|
#
|
5782
6130
|
# resp.run.name #=> String
|
5783
6131
|
# resp.run.workflow_run_id #=> String
|
6132
|
+
# resp.run.previous_run_id #=> String
|
5784
6133
|
# resp.run.workflow_run_properties #=> Hash
|
5785
6134
|
# resp.run.workflow_run_properties["IdString"] #=> String
|
5786
6135
|
# resp.run.started_on #=> Time
|
@@ -5932,6 +6281,7 @@ module Aws::Glue
|
|
5932
6281
|
# resp.runs #=> Array
|
5933
6282
|
# resp.runs[0].name #=> String
|
5934
6283
|
# resp.runs[0].workflow_run_id #=> String
|
6284
|
+
# resp.runs[0].previous_run_id #=> String
|
5935
6285
|
# resp.runs[0].workflow_run_properties #=> Hash
|
5936
6286
|
# resp.runs[0].workflow_run_properties["IdString"] #=> String
|
5937
6287
|
# resp.runs[0].started_on #=> Time
|
@@ -6402,6 +6752,15 @@ module Aws::Glue
|
|
6402
6752
|
# @option params [required, String] :policy_in_json
|
6403
6753
|
# Contains the policy document to set, in JSON format.
|
6404
6754
|
#
|
6755
|
+
# @option params [String] :resource_arn
|
6756
|
+
# The ARN of the AWS Glue resource for the resource policy to be set.
|
6757
|
+
# For more information about AWS Glue resource ARNs, see the [AWS Glue
|
6758
|
+
# ARN string pattern][1]
|
6759
|
+
#
|
6760
|
+
#
|
6761
|
+
#
|
6762
|
+
# [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
|
6763
|
+
#
|
6405
6764
|
# @option params [String] :policy_hash_condition
|
6406
6765
|
# The hash value returned when the previous policy was set using
|
6407
6766
|
# `PutResourcePolicy`. Its purpose is to prevent concurrent
|
@@ -6414,6 +6773,17 @@ module Aws::Glue
|
|
6414
6773
|
# null value is used, the call will not depend on the existence of a
|
6415
6774
|
# policy.
|
6416
6775
|
#
|
6776
|
+
# @option params [String] :enable_hybrid
|
6777
|
+
# Allows you to specify if you want to use both resource-level and
|
6778
|
+
# account/catalog-level resource policies. A resource-level policy is a
|
6779
|
+
# policy attached to an individual resource such as a database or a
|
6780
|
+
# table.
|
6781
|
+
#
|
6782
|
+
# The default value of `NO` indicates that resource-level policies
|
6783
|
+
# cannot co-exist with an account-level policy. A value of `YES` means
|
6784
|
+
# the use of both resource-level and account/catalog-level resource
|
6785
|
+
# policies is allowed.
|
6786
|
+
#
|
6417
6787
|
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6418
6788
|
#
|
6419
6789
|
# * {Types::PutResourcePolicyResponse#policy_hash #policy_hash} => String
|
@@ -6422,8 +6792,10 @@ module Aws::Glue
|
|
6422
6792
|
#
|
6423
6793
|
# resp = client.put_resource_policy({
|
6424
6794
|
# policy_in_json: "PolicyJsonString", # required
|
6795
|
+
# resource_arn: "GlueResourceArn",
|
6425
6796
|
# policy_hash_condition: "HashString",
|
6426
6797
|
# policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
|
6798
|
+
# enable_hybrid: "TRUE", # accepts TRUE, FALSE
|
6427
6799
|
# })
|
6428
6800
|
#
|
6429
6801
|
# @example Response structure
|
@@ -6512,6 +6884,48 @@ module Aws::Glue
|
|
6512
6884
|
req.send_request(options)
|
6513
6885
|
end
|
6514
6886
|
|
6887
|
+
# Restarts any completed nodes in a workflow run and resumes the run
|
6888
|
+
# execution.
|
6889
|
+
#
|
6890
|
+
# @option params [required, String] :name
|
6891
|
+
# The name of the workflow to resume.
|
6892
|
+
#
|
6893
|
+
# @option params [required, String] :run_id
|
6894
|
+
# The ID of the workflow run to resume.
|
6895
|
+
#
|
6896
|
+
# @option params [required, Array<String>] :node_ids
|
6897
|
+
# A list of the node IDs for the nodes you want to restart. The nodes
|
6898
|
+
# that are to be restarted must have an execution attempt in the
|
6899
|
+
# original run.
|
6900
|
+
#
|
6901
|
+
# @return [Types::ResumeWorkflowRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6902
|
+
#
|
6903
|
+
# * {Types::ResumeWorkflowRunResponse#run_id #run_id} => String
|
6904
|
+
# * {Types::ResumeWorkflowRunResponse#node_ids #node_ids} => Array<String>
|
6905
|
+
#
|
6906
|
+
# @example Request syntax with placeholder values
|
6907
|
+
#
|
6908
|
+
# resp = client.resume_workflow_run({
|
6909
|
+
# name: "NameString", # required
|
6910
|
+
# run_id: "IdString", # required
|
6911
|
+
# node_ids: ["NameString"], # required
|
6912
|
+
# })
|
6913
|
+
#
|
6914
|
+
# @example Response structure
|
6915
|
+
#
|
6916
|
+
# resp.run_id #=> String
|
6917
|
+
# resp.node_ids #=> Array
|
6918
|
+
# resp.node_ids[0] #=> String
|
6919
|
+
#
|
6920
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ResumeWorkflowRun AWS API Documentation
|
6921
|
+
#
|
6922
|
+
# @overload resume_workflow_run(params = {})
|
6923
|
+
# @param [Hash] params ({})
|
6924
|
+
def resume_workflow_run(params = {}, options = {})
|
6925
|
+
req = build_request(:resume_workflow_run, params)
|
6926
|
+
req.send_request(options)
|
6927
|
+
end
|
6928
|
+
|
6515
6929
|
# Searches a set of tables based on properties in the table metadata as
|
6516
6930
|
# well as on the parent database. You can search against text or filter
|
6517
6931
|
# conditions.
|
@@ -6526,7 +6940,7 @@ module Aws::Glue
|
|
6526
6940
|
# search.
|
6527
6941
|
#
|
6528
6942
|
# @option params [String] :catalog_id
|
6529
|
-
# A unique identifier, consisting of ` account_id
|
6943
|
+
# A unique identifier, consisting of ` account_id `.
|
6530
6944
|
#
|
6531
6945
|
# @option params [String] :next_token
|
6532
6946
|
# A continuation token, included if this is a continuation call.
|
@@ -6535,6 +6949,16 @@ module Aws::Glue
|
|
6535
6949
|
# A list of key-value pairs, and a comparator used to filter the search
|
6536
6950
|
# results. Returns all entities matching the predicate.
|
6537
6951
|
#
|
6952
|
+
# The `Comparator` member of the `PropertyPredicate` struct is used only
|
6953
|
+
# for time fields, and can be omitted for other field types. Also, when
|
6954
|
+
# comparing string values, such as when `Key=Name`, a fuzzy match
|
6955
|
+
# algorithm is used. The `Key` field (for example, the value of the
|
6956
|
+
# `Name` field) is split on certain punctuation characters, for example,
|
6957
|
+
# -, :, #, etc. into tokens. Then each token is exact-match compared
|
6958
|
+
# with the `Value` member of `PropertyPredicate`. For example, if
|
6959
|
+
# `Key=Name` and `Value=link`, tables named `customer-link` and
|
6960
|
+
# `xx-link-yy` are returned, but `xxlinkyy` is not returned.
|
6961
|
+
#
|
6538
6962
|
# @option params [String] :search_text
|
6539
6963
|
# A string used for a text search.
|
6540
6964
|
#
|
@@ -6548,6 +6972,16 @@ module Aws::Glue
|
|
6548
6972
|
# @option params [Integer] :max_results
|
6549
6973
|
# The maximum number of tables to return in a single response.
|
6550
6974
|
#
|
6975
|
+
# @option params [String] :resource_share_type
|
6976
|
+
# Allows you to specify that you want to search the tables shared with
|
6977
|
+
# your account. The allowable values are `FOREIGN` or `ALL`.
|
6978
|
+
#
|
6979
|
+
# * If set to `FOREIGN`, will search the tables shared with your
|
6980
|
+
# account.
|
6981
|
+
#
|
6982
|
+
# * If set to `ALL`, will search the tables shared with your account, as
|
6983
|
+
# well as the tables in yor local account.
|
6984
|
+
#
|
6551
6985
|
# @return [Types::SearchTablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6552
6986
|
#
|
6553
6987
|
# * {Types::SearchTablesResponse#next_token #next_token} => String
|
@@ -6575,6 +7009,7 @@ module Aws::Glue
|
|
6575
7009
|
# },
|
6576
7010
|
# ],
|
6577
7011
|
# max_results: 1,
|
7012
|
+
# resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
|
6578
7013
|
# })
|
6579
7014
|
#
|
6580
7015
|
# @example Response structure
|
@@ -6632,6 +7067,10 @@ module Aws::Glue
|
|
6632
7067
|
# resp.table_list[0].parameters["KeyString"] #=> String
|
6633
7068
|
# resp.table_list[0].created_by #=> String
|
6634
7069
|
# resp.table_list[0].is_registered_with_lake_formation #=> Boolean
|
7070
|
+
# resp.table_list[0].target_table.catalog_id #=> String
|
7071
|
+
# resp.table_list[0].target_table.database_name #=> String
|
7072
|
+
# resp.table_list[0].target_table.name #=> String
|
7073
|
+
# resp.table_list[0].catalog_id #=> String
|
6635
7074
|
#
|
6636
7075
|
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTables AWS API Documentation
|
6637
7076
|
#
|
@@ -7304,6 +7743,270 @@ module Aws::Glue
|
|
7304
7743
|
req.send_request(options)
|
7305
7744
|
end
|
7306
7745
|
|
7746
|
+
# Creates or updates partition statistics of columns.
|
7747
|
+
#
|
7748
|
+
# @option params [String] :catalog_id
|
7749
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
7750
|
+
# none is supplied, the AWS account ID is used by default.
|
7751
|
+
#
|
7752
|
+
# @option params [required, String] :database_name
|
7753
|
+
# The name of the catalog database where the partitions reside.
|
7754
|
+
#
|
7755
|
+
# @option params [required, String] :table_name
|
7756
|
+
# The name of the partitions' table.
|
7757
|
+
#
|
7758
|
+
# @option params [required, Array<String>] :partition_values
|
7759
|
+
# A list of partition values identifying the partition.
|
7760
|
+
#
|
7761
|
+
# @option params [required, Array<Types::ColumnStatistics>] :column_statistics_list
|
7762
|
+
# A list of the column statistics.
|
7763
|
+
#
|
7764
|
+
# @return [Types::UpdateColumnStatisticsForPartitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7765
|
+
#
|
7766
|
+
# * {Types::UpdateColumnStatisticsForPartitionResponse#errors #errors} => Array<Types::ColumnStatisticsError>
|
7767
|
+
#
|
7768
|
+
# @example Request syntax with placeholder values
|
7769
|
+
#
|
7770
|
+
# resp = client.update_column_statistics_for_partition({
|
7771
|
+
# catalog_id: "CatalogIdString",
|
7772
|
+
# database_name: "NameString", # required
|
7773
|
+
# table_name: "NameString", # required
|
7774
|
+
# partition_values: ["ValueString"], # required
|
7775
|
+
# column_statistics_list: [ # required
|
7776
|
+
# {
|
7777
|
+
# column_name: "NameString", # required
|
7778
|
+
# column_type: "TypeString", # required
|
7779
|
+
# analyzed_time: Time.now, # required
|
7780
|
+
# statistics_data: { # required
|
7781
|
+
# type: "BOOLEAN", # required, accepts BOOLEAN, DATE, DECIMAL, DOUBLE, LONG, STRING, BINARY
|
7782
|
+
# boolean_column_statistics_data: {
|
7783
|
+
# number_of_trues: 1, # required
|
7784
|
+
# number_of_falses: 1, # required
|
7785
|
+
# number_of_nulls: 1, # required
|
7786
|
+
# },
|
7787
|
+
# date_column_statistics_data: {
|
7788
|
+
# minimum_value: Time.now,
|
7789
|
+
# maximum_value: Time.now,
|
7790
|
+
# number_of_nulls: 1, # required
|
7791
|
+
# number_of_distinct_values: 1, # required
|
7792
|
+
# },
|
7793
|
+
# decimal_column_statistics_data: {
|
7794
|
+
# minimum_value: {
|
7795
|
+
# unscaled_value: "data", # required
|
7796
|
+
# scale: 1, # required
|
7797
|
+
# },
|
7798
|
+
# maximum_value: {
|
7799
|
+
# unscaled_value: "data", # required
|
7800
|
+
# scale: 1, # required
|
7801
|
+
# },
|
7802
|
+
# number_of_nulls: 1, # required
|
7803
|
+
# number_of_distinct_values: 1, # required
|
7804
|
+
# },
|
7805
|
+
# double_column_statistics_data: {
|
7806
|
+
# minimum_value: 1.0,
|
7807
|
+
# maximum_value: 1.0,
|
7808
|
+
# number_of_nulls: 1, # required
|
7809
|
+
# number_of_distinct_values: 1, # required
|
7810
|
+
# },
|
7811
|
+
# long_column_statistics_data: {
|
7812
|
+
# minimum_value: 1,
|
7813
|
+
# maximum_value: 1,
|
7814
|
+
# number_of_nulls: 1, # required
|
7815
|
+
# number_of_distinct_values: 1, # required
|
7816
|
+
# },
|
7817
|
+
# string_column_statistics_data: {
|
7818
|
+
# maximum_length: 1, # required
|
7819
|
+
# average_length: 1.0, # required
|
7820
|
+
# number_of_nulls: 1, # required
|
7821
|
+
# number_of_distinct_values: 1, # required
|
7822
|
+
# },
|
7823
|
+
# binary_column_statistics_data: {
|
7824
|
+
# maximum_length: 1, # required
|
7825
|
+
# average_length: 1.0, # required
|
7826
|
+
# number_of_nulls: 1, # required
|
7827
|
+
# },
|
7828
|
+
# },
|
7829
|
+
# },
|
7830
|
+
# ],
|
7831
|
+
# })
|
7832
|
+
#
|
7833
|
+
# @example Response structure
|
7834
|
+
#
|
7835
|
+
# resp.errors #=> Array
|
7836
|
+
# resp.errors[0].column_statistics.column_name #=> String
|
7837
|
+
# resp.errors[0].column_statistics.column_type #=> String
|
7838
|
+
# resp.errors[0].column_statistics.analyzed_time #=> Time
|
7839
|
+
# resp.errors[0].column_statistics.statistics_data.type #=> String, one of "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "LONG", "STRING", "BINARY"
|
7840
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_trues #=> Integer
|
7841
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_falses #=> Integer
|
7842
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_nulls #=> Integer
|
7843
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.minimum_value #=> Time
|
7844
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.maximum_value #=> Time
|
7845
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.number_of_nulls #=> Integer
|
7846
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.number_of_distinct_values #=> Integer
|
7847
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.minimum_value.unscaled_value #=> String
|
7848
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.minimum_value.scale #=> Integer
|
7849
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.maximum_value.unscaled_value #=> String
|
7850
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.maximum_value.scale #=> Integer
|
7851
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.number_of_nulls #=> Integer
|
7852
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.number_of_distinct_values #=> Integer
|
7853
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.minimum_value #=> Float
|
7854
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.maximum_value #=> Float
|
7855
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.number_of_nulls #=> Integer
|
7856
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.number_of_distinct_values #=> Integer
|
7857
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.minimum_value #=> Integer
|
7858
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.maximum_value #=> Integer
|
7859
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.number_of_nulls #=> Integer
|
7860
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.number_of_distinct_values #=> Integer
|
7861
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.maximum_length #=> Integer
|
7862
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.average_length #=> Float
|
7863
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.number_of_nulls #=> Integer
|
7864
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.number_of_distinct_values #=> Integer
|
7865
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.maximum_length #=> Integer
|
7866
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.average_length #=> Float
|
7867
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.number_of_nulls #=> Integer
|
7868
|
+
# resp.errors[0].error.error_code #=> String
|
7869
|
+
# resp.errors[0].error.error_message #=> String
|
7870
|
+
#
|
7871
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateColumnStatisticsForPartition AWS API Documentation
|
7872
|
+
#
|
7873
|
+
# @overload update_column_statistics_for_partition(params = {})
|
7874
|
+
# @param [Hash] params ({})
|
7875
|
+
def update_column_statistics_for_partition(params = {}, options = {})
|
7876
|
+
req = build_request(:update_column_statistics_for_partition, params)
|
7877
|
+
req.send_request(options)
|
7878
|
+
end
|
7879
|
+
|
7880
|
+
# Creates or updates table statistics of columns.
|
7881
|
+
#
|
7882
|
+
# @option params [String] :catalog_id
|
7883
|
+
# The ID of the Data Catalog where the partitions in question reside. If
|
7884
|
+
# none is supplied, the AWS account ID is used by default.
|
7885
|
+
#
|
7886
|
+
# @option params [required, String] :database_name
|
7887
|
+
# The name of the catalog database where the partitions reside.
|
7888
|
+
#
|
7889
|
+
# @option params [required, String] :table_name
|
7890
|
+
# The name of the partitions' table.
|
7891
|
+
#
|
7892
|
+
# @option params [required, Array<Types::ColumnStatistics>] :column_statistics_list
|
7893
|
+
# A list of the column statistics.
|
7894
|
+
#
|
7895
|
+
# @return [Types::UpdateColumnStatisticsForTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7896
|
+
#
|
7897
|
+
# * {Types::UpdateColumnStatisticsForTableResponse#errors #errors} => Array<Types::ColumnStatisticsError>
|
7898
|
+
#
|
7899
|
+
# @example Request syntax with placeholder values
|
7900
|
+
#
|
7901
|
+
# resp = client.update_column_statistics_for_table({
|
7902
|
+
# catalog_id: "CatalogIdString",
|
7903
|
+
# database_name: "NameString", # required
|
7904
|
+
# table_name: "NameString", # required
|
7905
|
+
# column_statistics_list: [ # required
|
7906
|
+
# {
|
7907
|
+
# column_name: "NameString", # required
|
7908
|
+
# column_type: "TypeString", # required
|
7909
|
+
# analyzed_time: Time.now, # required
|
7910
|
+
# statistics_data: { # required
|
7911
|
+
# type: "BOOLEAN", # required, accepts BOOLEAN, DATE, DECIMAL, DOUBLE, LONG, STRING, BINARY
|
7912
|
+
# boolean_column_statistics_data: {
|
7913
|
+
# number_of_trues: 1, # required
|
7914
|
+
# number_of_falses: 1, # required
|
7915
|
+
# number_of_nulls: 1, # required
|
7916
|
+
# },
|
7917
|
+
# date_column_statistics_data: {
|
7918
|
+
# minimum_value: Time.now,
|
7919
|
+
# maximum_value: Time.now,
|
7920
|
+
# number_of_nulls: 1, # required
|
7921
|
+
# number_of_distinct_values: 1, # required
|
7922
|
+
# },
|
7923
|
+
# decimal_column_statistics_data: {
|
7924
|
+
# minimum_value: {
|
7925
|
+
# unscaled_value: "data", # required
|
7926
|
+
# scale: 1, # required
|
7927
|
+
# },
|
7928
|
+
# maximum_value: {
|
7929
|
+
# unscaled_value: "data", # required
|
7930
|
+
# scale: 1, # required
|
7931
|
+
# },
|
7932
|
+
# number_of_nulls: 1, # required
|
7933
|
+
# number_of_distinct_values: 1, # required
|
7934
|
+
# },
|
7935
|
+
# double_column_statistics_data: {
|
7936
|
+
# minimum_value: 1.0,
|
7937
|
+
# maximum_value: 1.0,
|
7938
|
+
# number_of_nulls: 1, # required
|
7939
|
+
# number_of_distinct_values: 1, # required
|
7940
|
+
# },
|
7941
|
+
# long_column_statistics_data: {
|
7942
|
+
# minimum_value: 1,
|
7943
|
+
# maximum_value: 1,
|
7944
|
+
# number_of_nulls: 1, # required
|
7945
|
+
# number_of_distinct_values: 1, # required
|
7946
|
+
# },
|
7947
|
+
# string_column_statistics_data: {
|
7948
|
+
# maximum_length: 1, # required
|
7949
|
+
# average_length: 1.0, # required
|
7950
|
+
# number_of_nulls: 1, # required
|
7951
|
+
# number_of_distinct_values: 1, # required
|
7952
|
+
# },
|
7953
|
+
# binary_column_statistics_data: {
|
7954
|
+
# maximum_length: 1, # required
|
7955
|
+
# average_length: 1.0, # required
|
7956
|
+
# number_of_nulls: 1, # required
|
7957
|
+
# },
|
7958
|
+
# },
|
7959
|
+
# },
|
7960
|
+
# ],
|
7961
|
+
# })
|
7962
|
+
#
|
7963
|
+
# @example Response structure
|
7964
|
+
#
|
7965
|
+
# resp.errors #=> Array
|
7966
|
+
# resp.errors[0].column_statistics.column_name #=> String
|
7967
|
+
# resp.errors[0].column_statistics.column_type #=> String
|
7968
|
+
# resp.errors[0].column_statistics.analyzed_time #=> Time
|
7969
|
+
# resp.errors[0].column_statistics.statistics_data.type #=> String, one of "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "LONG", "STRING", "BINARY"
|
7970
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_trues #=> Integer
|
7971
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_falses #=> Integer
|
7972
|
+
# resp.errors[0].column_statistics.statistics_data.boolean_column_statistics_data.number_of_nulls #=> Integer
|
7973
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.minimum_value #=> Time
|
7974
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.maximum_value #=> Time
|
7975
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.number_of_nulls #=> Integer
|
7976
|
+
# resp.errors[0].column_statistics.statistics_data.date_column_statistics_data.number_of_distinct_values #=> Integer
|
7977
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.minimum_value.unscaled_value #=> String
|
7978
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.minimum_value.scale #=> Integer
|
7979
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.maximum_value.unscaled_value #=> String
|
7980
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.maximum_value.scale #=> Integer
|
7981
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.number_of_nulls #=> Integer
|
7982
|
+
# resp.errors[0].column_statistics.statistics_data.decimal_column_statistics_data.number_of_distinct_values #=> Integer
|
7983
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.minimum_value #=> Float
|
7984
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.maximum_value #=> Float
|
7985
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.number_of_nulls #=> Integer
|
7986
|
+
# resp.errors[0].column_statistics.statistics_data.double_column_statistics_data.number_of_distinct_values #=> Integer
|
7987
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.minimum_value #=> Integer
|
7988
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.maximum_value #=> Integer
|
7989
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.number_of_nulls #=> Integer
|
7990
|
+
# resp.errors[0].column_statistics.statistics_data.long_column_statistics_data.number_of_distinct_values #=> Integer
|
7991
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.maximum_length #=> Integer
|
7992
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.average_length #=> Float
|
7993
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.number_of_nulls #=> Integer
|
7994
|
+
# resp.errors[0].column_statistics.statistics_data.string_column_statistics_data.number_of_distinct_values #=> Integer
|
7995
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.maximum_length #=> Integer
|
7996
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.average_length #=> Float
|
7997
|
+
# resp.errors[0].column_statistics.statistics_data.binary_column_statistics_data.number_of_nulls #=> Integer
|
7998
|
+
# resp.errors[0].error.error_code #=> String
|
7999
|
+
# resp.errors[0].error.error_message #=> String
|
8000
|
+
#
|
8001
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateColumnStatisticsForTable AWS API Documentation
|
8002
|
+
#
|
8003
|
+
# @overload update_column_statistics_for_table(params = {})
|
8004
|
+
# @param [Hash] params ({})
|
8005
|
+
def update_column_statistics_for_table(params = {}, options = {})
|
8006
|
+
req = build_request(:update_column_statistics_for_table, params)
|
8007
|
+
req.send_request(options)
|
8008
|
+
end
|
8009
|
+
|
7307
8010
|
# Updates a connection definition in the Data Catalog.
|
7308
8011
|
#
|
7309
8012
|
# @option params [String] :catalog_id
|
@@ -7528,6 +8231,10 @@ module Aws::Glue
|
|
7528
8231
|
# permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
|
7529
8232
|
# },
|
7530
8233
|
# ],
|
8234
|
+
# target_database: {
|
8235
|
+
# catalog_id: "CatalogIdString",
|
8236
|
+
# database_name: "NameString",
|
8237
|
+
# },
|
7531
8238
|
# },
|
7532
8239
|
# })
|
7533
8240
|
#
|
@@ -7807,11 +8514,15 @@ module Aws::Glue
|
|
7807
8514
|
# The name of the table in which the partition to be updated is located.
|
7808
8515
|
#
|
7809
8516
|
# @option params [required, Array<String>] :partition_value_list
|
7810
|
-
#
|
8517
|
+
# List of partition key values that define the partition to update.
|
7811
8518
|
#
|
7812
8519
|
# @option params [required, Types::PartitionInput] :partition_input
|
7813
8520
|
# The new partition object to update the partition to.
|
7814
8521
|
#
|
8522
|
+
# The `Values` property can't be changed. If you want to change the
|
8523
|
+
# partition key values for a partition, delete and recreate the
|
8524
|
+
# partition.
|
8525
|
+
#
|
7815
8526
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
7816
8527
|
#
|
7817
8528
|
# @example Request syntax with placeholder values
|
@@ -7973,6 +8684,11 @@ module Aws::Glue
|
|
7973
8684
|
# parameters: {
|
7974
8685
|
# "KeyString" => "ParametersMapValue",
|
7975
8686
|
# },
|
8687
|
+
# target_table: {
|
8688
|
+
# catalog_id: "CatalogIdString",
|
8689
|
+
# database_name: "NameString",
|
8690
|
+
# name: "NameString",
|
8691
|
+
# },
|
7976
8692
|
# },
|
7977
8693
|
# skip_archive: false,
|
7978
8694
|
# })
|
@@ -8169,7 +8885,7 @@ module Aws::Glue
|
|
8169
8885
|
params: params,
|
8170
8886
|
config: config)
|
8171
8887
|
context[:gem_name] = 'aws-sdk-glue'
|
8172
|
-
context[:gem_version] = '1.
|
8888
|
+
context[:gem_version] = '1.65.0'
|
8173
8889
|
Seahorse::Client::Request.new(handlers, context)
|
8174
8890
|
end
|
8175
8891
|
|