aws-sdk-glue 1.105.0 → 1.108.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: 39f7f7cee03a4c9c27d2226c5527559b7288479f8e800d0cf89ee61f815f029d
4
- data.tar.gz: 9655549459765cb5a243f9b1c653669f9e3ab72f465dbf3e1452cd883661dcb7
3
+ metadata.gz: 82549217518a5c2bea914f1f04fbc8fababe7bae7b41a1f7560481eed36088ba
4
+ data.tar.gz: 6528bbb31da7427b01e32325d41a38b92381620e11692f3356b477322cb8e03b
5
5
  SHA512:
6
- metadata.gz: 142928fc9587f32055a9c2b93d57efdd394ea2f1bba848111cf922e65e16223eb01a5e08db4616868e291f1861835f97e8b88b19c4af0cd434d92790eb0f13e1
7
- data.tar.gz: 664a7e86702b48428de7ef9409abf93264eae1d9d978e69971ac07079b4f68c16040470bb19beabd136843d832ea8d04c177e33bab90ab585e3a457c1c0434b8
6
+ metadata.gz: bf01a8a75d08ae159b98d2d755a453770d61eac6c53aaf0d48a67c756f1bdb22c3f26eecc3040f10b415d9ff40ad84732318beb25ad9ae09ca636fdae9bee4e6
7
+ data.tar.gz: c3634d689b35e46e8c5f71324628fa09bc04a7353165894ce9b2e02ab9bbb93bffc46fe3cce5737ce5e9ddd42513720fdf43ce4e4ab77bf260cf8281a8450a1a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.108.0 (2022-03-18)
5
+ ------------------
6
+
7
+ * Feature - Added 9 new APIs for AWS Glue Interactive Sessions: ListSessions, StopSession, CreateSession, GetSession, DeleteSession, RunStatement, GetStatement, ListStatements, CancelStatement
8
+
9
+ 1.107.0 (2022-02-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.106.0 (2022-02-16)
15
+ ------------------
16
+
17
+ * Feature - Support for optimistic locking in UpdateTable
18
+
4
19
  1.105.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.105.0
1
+ 1.108.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::Glue
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -1482,6 +1484,36 @@ module Aws::Glue
1482
1484
  req.send_request(options)
1483
1485
  end
1484
1486
 
1487
+ # Cancels the statement..
1488
+ #
1489
+ # @option params [required, String] :session_id
1490
+ # The Session ID of the statement to be cancelled.
1491
+ #
1492
+ # @option params [required, Integer] :id
1493
+ # The ID of the statement to be cancelled.
1494
+ #
1495
+ # @option params [String] :request_origin
1496
+ # The origin of the request to cancel the statement.
1497
+ #
1498
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1499
+ #
1500
+ # @example Request syntax with placeholder values
1501
+ #
1502
+ # resp = client.cancel_statement({
1503
+ # session_id: "NameString", # required
1504
+ # id: 1, # required
1505
+ # request_origin: "OrchestrationNameString",
1506
+ # })
1507
+ #
1508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CancelStatement AWS API Documentation
1509
+ #
1510
+ # @overload cancel_statement(params = {})
1511
+ # @param [Hash] params ({})
1512
+ def cancel_statement(params = {}, options = {})
1513
+ req = build_request(:cancel_statement, params)
1514
+ req.send_request(options)
1515
+ end
1516
+
1485
1517
  # Validates the supplied schema. This call has no side effects, it
1486
1518
  # simply validates using the supplied schema using `DataFormat` as the
1487
1519
  # format. Since it does not take a schema set name, no compatibility
@@ -2940,6 +2972,118 @@ module Aws::Glue
2940
2972
  req.send_request(options)
2941
2973
  end
2942
2974
 
2975
+ # Creates a new session.
2976
+ #
2977
+ # @option params [required, String] :id
2978
+ # The ID of the session request.
2979
+ #
2980
+ # @option params [String] :description
2981
+ # The description of the session.
2982
+ #
2983
+ # @option params [required, String] :role
2984
+ # The IAM Role ARN
2985
+ #
2986
+ # @option params [required, Types::SessionCommand] :command
2987
+ # The `SessionCommand` that runs the job.
2988
+ #
2989
+ # @option params [Integer] :timeout
2990
+ # The number of seconds before request times out.
2991
+ #
2992
+ # @option params [Integer] :idle_timeout
2993
+ # The number of seconds when idle before request times out.
2994
+ #
2995
+ # @option params [Hash<String,String>] :default_arguments
2996
+ # A map array of key-value pairs. Max is 75 pairs.
2997
+ #
2998
+ # @option params [Types::ConnectionsList] :connections
2999
+ # The number of connections to use for the session.
3000
+ #
3001
+ # @option params [Float] :max_capacity
3002
+ # The number of AWS Glue data processing units (DPUs) that can be
3003
+ # allocated when the job runs. A DPU is a relative measure of processing
3004
+ # power that consists of 4 vCPUs of compute capacity and 16 GB memory.
3005
+ #
3006
+ # @option params [Integer] :number_of_workers
3007
+ # The number of workers to use for the session.
3008
+ #
3009
+ # @option params [String] :worker_type
3010
+ # The Worker Type. Can be one of G.1X, G.2X, Standard
3011
+ #
3012
+ # @option params [String] :security_configuration
3013
+ # The name of the SecurityConfiguration structure to be used with the
3014
+ # session
3015
+ #
3016
+ # @option params [String] :glue_version
3017
+ # The Glue version determines the versions of Apache Spark and Python
3018
+ # that AWS Glue supports. The GlueVersion must be greater than 2.0.
3019
+ #
3020
+ # @option params [Hash<String,String>] :tags
3021
+ # The map of key value pairs (tags) belonging to the session.
3022
+ #
3023
+ # @option params [String] :request_origin
3024
+ # The origin of the request.
3025
+ #
3026
+ # @return [Types::CreateSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3027
+ #
3028
+ # * {Types::CreateSessionResponse#session #session} => Types::Session
3029
+ #
3030
+ # @example Request syntax with placeholder values
3031
+ #
3032
+ # resp = client.create_session({
3033
+ # id: "NameString", # required
3034
+ # description: "DescriptionString",
3035
+ # role: "OrchestrationRoleArn", # required
3036
+ # command: { # required
3037
+ # name: "NameString",
3038
+ # python_version: "PythonVersionString",
3039
+ # },
3040
+ # timeout: 1,
3041
+ # idle_timeout: 1,
3042
+ # default_arguments: {
3043
+ # "OrchestrationNameString" => "OrchestrationArgumentsValue",
3044
+ # },
3045
+ # connections: {
3046
+ # connections: ["GenericString"],
3047
+ # },
3048
+ # max_capacity: 1.0,
3049
+ # number_of_workers: 1,
3050
+ # worker_type: "Standard", # accepts Standard, G.1X, G.2X
3051
+ # security_configuration: "NameString",
3052
+ # glue_version: "GlueVersionString",
3053
+ # tags: {
3054
+ # "TagKey" => "TagValue",
3055
+ # },
3056
+ # request_origin: "OrchestrationNameString",
3057
+ # })
3058
+ #
3059
+ # @example Response structure
3060
+ #
3061
+ # resp.session.id #=> String
3062
+ # resp.session.created_on #=> Time
3063
+ # resp.session.status #=> String, one of "PROVISIONING", "READY", "FAILED", "TIMEOUT", "STOPPING", "STOPPED"
3064
+ # resp.session.error_message #=> String
3065
+ # resp.session.description #=> String
3066
+ # resp.session.role #=> String
3067
+ # resp.session.command.name #=> String
3068
+ # resp.session.command.python_version #=> String
3069
+ # resp.session.default_arguments #=> Hash
3070
+ # resp.session.default_arguments["OrchestrationNameString"] #=> String
3071
+ # resp.session.connections.connections #=> Array
3072
+ # resp.session.connections.connections[0] #=> String
3073
+ # resp.session.progress #=> Float
3074
+ # resp.session.max_capacity #=> Float
3075
+ # resp.session.security_configuration #=> String
3076
+ # resp.session.glue_version #=> String
3077
+ #
3078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateSession AWS API Documentation
3079
+ #
3080
+ # @overload create_session(params = {})
3081
+ # @param [Hash] params ({})
3082
+ def create_session(params = {}, options = {})
3083
+ req = build_request(:create_session, params)
3084
+ req.send_request(options)
3085
+ end
3086
+
2943
3087
  # Creates a new table definition in the Data Catalog.
2944
3088
  #
2945
3089
  # @option params [String] :catalog_id
@@ -3850,6 +3994,38 @@ module Aws::Glue
3850
3994
  req.send_request(options)
3851
3995
  end
3852
3996
 
3997
+ # Deletes the session.
3998
+ #
3999
+ # @option params [required, String] :id
4000
+ # The ID of the session to be deleted.
4001
+ #
4002
+ # @option params [String] :request_origin
4003
+ # The name of the origin of the delete session request.
4004
+ #
4005
+ # @return [Types::DeleteSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4006
+ #
4007
+ # * {Types::DeleteSessionResponse#id #id} => String
4008
+ #
4009
+ # @example Request syntax with placeholder values
4010
+ #
4011
+ # resp = client.delete_session({
4012
+ # id: "NameString", # required
4013
+ # request_origin: "OrchestrationNameString",
4014
+ # })
4015
+ #
4016
+ # @example Response structure
4017
+ #
4018
+ # resp.id #=> String
4019
+ #
4020
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteSession AWS API Documentation
4021
+ #
4022
+ # @overload delete_session(params = {})
4023
+ # @param [Hash] params ({})
4024
+ def delete_session(params = {}, options = {})
4025
+ req = build_request(:delete_session, params)
4026
+ req.send_request(options)
4027
+ end
4028
+
3853
4029
  # Removes a table definition from the Data Catalog.
3854
4030
  #
3855
4031
  # <note markdown="1"> After completing this operation, you no longer have access to the
@@ -6767,6 +6943,101 @@ module Aws::Glue
6767
6943
  req.send_request(options)
6768
6944
  end
6769
6945
 
6946
+ # Retrieves the session.
6947
+ #
6948
+ # @option params [required, String] :id
6949
+ # The ID of the session.
6950
+ #
6951
+ # @option params [String] :request_origin
6952
+ # The origin of the request.
6953
+ #
6954
+ # @return [Types::GetSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6955
+ #
6956
+ # * {Types::GetSessionResponse#session #session} => Types::Session
6957
+ #
6958
+ # @example Request syntax with placeholder values
6959
+ #
6960
+ # resp = client.get_session({
6961
+ # id: "NameString", # required
6962
+ # request_origin: "OrchestrationNameString",
6963
+ # })
6964
+ #
6965
+ # @example Response structure
6966
+ #
6967
+ # resp.session.id #=> String
6968
+ # resp.session.created_on #=> Time
6969
+ # resp.session.status #=> String, one of "PROVISIONING", "READY", "FAILED", "TIMEOUT", "STOPPING", "STOPPED"
6970
+ # resp.session.error_message #=> String
6971
+ # resp.session.description #=> String
6972
+ # resp.session.role #=> String
6973
+ # resp.session.command.name #=> String
6974
+ # resp.session.command.python_version #=> String
6975
+ # resp.session.default_arguments #=> Hash
6976
+ # resp.session.default_arguments["OrchestrationNameString"] #=> String
6977
+ # resp.session.connections.connections #=> Array
6978
+ # resp.session.connections.connections[0] #=> String
6979
+ # resp.session.progress #=> Float
6980
+ # resp.session.max_capacity #=> Float
6981
+ # resp.session.security_configuration #=> String
6982
+ # resp.session.glue_version #=> String
6983
+ #
6984
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetSession AWS API Documentation
6985
+ #
6986
+ # @overload get_session(params = {})
6987
+ # @param [Hash] params ({})
6988
+ def get_session(params = {}, options = {})
6989
+ req = build_request(:get_session, params)
6990
+ req.send_request(options)
6991
+ end
6992
+
6993
+ # Retrieves the statement.
6994
+ #
6995
+ # @option params [required, String] :session_id
6996
+ # The Session ID of the statement.
6997
+ #
6998
+ # @option params [required, Integer] :id
6999
+ # The Id of the statement.
7000
+ #
7001
+ # @option params [String] :request_origin
7002
+ # The origin of the request.
7003
+ #
7004
+ # @return [Types::GetStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7005
+ #
7006
+ # * {Types::GetStatementResponse#statement #statement} => Types::Statement
7007
+ #
7008
+ # @example Request syntax with placeholder values
7009
+ #
7010
+ # resp = client.get_statement({
7011
+ # session_id: "NameString", # required
7012
+ # id: 1, # required
7013
+ # request_origin: "OrchestrationNameString",
7014
+ # })
7015
+ #
7016
+ # @example Response structure
7017
+ #
7018
+ # resp.statement.id #=> Integer
7019
+ # resp.statement.code #=> String
7020
+ # resp.statement.state #=> String, one of "WAITING", "RUNNING", "AVAILABLE", "CANCELLING", "CANCELLED", "ERROR"
7021
+ # resp.statement.output.data.text_plain #=> String
7022
+ # resp.statement.output.execution_count #=> Integer
7023
+ # resp.statement.output.status #=> String, one of "WAITING", "RUNNING", "AVAILABLE", "CANCELLING", "CANCELLED", "ERROR"
7024
+ # resp.statement.output.error_name #=> String
7025
+ # resp.statement.output.error_value #=> String
7026
+ # resp.statement.output.traceback #=> Array
7027
+ # resp.statement.output.traceback[0] #=> String
7028
+ # resp.statement.progress #=> Float
7029
+ # resp.statement.started_on #=> Integer
7030
+ # resp.statement.completed_on #=> Integer
7031
+ #
7032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetStatement AWS API Documentation
7033
+ #
7034
+ # @overload get_statement(params = {})
7035
+ # @param [Hash] params ({})
7036
+ def get_statement(params = {}, options = {})
7037
+ req = build_request(:get_statement, params)
7038
+ req.send_request(options)
7039
+ end
7040
+
6770
7041
  # Retrieves the `Table` definition in a Data Catalog for a specified
6771
7042
  # table.
6772
7043
  #
@@ -6868,6 +7139,7 @@ module Aws::Glue
6868
7139
  # resp.table.target_table.database_name #=> String
6869
7140
  # resp.table.target_table.name #=> String
6870
7141
  # resp.table.catalog_id #=> String
7142
+ # resp.table.version_id #=> String
6871
7143
  #
6872
7144
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTable AWS API Documentation
6873
7145
  #
@@ -6973,6 +7245,7 @@ module Aws::Glue
6973
7245
  # resp.table_version.table.target_table.database_name #=> String
6974
7246
  # resp.table_version.table.target_table.name #=> String
6975
7247
  # resp.table_version.table.catalog_id #=> String
7248
+ # resp.table_version.table.version_id #=> String
6976
7249
  # resp.table_version.version_id #=> String
6977
7250
  #
6978
7251
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersion AWS API Documentation
@@ -7087,6 +7360,7 @@ module Aws::Glue
7087
7360
  # resp.table_versions[0].table.target_table.database_name #=> String
7088
7361
  # resp.table_versions[0].table.target_table.name #=> String
7089
7362
  # resp.table_versions[0].table.catalog_id #=> String
7363
+ # resp.table_versions[0].table.version_id #=> String
7090
7364
  # resp.table_versions[0].version_id #=> String
7091
7365
  # resp.next_token #=> String
7092
7366
  #
@@ -7212,6 +7486,7 @@ module Aws::Glue
7212
7486
  # resp.table_list[0].target_table.database_name #=> String
7213
7487
  # resp.table_list[0].target_table.name #=> String
7214
7488
  # resp.table_list[0].catalog_id #=> String
7489
+ # resp.table_list[0].version_id #=> String
7215
7490
  # resp.next_token #=> String
7216
7491
  #
7217
7492
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTables AWS API Documentation
@@ -7379,6 +7654,7 @@ module Aws::Glue
7379
7654
  # @option params [required, Array<String>] :partition_values
7380
7655
  #
7381
7656
  # @option params [Types::AuditContext] :audit_context
7657
+ # A structure containing information for audit.
7382
7658
  #
7383
7659
  # @option params [required, Array<String>] :supported_permission_types
7384
7660
  #
@@ -7397,6 +7673,8 @@ module Aws::Glue
7397
7673
  # partition_values: ["ValueString"], # required
7398
7674
  # audit_context: {
7399
7675
  # additional_audit_context: "AuditContextString",
7676
+ # requested_columns: ["ColumnNameString"],
7677
+ # all_columns_requested: false,
7400
7678
  # },
7401
7679
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
7402
7680
  # })
@@ -7471,6 +7749,7 @@ module Aws::Glue
7471
7749
  # @option params [String] :expression
7472
7750
  #
7473
7751
  # @option params [Types::AuditContext] :audit_context
7752
+ # A structure containing information for audit.
7474
7753
  #
7475
7754
  # @option params [required, Array<String>] :supported_permission_types
7476
7755
  #
@@ -7498,6 +7777,8 @@ module Aws::Glue
7498
7777
  # expression: "PredicateString",
7499
7778
  # audit_context: {
7500
7779
  # additional_audit_context: "AuditContextString",
7780
+ # requested_columns: ["ColumnNameString"],
7781
+ # all_columns_requested: false,
7501
7782
  # },
7502
7783
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
7503
7784
  # next_token: "Token",
@@ -7578,6 +7859,7 @@ module Aws::Glue
7578
7859
  # @option params [required, String] :name
7579
7860
  #
7580
7861
  # @option params [Types::AuditContext] :audit_context
7862
+ # A structure containing information for audit.
7581
7863
  #
7582
7864
  # @option params [required, Array<String>] :supported_permission_types
7583
7865
  #
@@ -7596,6 +7878,8 @@ module Aws::Glue
7596
7878
  # name: "NameString", # required
7597
7879
  # audit_context: {
7598
7880
  # additional_audit_context: "AuditContextString",
7881
+ # requested_columns: ["ColumnNameString"],
7882
+ # all_columns_requested: false,
7599
7883
  # },
7600
7884
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
7601
7885
  # })
@@ -7664,6 +7948,7 @@ module Aws::Glue
7664
7948
  # resp.table.target_table.database_name #=> String
7665
7949
  # resp.table.target_table.name #=> String
7666
7950
  # resp.table.catalog_id #=> String
7951
+ # resp.table.version_id #=> String
7667
7952
  # resp.authorized_columns #=> Array
7668
7953
  # resp.authorized_columns[0] #=> String
7669
7954
  # resp.is_registered_with_lake_formation #=> Boolean
@@ -8709,6 +8994,122 @@ module Aws::Glue
8709
8994
  req.send_request(options)
8710
8995
  end
8711
8996
 
8997
+ # Retrieve a session..
8998
+ #
8999
+ # @option params [String] :next_token
9000
+ # The token for the next set of results, or null if there are no more
9001
+ # result.
9002
+ #
9003
+ # @option params [Integer] :max_results
9004
+ # The maximum number of results.
9005
+ #
9006
+ # @option params [Hash<String,String>] :tags
9007
+ # Tags belonging to the session.
9008
+ #
9009
+ # @option params [String] :request_origin
9010
+ # The origin of the request.
9011
+ #
9012
+ # @return [Types::ListSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9013
+ #
9014
+ # * {Types::ListSessionsResponse#ids #ids} => Array&lt;String&gt;
9015
+ # * {Types::ListSessionsResponse#sessions #sessions} => Array&lt;Types::Session&gt;
9016
+ # * {Types::ListSessionsResponse#next_token #next_token} => String
9017
+ #
9018
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
9019
+ #
9020
+ # @example Request syntax with placeholder values
9021
+ #
9022
+ # resp = client.list_sessions({
9023
+ # next_token: "OrchestrationToken",
9024
+ # max_results: 1,
9025
+ # tags: {
9026
+ # "TagKey" => "TagValue",
9027
+ # },
9028
+ # request_origin: "OrchestrationNameString",
9029
+ # })
9030
+ #
9031
+ # @example Response structure
9032
+ #
9033
+ # resp.ids #=> Array
9034
+ # resp.ids[0] #=> String
9035
+ # resp.sessions #=> Array
9036
+ # resp.sessions[0].id #=> String
9037
+ # resp.sessions[0].created_on #=> Time
9038
+ # resp.sessions[0].status #=> String, one of "PROVISIONING", "READY", "FAILED", "TIMEOUT", "STOPPING", "STOPPED"
9039
+ # resp.sessions[0].error_message #=> String
9040
+ # resp.sessions[0].description #=> String
9041
+ # resp.sessions[0].role #=> String
9042
+ # resp.sessions[0].command.name #=> String
9043
+ # resp.sessions[0].command.python_version #=> String
9044
+ # resp.sessions[0].default_arguments #=> Hash
9045
+ # resp.sessions[0].default_arguments["OrchestrationNameString"] #=> String
9046
+ # resp.sessions[0].connections.connections #=> Array
9047
+ # resp.sessions[0].connections.connections[0] #=> String
9048
+ # resp.sessions[0].progress #=> Float
9049
+ # resp.sessions[0].max_capacity #=> Float
9050
+ # resp.sessions[0].security_configuration #=> String
9051
+ # resp.sessions[0].glue_version #=> String
9052
+ # resp.next_token #=> String
9053
+ #
9054
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListSessions AWS API Documentation
9055
+ #
9056
+ # @overload list_sessions(params = {})
9057
+ # @param [Hash] params ({})
9058
+ def list_sessions(params = {}, options = {})
9059
+ req = build_request(:list_sessions, params)
9060
+ req.send_request(options)
9061
+ end
9062
+
9063
+ # Lists statements for the session.
9064
+ #
9065
+ # @option params [required, String] :session_id
9066
+ # The Session ID of the statements.
9067
+ #
9068
+ # @option params [String] :request_origin
9069
+ # The origin of the request to list statements.
9070
+ #
9071
+ # @option params [String] :next_token
9072
+ #
9073
+ # @return [Types::ListStatementsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9074
+ #
9075
+ # * {Types::ListStatementsResponse#statements #statements} => Array&lt;Types::Statement&gt;
9076
+ # * {Types::ListStatementsResponse#next_token #next_token} => String
9077
+ #
9078
+ # @example Request syntax with placeholder values
9079
+ #
9080
+ # resp = client.list_statements({
9081
+ # session_id: "NameString", # required
9082
+ # request_origin: "OrchestrationNameString",
9083
+ # next_token: "OrchestrationToken",
9084
+ # })
9085
+ #
9086
+ # @example Response structure
9087
+ #
9088
+ # resp.statements #=> Array
9089
+ # resp.statements[0].id #=> Integer
9090
+ # resp.statements[0].code #=> String
9091
+ # resp.statements[0].state #=> String, one of "WAITING", "RUNNING", "AVAILABLE", "CANCELLING", "CANCELLED", "ERROR"
9092
+ # resp.statements[0].output.data.text_plain #=> String
9093
+ # resp.statements[0].output.execution_count #=> Integer
9094
+ # resp.statements[0].output.status #=> String, one of "WAITING", "RUNNING", "AVAILABLE", "CANCELLING", "CANCELLED", "ERROR"
9095
+ # resp.statements[0].output.error_name #=> String
9096
+ # resp.statements[0].output.error_value #=> String
9097
+ # resp.statements[0].output.traceback #=> Array
9098
+ # resp.statements[0].output.traceback[0] #=> String
9099
+ # resp.statements[0].progress #=> Float
9100
+ # resp.statements[0].started_on #=> Integer
9101
+ # resp.statements[0].completed_on #=> Integer
9102
+ # resp.next_token #=> String
9103
+ #
9104
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListStatements AWS API Documentation
9105
+ #
9106
+ # @overload list_statements(params = {})
9107
+ # @param [Hash] params ({})
9108
+ def list_statements(params = {}, options = {})
9109
+ req = build_request(:list_statements, params)
9110
+ req.send_request(options)
9111
+ end
9112
+
8712
9113
  # Retrieves the names of all trigger resources in this Amazon Web
8713
9114
  # Services account, or the resources with the specified tag. This
8714
9115
  # operation allows you to see which resources are available in your
@@ -9285,6 +9686,42 @@ module Aws::Glue
9285
9686
  req.send_request(options)
9286
9687
  end
9287
9688
 
9689
+ # Executes the statement.
9690
+ #
9691
+ # @option params [required, String] :session_id
9692
+ # The Session Id of the statement to be run.
9693
+ #
9694
+ # @option params [required, String] :code
9695
+ # The statement code to be run.
9696
+ #
9697
+ # @option params [String] :request_origin
9698
+ # The origin of the request.
9699
+ #
9700
+ # @return [Types::RunStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9701
+ #
9702
+ # * {Types::RunStatementResponse#id #id} => Integer
9703
+ #
9704
+ # @example Request syntax with placeholder values
9705
+ #
9706
+ # resp = client.run_statement({
9707
+ # session_id: "NameString", # required
9708
+ # code: "OrchestrationStatementCodeString", # required
9709
+ # request_origin: "OrchestrationNameString",
9710
+ # })
9711
+ #
9712
+ # @example Response structure
9713
+ #
9714
+ # resp.id #=> Integer
9715
+ #
9716
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/RunStatement AWS API Documentation
9717
+ #
9718
+ # @overload run_statement(params = {})
9719
+ # @param [Hash] params ({})
9720
+ def run_statement(params = {}, options = {})
9721
+ req = build_request(:run_statement, params)
9722
+ req.send_request(options)
9723
+ end
9724
+
9288
9725
  # Searches a set of tables based on properties in the table metadata as
9289
9726
  # well as on the parent database. You can search against text or filter
9290
9727
  # conditions.
@@ -9437,6 +9874,7 @@ module Aws::Glue
9437
9874
  # resp.table_list[0].target_table.database_name #=> String
9438
9875
  # resp.table_list[0].target_table.name #=> String
9439
9876
  # resp.table_list[0].catalog_id #=> String
9877
+ # resp.table_list[0].version_id #=> String
9440
9878
  #
9441
9879
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTables AWS API Documentation
9442
9880
  #
@@ -9972,6 +10410,38 @@ module Aws::Glue
9972
10410
  req.send_request(options)
9973
10411
  end
9974
10412
 
10413
+ # Stops the session.
10414
+ #
10415
+ # @option params [required, String] :id
10416
+ # The ID of the session to be stopped.
10417
+ #
10418
+ # @option params [String] :request_origin
10419
+ # The origin of the request.
10420
+ #
10421
+ # @return [Types::StopSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10422
+ #
10423
+ # * {Types::StopSessionResponse#id #id} => String
10424
+ #
10425
+ # @example Request syntax with placeholder values
10426
+ #
10427
+ # resp = client.stop_session({
10428
+ # id: "NameString", # required
10429
+ # request_origin: "OrchestrationNameString",
10430
+ # })
10431
+ #
10432
+ # @example Response structure
10433
+ #
10434
+ # resp.id #=> String
10435
+ #
10436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopSession AWS API Documentation
10437
+ #
10438
+ # @overload stop_session(params = {})
10439
+ # @param [Hash] params ({})
10440
+ def stop_session(params = {}, options = {})
10441
+ req = build_request(:stop_session, params)
10442
+ req.send_request(options)
10443
+ end
10444
+
9975
10445
  # Stops a specified trigger.
9976
10446
  #
9977
10447
  # @option params [required, String] :name
@@ -11227,6 +11697,8 @@ module Aws::Glue
11227
11697
  # @option params [String] :transaction_id
11228
11698
  # The transaction ID at which to update the table contents.
11229
11699
  #
11700
+ # @option params [String] :version_id
11701
+ #
11230
11702
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
11231
11703
  #
11232
11704
  # @example Request syntax with placeholder values
@@ -11317,6 +11789,7 @@ module Aws::Glue
11317
11789
  # },
11318
11790
  # skip_archive: false,
11319
11791
  # transaction_id: "TransactionIdString",
11792
+ # version_id: "VersionString",
11320
11793
  # })
11321
11794
  #
11322
11795
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateTable AWS API Documentation
@@ -11526,7 +11999,7 @@ module Aws::Glue
11526
11999
  params: params,
11527
12000
  config: config)
11528
12001
  context[:gem_name] = 'aws-sdk-glue'
11529
- context[:gem_version] = '1.105.0'
12002
+ context[:gem_version] = '1.108.0'
11530
12003
  Seahorse::Client::Request.new(handlers, context)
11531
12004
  end
11532
12005