aws-sdk-glue 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aa7510864940d4640d54626d728e28f44f75096
4
- data.tar.gz: ec85b36b53ae49680d2761f4416085e0a2d50678
3
+ metadata.gz: 8c9950c92aac1c860d8a8161adcc50ef9f0ea013
4
+ data.tar.gz: 99931ca528502fa2dfbfda43dce47e212ac06168
5
5
  SHA512:
6
- metadata.gz: a32e64274a196d517f3393d9d92dd79bc5e477ea33071ec25331eddeffba0cb9016e3e6d0d18cc63c2e63e8ce14861db0d386afc8e89bf7527b9dd25b66a475f
7
- data.tar.gz: 0bee0003ae3b328f405ce74c982be5b39788d62d45590f8a7f1eff1a62cce341e4b11203f0b9172748b3a6b96d287e4f98034c111176be431c7aebfde9afa385
6
+ metadata.gz: da935205043cf51459623fdea94e808062de62dafd526a1524cbc97b2cf438df1293f6b1583dc8ae02ad063bfe6851982227efbdd1276f16347292d2e3891dd3
7
+ data.tar.gz: 51c9d6baee837e386e76c61dd07b2b884c0fb69d15a021621e9fc2c164b627c80bd89043720de45335ca2a790628d21af35d270aa5497e4b3b7c552bf68c41d9
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-glue/customizations'
42
42
  # @service
43
43
  module Aws::Glue
44
44
 
45
- GEM_VERSION = '1.17.0'
45
+ GEM_VERSION = '1.18.0'
46
46
 
47
47
  end
@@ -440,7 +440,8 @@ module Aws::Glue
440
440
  # lowercase.
441
441
  #
442
442
  # @option params [required, Array<String>] :version_ids
443
- # A list of the IDs of versions to be deleted.
443
+ # A list of the IDs of versions to be deleted. A `VersionId` is a string
444
+ # representation of an integer. Each version is incremented by 1.
444
445
  #
445
446
  # @return [Types::BatchDeleteTableVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
446
447
  #
@@ -727,16 +728,12 @@ module Aws::Glue
727
728
  #
728
729
  # @option params [String] :configuration
729
730
  # Crawler configuration information. This versioned JSON string allows
730
- # users to specify aspects of a Crawler's behavior.
731
+ # users to specify aspects of a crawler's behavior. For more
732
+ # information, see [Configuring a Crawler][1].
731
733
  #
732
- # You can use this field to force partitions to inherit metadata such as
733
- # classification, input format, output format, serde information, and
734
- # schema from their parent table, rather than detect this information
735
- # separately for each partition. Use the following JSON string to
736
- # specify that behavior:
737
734
  #
738
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
739
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
735
+ #
736
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
740
737
  #
741
738
  # @option params [String] :crawler_security_configuration
742
739
  # The name of the SecurityConfiguration structure to be used by this
@@ -1672,6 +1669,28 @@ module Aws::Glue
1672
1669
  req.send_request(options)
1673
1670
  end
1674
1671
 
1672
+ # Deletes a specified policy.
1673
+ #
1674
+ # @option params [String] :policy_hash_condition
1675
+ # The hash value returned when this policy was set.
1676
+ #
1677
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1678
+ #
1679
+ # @example Request syntax with placeholder values
1680
+ #
1681
+ # resp = client.delete_resource_policy({
1682
+ # policy_hash_condition: "HashString",
1683
+ # })
1684
+ #
1685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy AWS API Documentation
1686
+ #
1687
+ # @overload delete_resource_policy(params = {})
1688
+ # @param [Hash] params ({})
1689
+ def delete_resource_policy(params = {}, options = {})
1690
+ req = build_request(:delete_resource_policy, params)
1691
+ req.send_request(options)
1692
+ end
1693
+
1675
1694
  # Deletes a specified security configuration.
1676
1695
  #
1677
1696
  # @option params [required, String] :name
@@ -1754,7 +1773,8 @@ module Aws::Glue
1754
1773
  # lowercase.
1755
1774
  #
1756
1775
  # @option params [required, String] :version_id
1757
- # The ID of the table version to be deleted.
1776
+ # The ID of the table version to be deleted. A `VersionID` is a string
1777
+ # representation of an integer. Each version is incremented by 1.
1758
1778
  #
1759
1779
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1760
1780
  #
@@ -2404,6 +2424,13 @@ module Aws::Glue
2404
2424
 
2405
2425
  # Retrieves information about a specified DevEndpoint.
2406
2426
  #
2427
+ # <note markdown="1"> When you create a development endpoint in a virtual private cloud
2428
+ # (VPC), AWS Glue returns only a private IP address, and the public IP
2429
+ # address field is not populated. When you create a non-VPC development
2430
+ # endpoint, AWS Glue returns only a public IP address.
2431
+ #
2432
+ # </note>
2433
+ #
2407
2434
  # @option params [required, String] :endpoint_name
2408
2435
  # Name of the DevEndpoint for which to retrieve information.
2409
2436
  #
@@ -2454,6 +2481,13 @@ module Aws::Glue
2454
2481
 
2455
2482
  # Retrieves all the DevEndpoints in this AWS account.
2456
2483
  #
2484
+ # <note markdown="1"> When you create a development endpoint in a virtual private cloud
2485
+ # (VPC), AWS Glue returns only a private IP address and the public IP
2486
+ # address field is not populated. When you create a non-VPC development
2487
+ # endpoint, AWS Glue returns only a public IP address.
2488
+ #
2489
+ # </note>
2490
+ #
2457
2491
  # @option params [Integer] :max_results
2458
2492
  # The maximum size of information to return.
2459
2493
  #
@@ -2884,6 +2918,95 @@ module Aws::Glue
2884
2918
  # @option params [String] :expression
2885
2919
  # An expression filtering the partitions to be returned.
2886
2920
  #
2921
+ # The expression uses SQL syntax similar to the SQL `WHERE` filter
2922
+ # clause. The SQL statement parser [JSQLParser][1] parses the
2923
+ # expression.
2924
+ #
2925
+ # *Operators*\: The following are the operators that you can use in the
2926
+ # `Expression` API call:
2927
+ #
2928
+ # =
2929
+ #
2930
+ # : Checks if the values of the two operands are equal or not; if yes,
2931
+ # then the condition becomes true.
2932
+ #
2933
+ # Example: Assume 'variable a' holds 10 and 'variable b' holds 20.
2934
+ #
2935
+ # (a = b) is not true.
2936
+ #
2937
+ # &lt; &gt;
2938
+ #
2939
+ # : Checks if the values of two operands are equal or not; if the values
2940
+ # are not equal, then the condition becomes true.
2941
+ #
2942
+ # Example: (a &lt; &gt; b) is true.
2943
+ #
2944
+ # &gt;
2945
+ #
2946
+ # : Checks if the value of the left operand is greater than the value of
2947
+ # the right operand; if yes, then the condition becomes true.
2948
+ #
2949
+ # Example: (a &gt; b) is not true.
2950
+ #
2951
+ # &lt;
2952
+ #
2953
+ # : Checks if the value of the left operand is less than the value of
2954
+ # the right operand; if yes, then the condition becomes true.
2955
+ #
2956
+ # Example: (a &lt; b) is true.
2957
+ #
2958
+ # &gt;=
2959
+ #
2960
+ # : Checks if the value of the left operand is greater than or equal to
2961
+ # the value of the right operand; if yes, then the condition becomes
2962
+ # true.
2963
+ #
2964
+ # Example: (a &gt;= b) is not true.
2965
+ #
2966
+ # &lt;=
2967
+ #
2968
+ # : Checks if the value of the left operand is less than or equal to the
2969
+ # value of the right operand; if yes, then the condition becomes true.
2970
+ #
2971
+ # Example: (a &lt;= b) is true.
2972
+ #
2973
+ # AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
2974
+ #
2975
+ # : Logical operators.
2976
+ #
2977
+ # *Supported Partition Key Types*\: The following are the the supported
2978
+ # partition keys.
2979
+ #
2980
+ # * `string`
2981
+ #
2982
+ # * `date`
2983
+ #
2984
+ # * `timestamp`
2985
+ #
2986
+ # * `int`
2987
+ #
2988
+ # * `bigint`
2989
+ #
2990
+ # * `long`
2991
+ #
2992
+ # * `tinyint`
2993
+ #
2994
+ # * `smallint`
2995
+ #
2996
+ # * `decimal`
2997
+ #
2998
+ # If an invalid type is encountered, an exception is thrown.
2999
+ #
3000
+ # The following list shows the valid operators on each type. When you
3001
+ # define a crawler, the `partitionKey` type is created as a `STRING`, to
3002
+ # be compatible with the catalog partitions.
3003
+ #
3004
+ # *Sample API Call*\:
3005
+ #
3006
+ #
3007
+ #
3008
+ # [1]: http://jsqlparser.sourceforge.net/home.php
3009
+ #
2887
3010
  # @option params [String] :next_token
2888
3011
  # A continuation token, if this is not the first call to retrieve these
2889
3012
  # partitions.
@@ -3049,6 +3172,31 @@ module Aws::Glue
3049
3172
  req.send_request(options)
3050
3173
  end
3051
3174
 
3175
+ # Retrieves a specified resource policy.
3176
+ #
3177
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3178
+ #
3179
+ # * {Types::GetResourcePolicyResponse#policy_in_json #policy_in_json} => String
3180
+ # * {Types::GetResourcePolicyResponse#policy_hash #policy_hash} => String
3181
+ # * {Types::GetResourcePolicyResponse#create_time #create_time} => Time
3182
+ # * {Types::GetResourcePolicyResponse#update_time #update_time} => Time
3183
+ #
3184
+ # @example Response structure
3185
+ #
3186
+ # resp.policy_in_json #=> String
3187
+ # resp.policy_hash #=> String
3188
+ # resp.create_time #=> Time
3189
+ # resp.update_time #=> Time
3190
+ #
3191
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy AWS API Documentation
3192
+ #
3193
+ # @overload get_resource_policy(params = {})
3194
+ # @param [Hash] params ({})
3195
+ def get_resource_policy(params = {}, options = {})
3196
+ req = build_request(:get_resource_policy, params)
3197
+ req.send_request(options)
3198
+ end
3199
+
3052
3200
  # Retrieves a specified security configuration.
3053
3201
  #
3054
3202
  # @option params [required, String] :name
@@ -3228,7 +3376,8 @@ module Aws::Glue
3228
3376
  # lowercase.
3229
3377
  #
3230
3378
  # @option params [String] :version_id
3231
- # The ID value of the table version to be retrieved.
3379
+ # The ID value of the table version to be retrieved. A `VersionID` is a
3380
+ # string representation of an integer. Each version is incremented by 1.
3232
3381
  #
3233
3382
  # @return [Types::GetTableVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3234
3383
  #
@@ -3756,6 +3905,48 @@ module Aws::Glue
3756
3905
  req.send_request(options)
3757
3906
  end
3758
3907
 
3908
+ # Sets the Data Catalog resource policy for access control.
3909
+ #
3910
+ # @option params [required, String] :policy_in_json
3911
+ # Contains the policy document to set, in JSON format.
3912
+ #
3913
+ # @option params [String] :policy_hash_condition
3914
+ # This is the hash value returned when the previous policy was set using
3915
+ # PutResourcePolicy. Its purpose is to prevent concurrent modifications
3916
+ # of a policy. Do not use this parameter if no previous policy has been
3917
+ # set.
3918
+ #
3919
+ # @option params [String] :policy_exists_condition
3920
+ # A value of `MUST_EXIST` is used to update a policy. A value of
3921
+ # `NOT_EXIST` is used to create a new policy. If a value of `NONE` or a
3922
+ # null value is used, the call will not depend on the existence of a
3923
+ # policy.
3924
+ #
3925
+ # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3926
+ #
3927
+ # * {Types::PutResourcePolicyResponse#policy_hash #policy_hash} => String
3928
+ #
3929
+ # @example Request syntax with placeholder values
3930
+ #
3931
+ # resp = client.put_resource_policy({
3932
+ # policy_in_json: "PolicyJsonString", # required
3933
+ # policy_hash_condition: "HashString",
3934
+ # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
3935
+ # })
3936
+ #
3937
+ # @example Response structure
3938
+ #
3939
+ # resp.policy_hash #=> String
3940
+ #
3941
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicy AWS API Documentation
3942
+ #
3943
+ # @overload put_resource_policy(params = {})
3944
+ # @param [Hash] params ({})
3945
+ def put_resource_policy(params = {}, options = {})
3946
+ req = build_request(:put_resource_policy, params)
3947
+ req.send_request(options)
3948
+ end
3949
+
3759
3950
  # Resets a bookmark entry.
3760
3951
  #
3761
3952
  # @option params [required, String] :job_name
@@ -4161,16 +4352,12 @@ module Aws::Glue
4161
4352
  #
4162
4353
  # @option params [String] :configuration
4163
4354
  # Crawler configuration information. This versioned JSON string allows
4164
- # users to specify aspects of a Crawler's behavior.
4355
+ # users to specify aspects of a crawler's behavior. For more
4356
+ # information, see [Configuring a Crawler][1].
4357
+ #
4165
4358
  #
4166
- # You can use this field to force partitions to inherit metadata such as
4167
- # classification, input format, output format, serde information, and
4168
- # schema from their parent table, rather than detect this information
4169
- # separately for each partition. Use the following JSON string to
4170
- # specify that behavior:
4171
4359
  #
4172
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
4173
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
4360
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
4174
4361
  #
4175
4362
  # @option params [String] :crawler_security_configuration
4176
4363
  # The name of the SecurityConfiguration structure to be used by this
@@ -4721,7 +4908,7 @@ module Aws::Glue
4721
4908
  params: params,
4722
4909
  config: config)
4723
4910
  context[:gem_name] = 'aws-sdk-glue'
4724
- context[:gem_version] = '1.17.0'
4911
+ context[:gem_version] = '1.18.0'
4725
4912
  Seahorse::Client::Request.new(handlers, context)
4726
4913
  end
4727
4914
 
@@ -71,6 +71,7 @@ module Aws::Glue
71
71
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
72
72
  ConcurrentRunsExceededException = Shapes::StructureShape.new(name: 'ConcurrentRunsExceededException')
73
73
  Condition = Shapes::StructureShape.new(name: 'Condition')
74
+ ConditionCheckFailureException = Shapes::StructureShape.new(name: 'ConditionCheckFailureException')
74
75
  ConditionList = Shapes::ListShape.new(name: 'ConditionList')
75
76
  Connection = Shapes::StructureShape.new(name: 'Connection')
76
77
  ConnectionInput = Shapes::StructureShape.new(name: 'ConnectionInput')
@@ -144,6 +145,8 @@ module Aws::Glue
144
145
  DeleteJobResponse = Shapes::StructureShape.new(name: 'DeleteJobResponse')
145
146
  DeletePartitionRequest = Shapes::StructureShape.new(name: 'DeletePartitionRequest')
146
147
  DeletePartitionResponse = Shapes::StructureShape.new(name: 'DeletePartitionResponse')
148
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
149
+ DeleteResourcePolicyResponse = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResponse')
147
150
  DeleteSecurityConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteSecurityConfigurationRequest')
148
151
  DeleteSecurityConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteSecurityConfigurationResponse')
149
152
  DeleteTableRequest = Shapes::StructureShape.new(name: 'DeleteTableRequest')
@@ -169,6 +172,7 @@ module Aws::Glue
169
172
  ErrorString = Shapes::StringShape.new(name: 'ErrorString')
170
173
  ExecutionProperty = Shapes::StructureShape.new(name: 'ExecutionProperty')
171
174
  ExecutionTime = Shapes::IntegerShape.new(name: 'ExecutionTime')
175
+ ExistCondition = Shapes::StringShape.new(name: 'ExistCondition')
172
176
  FieldType = Shapes::StringShape.new(name: 'FieldType')
173
177
  FilterString = Shapes::StringShape.new(name: 'FilterString')
174
178
  FormatString = Shapes::StringShape.new(name: 'FormatString')
@@ -219,6 +223,8 @@ module Aws::Glue
219
223
  GetPartitionsResponse = Shapes::StructureShape.new(name: 'GetPartitionsResponse')
220
224
  GetPlanRequest = Shapes::StructureShape.new(name: 'GetPlanRequest')
221
225
  GetPlanResponse = Shapes::StructureShape.new(name: 'GetPlanResponse')
226
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
227
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
222
228
  GetSecurityConfigurationRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigurationRequest')
223
229
  GetSecurityConfigurationResponse = Shapes::StructureShape.new(name: 'GetSecurityConfigurationResponse')
224
230
  GetSecurityConfigurationsRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigurationsRequest')
@@ -243,6 +249,7 @@ module Aws::Glue
243
249
  GlueEncryptionException = Shapes::StructureShape.new(name: 'GlueEncryptionException')
244
250
  GrokClassifier = Shapes::StructureShape.new(name: 'GrokClassifier')
245
251
  GrokPattern = Shapes::StringShape.new(name: 'GrokPattern')
252
+ HashString = Shapes::StringShape.new(name: 'HashString')
246
253
  IdString = Shapes::StringShape.new(name: 'IdString')
247
254
  IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
248
255
  ImportCatalogToGlueRequest = Shapes::StructureShape.new(name: 'ImportCatalogToGlueRequest')
@@ -311,6 +318,7 @@ module Aws::Glue
311
318
  Path = Shapes::StringShape.new(name: 'Path')
312
319
  PathList = Shapes::ListShape.new(name: 'PathList')
313
320
  PhysicalConnectionRequirements = Shapes::StructureShape.new(name: 'PhysicalConnectionRequirements')
321
+ PolicyJsonString = Shapes::StringShape.new(name: 'PolicyJsonString')
314
322
  Predecessor = Shapes::StructureShape.new(name: 'Predecessor')
315
323
  PredecessorList = Shapes::ListShape.new(name: 'PredecessorList')
316
324
  Predicate = Shapes::StructureShape.new(name: 'Predicate')
@@ -319,6 +327,8 @@ module Aws::Glue
319
327
  PublicKeysList = Shapes::ListShape.new(name: 'PublicKeysList')
320
328
  PutDataCatalogEncryptionSettingsRequest = Shapes::StructureShape.new(name: 'PutDataCatalogEncryptionSettingsRequest')
321
329
  PutDataCatalogEncryptionSettingsResponse = Shapes::StructureShape.new(name: 'PutDataCatalogEncryptionSettingsResponse')
330
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
331
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
322
332
  PythonScript = Shapes::StringShape.new(name: 'PythonScript')
323
333
  ResetJobBookmarkRequest = Shapes::StructureShape.new(name: 'ResetJobBookmarkRequest')
324
334
  ResetJobBookmarkResponse = Shapes::StructureShape.new(name: 'ResetJobBookmarkResponse')
@@ -859,6 +869,11 @@ module Aws::Glue
859
869
 
860
870
  DeletePartitionResponse.struct_class = Types::DeletePartitionResponse
861
871
 
872
+ DeleteResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
873
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
874
+
875
+ DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
876
+
862
877
  DeleteSecurityConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
863
878
  DeleteSecurityConfigurationRequest.struct_class = Types::DeleteSecurityConfigurationRequest
864
879
 
@@ -1127,6 +1142,14 @@ module Aws::Glue
1127
1142
  GetPlanResponse.add_member(:scala_code, Shapes::ShapeRef.new(shape: ScalaCode, location_name: "ScalaCode"))
1128
1143
  GetPlanResponse.struct_class = Types::GetPlanResponse
1129
1144
 
1145
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
1146
+
1147
+ GetResourcePolicyResponse.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, location_name: "PolicyInJson"))
1148
+ GetResourcePolicyResponse.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
1149
+ GetResourcePolicyResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
1150
+ GetResourcePolicyResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdateTime"))
1151
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
1152
+
1130
1153
  GetSecurityConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
1131
1154
  GetSecurityConfigurationRequest.struct_class = Types::GetSecurityConfigurationRequest
1132
1155
 
@@ -1411,6 +1434,14 @@ module Aws::Glue
1411
1434
 
1412
1435
  PutDataCatalogEncryptionSettingsResponse.struct_class = Types::PutDataCatalogEncryptionSettingsResponse
1413
1436
 
1437
+ PutResourcePolicyRequest.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, required: true, location_name: "PolicyInJson"))
1438
+ PutResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
1439
+ PutResourcePolicyRequest.add_member(:policy_exists_condition, Shapes::ShapeRef.new(shape: ExistCondition, location_name: "PolicyExistsCondition"))
1440
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1441
+
1442
+ PutResourcePolicyResponse.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
1443
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
1444
+
1414
1445
  ResetJobBookmarkRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "JobName"))
1415
1446
  ResetJobBookmarkRequest.struct_class = Types::ResetJobBookmarkRequest
1416
1447
 
@@ -2076,6 +2107,19 @@ module Aws::Glue
2076
2107
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2077
2108
  end)
2078
2109
 
2110
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2111
+ o.name = "DeleteResourcePolicy"
2112
+ o.http_method = "POST"
2113
+ o.http_request_uri = "/"
2114
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
2115
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResponse)
2116
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2117
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2118
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2119
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2120
+ o.errors << Shapes::ShapeRef.new(shape: ConditionCheckFailureException)
2121
+ end)
2122
+
2079
2123
  api.add_operation(:delete_security_configuration, Seahorse::Model::Operation.new.tap do |o|
2080
2124
  o.name = "DeleteSecurityConfiguration"
2081
2125
  o.http_method = "POST"
@@ -2439,6 +2483,18 @@ module Aws::Glue
2439
2483
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2440
2484
  end)
2441
2485
 
2486
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2487
+ o.name = "GetResourcePolicy"
2488
+ o.http_method = "POST"
2489
+ o.http_request_uri = "/"
2490
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
2491
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
2492
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2493
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2494
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2495
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2496
+ end)
2497
+
2442
2498
  api.add_operation(:get_security_configuration, Seahorse::Model::Operation.new.tap do |o|
2443
2499
  o.name = "GetSecurityConfiguration"
2444
2500
  o.http_method = "POST"
@@ -2610,6 +2666,19 @@ module Aws::Glue
2610
2666
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2611
2667
  end)
2612
2668
 
2669
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2670
+ o.name = "PutResourcePolicy"
2671
+ o.http_method = "POST"
2672
+ o.http_request_uri = "/"
2673
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
2674
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
2675
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2676
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2677
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2678
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2679
+ o.errors << Shapes::ShapeRef.new(shape: ConditionCheckFailureException)
2680
+ end)
2681
+
2613
2682
  api.add_operation(:reset_job_bookmark, Seahorse::Model::Operation.new.tap do |o|
2614
2683
  o.name = "ResetJobBookmark"
2615
2684
  o.http_method = "POST"
@@ -342,7 +342,9 @@ module Aws::Glue
342
342
  # @return [String]
343
343
  #
344
344
  # @!attribute [rw] version_ids
345
- # A list of the IDs of versions to be deleted.
345
+ # A list of the IDs of versions to be deleted. A `VersionId` is a
346
+ # string representation of an integer. Each version is incremented by
347
+ # 1.
346
348
  # @return [Array<String>]
347
349
  #
348
350
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchDeleteTableVersionRequest AWS API Documentation
@@ -819,7 +821,8 @@ module Aws::Glue
819
821
  # * `PORT` - The port number, between 1024 and 65535, of the port on
820
822
  # which the database host is listening for database connections.
821
823
  #
822
- # * `USER_NAME` - The name under which to log in to the database.
824
+ # * `USER_NAME` - The name under which to log in to the database. The
825
+ # value string for `USER_NAME` is "`USERNAME`".
823
826
  #
824
827
  # * `PASSWORD` - A password, if one is used, for the user name.
825
828
  #
@@ -1027,16 +1030,12 @@ module Aws::Glue
1027
1030
  #
1028
1031
  # @!attribute [rw] configuration
1029
1032
  # Crawler configuration information. This versioned JSON string allows
1030
- # users to specify aspects of a Crawler's behavior.
1033
+ # users to specify aspects of a crawler's behavior. For more
1034
+ # information, see [Configuring a Crawler][1].
1031
1035
  #
1032
- # You can use this field to force partitions to inherit metadata such
1033
- # as classification, input format, output format, serde information,
1034
- # and schema from their parent table, rather than detect this
1035
- # information separately for each partition. Use the following JSON
1036
- # string to specify that behavior:
1037
1036
  #
1038
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
1039
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
1037
+ #
1038
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
1040
1039
  # @return [String]
1041
1040
  #
1042
1041
  # @!attribute [rw] crawler_security_configuration
@@ -1339,16 +1338,12 @@ module Aws::Glue
1339
1338
  #
1340
1339
  # @!attribute [rw] configuration
1341
1340
  # Crawler configuration information. This versioned JSON string allows
1342
- # users to specify aspects of a Crawler's behavior.
1341
+ # users to specify aspects of a crawler's behavior. For more
1342
+ # information, see [Configuring a Crawler][1].
1343
+ #
1343
1344
  #
1344
- # You can use this field to force partitions to inherit metadata such
1345
- # as classification, input format, output format, serde information,
1346
- # and schema from their parent table, rather than detect this
1347
- # information separately for each partition. Use the following JSON
1348
- # string to specify that behavior:
1349
1345
  #
1350
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
1351
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
1346
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
1352
1347
  # @return [String]
1353
1348
  #
1354
1349
  # @!attribute [rw] crawler_security_configuration
@@ -2594,6 +2589,28 @@ module Aws::Glue
2594
2589
  #
2595
2590
  class DeletePartitionResponse < Aws::EmptyStructure; end
2596
2591
 
2592
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
2593
+ # data as a hash:
2594
+ #
2595
+ # {
2596
+ # policy_hash_condition: "HashString",
2597
+ # }
2598
+ #
2599
+ # @!attribute [rw] policy_hash_condition
2600
+ # The hash value returned when this policy was set.
2601
+ # @return [String]
2602
+ #
2603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicyRequest AWS API Documentation
2604
+ #
2605
+ class DeleteResourcePolicyRequest < Struct.new(
2606
+ :policy_hash_condition)
2607
+ include Aws::Structure
2608
+ end
2609
+
2610
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicyResponse AWS API Documentation
2611
+ #
2612
+ class DeleteResourcePolicyResponse < Aws::EmptyStructure; end
2613
+
2597
2614
  # @note When making an API call, you may pass DeleteSecurityConfigurationRequest
2598
2615
  # data as a hash:
2599
2616
  #
@@ -2679,7 +2696,8 @@ module Aws::Glue
2679
2696
  # @return [String]
2680
2697
  #
2681
2698
  # @!attribute [rw] version_id
2682
- # The ID of the table version to be deleted.
2699
+ # The ID of the table version to be deleted. A `VersionID` is a string
2700
+ # representation of an integer. Each version is incremented by 1.
2683
2701
  # @return [String]
2684
2702
  #
2685
2703
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteTableVersionRequest AWS API Documentation
@@ -2784,8 +2802,10 @@ module Aws::Glue
2784
2802
  # @return [String]
2785
2803
  #
2786
2804
  # @!attribute [rw] private_address
2787
- # A private DNS to access the DevEndpoint within a VPC, if the
2788
- # DevEndpoint is created within one.
2805
+ # A private IP address to access the DevEndpoint within a VPC, if the
2806
+ # DevEndpoint is created within one. The PrivateAddress field is
2807
+ # present only when you create the DevEndpoint within your virtual
2808
+ # private cloud (VPC).
2789
2809
  # @return [String]
2790
2810
  #
2791
2811
  # @!attribute [rw] zeppelin_remote_spark_interpreter_port
@@ -2793,7 +2813,9 @@ module Aws::Glue
2793
2813
  # @return [Integer]
2794
2814
  #
2795
2815
  # @!attribute [rw] public_address
2796
- # The public VPC address used by this DevEndpoint.
2816
+ # The public IP address used by this DevEndpoint. The PublicAddress
2817
+ # field is present only when you create a non-VPC (virtual private
2818
+ # cloud) DevEndpoint.
2797
2819
  # @return [String]
2798
2820
  #
2799
2821
  # @!attribute [rw] status
@@ -3939,6 +3961,97 @@ module Aws::Glue
3939
3961
  #
3940
3962
  # @!attribute [rw] expression
3941
3963
  # An expression filtering the partitions to be returned.
3964
+ #
3965
+ # The expression uses SQL syntax similar to the SQL `WHERE` filter
3966
+ # clause. The SQL statement parser [JSQLParser][1] parses the
3967
+ # expression.
3968
+ #
3969
+ # *Operators*\: The following are the operators that you can use in
3970
+ # the `Expression` API call:
3971
+ #
3972
+ # =
3973
+ #
3974
+ # : Checks if the values of the two operands are equal or not; if yes,
3975
+ # then the condition becomes true.
3976
+ #
3977
+ # Example: Assume 'variable a' holds 10 and 'variable b' holds
3978
+ # 20.
3979
+ #
3980
+ # (a = b) is not true.
3981
+ #
3982
+ # &lt; &gt;
3983
+ #
3984
+ # : Checks if the values of two operands are equal or not; if the
3985
+ # values are not equal, then the condition becomes true.
3986
+ #
3987
+ # Example: (a &lt; &gt; b) is true.
3988
+ #
3989
+ # &gt;
3990
+ #
3991
+ # : Checks if the value of the left operand is greater than the value
3992
+ # of the right operand; if yes, then the condition becomes true.
3993
+ #
3994
+ # Example: (a &gt; b) is not true.
3995
+ #
3996
+ # &lt;
3997
+ #
3998
+ # : Checks if the value of the left operand is less than the value of
3999
+ # the right operand; if yes, then the condition becomes true.
4000
+ #
4001
+ # Example: (a &lt; b) is true.
4002
+ #
4003
+ # &gt;=
4004
+ #
4005
+ # : Checks if the value of the left operand is greater than or equal
4006
+ # to the value of the right operand; if yes, then the condition
4007
+ # becomes true.
4008
+ #
4009
+ # Example: (a &gt;= b) is not true.
4010
+ #
4011
+ # &lt;=
4012
+ #
4013
+ # : Checks if the value of the left operand is less than or equal to
4014
+ # the value of the right operand; if yes, then the condition becomes
4015
+ # true.
4016
+ #
4017
+ # Example: (a &lt;= b) is true.
4018
+ #
4019
+ # AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
4020
+ #
4021
+ # : Logical operators.
4022
+ #
4023
+ # *Supported Partition Key Types*\: The following are the the
4024
+ # supported partition keys.
4025
+ #
4026
+ # * `string`
4027
+ #
4028
+ # * `date`
4029
+ #
4030
+ # * `timestamp`
4031
+ #
4032
+ # * `int`
4033
+ #
4034
+ # * `bigint`
4035
+ #
4036
+ # * `long`
4037
+ #
4038
+ # * `tinyint`
4039
+ #
4040
+ # * `smallint`
4041
+ #
4042
+ # * `decimal`
4043
+ #
4044
+ # If an invalid type is encountered, an exception is thrown.
4045
+ #
4046
+ # The following list shows the valid operators on each type. When you
4047
+ # define a crawler, the `partitionKey` type is created as a `STRING`,
4048
+ # to be compatible with the catalog partitions.
4049
+ #
4050
+ # *Sample API Call*\:
4051
+ #
4052
+ #
4053
+ #
4054
+ # [1]: http://jsqlparser.sourceforge.net/home.php
3942
4055
  # @return [String]
3943
4056
  #
3944
4057
  # @!attribute [rw] next_token
@@ -4081,6 +4194,38 @@ module Aws::Glue
4081
4194
  include Aws::Structure
4082
4195
  end
4083
4196
 
4197
+ # @api private
4198
+ #
4199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicyRequest AWS API Documentation
4200
+ #
4201
+ class GetResourcePolicyRequest < Aws::EmptyStructure; end
4202
+
4203
+ # @!attribute [rw] policy_in_json
4204
+ # Contains the requested policy document, in JSON format.
4205
+ # @return [String]
4206
+ #
4207
+ # @!attribute [rw] policy_hash
4208
+ # Contains the hash value associated with this policy.
4209
+ # @return [String]
4210
+ #
4211
+ # @!attribute [rw] create_time
4212
+ # The date and time at which the policy was created.
4213
+ # @return [Time]
4214
+ #
4215
+ # @!attribute [rw] update_time
4216
+ # The date and time at which the policy was last updated.
4217
+ # @return [Time]
4218
+ #
4219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicyResponse AWS API Documentation
4220
+ #
4221
+ class GetResourcePolicyResponse < Struct.new(
4222
+ :policy_in_json,
4223
+ :policy_hash,
4224
+ :create_time,
4225
+ :update_time)
4226
+ include Aws::Structure
4227
+ end
4228
+
4084
4229
  # @note When making an API call, you may pass GetSecurityConfigurationRequest
4085
4230
  # data as a hash:
4086
4231
  #
@@ -4221,7 +4366,9 @@ module Aws::Glue
4221
4366
  # @return [String]
4222
4367
  #
4223
4368
  # @!attribute [rw] version_id
4224
- # The ID value of the table version to be retrieved.
4369
+ # The ID value of the table version to be retrieved. A `VersionID` is
4370
+ # a string representation of an integer. Each version is incremented
4371
+ # by 1.
4225
4372
  # @return [String]
4226
4373
  #
4227
4374
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersionRequest AWS API Documentation
@@ -5644,6 +5791,54 @@ module Aws::Glue
5644
5791
  #
5645
5792
  class PutDataCatalogEncryptionSettingsResponse < Aws::EmptyStructure; end
5646
5793
 
5794
+ # @note When making an API call, you may pass PutResourcePolicyRequest
5795
+ # data as a hash:
5796
+ #
5797
+ # {
5798
+ # policy_in_json: "PolicyJsonString", # required
5799
+ # policy_hash_condition: "HashString",
5800
+ # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
5801
+ # }
5802
+ #
5803
+ # @!attribute [rw] policy_in_json
5804
+ # Contains the policy document to set, in JSON format.
5805
+ # @return [String]
5806
+ #
5807
+ # @!attribute [rw] policy_hash_condition
5808
+ # This is the hash value returned when the previous policy was set
5809
+ # using PutResourcePolicy. Its purpose is to prevent concurrent
5810
+ # modifications of a policy. Do not use this parameter if no previous
5811
+ # policy has been set.
5812
+ # @return [String]
5813
+ #
5814
+ # @!attribute [rw] policy_exists_condition
5815
+ # A value of `MUST_EXIST` is used to update a policy. A value of
5816
+ # `NOT_EXIST` is used to create a new policy. If a value of `NONE` or
5817
+ # a null value is used, the call will not depend on the existence of a
5818
+ # policy.
5819
+ # @return [String]
5820
+ #
5821
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicyRequest AWS API Documentation
5822
+ #
5823
+ class PutResourcePolicyRequest < Struct.new(
5824
+ :policy_in_json,
5825
+ :policy_hash_condition,
5826
+ :policy_exists_condition)
5827
+ include Aws::Structure
5828
+ end
5829
+
5830
+ # @!attribute [rw] policy_hash
5831
+ # A hash of the policy that has just been set. This must be included
5832
+ # in a subsequent call that overwrites or updates this policy.
5833
+ # @return [String]
5834
+ #
5835
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicyResponse AWS API Documentation
5836
+ #
5837
+ class PutResourcePolicyResponse < Struct.new(
5838
+ :policy_hash)
5839
+ include Aws::Structure
5840
+ end
5841
+
5647
5842
  # @note When making an API call, you may pass ResetJobBookmarkRequest
5648
5843
  # data as a hash:
5649
5844
  #
@@ -6551,7 +6746,9 @@ module Aws::Glue
6551
6746
  # @return [Types::Table]
6552
6747
  #
6553
6748
  # @!attribute [rw] version_id
6554
- # The ID value that identifies this table version.
6749
+ # The ID value that identifies this table version. A `VersionId` is a
6750
+ # string representation of an integer. Each version is incremented by
6751
+ # 1.
6555
6752
  # @return [String]
6556
6753
  #
6557
6754
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/TableVersion AWS API Documentation
@@ -6569,7 +6766,8 @@ module Aws::Glue
6569
6766
  # @return [String]
6570
6767
  #
6571
6768
  # @!attribute [rw] version_id
6572
- # The ID value of the version in question.
6769
+ # The ID value of the version in question. A `VersionID` is a string
6770
+ # representation of an integer. Each version is incremented by 1.
6573
6771
  # @return [String]
6574
6772
  #
6575
6773
  # @!attribute [rw] error_detail
@@ -6895,16 +7093,12 @@ module Aws::Glue
6895
7093
  #
6896
7094
  # @!attribute [rw] configuration
6897
7095
  # Crawler configuration information. This versioned JSON string allows
6898
- # users to specify aspects of a Crawler's behavior.
7096
+ # users to specify aspects of a crawler's behavior. For more
7097
+ # information, see [Configuring a Crawler][1].
7098
+ #
6899
7099
  #
6900
- # You can use this field to force partitions to inherit metadata such
6901
- # as classification, input format, output format, serde information,
6902
- # and schema from their parent table, rather than detect this
6903
- # information separately for each partition. Use the following JSON
6904
- # string to specify that behavior:
6905
7100
  #
6906
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
6907
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
7101
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
6908
7102
  # @return [String]
6909
7103
  #
6910
7104
  # @!attribute [rw] crawler_security_configuration
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.17.0
4
+ version: 1.18.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: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core