aws-sdk-glue 1.62.0 → 1.63.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf7f5b44230954a7f9dac1c5ebc4555341481c8e139fc84c830ede220a883b56
4
- data.tar.gz: dd912fb61057f0c308bfc4c9ee6f9710a95133b7f0904c9153586c60d3b1ed67
3
+ metadata.gz: 547a559a3457453d2f1685f4815adb9c2dca78a11986aaf332428213f8006587
4
+ data.tar.gz: 911d06cd65e7cc070a02ad05593dd3a5515dfaf9a5728aef592e42b5beca7bb4
5
5
  SHA512:
6
- metadata.gz: a1366ce22851c855c53818d8564d58571f263a960f4fd0c9004c133b69ad59e2b1af1e65e5a2949cfb71dcbd5d835d6e2bd7322b3d1514dff4a130bfee6bd387
7
- data.tar.gz: b74252c05cdb1f0e0c7b0238099263948802e8626e78664a76753de3eb5a4a71ca8cfba3a12a01c66e867cd8a04977a597ce9f9f5da93d5ade143271d769b55c
6
+ metadata.gz: 9b9d97511d19fade3332ea7a35359804824487fcb56e836f76e47c04dabf5805d69f19ae9e3dd4a6e5bd5116a133a70b4d6d301704b21053fc6c5f63b62568e7
7
+ data.tar.gz: 492d63ba36f5bd2c9b2e5e290c6bb8fdc5fefa9826f21b9eb561f0fc76899a3a3413ca8b2dc52bd286ea90327e04a2c99f3decac29999b7f5cd3bdff22d2ed86
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-glue/customizations'
47
47
  # @service
48
48
  module Aws::Glue
49
49
 
50
- GEM_VERSION = '1.62.0'
50
+ GEM_VERSION = '1.63.0'
51
51
 
52
52
  end
@@ -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
@@ -1475,6 +1476,10 @@ module Aws::Glue
1475
1476
  # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
1476
1477
  # },
1477
1478
  # ],
1479
+ # target_database: {
1480
+ # catalog_id: "CatalogIdString",
1481
+ # database_name: "NameString",
1482
+ # },
1478
1483
  # },
1479
1484
  # })
1480
1485
  #
@@ -2374,6 +2379,11 @@ module Aws::Glue
2374
2379
  # parameters: {
2375
2380
  # "KeyString" => "ParametersMapValue",
2376
2381
  # },
2382
+ # target_table: {
2383
+ # catalog_id: "CatalogIdString",
2384
+ # database_name: "NameString",
2385
+ # name: "NameString",
2386
+ # },
2377
2387
  # },
2378
2388
  # })
2379
2389
  #
@@ -2893,12 +2903,17 @@ module Aws::Glue
2893
2903
  # @option params [String] :policy_hash_condition
2894
2904
  # The hash value returned when this policy was set.
2895
2905
  #
2906
+ # @option params [String] :resource_arn
2907
+ # The ARN of the AWS Glue resource for the resource policy to be
2908
+ # deleted.
2909
+ #
2896
2910
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2897
2911
  #
2898
2912
  # @example Request syntax with placeholder values
2899
2913
  #
2900
2914
  # resp = client.delete_resource_policy({
2901
2915
  # policy_hash_condition: "HashString",
2916
+ # resource_arn: "GlueResourceArn",
2902
2917
  # })
2903
2918
  #
2904
2919
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy AWS API Documentation
@@ -3800,6 +3815,9 @@ module Aws::Glue
3800
3815
  # resp.database.create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String
3801
3816
  # resp.database.create_table_default_permissions[0].permissions #=> Array
3802
3817
  # 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"
3818
+ # resp.database.target_database.catalog_id #=> String
3819
+ # resp.database.target_database.database_name #=> String
3820
+ # resp.database.catalog_id #=> String
3803
3821
  #
3804
3822
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabase AWS API Documentation
3805
3823
  #
@@ -3822,6 +3840,16 @@ module Aws::Glue
3822
3840
  # @option params [Integer] :max_results
3823
3841
  # The maximum number of databases to return in one response.
3824
3842
  #
3843
+ # @option params [String] :resource_share_type
3844
+ # Allows you to specify that you want to list the databases shared with
3845
+ # your account. The allowable values are `FOREIGN` or `ALL`.
3846
+ #
3847
+ # * If set to `FOREIGN`, will list the databases shared with your
3848
+ # account.
3849
+ #
3850
+ # * If set to `ALL`, will list the databases shared with your account,
3851
+ # as well as the databases in yor local account.
3852
+ #
3825
3853
  # @return [Types::GetDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3826
3854
  #
3827
3855
  # * {Types::GetDatabasesResponse#database_list #database_list} => Array<Types::Database>
@@ -3835,6 +3863,7 @@ module Aws::Glue
3835
3863
  # catalog_id: "CatalogIdString",
3836
3864
  # next_token: "Token",
3837
3865
  # max_results: 1,
3866
+ # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
3838
3867
  # })
3839
3868
  #
3840
3869
  # @example Response structure
@@ -3850,6 +3879,9 @@ module Aws::Glue
3850
3879
  # resp.database_list[0].create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String
3851
3880
  # resp.database_list[0].create_table_default_permissions[0].permissions #=> Array
3852
3881
  # 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"
3882
+ # resp.database_list[0].target_database.catalog_id #=> String
3883
+ # resp.database_list[0].target_database.database_name #=> String
3884
+ # resp.database_list[0].catalog_id #=> String
3853
3885
  # resp.next_token #=> String
3854
3886
  #
3855
3887
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabases AWS API Documentation
@@ -4782,6 +4814,7 @@ module Aws::Glue
4782
4814
  # resp.partition.parameters #=> Hash
4783
4815
  # resp.partition.parameters["KeyString"] #=> String
4784
4816
  # resp.partition.last_analyzed_time #=> Time
4817
+ # resp.partition.catalog_id #=> String
4785
4818
  #
4786
4819
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartition AWS API Documentation
4787
4820
  #
@@ -4970,6 +5003,7 @@ module Aws::Glue
4970
5003
  # resp.partitions[0].parameters #=> Hash
4971
5004
  # resp.partitions[0].parameters["KeyString"] #=> String
4972
5005
  # resp.partitions[0].last_analyzed_time #=> Time
5006
+ # resp.partitions[0].catalog_id #=> String
4973
5007
  # resp.next_token #=> String
4974
5008
  #
4975
5009
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartitions AWS API Documentation
@@ -5066,8 +5100,56 @@ module Aws::Glue
5066
5100
  req.send_request(options)
5067
5101
  end
5068
5102
 
5103
+ # Retrieves the security configurations for the resource policies set on
5104
+ # individual resources, and also the account-level policy.
5105
+ #
5106
+ # @option params [String] :next_token
5107
+ # A continuation token, if this is a continuation request.
5108
+ #
5109
+ # @option params [Integer] :max_results
5110
+ # The maximum size of a list to return.
5111
+ #
5112
+ # @return [Types::GetResourcePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5113
+ #
5114
+ # * {Types::GetResourcePoliciesResponse#get_resource_policies_response_list #get_resource_policies_response_list} => Array<Types::GluePolicy>
5115
+ # * {Types::GetResourcePoliciesResponse#next_token #next_token} => String
5116
+ #
5117
+ # @example Request syntax with placeholder values
5118
+ #
5119
+ # resp = client.get_resource_policies({
5120
+ # next_token: "Token",
5121
+ # max_results: 1,
5122
+ # })
5123
+ #
5124
+ # @example Response structure
5125
+ #
5126
+ # resp.get_resource_policies_response_list #=> Array
5127
+ # resp.get_resource_policies_response_list[0].policy_in_json #=> String
5128
+ # resp.get_resource_policies_response_list[0].policy_hash #=> String
5129
+ # resp.get_resource_policies_response_list[0].create_time #=> Time
5130
+ # resp.get_resource_policies_response_list[0].update_time #=> Time
5131
+ # resp.next_token #=> String
5132
+ #
5133
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicies AWS API Documentation
5134
+ #
5135
+ # @overload get_resource_policies(params = {})
5136
+ # @param [Hash] params ({})
5137
+ def get_resource_policies(params = {}, options = {})
5138
+ req = build_request(:get_resource_policies, params)
5139
+ req.send_request(options)
5140
+ end
5141
+
5069
5142
  # Retrieves a specified resource policy.
5070
5143
  #
5144
+ # @option params [String] :resource_arn
5145
+ # The ARN of the AWS Glue resource for the resource policy to be
5146
+ # retrieved. For more information about AWS Glue resource ARNs, see the
5147
+ # [AWS Glue ARN string pattern][1]
5148
+ #
5149
+ #
5150
+ #
5151
+ # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
5152
+ #
5071
5153
  # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5072
5154
  #
5073
5155
  # * {Types::GetResourcePolicyResponse#policy_in_json #policy_in_json} => String
@@ -5075,6 +5157,12 @@ module Aws::Glue
5075
5157
  # * {Types::GetResourcePolicyResponse#create_time #create_time} => Time
5076
5158
  # * {Types::GetResourcePolicyResponse#update_time #update_time} => Time
5077
5159
  #
5160
+ # @example Request syntax with placeholder values
5161
+ #
5162
+ # resp = client.get_resource_policy({
5163
+ # resource_arn: "GlueResourceArn",
5164
+ # })
5165
+ #
5078
5166
  # @example Response structure
5079
5167
  #
5080
5168
  # resp.policy_in_json #=> String
@@ -5252,6 +5340,10 @@ module Aws::Glue
5252
5340
  # resp.table.parameters["KeyString"] #=> String
5253
5341
  # resp.table.created_by #=> String
5254
5342
  # resp.table.is_registered_with_lake_formation #=> Boolean
5343
+ # resp.table.target_table.catalog_id #=> String
5344
+ # resp.table.target_table.database_name #=> String
5345
+ # resp.table.target_table.name #=> String
5346
+ # resp.table.catalog_id #=> String
5255
5347
  #
5256
5348
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTable AWS API Documentation
5257
5349
  #
@@ -5346,6 +5438,10 @@ module Aws::Glue
5346
5438
  # resp.table_version.table.parameters["KeyString"] #=> String
5347
5439
  # resp.table_version.table.created_by #=> String
5348
5440
  # resp.table_version.table.is_registered_with_lake_formation #=> Boolean
5441
+ # resp.table_version.table.target_table.catalog_id #=> String
5442
+ # resp.table_version.table.target_table.database_name #=> String
5443
+ # resp.table_version.table.target_table.name #=> String
5444
+ # resp.table_version.table.catalog_id #=> String
5349
5445
  # resp.table_version.version_id #=> String
5350
5446
  #
5351
5447
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersion AWS API Documentation
@@ -5449,6 +5545,10 @@ module Aws::Glue
5449
5545
  # resp.table_versions[0].table.parameters["KeyString"] #=> String
5450
5546
  # resp.table_versions[0].table.created_by #=> String
5451
5547
  # resp.table_versions[0].table.is_registered_with_lake_formation #=> Boolean
5548
+ # resp.table_versions[0].table.target_table.catalog_id #=> String
5549
+ # resp.table_versions[0].table.target_table.database_name #=> String
5550
+ # resp.table_versions[0].table.target_table.name #=> String
5551
+ # resp.table_versions[0].table.catalog_id #=> String
5452
5552
  # resp.table_versions[0].version_id #=> String
5453
5553
  # resp.next_token #=> String
5454
5554
  #
@@ -5553,6 +5653,10 @@ module Aws::Glue
5553
5653
  # resp.table_list[0].parameters["KeyString"] #=> String
5554
5654
  # resp.table_list[0].created_by #=> String
5555
5655
  # resp.table_list[0].is_registered_with_lake_formation #=> Boolean
5656
+ # resp.table_list[0].target_table.catalog_id #=> String
5657
+ # resp.table_list[0].target_table.database_name #=> String
5658
+ # resp.table_list[0].target_table.name #=> String
5659
+ # resp.table_list[0].catalog_id #=> String
5556
5660
  # resp.next_token #=> String
5557
5661
  #
5558
5662
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTables AWS API Documentation
@@ -5742,6 +5846,7 @@ module Aws::Glue
5742
5846
  # resp.user_defined_function.resource_uris #=> Array
5743
5847
  # resp.user_defined_function.resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE"
5744
5848
  # resp.user_defined_function.resource_uris[0].uri #=> String
5849
+ # resp.user_defined_function.catalog_id #=> String
5745
5850
  #
5746
5851
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunction AWS API Documentation
5747
5852
  #
@@ -5802,6 +5907,7 @@ module Aws::Glue
5802
5907
  # resp.user_defined_functions[0].resource_uris #=> Array
5803
5908
  # resp.user_defined_functions[0].resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE"
5804
5909
  # resp.user_defined_functions[0].resource_uris[0].uri #=> String
5910
+ # resp.user_defined_functions[0].catalog_id #=> String
5805
5911
  # resp.next_token #=> String
5806
5912
  #
5807
5913
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunctions AWS API Documentation
@@ -6636,6 +6742,15 @@ module Aws::Glue
6636
6742
  # @option params [required, String] :policy_in_json
6637
6743
  # Contains the policy document to set, in JSON format.
6638
6744
  #
6745
+ # @option params [String] :resource_arn
6746
+ # The ARN of the AWS Glue resource for the resource policy to be set.
6747
+ # For more information about AWS Glue resource ARNs, see the [AWS Glue
6748
+ # ARN string pattern][1]
6749
+ #
6750
+ #
6751
+ #
6752
+ # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
6753
+ #
6639
6754
  # @option params [String] :policy_hash_condition
6640
6755
  # The hash value returned when the previous policy was set using
6641
6756
  # `PutResourcePolicy`. Its purpose is to prevent concurrent
@@ -6648,6 +6763,17 @@ module Aws::Glue
6648
6763
  # null value is used, the call will not depend on the existence of a
6649
6764
  # policy.
6650
6765
  #
6766
+ # @option params [String] :enable_hybrid
6767
+ # Allows you to specify if you want to use both resource-level and
6768
+ # account/catalog-level resource policies. A resource-level policy is a
6769
+ # policy attached to an individual resource such as a database or a
6770
+ # table.
6771
+ #
6772
+ # The default value of `NO` indicates that resource-level policies
6773
+ # cannot co-exist with an account-level policy. A value of `YES` means
6774
+ # the use of both resource-level and account/catalog-level resource
6775
+ # policies is allowed.
6776
+ #
6651
6777
  # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6652
6778
  #
6653
6779
  # * {Types::PutResourcePolicyResponse#policy_hash #policy_hash} => String
@@ -6656,8 +6782,10 @@ module Aws::Glue
6656
6782
  #
6657
6783
  # resp = client.put_resource_policy({
6658
6784
  # policy_in_json: "PolicyJsonString", # required
6785
+ # resource_arn: "GlueResourceArn",
6659
6786
  # policy_hash_condition: "HashString",
6660
6787
  # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
6788
+ # enable_hybrid: "TRUE", # accepts TRUE, FALSE
6661
6789
  # })
6662
6790
  #
6663
6791
  # @example Response structure
@@ -6782,6 +6910,16 @@ module Aws::Glue
6782
6910
  # @option params [Integer] :max_results
6783
6911
  # The maximum number of tables to return in a single response.
6784
6912
  #
6913
+ # @option params [String] :resource_share_type
6914
+ # Allows you to specify that you want to search the tables shared with
6915
+ # your account. The allowable values are `FOREIGN` or `ALL`.
6916
+ #
6917
+ # * If set to `FOREIGN`, will search the tables shared with your
6918
+ # account.
6919
+ #
6920
+ # * If set to `ALL`, will search the tables shared with your account, as
6921
+ # well as the tables in yor local account.
6922
+ #
6785
6923
  # @return [Types::SearchTablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6786
6924
  #
6787
6925
  # * {Types::SearchTablesResponse#next_token #next_token} => String
@@ -6809,6 +6947,7 @@ module Aws::Glue
6809
6947
  # },
6810
6948
  # ],
6811
6949
  # max_results: 1,
6950
+ # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
6812
6951
  # })
6813
6952
  #
6814
6953
  # @example Response structure
@@ -6866,6 +7005,10 @@ module Aws::Glue
6866
7005
  # resp.table_list[0].parameters["KeyString"] #=> String
6867
7006
  # resp.table_list[0].created_by #=> String
6868
7007
  # resp.table_list[0].is_registered_with_lake_formation #=> Boolean
7008
+ # resp.table_list[0].target_table.catalog_id #=> String
7009
+ # resp.table_list[0].target_table.database_name #=> String
7010
+ # resp.table_list[0].target_table.name #=> String
7011
+ # resp.table_list[0].catalog_id #=> String
6869
7012
  #
6870
7013
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTables AWS API Documentation
6871
7014
  #
@@ -8026,6 +8169,10 @@ module Aws::Glue
8026
8169
  # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
8027
8170
  # },
8028
8171
  # ],
8172
+ # target_database: {
8173
+ # catalog_id: "CatalogIdString",
8174
+ # database_name: "NameString",
8175
+ # },
8029
8176
  # },
8030
8177
  # })
8031
8178
  #
@@ -8471,6 +8618,11 @@ module Aws::Glue
8471
8618
  # parameters: {
8472
8619
  # "KeyString" => "ParametersMapValue",
8473
8620
  # },
8621
+ # target_table: {
8622
+ # catalog_id: "CatalogIdString",
8623
+ # database_name: "NameString",
8624
+ # name: "NameString",
8625
+ # },
8474
8626
  # },
8475
8627
  # skip_archive: false,
8476
8628
  # })
@@ -8667,7 +8819,7 @@ module Aws::Glue
8667
8819
  params: params,
8668
8820
  config: config)
8669
8821
  context[:gem_name] = 'aws-sdk-glue'
8670
- context[:gem_version] = '1.62.0'
8822
+ context[:gem_version] = '1.63.0'
8671
8823
  Seahorse::Client::Request.new(handlers, context)
8672
8824
  end
8673
8825
 
@@ -174,6 +174,7 @@ module Aws::Glue
174
174
  DataLakePrincipal = Shapes::StructureShape.new(name: 'DataLakePrincipal')
175
175
  DataLakePrincipalString = Shapes::StringShape.new(name: 'DataLakePrincipalString')
176
176
  Database = Shapes::StructureShape.new(name: 'Database')
177
+ DatabaseIdentifier = Shapes::StructureShape.new(name: 'DatabaseIdentifier')
177
178
  DatabaseInput = Shapes::StructureShape.new(name: 'DatabaseInput')
178
179
  DatabaseList = Shapes::ListShape.new(name: 'DatabaseList')
179
180
  DatabaseName = Shapes::StringShape.new(name: 'DatabaseName')
@@ -229,6 +230,7 @@ module Aws::Glue
229
230
  DynamoDBTargetList = Shapes::ListShape.new(name: 'DynamoDBTargetList')
230
231
  Edge = Shapes::StructureShape.new(name: 'Edge')
231
232
  EdgeList = Shapes::ListShape.new(name: 'EdgeList')
233
+ EnableHybridValues = Shapes::StringShape.new(name: 'EnableHybridValues')
232
234
  EncryptionAtRest = Shapes::StructureShape.new(name: 'EncryptionAtRest')
233
235
  EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
234
236
  EntityNotFoundException = Shapes::StructureShape.new(name: 'EntityNotFoundException')
@@ -309,6 +311,9 @@ module Aws::Glue
309
311
  GetPartitionsResponse = Shapes::StructureShape.new(name: 'GetPartitionsResponse')
310
312
  GetPlanRequest = Shapes::StructureShape.new(name: 'GetPlanRequest')
311
313
  GetPlanResponse = Shapes::StructureShape.new(name: 'GetPlanResponse')
314
+ GetResourcePoliciesRequest = Shapes::StructureShape.new(name: 'GetResourcePoliciesRequest')
315
+ GetResourcePoliciesResponse = Shapes::StructureShape.new(name: 'GetResourcePoliciesResponse')
316
+ GetResourcePoliciesResponseList = Shapes::ListShape.new(name: 'GetResourcePoliciesResponseList')
312
317
  GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
313
318
  GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
314
319
  GetSecurityConfigurationRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigurationRequest')
@@ -343,6 +348,7 @@ module Aws::Glue
343
348
  GetWorkflowRunsRequest = Shapes::StructureShape.new(name: 'GetWorkflowRunsRequest')
344
349
  GetWorkflowRunsResponse = Shapes::StructureShape.new(name: 'GetWorkflowRunsResponse')
345
350
  GlueEncryptionException = Shapes::StructureShape.new(name: 'GlueEncryptionException')
351
+ GluePolicy = Shapes::StructureShape.new(name: 'GluePolicy')
346
352
  GlueResourceArn = Shapes::StringShape.new(name: 'GlueResourceArn')
347
353
  GlueTable = Shapes::StructureShape.new(name: 'GlueTable')
348
354
  GlueTables = Shapes::ListShape.new(name: 'GlueTables')
@@ -475,6 +481,7 @@ module Aws::Glue
475
481
  ResetJobBookmarkRequest = Shapes::StructureShape.new(name: 'ResetJobBookmarkRequest')
476
482
  ResetJobBookmarkResponse = Shapes::StructureShape.new(name: 'ResetJobBookmarkResponse')
477
483
  ResourceNumberLimitExceededException = Shapes::StructureShape.new(name: 'ResourceNumberLimitExceededException')
484
+ ResourceShareType = Shapes::StringShape.new(name: 'ResourceShareType')
478
485
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
479
486
  ResourceUri = Shapes::StructureShape.new(name: 'ResourceUri')
480
487
  ResourceUriList = Shapes::ListShape.new(name: 'ResourceUriList')
@@ -543,6 +550,7 @@ module Aws::Glue
543
550
  Table = Shapes::StructureShape.new(name: 'Table')
544
551
  TableError = Shapes::StructureShape.new(name: 'TableError')
545
552
  TableErrors = Shapes::ListShape.new(name: 'TableErrors')
553
+ TableIdentifier = Shapes::StructureShape.new(name: 'TableIdentifier')
546
554
  TableInput = Shapes::StructureShape.new(name: 'TableInput')
547
555
  TableList = Shapes::ListShape.new(name: 'TableList')
548
556
  TableName = Shapes::StringShape.new(name: 'TableName')
@@ -1247,13 +1255,20 @@ module Aws::Glue
1247
1255
  Database.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
1248
1256
  Database.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
1249
1257
  Database.add_member(:create_table_default_permissions, Shapes::ShapeRef.new(shape: PrincipalPermissionsList, location_name: "CreateTableDefaultPermissions"))
1258
+ Database.add_member(:target_database, Shapes::ShapeRef.new(shape: DatabaseIdentifier, location_name: "TargetDatabase"))
1259
+ Database.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
1250
1260
  Database.struct_class = Types::Database
1251
1261
 
1262
+ DatabaseIdentifier.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
1263
+ DatabaseIdentifier.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, location_name: "DatabaseName"))
1264
+ DatabaseIdentifier.struct_class = Types::DatabaseIdentifier
1265
+
1252
1266
  DatabaseInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
1253
1267
  DatabaseInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
1254
1268
  DatabaseInput.add_member(:location_uri, Shapes::ShapeRef.new(shape: URI, location_name: "LocationUri"))
1255
1269
  DatabaseInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
1256
1270
  DatabaseInput.add_member(:create_table_default_permissions, Shapes::ShapeRef.new(shape: PrincipalPermissionsList, location_name: "CreateTableDefaultPermissions"))
1271
+ DatabaseInput.add_member(:target_database, Shapes::ShapeRef.new(shape: DatabaseIdentifier, location_name: "TargetDatabase"))
1257
1272
  DatabaseInput.struct_class = Types::DatabaseInput
1258
1273
 
1259
1274
  DatabaseList.member = Shapes::ShapeRef.new(shape: Database)
@@ -1341,6 +1356,7 @@ module Aws::Glue
1341
1356
  DeletePartitionResponse.struct_class = Types::DeletePartitionResponse
1342
1357
 
1343
1358
  DeleteResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
1359
+ DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GlueResourceArn, location_name: "ResourceArn"))
1344
1360
  DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
1345
1361
 
1346
1362
  DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
@@ -1595,6 +1611,7 @@ module Aws::Glue
1595
1611
  GetDatabasesRequest.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
1596
1612
  GetDatabasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
1597
1613
  GetDatabasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
1614
+ GetDatabasesRequest.add_member(:resource_share_type, Shapes::ShapeRef.new(shape: ResourceShareType, location_name: "ResourceShareType"))
1598
1615
  GetDatabasesRequest.struct_class = Types::GetDatabasesRequest
1599
1616
 
1600
1617
  GetDatabasesResponse.add_member(:database_list, Shapes::ShapeRef.new(shape: DatabaseList, required: true, location_name: "DatabaseList"))
@@ -1761,6 +1778,17 @@ module Aws::Glue
1761
1778
  GetPlanResponse.add_member(:scala_code, Shapes::ShapeRef.new(shape: ScalaCode, location_name: "ScalaCode"))
1762
1779
  GetPlanResponse.struct_class = Types::GetPlanResponse
1763
1780
 
1781
+ GetResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
1782
+ GetResourcePoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
1783
+ GetResourcePoliciesRequest.struct_class = Types::GetResourcePoliciesRequest
1784
+
1785
+ GetResourcePoliciesResponse.add_member(:get_resource_policies_response_list, Shapes::ShapeRef.new(shape: GetResourcePoliciesResponseList, location_name: "GetResourcePoliciesResponseList"))
1786
+ GetResourcePoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
1787
+ GetResourcePoliciesResponse.struct_class = Types::GetResourcePoliciesResponse
1788
+
1789
+ GetResourcePoliciesResponseList.member = Shapes::ShapeRef.new(shape: GluePolicy)
1790
+
1791
+ GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GlueResourceArn, location_name: "ResourceArn"))
1764
1792
  GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
1765
1793
 
1766
1794
  GetResourcePolicyResponse.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, location_name: "PolicyInJson"))
@@ -1899,6 +1927,12 @@ module Aws::Glue
1899
1927
  GlueEncryptionException.add_member(:message, Shapes::ShapeRef.new(shape: MessageString, location_name: "Message"))
1900
1928
  GlueEncryptionException.struct_class = Types::GlueEncryptionException
1901
1929
 
1930
+ GluePolicy.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, location_name: "PolicyInJson"))
1931
+ GluePolicy.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
1932
+ GluePolicy.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
1933
+ GluePolicy.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdateTime"))
1934
+ GluePolicy.struct_class = Types::GluePolicy
1935
+
1902
1936
  GlueTable.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "DatabaseName"))
1903
1937
  GlueTable.add_member(:table_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "TableName"))
1904
1938
  GlueTable.add_member(:catalog_id, Shapes::ShapeRef.new(shape: NameString, location_name: "CatalogId"))
@@ -2202,6 +2236,7 @@ module Aws::Glue
2202
2236
  Partition.add_member(:storage_descriptor, Shapes::ShapeRef.new(shape: StorageDescriptor, location_name: "StorageDescriptor"))
2203
2237
  Partition.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
2204
2238
  Partition.add_member(:last_analyzed_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastAnalyzedTime"))
2239
+ Partition.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
2205
2240
  Partition.struct_class = Types::Partition
2206
2241
 
2207
2242
  PartitionError.add_member(:partition_values, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "PartitionValues"))
@@ -2263,8 +2298,10 @@ module Aws::Glue
2263
2298
  PutDataCatalogEncryptionSettingsResponse.struct_class = Types::PutDataCatalogEncryptionSettingsResponse
2264
2299
 
2265
2300
  PutResourcePolicyRequest.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, required: true, location_name: "PolicyInJson"))
2301
+ PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: GlueResourceArn, location_name: "ResourceArn"))
2266
2302
  PutResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
2267
2303
  PutResourcePolicyRequest.add_member(:policy_exists_condition, Shapes::ShapeRef.new(shape: ExistCondition, location_name: "PolicyExistsCondition"))
2304
+ PutResourcePolicyRequest.add_member(:enable_hybrid, Shapes::ShapeRef.new(shape: EnableHybridValues, location_name: "EnableHybrid"))
2268
2305
  PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
2269
2306
 
2270
2307
  PutResourcePolicyResponse.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
@@ -2334,6 +2371,7 @@ module Aws::Glue
2334
2371
  SearchTablesRequest.add_member(:search_text, Shapes::ShapeRef.new(shape: ValueString, location_name: "SearchText"))
2335
2372
  SearchTablesRequest.add_member(:sort_criteria, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "SortCriteria"))
2336
2373
  SearchTablesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
2374
+ SearchTablesRequest.add_member(:resource_share_type, Shapes::ShapeRef.new(shape: ResourceShareType, location_name: "ResourceShareType"))
2337
2375
  SearchTablesRequest.struct_class = Types::SearchTablesRequest
2338
2376
 
2339
2377
  SearchTablesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
@@ -2495,6 +2533,8 @@ module Aws::Glue
2495
2533
  Table.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
2496
2534
  Table.add_member(:created_by, Shapes::ShapeRef.new(shape: NameString, location_name: "CreatedBy"))
2497
2535
  Table.add_member(:is_registered_with_lake_formation, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsRegisteredWithLakeFormation"))
2536
+ Table.add_member(:target_table, Shapes::ShapeRef.new(shape: TableIdentifier, location_name: "TargetTable"))
2537
+ Table.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
2498
2538
  Table.struct_class = Types::Table
2499
2539
 
2500
2540
  TableError.add_member(:table_name, Shapes::ShapeRef.new(shape: NameString, location_name: "TableName"))
@@ -2503,6 +2543,11 @@ module Aws::Glue
2503
2543
 
2504
2544
  TableErrors.member = Shapes::ShapeRef.new(shape: TableError)
2505
2545
 
2546
+ TableIdentifier.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
2547
+ TableIdentifier.add_member(:database_name, Shapes::ShapeRef.new(shape: NameString, location_name: "DatabaseName"))
2548
+ TableIdentifier.add_member(:name, Shapes::ShapeRef.new(shape: NameString, location_name: "Name"))
2549
+ TableIdentifier.struct_class = Types::TableIdentifier
2550
+
2506
2551
  TableInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
2507
2552
  TableInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
2508
2553
  TableInput.add_member(:owner, Shapes::ShapeRef.new(shape: NameString, location_name: "Owner"))
@@ -2515,6 +2560,7 @@ module Aws::Glue
2515
2560
  TableInput.add_member(:view_expanded_text, Shapes::ShapeRef.new(shape: ViewTextString, location_name: "ViewExpandedText"))
2516
2561
  TableInput.add_member(:table_type, Shapes::ShapeRef.new(shape: TableTypeString, location_name: "TableType"))
2517
2562
  TableInput.add_member(:parameters, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "Parameters"))
2563
+ TableInput.add_member(:target_table, Shapes::ShapeRef.new(shape: TableIdentifier, location_name: "TargetTable"))
2518
2564
  TableInput.struct_class = Types::TableInput
2519
2565
 
2520
2566
  TableList.member = Shapes::ShapeRef.new(shape: Table)
@@ -2798,6 +2844,7 @@ module Aws::Glue
2798
2844
  UserDefinedFunction.add_member(:owner_type, Shapes::ShapeRef.new(shape: PrincipalType, location_name: "OwnerType"))
2799
2845
  UserDefinedFunction.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
2800
2846
  UserDefinedFunction.add_member(:resource_uris, Shapes::ShapeRef.new(shape: ResourceUriList, location_name: "ResourceUris"))
2847
+ UserDefinedFunction.add_member(:catalog_id, Shapes::ShapeRef.new(shape: CatalogIdString, location_name: "CatalogId"))
2801
2848
  UserDefinedFunction.struct_class = Types::UserDefinedFunction
2802
2849
 
2803
2850
  UserDefinedFunctionInput.add_member(:function_name, Shapes::ShapeRef.new(shape: NameString, location_name: "FunctionName"))
@@ -3834,6 +3881,18 @@ module Aws::Glue
3834
3881
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
3835
3882
  end)
3836
3883
 
3884
+ api.add_operation(:get_resource_policies, Seahorse::Model::Operation.new.tap do |o|
3885
+ o.name = "GetResourcePolicies"
3886
+ o.http_method = "POST"
3887
+ o.http_request_uri = "/"
3888
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePoliciesRequest)
3889
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePoliciesResponse)
3890
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
3891
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
3892
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
3893
+ o.errors << Shapes::ShapeRef.new(shape: GlueEncryptionException)
3894
+ end)
3895
+
3837
3896
  api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
3838
3897
  o.name = "GetResourcePolicy"
3839
3898
  o.http_method = "POST"
@@ -1543,8 +1543,7 @@ module Aws::Glue
1543
1543
  # @return [String]
1544
1544
  #
1545
1545
  # @!attribute [rw] connection_type
1546
- # The type of the connection. Currently, only JDBC is supported; SFTP
1547
- # is not supported.
1546
+ # The type of the connection. Currently, SFTP is not supported.
1548
1547
  # @return [String]
1549
1548
  #
1550
1549
  # @!attribute [rw] match_criteria
@@ -2447,6 +2446,10 @@ module Aws::Glue
2447
2446
  # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
2448
2447
  # },
2449
2448
  # ],
2449
+ # target_database: {
2450
+ # catalog_id: "CatalogIdString",
2451
+ # database_name: "NameString",
2452
+ # },
2450
2453
  # },
2451
2454
  # }
2452
2455
  #
@@ -3591,6 +3594,11 @@ module Aws::Glue
3591
3594
  # parameters: {
3592
3595
  # "KeyString" => "ParametersMapValue",
3593
3596
  # },
3597
+ # target_table: {
3598
+ # catalog_id: "CatalogIdString",
3599
+ # database_name: "NameString",
3600
+ # name: "NameString",
3601
+ # },
3594
3602
  # },
3595
3603
  # }
3596
3604
  #
@@ -4036,6 +4044,15 @@ module Aws::Glue
4036
4044
  # Creates a set of default permissions on the table for principals.
4037
4045
  # @return [Array<Types::PrincipalPermissions>]
4038
4046
  #
4047
+ # @!attribute [rw] target_database
4048
+ # A `DatabaseIdentifier` structure that describes a target database
4049
+ # for resource linking.
4050
+ # @return [Types::DatabaseIdentifier]
4051
+ #
4052
+ # @!attribute [rw] catalog_id
4053
+ # The ID of the Data Catalog in which the database resides.
4054
+ # @return [String]
4055
+ #
4039
4056
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Database AWS API Documentation
4040
4057
  #
4041
4058
  class Database < Struct.new(
@@ -4044,7 +4061,36 @@ module Aws::Glue
4044
4061
  :location_uri,
4045
4062
  :parameters,
4046
4063
  :create_time,
4047
- :create_table_default_permissions)
4064
+ :create_table_default_permissions,
4065
+ :target_database,
4066
+ :catalog_id)
4067
+ SENSITIVE = []
4068
+ include Aws::Structure
4069
+ end
4070
+
4071
+ # A structure that describes a target database for resource linking.
4072
+ #
4073
+ # @note When making an API call, you may pass DatabaseIdentifier
4074
+ # data as a hash:
4075
+ #
4076
+ # {
4077
+ # catalog_id: "CatalogIdString",
4078
+ # database_name: "NameString",
4079
+ # }
4080
+ #
4081
+ # @!attribute [rw] catalog_id
4082
+ # The ID of the Data Catalog in which the database resides.
4083
+ # @return [String]
4084
+ #
4085
+ # @!attribute [rw] database_name
4086
+ # The name of the catalog database.
4087
+ # @return [String]
4088
+ #
4089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DatabaseIdentifier AWS API Documentation
4090
+ #
4091
+ class DatabaseIdentifier < Struct.new(
4092
+ :catalog_id,
4093
+ :database_name)
4048
4094
  SENSITIVE = []
4049
4095
  include Aws::Structure
4050
4096
  end
@@ -4069,6 +4115,10 @@ module Aws::Glue
4069
4115
  # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
4070
4116
  # },
4071
4117
  # ],
4118
+ # target_database: {
4119
+ # catalog_id: "CatalogIdString",
4120
+ # database_name: "NameString",
4121
+ # },
4072
4122
  # }
4073
4123
  #
4074
4124
  # @!attribute [rw] name
@@ -4096,6 +4146,11 @@ module Aws::Glue
4096
4146
  # Creates a set of default permissions on the table for principals.
4097
4147
  # @return [Array<Types::PrincipalPermissions>]
4098
4148
  #
4149
+ # @!attribute [rw] target_database
4150
+ # A `DatabaseIdentifier` structure that describes a target database
4151
+ # for resource linking.
4152
+ # @return [Types::DatabaseIdentifier]
4153
+ #
4099
4154
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DatabaseInput AWS API Documentation
4100
4155
  #
4101
4156
  class DatabaseInput < Struct.new(
@@ -4103,7 +4158,8 @@ module Aws::Glue
4103
4158
  :description,
4104
4159
  :location_uri,
4105
4160
  :parameters,
4106
- :create_table_default_permissions)
4161
+ :create_table_default_permissions,
4162
+ :target_database)
4107
4163
  SENSITIVE = []
4108
4164
  include Aws::Structure
4109
4165
  end
@@ -4550,16 +4606,23 @@ module Aws::Glue
4550
4606
  #
4551
4607
  # {
4552
4608
  # policy_hash_condition: "HashString",
4609
+ # resource_arn: "GlueResourceArn",
4553
4610
  # }
4554
4611
  #
4555
4612
  # @!attribute [rw] policy_hash_condition
4556
4613
  # The hash value returned when this policy was set.
4557
4614
  # @return [String]
4558
4615
  #
4616
+ # @!attribute [rw] resource_arn
4617
+ # The ARN of the AWS Glue resource for the resource policy to be
4618
+ # deleted.
4619
+ # @return [String]
4620
+ #
4559
4621
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicyRequest AWS API Documentation
4560
4622
  #
4561
4623
  class DeleteResourcePolicyRequest < Struct.new(
4562
- :policy_hash_condition)
4624
+ :policy_hash_condition,
4625
+ :resource_arn)
4563
4626
  SENSITIVE = []
4564
4627
  include Aws::Structure
4565
4628
  end
@@ -5773,8 +5836,7 @@ module Aws::Glue
5773
5836
  # @return [Array<String>]
5774
5837
  #
5775
5838
  # @!attribute [rw] connection_type
5776
- # The type of connections to return. Currently, only JDBC is
5777
- # supported; SFTP is not supported.
5839
+ # The type of connections to return. Currently, SFTP is not supported.
5778
5840
  # @return [String]
5779
5841
  #
5780
5842
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetConnectionsFilter AWS API Documentation
@@ -6057,6 +6119,7 @@ module Aws::Glue
6057
6119
  # catalog_id: "CatalogIdString",
6058
6120
  # next_token: "Token",
6059
6121
  # max_results: 1,
6122
+ # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
6060
6123
  # }
6061
6124
  #
6062
6125
  # @!attribute [rw] catalog_id
@@ -6072,12 +6135,24 @@ module Aws::Glue
6072
6135
  # The maximum number of databases to return in one response.
6073
6136
  # @return [Integer]
6074
6137
  #
6138
+ # @!attribute [rw] resource_share_type
6139
+ # Allows you to specify that you want to list the databases shared
6140
+ # with your account. The allowable values are `FOREIGN` or `ALL`.
6141
+ #
6142
+ # * If set to `FOREIGN`, will list the databases shared with your
6143
+ # account.
6144
+ #
6145
+ # * If set to `ALL`, will list the databases shared with your account,
6146
+ # as well as the databases in yor local account.
6147
+ # @return [String]
6148
+ #
6075
6149
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabasesRequest AWS API Documentation
6076
6150
  #
6077
6151
  class GetDatabasesRequest < Struct.new(
6078
6152
  :catalog_id,
6079
6153
  :next_token,
6080
- :max_results)
6154
+ :max_results,
6155
+ :resource_share_type)
6081
6156
  SENSITIVE = []
6082
6157
  include Aws::Structure
6083
6158
  end
@@ -7188,11 +7263,74 @@ module Aws::Glue
7188
7263
  include Aws::Structure
7189
7264
  end
7190
7265
 
7191
- # @api private
7266
+ # @note When making an API call, you may pass GetResourcePoliciesRequest
7267
+ # data as a hash:
7268
+ #
7269
+ # {
7270
+ # next_token: "Token",
7271
+ # max_results: 1,
7272
+ # }
7273
+ #
7274
+ # @!attribute [rw] next_token
7275
+ # A continuation token, if this is a continuation request.
7276
+ # @return [String]
7277
+ #
7278
+ # @!attribute [rw] max_results
7279
+ # The maximum size of a list to return.
7280
+ # @return [Integer]
7281
+ #
7282
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePoliciesRequest AWS API Documentation
7283
+ #
7284
+ class GetResourcePoliciesRequest < Struct.new(
7285
+ :next_token,
7286
+ :max_results)
7287
+ SENSITIVE = []
7288
+ include Aws::Structure
7289
+ end
7290
+
7291
+ # @!attribute [rw] get_resource_policies_response_list
7292
+ # A list of the individual resource policies and the account-level
7293
+ # resource policy.
7294
+ # @return [Array<Types::GluePolicy>]
7295
+ #
7296
+ # @!attribute [rw] next_token
7297
+ # A continuation token, if the returned list does not contain the last
7298
+ # resource policy available.
7299
+ # @return [String]
7300
+ #
7301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePoliciesResponse AWS API Documentation
7302
+ #
7303
+ class GetResourcePoliciesResponse < Struct.new(
7304
+ :get_resource_policies_response_list,
7305
+ :next_token)
7306
+ SENSITIVE = []
7307
+ include Aws::Structure
7308
+ end
7309
+
7310
+ # @note When making an API call, you may pass GetResourcePolicyRequest
7311
+ # data as a hash:
7312
+ #
7313
+ # {
7314
+ # resource_arn: "GlueResourceArn",
7315
+ # }
7316
+ #
7317
+ # @!attribute [rw] resource_arn
7318
+ # The ARN of the AWS Glue resource for the resource policy to be
7319
+ # retrieved. For more information about AWS Glue resource ARNs, see
7320
+ # the [AWS Glue ARN string pattern][1]
7321
+ #
7322
+ #
7323
+ #
7324
+ # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
7325
+ # @return [String]
7192
7326
  #
7193
7327
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicyRequest AWS API Documentation
7194
7328
  #
7195
- class GetResourcePolicyRequest < Aws::EmptyStructure; end
7329
+ class GetResourcePolicyRequest < Struct.new(
7330
+ :resource_arn)
7331
+ SENSITIVE = []
7332
+ include Aws::Structure
7333
+ end
7196
7334
 
7197
7335
  # @!attribute [rw] policy_in_json
7198
7336
  # Contains the requested policy document, in JSON format.
@@ -7934,6 +8072,35 @@ module Aws::Glue
7934
8072
  include Aws::Structure
7935
8073
  end
7936
8074
 
8075
+ # A structure for returning a resource policy.
8076
+ #
8077
+ # @!attribute [rw] policy_in_json
8078
+ # Contains the requested policy document, in JSON format.
8079
+ # @return [String]
8080
+ #
8081
+ # @!attribute [rw] policy_hash
8082
+ # Contains the hash value associated with this policy.
8083
+ # @return [String]
8084
+ #
8085
+ # @!attribute [rw] create_time
8086
+ # The date and time at which the policy was created.
8087
+ # @return [Time]
8088
+ #
8089
+ # @!attribute [rw] update_time
8090
+ # The date and time at which the policy was last updated.
8091
+ # @return [Time]
8092
+ #
8093
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GluePolicy AWS API Documentation
8094
+ #
8095
+ class GluePolicy < Struct.new(
8096
+ :policy_in_json,
8097
+ :policy_hash,
8098
+ :create_time,
8099
+ :update_time)
8100
+ SENSITIVE = []
8101
+ include Aws::Structure
8102
+ end
8103
+
7937
8104
  # The database and table in the AWS Glue Data Catalog that is used for
7938
8105
  # input or output data.
7939
8106
  #
@@ -9848,6 +10015,10 @@ module Aws::Glue
9848
10015
  # partition.
9849
10016
  # @return [Time]
9850
10017
  #
10018
+ # @!attribute [rw] catalog_id
10019
+ # The ID of the Data Catalog in which the partition resides.
10020
+ # @return [String]
10021
+ #
9851
10022
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Partition AWS API Documentation
9852
10023
  #
9853
10024
  class Partition < Struct.new(
@@ -9858,7 +10029,8 @@ module Aws::Glue
9858
10029
  :last_access_time,
9859
10030
  :storage_descriptor,
9860
10031
  :parameters,
9861
- :last_analyzed_time)
10032
+ :last_analyzed_time,
10033
+ :catalog_id)
9862
10034
  SENSITIVE = []
9863
10035
  include Aws::Structure
9864
10036
  end
@@ -10197,14 +10369,26 @@ module Aws::Glue
10197
10369
  #
10198
10370
  # {
10199
10371
  # policy_in_json: "PolicyJsonString", # required
10372
+ # resource_arn: "GlueResourceArn",
10200
10373
  # policy_hash_condition: "HashString",
10201
10374
  # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
10375
+ # enable_hybrid: "TRUE", # accepts TRUE, FALSE
10202
10376
  # }
10203
10377
  #
10204
10378
  # @!attribute [rw] policy_in_json
10205
10379
  # Contains the policy document to set, in JSON format.
10206
10380
  # @return [String]
10207
10381
  #
10382
+ # @!attribute [rw] resource_arn
10383
+ # The ARN of the AWS Glue resource for the resource policy to be set.
10384
+ # For more information about AWS Glue resource ARNs, see the [AWS Glue
10385
+ # ARN string pattern][1]
10386
+ #
10387
+ #
10388
+ #
10389
+ # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id
10390
+ # @return [String]
10391
+ #
10208
10392
  # @!attribute [rw] policy_hash_condition
10209
10393
  # The hash value returned when the previous policy was set using
10210
10394
  # `PutResourcePolicy`. Its purpose is to prevent concurrent
@@ -10219,12 +10403,26 @@ module Aws::Glue
10219
10403
  # policy.
10220
10404
  # @return [String]
10221
10405
  #
10406
+ # @!attribute [rw] enable_hybrid
10407
+ # Allows you to specify if you want to use both resource-level and
10408
+ # account/catalog-level resource policies. A resource-level policy is
10409
+ # a policy attached to an individual resource such as a database or a
10410
+ # table.
10411
+ #
10412
+ # The default value of `NO` indicates that resource-level policies
10413
+ # cannot co-exist with an account-level policy. A value of `YES` means
10414
+ # the use of both resource-level and account/catalog-level resource
10415
+ # policies is allowed.
10416
+ # @return [String]
10417
+ #
10222
10418
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicyRequest AWS API Documentation
10223
10419
  #
10224
10420
  class PutResourcePolicyRequest < Struct.new(
10225
10421
  :policy_in_json,
10422
+ :resource_arn,
10226
10423
  :policy_hash_condition,
10227
- :policy_exists_condition)
10424
+ :policy_exists_condition,
10425
+ :enable_hybrid)
10228
10426
  SENSITIVE = []
10229
10427
  include Aws::Structure
10230
10428
  end
@@ -10563,6 +10761,7 @@ module Aws::Glue
10563
10761
  # },
10564
10762
  # ],
10565
10763
  # max_results: 1,
10764
+ # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL
10566
10765
  # }
10567
10766
  #
10568
10767
  # @!attribute [rw] catalog_id
@@ -10594,6 +10793,17 @@ module Aws::Glue
10594
10793
  # The maximum number of tables to return in a single response.
10595
10794
  # @return [Integer]
10596
10795
  #
10796
+ # @!attribute [rw] resource_share_type
10797
+ # Allows you to specify that you want to search the tables shared with
10798
+ # your account. The allowable values are `FOREIGN` or `ALL`.
10799
+ #
10800
+ # * If set to `FOREIGN`, will search the tables shared with your
10801
+ # account.
10802
+ #
10803
+ # * If set to `ALL`, will search the tables shared with your account,
10804
+ # as well as the tables in yor local account.
10805
+ # @return [String]
10806
+ #
10597
10807
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTablesRequest AWS API Documentation
10598
10808
  #
10599
10809
  class SearchTablesRequest < Struct.new(
@@ -10602,7 +10812,8 @@ module Aws::Glue
10602
10812
  :filters,
10603
10813
  :search_text,
10604
10814
  :sort_criteria,
10605
- :max_results)
10815
+ :max_results,
10816
+ :resource_share_type)
10606
10817
  SENSITIVE = []
10607
10818
  include Aws::Structure
10608
10819
  end
@@ -11549,6 +11760,15 @@ module Aws::Glue
11549
11760
  # Formation.
11550
11761
  # @return [Boolean]
11551
11762
  #
11763
+ # @!attribute [rw] target_table
11764
+ # A `TableIdentifier` structure that describes a target table for
11765
+ # resource linking.
11766
+ # @return [Types::TableIdentifier]
11767
+ #
11768
+ # @!attribute [rw] catalog_id
11769
+ # The ID of the Data Catalog in which the table resides.
11770
+ # @return [String]
11771
+ #
11552
11772
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Table AWS API Documentation
11553
11773
  #
11554
11774
  class Table < Struct.new(
@@ -11568,7 +11788,9 @@ module Aws::Glue
11568
11788
  :table_type,
11569
11789
  :parameters,
11570
11790
  :created_by,
11571
- :is_registered_with_lake_formation)
11791
+ :is_registered_with_lake_formation,
11792
+ :target_table,
11793
+ :catalog_id)
11572
11794
  SENSITIVE = []
11573
11795
  include Aws::Structure
11574
11796
  end
@@ -11593,6 +11815,39 @@ module Aws::Glue
11593
11815
  include Aws::Structure
11594
11816
  end
11595
11817
 
11818
+ # A structure that describes a target table for resource linking.
11819
+ #
11820
+ # @note When making an API call, you may pass TableIdentifier
11821
+ # data as a hash:
11822
+ #
11823
+ # {
11824
+ # catalog_id: "CatalogIdString",
11825
+ # database_name: "NameString",
11826
+ # name: "NameString",
11827
+ # }
11828
+ #
11829
+ # @!attribute [rw] catalog_id
11830
+ # The ID of the Data Catalog in which the table resides.
11831
+ # @return [String]
11832
+ #
11833
+ # @!attribute [rw] database_name
11834
+ # The name of the catalog database that contains the target table.
11835
+ # @return [String]
11836
+ #
11837
+ # @!attribute [rw] name
11838
+ # The name of the target table.
11839
+ # @return [String]
11840
+ #
11841
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/TableIdentifier AWS API Documentation
11842
+ #
11843
+ class TableIdentifier < Struct.new(
11844
+ :catalog_id,
11845
+ :database_name,
11846
+ :name)
11847
+ SENSITIVE = []
11848
+ include Aws::Structure
11849
+ end
11850
+
11596
11851
  # A structure used to define a table.
11597
11852
  #
11598
11853
  # @note When making an API call, you may pass TableInput
@@ -11663,6 +11918,11 @@ module Aws::Glue
11663
11918
  # parameters: {
11664
11919
  # "KeyString" => "ParametersMapValue",
11665
11920
  # },
11921
+ # target_table: {
11922
+ # catalog_id: "CatalogIdString",
11923
+ # database_name: "NameString",
11924
+ # name: "NameString",
11925
+ # },
11666
11926
  # }
11667
11927
  #
11668
11928
  # @!attribute [rw] name
@@ -11724,6 +11984,11 @@ module Aws::Glue
11724
11984
  # These key-value pairs define properties associated with the table.
11725
11985
  # @return [Hash<String,String>]
11726
11986
  #
11987
+ # @!attribute [rw] target_table
11988
+ # A `TableIdentifier` structure that describes a target table for
11989
+ # resource linking.
11990
+ # @return [Types::TableIdentifier]
11991
+ #
11727
11992
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/TableInput AWS API Documentation
11728
11993
  #
11729
11994
  class TableInput < Struct.new(
@@ -11738,7 +12003,8 @@ module Aws::Glue
11738
12003
  :view_original_text,
11739
12004
  :view_expanded_text,
11740
12005
  :table_type,
11741
- :parameters)
12006
+ :parameters,
12007
+ :target_table)
11742
12008
  SENSITIVE = []
11743
12009
  include Aws::Structure
11744
12010
  end
@@ -12908,6 +13174,10 @@ module Aws::Glue
12908
13174
  # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
12909
13175
  # },
12910
13176
  # ],
13177
+ # target_database: {
13178
+ # catalog_id: "CatalogIdString",
13179
+ # database_name: "NameString",
13180
+ # },
12911
13181
  # },
12912
13182
  # }
12913
13183
  #
@@ -13476,6 +13746,11 @@ module Aws::Glue
13476
13746
  # parameters: {
13477
13747
  # "KeyString" => "ParametersMapValue",
13478
13748
  # },
13749
+ # target_table: {
13750
+ # catalog_id: "CatalogIdString",
13751
+ # database_name: "NameString",
13752
+ # name: "NameString",
13753
+ # },
13479
13754
  # },
13480
13755
  # skip_archive: false,
13481
13756
  # }
@@ -13730,7 +14005,7 @@ module Aws::Glue
13730
14005
  # @return [String]
13731
14006
  #
13732
14007
  # @!attribute [rw] database_name
13733
- # The name of the database where the function resides.
14008
+ # The name of the catalog database that contains the function.
13734
14009
  # @return [String]
13735
14010
  #
13736
14011
  # @!attribute [rw] class_name
@@ -13753,6 +14028,10 @@ module Aws::Glue
13753
14028
  # The resource URIs for the function.
13754
14029
  # @return [Array<Types::ResourceUri>]
13755
14030
  #
14031
+ # @!attribute [rw] catalog_id
14032
+ # The ID of the Data Catalog in which the function resides.
14033
+ # @return [String]
14034
+ #
13756
14035
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UserDefinedFunction AWS API Documentation
13757
14036
  #
13758
14037
  class UserDefinedFunction < Struct.new(
@@ -13762,7 +14041,8 @@ module Aws::Glue
13762
14041
  :owner_name,
13763
14042
  :owner_type,
13764
14043
  :create_time,
13765
- :resource_uris)
14044
+ :resource_uris,
14045
+ :catalog_id)
13766
14046
  SENSITIVE = []
13767
14047
  include Aws::Structure
13768
14048
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-glue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.62.0
4
+ version: 1.63.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core