aws-sdk-glue 1.12.0 → 1.13.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
  SHA1:
3
- metadata.gz: 58567993d7ecfef936e9f5248d29c5f33f61b3cf
4
- data.tar.gz: eb6fb8b255e3ea9e6c86f7dc341cbd7d1392e1a0
3
+ metadata.gz: 5fbb33d7adbf124035137cbfbfe2a0428d148ed7
4
+ data.tar.gz: d2b2a77d32386832019e4fc50f20f844a1b5ccfa
5
5
  SHA512:
6
- metadata.gz: 2380e41d81cf71947f47554fd8696b713bb3c03f1897bc00d254c018257928c42b57c5f581d524c4a9692e4369110ce58798377838e6fe5eb2177524720ce4f7
7
- data.tar.gz: 87071cde465745f0bc9b4b904245532e27580c60ddee0d517568c89f3c287d5c16bec1ee6f2a440d9054eee241124f69ec8f857aeeda2b2e223f3f21689bfca7
6
+ metadata.gz: d108e5b8bc8155522c7fc7ad8c817fdb990cbf5e7e88322badaba1045f2c8580e6bc02cd59e29c4ed2c926fe520747452ecd5d4059fc0e8a4b09b45dca81e647
7
+ data.tar.gz: a35e226da4341114a352fe6a8d9208dfc980e08644f3b7a00cada9a1efd1e28b53e0f030a0a27d89f64422fa7b9dd3764f2d61b653a8c83814b51e8fffe93785
data/lib/aws-sdk-glue.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-glue/customizations'
42
42
  # @service
43
43
  module Aws::Glue
44
44
 
45
- GEM_VERSION = '1.12.0'
45
+ GEM_VERSION = '1.13.0'
46
46
 
47
47
  end
@@ -420,7 +420,8 @@ module Aws::Glue
420
420
  # lowercase.
421
421
  #
422
422
  # @option params [required, Array<String>] :version_ids
423
- # A list of the IDs of versions to be deleted.
423
+ # A list of the IDs of versions to be deleted. A `VersionId` is a string
424
+ # representation of an integer. Each version is incremented by 1.
424
425
  #
425
426
  # @return [Types::BatchDeleteTableVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
426
427
  #
@@ -707,16 +708,12 @@ module Aws::Glue
707
708
  #
708
709
  # @option params [String] :configuration
709
710
  # Crawler configuration information. This versioned JSON string allows
710
- # users to specify aspects of a Crawler's behavior.
711
+ # users to specify aspects of a crawler's behavior. For more
712
+ # information, see [Configuring a Crawler][1].
711
713
  #
712
- # You can use this field to force partitions to inherit metadata such as
713
- # classification, input format, output format, serde information, and
714
- # schema from their parent table, rather than detect this information
715
- # separately for each partition. Use the following JSON string to
716
- # specify that behavior:
717
714
  #
718
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
719
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
715
+ #
716
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
720
717
  #
721
718
  # @option params [String] :crawler_security_configuration
722
719
  # The name of the SecurityConfiguration structure to be used by this
@@ -1652,6 +1649,28 @@ module Aws::Glue
1652
1649
  req.send_request(options)
1653
1650
  end
1654
1651
 
1652
+ # Deletes a specified policy.
1653
+ #
1654
+ # @option params [String] :policy_hash_condition
1655
+ # The hash value returned when this policy was set.
1656
+ #
1657
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1658
+ #
1659
+ # @example Request syntax with placeholder values
1660
+ #
1661
+ # resp = client.delete_resource_policy({
1662
+ # policy_hash_condition: "HashString",
1663
+ # })
1664
+ #
1665
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy AWS API Documentation
1666
+ #
1667
+ # @overload delete_resource_policy(params = {})
1668
+ # @param [Hash] params ({})
1669
+ def delete_resource_policy(params = {}, options = {})
1670
+ req = build_request(:delete_resource_policy, params)
1671
+ req.send_request(options)
1672
+ end
1673
+
1655
1674
  # Deletes a specified security configuration.
1656
1675
  #
1657
1676
  # @option params [required, String] :name
@@ -1734,7 +1753,8 @@ module Aws::Glue
1734
1753
  # lowercase.
1735
1754
  #
1736
1755
  # @option params [required, String] :version_id
1737
- # The ID of the table version to be deleted.
1756
+ # The ID of the table version to be deleted. A `VersionID` is a string
1757
+ # representation of an integer. Each version is incremented by 1.
1738
1758
  #
1739
1759
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1740
1760
  #
@@ -2833,6 +2853,96 @@ module Aws::Glue
2833
2853
  # @option params [String] :expression
2834
2854
  # An expression filtering the partitions to be returned.
2835
2855
  #
2856
+ # The expression uses SQL syntax similar to the SQL `WHERE` filter
2857
+ # clause. The SQL statement parser [JSQLParser][1] parses the
2858
+ # expression.
2859
+ #
2860
+ # *Operators*\: The following are the operators that you can use in the
2861
+ # `Expression` API call:
2862
+ #
2863
+ # =
2864
+ #
2865
+ # : Checks if the values of the two operands are equal or not; if yes,
2866
+ # then the condition becomes true.
2867
+ #
2868
+ # Example: Assume 'variable a' holds 10 and 'variable b' holds 20.
2869
+ #
2870
+ # (a = b) is not true.
2871
+ #
2872
+ # &lt; &gt;
2873
+ #
2874
+ # : Checks if the values of two operands are equal or not; if the values
2875
+ # are not equal, then the condition becomes true.
2876
+ #
2877
+ # Example: (a &lt; &gt; b) is true.
2878
+ #
2879
+ # &gt;
2880
+ #
2881
+ # : Checks if the value of the left operand is greater than the value of
2882
+ # the right operand; if yes, then the condition becomes true.
2883
+ #
2884
+ # Example: (a &gt; b) is not true.
2885
+ #
2886
+ # &lt;
2887
+ #
2888
+ # : Checks if the value of the left operand is less than the value of
2889
+ # the right operand; if yes, then the condition becomes true.
2890
+ #
2891
+ # Example: (a &lt; b) is true.
2892
+ #
2893
+ # &gt;=
2894
+ #
2895
+ # : Checks if the value of the left operand is greater than or equal to
2896
+ # the value of the right operand; if yes, then the condition becomes
2897
+ # true.
2898
+ #
2899
+ # Example: (a &gt;= b) is not true.
2900
+ #
2901
+ # &lt;=
2902
+ #
2903
+ # : Checks if the value of the left operand is less than or equal to the
2904
+ # value of the right operand; if yes, then the condition becomes true.
2905
+ #
2906
+ # Example: (a &lt;= b) is true.
2907
+ #
2908
+ # AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
2909
+ #
2910
+ # : Logical operators.
2911
+ #
2912
+ # *Supported Partition Key Types*\: The following are the the supported
2913
+ # partition keys.
2914
+ #
2915
+ # * `string`
2916
+ #
2917
+ # * `date`
2918
+ #
2919
+ # * `timestamp`
2920
+ #
2921
+ # * `int`
2922
+ #
2923
+ # * `bigint`
2924
+ #
2925
+ # * `long`
2926
+ #
2927
+ # * `tinyint`
2928
+ #
2929
+ # * `smallint`
2930
+ #
2931
+ # * `decimal`
2932
+ #
2933
+ # If an invalid type is encountered, a ` PredicateConstructionException
2934
+ # ` is thrown.
2935
+ #
2936
+ # The following list shows the valid operators on each type. When you
2937
+ # define a crawler, the `partitionKey` type is created as a `STRING`, to
2938
+ # be compatible with the catalog partitions.
2939
+ #
2940
+ # *Sample API Call*\:
2941
+ #
2942
+ #
2943
+ #
2944
+ # [1]: http://jsqlparser.sourceforge.net/home.php
2945
+ #
2836
2946
  # @option params [String] :next_token
2837
2947
  # A continuation token, if this is not the first call to retrieve these
2838
2948
  # partitions.
@@ -2998,6 +3108,31 @@ module Aws::Glue
2998
3108
  req.send_request(options)
2999
3109
  end
3000
3110
 
3111
+ # Retrieves a specified resource policy.
3112
+ #
3113
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3114
+ #
3115
+ # * {Types::GetResourcePolicyResponse#policy_in_json #policy_in_json} => String
3116
+ # * {Types::GetResourcePolicyResponse#policy_hash #policy_hash} => String
3117
+ # * {Types::GetResourcePolicyResponse#create_time #create_time} => Time
3118
+ # * {Types::GetResourcePolicyResponse#update_time #update_time} => Time
3119
+ #
3120
+ # @example Response structure
3121
+ #
3122
+ # resp.policy_in_json #=> String
3123
+ # resp.policy_hash #=> String
3124
+ # resp.create_time #=> Time
3125
+ # resp.update_time #=> Time
3126
+ #
3127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy AWS API Documentation
3128
+ #
3129
+ # @overload get_resource_policy(params = {})
3130
+ # @param [Hash] params ({})
3131
+ def get_resource_policy(params = {}, options = {})
3132
+ req = build_request(:get_resource_policy, params)
3133
+ req.send_request(options)
3134
+ end
3135
+
3001
3136
  # Retrieves a specified security configuration.
3002
3137
  #
3003
3138
  # @option params [required, String] :name
@@ -3177,7 +3312,8 @@ module Aws::Glue
3177
3312
  # lowercase.
3178
3313
  #
3179
3314
  # @option params [String] :version_id
3180
- # The ID value of the table version to be retrieved.
3315
+ # The ID value of the table version to be retrieved. A `VersionID` is a
3316
+ # string representation of an integer. Each version is incremented by 1.
3181
3317
  #
3182
3318
  # @return [Types::GetTableVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3183
3319
  #
@@ -3705,6 +3841,49 @@ module Aws::Glue
3705
3841
  req.send_request(options)
3706
3842
  end
3707
3843
 
3844
+ # Sets the Data Catalog resource policy for access control.
3845
+ #
3846
+ # @option params [required, String] :policy_in_json
3847
+ # Contains the policy document to set, in JSON format.
3848
+ #
3849
+ # @option params [String] :policy_hash_condition
3850
+ # This is the hash value returned when the previous policy was set using
3851
+ # PutResourcePolicy. Its purpose is to prevent concurrent modifications
3852
+ # of a policy. Do not use this parameter if no previous policy has been
3853
+ # set.
3854
+ #
3855
+ # @option params [String] :policy_exists_condition
3856
+ # If a value of `MUST_EXIST` is used here, the call will fail unless a
3857
+ # policy has already been set. If a value of `NOT_Exist` is used, the
3858
+ # call will fail if a policy has already been set. If a value of `NONE`
3859
+ # or a null value is used, the call will not depend on the existence of
3860
+ # a policy.
3861
+ #
3862
+ # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3863
+ #
3864
+ # * {Types::PutResourcePolicyResponse#policy_hash #policy_hash} => String
3865
+ #
3866
+ # @example Request syntax with placeholder values
3867
+ #
3868
+ # resp = client.put_resource_policy({
3869
+ # policy_in_json: "PolicyJsonString", # required
3870
+ # policy_hash_condition: "HashString",
3871
+ # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
3872
+ # })
3873
+ #
3874
+ # @example Response structure
3875
+ #
3876
+ # resp.policy_hash #=> String
3877
+ #
3878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicy AWS API Documentation
3879
+ #
3880
+ # @overload put_resource_policy(params = {})
3881
+ # @param [Hash] params ({})
3882
+ def put_resource_policy(params = {}, options = {})
3883
+ req = build_request(:put_resource_policy, params)
3884
+ req.send_request(options)
3885
+ end
3886
+
3708
3887
  # Resets a bookmark entry.
3709
3888
  #
3710
3889
  # @option params [required, String] :job_name
@@ -4110,16 +4289,12 @@ module Aws::Glue
4110
4289
  #
4111
4290
  # @option params [String] :configuration
4112
4291
  # Crawler configuration information. This versioned JSON string allows
4113
- # users to specify aspects of a Crawler's behavior.
4292
+ # users to specify aspects of a crawler's behavior. For more
4293
+ # information, see [Configuring a Crawler][1].
4294
+ #
4114
4295
  #
4115
- # You can use this field to force partitions to inherit metadata such as
4116
- # classification, input format, output format, serde information, and
4117
- # schema from their parent table, rather than detect this information
4118
- # separately for each partition. Use the following JSON string to
4119
- # specify that behavior:
4120
4296
  #
4121
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
4122
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
4297
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
4123
4298
  #
4124
4299
  # @option params [String] :crawler_security_configuration
4125
4300
  # The name of the SecurityConfiguration structure to be used by this
@@ -4670,7 +4845,7 @@ module Aws::Glue
4670
4845
  params: params,
4671
4846
  config: config)
4672
4847
  context[:gem_name] = 'aws-sdk-glue'
4673
- context[:gem_version] = '1.12.0'
4848
+ context[:gem_version] = '1.13.0'
4674
4849
  Seahorse::Client::Request.new(handlers, context)
4675
4850
  end
4676
4851
 
@@ -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')
@@ -217,6 +221,8 @@ module Aws::Glue
217
221
  GetPartitionsResponse = Shapes::StructureShape.new(name: 'GetPartitionsResponse')
218
222
  GetPlanRequest = Shapes::StructureShape.new(name: 'GetPlanRequest')
219
223
  GetPlanResponse = Shapes::StructureShape.new(name: 'GetPlanResponse')
224
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
225
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
220
226
  GetSecurityConfigurationRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigurationRequest')
221
227
  GetSecurityConfigurationResponse = Shapes::StructureShape.new(name: 'GetSecurityConfigurationResponse')
222
228
  GetSecurityConfigurationsRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigurationsRequest')
@@ -241,6 +247,7 @@ module Aws::Glue
241
247
  GlueEncryptionException = Shapes::StructureShape.new(name: 'GlueEncryptionException')
242
248
  GrokClassifier = Shapes::StructureShape.new(name: 'GrokClassifier')
243
249
  GrokPattern = Shapes::StringShape.new(name: 'GrokPattern')
250
+ HashString = Shapes::StringShape.new(name: 'HashString')
244
251
  IdString = Shapes::StringShape.new(name: 'IdString')
245
252
  IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
246
253
  ImportCatalogToGlueRequest = Shapes::StructureShape.new(name: 'ImportCatalogToGlueRequest')
@@ -309,6 +316,7 @@ module Aws::Glue
309
316
  Path = Shapes::StringShape.new(name: 'Path')
310
317
  PathList = Shapes::ListShape.new(name: 'PathList')
311
318
  PhysicalConnectionRequirements = Shapes::StructureShape.new(name: 'PhysicalConnectionRequirements')
319
+ PolicyJsonString = Shapes::StringShape.new(name: 'PolicyJsonString')
312
320
  Predecessor = Shapes::StructureShape.new(name: 'Predecessor')
313
321
  PredecessorList = Shapes::ListShape.new(name: 'PredecessorList')
314
322
  Predicate = Shapes::StructureShape.new(name: 'Predicate')
@@ -317,6 +325,8 @@ module Aws::Glue
317
325
  PublicKeysList = Shapes::ListShape.new(name: 'PublicKeysList')
318
326
  PutDataCatalogEncryptionSettingsRequest = Shapes::StructureShape.new(name: 'PutDataCatalogEncryptionSettingsRequest')
319
327
  PutDataCatalogEncryptionSettingsResponse = Shapes::StructureShape.new(name: 'PutDataCatalogEncryptionSettingsResponse')
328
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
329
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
320
330
  PythonScript = Shapes::StringShape.new(name: 'PythonScript')
321
331
  ResetJobBookmarkRequest = Shapes::StructureShape.new(name: 'ResetJobBookmarkRequest')
322
332
  ResetJobBookmarkResponse = Shapes::StructureShape.new(name: 'ResetJobBookmarkResponse')
@@ -857,6 +867,11 @@ module Aws::Glue
857
867
 
858
868
  DeletePartitionResponse.struct_class = Types::DeletePartitionResponse
859
869
 
870
+ DeleteResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
871
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
872
+
873
+ DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
874
+
860
875
  DeleteSecurityConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
861
876
  DeleteSecurityConfigurationRequest.struct_class = Types::DeleteSecurityConfigurationRequest
862
877
 
@@ -1119,6 +1134,14 @@ module Aws::Glue
1119
1134
  GetPlanResponse.add_member(:scala_code, Shapes::ShapeRef.new(shape: ScalaCode, location_name: "ScalaCode"))
1120
1135
  GetPlanResponse.struct_class = Types::GetPlanResponse
1121
1136
 
1137
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
1138
+
1139
+ GetResourcePolicyResponse.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, location_name: "PolicyInJson"))
1140
+ GetResourcePolicyResponse.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
1141
+ GetResourcePolicyResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTime"))
1142
+ GetResourcePolicyResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdateTime"))
1143
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
1144
+
1122
1145
  GetSecurityConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
1123
1146
  GetSecurityConfigurationRequest.struct_class = Types::GetSecurityConfigurationRequest
1124
1147
 
@@ -1403,6 +1426,14 @@ module Aws::Glue
1403
1426
 
1404
1427
  PutDataCatalogEncryptionSettingsResponse.struct_class = Types::PutDataCatalogEncryptionSettingsResponse
1405
1428
 
1429
+ PutResourcePolicyRequest.add_member(:policy_in_json, Shapes::ShapeRef.new(shape: PolicyJsonString, required: true, location_name: "PolicyInJson"))
1430
+ PutResourcePolicyRequest.add_member(:policy_hash_condition, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHashCondition"))
1431
+ PutResourcePolicyRequest.add_member(:policy_exists_condition, Shapes::ShapeRef.new(shape: ExistCondition, location_name: "PolicyExistsCondition"))
1432
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1433
+
1434
+ PutResourcePolicyResponse.add_member(:policy_hash, Shapes::ShapeRef.new(shape: HashString, location_name: "PolicyHash"))
1435
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
1436
+
1406
1437
  ResetJobBookmarkRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, required: true, location_name: "JobName"))
1407
1438
  ResetJobBookmarkRequest.struct_class = Types::ResetJobBookmarkRequest
1408
1439
 
@@ -2065,6 +2096,19 @@ module Aws::Glue
2065
2096
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2066
2097
  end)
2067
2098
 
2099
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2100
+ o.name = "DeleteResourcePolicy"
2101
+ o.http_method = "POST"
2102
+ o.http_request_uri = "/"
2103
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
2104
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResponse)
2105
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2106
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2107
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2108
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2109
+ o.errors << Shapes::ShapeRef.new(shape: ConditionCheckFailureException)
2110
+ end)
2111
+
2068
2112
  api.add_operation(:delete_security_configuration, Seahorse::Model::Operation.new.tap do |o|
2069
2113
  o.name = "DeleteSecurityConfiguration"
2070
2114
  o.http_method = "POST"
@@ -2417,6 +2461,18 @@ module Aws::Glue
2417
2461
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2418
2462
  end)
2419
2463
 
2464
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2465
+ o.name = "GetResourcePolicy"
2466
+ o.http_method = "POST"
2467
+ o.http_request_uri = "/"
2468
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
2469
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
2470
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2471
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2472
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2473
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2474
+ end)
2475
+
2420
2476
  api.add_operation(:get_security_configuration, Seahorse::Model::Operation.new.tap do |o|
2421
2477
  o.name = "GetSecurityConfiguration"
2422
2478
  o.http_method = "POST"
@@ -2588,6 +2644,19 @@ module Aws::Glue
2588
2644
  o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2589
2645
  end)
2590
2646
 
2647
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2648
+ o.name = "PutResourcePolicy"
2649
+ o.http_method = "POST"
2650
+ o.http_request_uri = "/"
2651
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
2652
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
2653
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
2654
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
2655
+ o.errors << Shapes::ShapeRef.new(shape: OperationTimeoutException)
2656
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2657
+ o.errors << Shapes::ShapeRef.new(shape: ConditionCheckFailureException)
2658
+ end)
2659
+
2591
2660
  api.add_operation(:reset_job_bookmark, Seahorse::Model::Operation.new.tap do |o|
2592
2661
  o.name = "ResetJobBookmark"
2593
2662
  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
@@ -1027,16 +1029,12 @@ module Aws::Glue
1027
1029
  #
1028
1030
  # @!attribute [rw] configuration
1029
1031
  # Crawler configuration information. This versioned JSON string allows
1030
- # users to specify aspects of a Crawler's behavior.
1032
+ # users to specify aspects of a crawler's behavior. For more
1033
+ # information, see [Configuring a Crawler][1].
1031
1034
  #
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
1035
  #
1038
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
1039
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
1036
+ #
1037
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
1040
1038
  # @return [String]
1041
1039
  #
1042
1040
  # @!attribute [rw] crawler_security_configuration
@@ -1339,16 +1337,12 @@ module Aws::Glue
1339
1337
  #
1340
1338
  # @!attribute [rw] configuration
1341
1339
  # Crawler configuration information. This versioned JSON string allows
1342
- # users to specify aspects of a Crawler's behavior.
1340
+ # users to specify aspects of a crawler's behavior. For more
1341
+ # information, see [Configuring a Crawler][1].
1342
+ #
1343
1343
  #
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
1344
  #
1350
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
1351
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
1345
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
1352
1346
  # @return [String]
1353
1347
  #
1354
1348
  # @!attribute [rw] crawler_security_configuration
@@ -2594,6 +2588,28 @@ module Aws::Glue
2594
2588
  #
2595
2589
  class DeletePartitionResponse < Aws::EmptyStructure; end
2596
2590
 
2591
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
2592
+ # data as a hash:
2593
+ #
2594
+ # {
2595
+ # policy_hash_condition: "HashString",
2596
+ # }
2597
+ #
2598
+ # @!attribute [rw] policy_hash_condition
2599
+ # The hash value returned when this policy was set.
2600
+ # @return [String]
2601
+ #
2602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicyRequest AWS API Documentation
2603
+ #
2604
+ class DeleteResourcePolicyRequest < Struct.new(
2605
+ :policy_hash_condition)
2606
+ include Aws::Structure
2607
+ end
2608
+
2609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicyResponse AWS API Documentation
2610
+ #
2611
+ class DeleteResourcePolicyResponse < Aws::EmptyStructure; end
2612
+
2597
2613
  # @note When making an API call, you may pass DeleteSecurityConfigurationRequest
2598
2614
  # data as a hash:
2599
2615
  #
@@ -2679,7 +2695,8 @@ module Aws::Glue
2679
2695
  # @return [String]
2680
2696
  #
2681
2697
  # @!attribute [rw] version_id
2682
- # The ID of the table version to be deleted.
2698
+ # The ID of the table version to be deleted. A `VersionID` is a string
2699
+ # representation of an integer. Each version is incremented by 1.
2683
2700
  # @return [String]
2684
2701
  #
2685
2702
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteTableVersionRequest AWS API Documentation
@@ -3908,6 +3925,98 @@ module Aws::Glue
3908
3925
  #
3909
3926
  # @!attribute [rw] expression
3910
3927
  # An expression filtering the partitions to be returned.
3928
+ #
3929
+ # The expression uses SQL syntax similar to the SQL `WHERE` filter
3930
+ # clause. The SQL statement parser [JSQLParser][1] parses the
3931
+ # expression.
3932
+ #
3933
+ # *Operators*\: The following are the operators that you can use in
3934
+ # the `Expression` API call:
3935
+ #
3936
+ # =
3937
+ #
3938
+ # : Checks if the values of the two operands are equal or not; if yes,
3939
+ # then the condition becomes true.
3940
+ #
3941
+ # Example: Assume 'variable a' holds 10 and 'variable b' holds
3942
+ # 20.
3943
+ #
3944
+ # (a = b) is not true.
3945
+ #
3946
+ # &lt; &gt;
3947
+ #
3948
+ # : Checks if the values of two operands are equal or not; if the
3949
+ # values are not equal, then the condition becomes true.
3950
+ #
3951
+ # Example: (a &lt; &gt; b) is true.
3952
+ #
3953
+ # &gt;
3954
+ #
3955
+ # : Checks if the value of the left operand is greater than the value
3956
+ # of the right operand; if yes, then the condition becomes true.
3957
+ #
3958
+ # Example: (a &gt; b) is not true.
3959
+ #
3960
+ # &lt;
3961
+ #
3962
+ # : Checks if the value of the left operand is less than the value of
3963
+ # the right operand; if yes, then the condition becomes true.
3964
+ #
3965
+ # Example: (a &lt; b) is true.
3966
+ #
3967
+ # &gt;=
3968
+ #
3969
+ # : Checks if the value of the left operand is greater than or equal
3970
+ # to the value of the right operand; if yes, then the condition
3971
+ # becomes true.
3972
+ #
3973
+ # Example: (a &gt;= b) is not true.
3974
+ #
3975
+ # &lt;=
3976
+ #
3977
+ # : Checks if the value of the left operand is less than or equal to
3978
+ # the value of the right operand; if yes, then the condition becomes
3979
+ # true.
3980
+ #
3981
+ # Example: (a &lt;= b) is true.
3982
+ #
3983
+ # AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
3984
+ #
3985
+ # : Logical operators.
3986
+ #
3987
+ # *Supported Partition Key Types*\: The following are the the
3988
+ # supported partition keys.
3989
+ #
3990
+ # * `string`
3991
+ #
3992
+ # * `date`
3993
+ #
3994
+ # * `timestamp`
3995
+ #
3996
+ # * `int`
3997
+ #
3998
+ # * `bigint`
3999
+ #
4000
+ # * `long`
4001
+ #
4002
+ # * `tinyint`
4003
+ #
4004
+ # * `smallint`
4005
+ #
4006
+ # * `decimal`
4007
+ #
4008
+ # If an invalid type is encountered, a `
4009
+ # PredicateConstructionException ` is thrown.
4010
+ #
4011
+ # The following list shows the valid operators on each type. When you
4012
+ # define a crawler, the `partitionKey` type is created as a `STRING`,
4013
+ # to be compatible with the catalog partitions.
4014
+ #
4015
+ # *Sample API Call*\:
4016
+ #
4017
+ #
4018
+ #
4019
+ # [1]: http://jsqlparser.sourceforge.net/home.php
3911
4020
  # @return [String]
3912
4021
  #
3913
4022
  # @!attribute [rw] next_token
@@ -4050,6 +4159,38 @@ module Aws::Glue
4050
4159
  include Aws::Structure
4051
4160
  end
4052
4161
 
4162
+ # @api private
4163
+ #
4164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicyRequest AWS API Documentation
4165
+ #
4166
+ class GetResourcePolicyRequest < Aws::EmptyStructure; end
4167
+
4168
+ # @!attribute [rw] policy_in_json
4169
+ # Contains the requested policy document, in JSON format.
4170
+ # @return [String]
4171
+ #
4172
+ # @!attribute [rw] policy_hash
4173
+ # Contains the hash value associated with this policy.
4174
+ # @return [String]
4175
+ #
4176
+ # @!attribute [rw] create_time
4177
+ # The date and time at which the policy was created.
4178
+ # @return [Time]
4179
+ #
4180
+ # @!attribute [rw] update_time
4181
+ # The date and time at which the policy was last updated.
4182
+ # @return [Time]
4183
+ #
4184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicyResponse AWS API Documentation
4185
+ #
4186
+ class GetResourcePolicyResponse < Struct.new(
4187
+ :policy_in_json,
4188
+ :policy_hash,
4189
+ :create_time,
4190
+ :update_time)
4191
+ include Aws::Structure
4192
+ end
4193
+
4053
4194
  # @note When making an API call, you may pass GetSecurityConfigurationRequest
4054
4195
  # data as a hash:
4055
4196
  #
@@ -4190,7 +4331,9 @@ module Aws::Glue
4190
4331
  # @return [String]
4191
4332
  #
4192
4333
  # @!attribute [rw] version_id
4193
- # The ID value of the table version to be retrieved.
4334
+ # The ID value of the table version to be retrieved. A `VersionID` is
4335
+ # a string representation of an integer. Each version is incremented
4336
+ # by 1.
4194
4337
  # @return [String]
4195
4338
  #
4196
4339
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersionRequest AWS API Documentation
@@ -5613,6 +5756,55 @@ module Aws::Glue
5613
5756
  #
5614
5757
  class PutDataCatalogEncryptionSettingsResponse < Aws::EmptyStructure; end
5615
5758
 
5759
+ # @note When making an API call, you may pass PutResourcePolicyRequest
5760
+ # data as a hash:
5761
+ #
5762
+ # {
5763
+ # policy_in_json: "PolicyJsonString", # required
5764
+ # policy_hash_condition: "HashString",
5765
+ # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
5766
+ # }
5767
+ #
5768
+ # @!attribute [rw] policy_in_json
5769
+ # Contains the policy document to set, in JSON format.
5770
+ # @return [String]
5771
+ #
5772
+ # @!attribute [rw] policy_hash_condition
5773
+ # This is the hash value returned when the previous policy was set
5774
+ # using PutResourcePolicy. Its purpose is to prevent concurrent
5775
+ # modifications of a policy. Do not use this parameter if no previous
5776
+ # policy has been set.
5777
+ # @return [String]
5778
+ #
5779
+ # @!attribute [rw] policy_exists_condition
5780
+ # If a value of `MUST_EXIST` is used here, the call will fail unless a
5781
+ # policy has already been set. If a value of `NOT_Exist` is used, the
5782
+ # call will fail if a policy has already been set. If a value of
5783
+ # `NONE` or a null value is used, the call will not depend on the
5784
+ # existence of a policy.
5785
+ # @return [String]
5786
+ #
5787
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicyRequest AWS API Documentation
5788
+ #
5789
+ class PutResourcePolicyRequest < Struct.new(
5790
+ :policy_in_json,
5791
+ :policy_hash_condition,
5792
+ :policy_exists_condition)
5793
+ include Aws::Structure
5794
+ end
5795
+
5796
+ # @!attribute [rw] policy_hash
5797
+ # A hash of the policy that has just been set. This must be included
5798
+ # in a subsequent call that overwrites or updates this policy.
5799
+ # @return [String]
5800
+ #
5801
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicyResponse AWS API Documentation
5802
+ #
5803
+ class PutResourcePolicyResponse < Struct.new(
5804
+ :policy_hash)
5805
+ include Aws::Structure
5806
+ end
5807
+
5616
5808
  # @note When making an API call, you may pass ResetJobBookmarkRequest
5617
5809
  # data as a hash:
5618
5810
  #
@@ -6520,7 +6712,9 @@ module Aws::Glue
6520
6712
  # @return [Types::Table]
6521
6713
  #
6522
6714
  # @!attribute [rw] version_id
6523
- # The ID value that identifies this table version.
6715
+ # The ID value that identifies this table version. A `VersionId` is a
6716
+ # string representation of an integer. Each version is incremented by
6717
+ # 1.
6524
6718
  # @return [String]
6525
6719
  #
6526
6720
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/TableVersion AWS API Documentation
@@ -6538,7 +6732,8 @@ module Aws::Glue
6538
6732
  # @return [String]
6539
6733
  #
6540
6734
  # @!attribute [rw] version_id
6541
- # The ID value of the version in question.
6735
+ # The ID value of the version in question. A `VersionID` is a string
6736
+ # representation of an integer. Each version is incremented by 1.
6542
6737
  # @return [String]
6543
6738
  #
6544
6739
  # @!attribute [rw] error_detail
@@ -6864,16 +7059,12 @@ module Aws::Glue
6864
7059
  #
6865
7060
  # @!attribute [rw] configuration
6866
7061
  # Crawler configuration information. This versioned JSON string allows
6867
- # users to specify aspects of a Crawler's behavior.
7062
+ # users to specify aspects of a crawler's behavior. For more
7063
+ # information, see [Configuring a Crawler][1].
7064
+ #
6868
7065
  #
6869
- # You can use this field to force partitions to inherit metadata such
6870
- # as classification, input format, output format, serde information,
6871
- # and schema from their parent table, rather than detect this
6872
- # information separately for each partition. Use the following JSON
6873
- # string to specify that behavior:
6874
7066
  #
6875
- # Example: `'\{ "Version": 1.0, "CrawlerOutput": \{ "Partitions": \{
6876
- # "AddOrUpdateBehavior": "InheritFromTable" \} \} \}'`
7067
+ # [1]: http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html
6877
7068
  # @return [String]
6878
7069
  #
6879
7070
  # @!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.12.0
4
+ version: 1.13.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-08-25 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core