aws-sdk-glue 1.107.0 → 1.108.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,20 +114,35 @@ module Aws::Glue
114
114
  include Aws::Structure
115
115
  end
116
116
 
117
+ # A structure containing information for audit.
118
+ #
117
119
  # @note When making an API call, you may pass AuditContext
118
120
  # data as a hash:
119
121
  #
120
122
  # {
121
123
  # additional_audit_context: "AuditContextString",
124
+ # requested_columns: ["ColumnNameString"],
125
+ # all_columns_requested: false,
122
126
  # }
123
127
  #
124
128
  # @!attribute [rw] additional_audit_context
129
+ # The context for the audit..
125
130
  # @return [String]
126
131
  #
132
+ # @!attribute [rw] requested_columns
133
+ # The requested columns for audit.
134
+ # @return [Array<String>]
135
+ #
136
+ # @!attribute [rw] all_columns_requested
137
+ # All columns request for audit.
138
+ # @return [Boolean]
139
+ #
127
140
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/AuditContext AWS API Documentation
128
141
  #
129
142
  class AuditContext < Struct.new(
130
- :additional_audit_context)
143
+ :additional_audit_context,
144
+ :requested_columns,
145
+ :all_columns_requested)
131
146
  SENSITIVE = []
132
147
  include Aws::Structure
133
148
  end
@@ -1392,6 +1407,41 @@ module Aws::Glue
1392
1407
  include Aws::Structure
1393
1408
  end
1394
1409
 
1410
+ # @note When making an API call, you may pass CancelStatementRequest
1411
+ # data as a hash:
1412
+ #
1413
+ # {
1414
+ # session_id: "NameString", # required
1415
+ # id: 1, # required
1416
+ # request_origin: "OrchestrationNameString",
1417
+ # }
1418
+ #
1419
+ # @!attribute [rw] session_id
1420
+ # The Session ID of the statement to be cancelled.
1421
+ # @return [String]
1422
+ #
1423
+ # @!attribute [rw] id
1424
+ # The ID of the statement to be cancelled.
1425
+ # @return [Integer]
1426
+ #
1427
+ # @!attribute [rw] request_origin
1428
+ # The origin of the request to cancel the statement.
1429
+ # @return [String]
1430
+ #
1431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CancelStatementRequest AWS API Documentation
1432
+ #
1433
+ class CancelStatementRequest < Struct.new(
1434
+ :session_id,
1435
+ :id,
1436
+ :request_origin)
1437
+ SENSITIVE = []
1438
+ include Aws::Structure
1439
+ end
1440
+
1441
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CancelStatementResponse AWS API Documentation
1442
+ #
1443
+ class CancelStatementResponse < Aws::EmptyStructure; end
1444
+
1395
1445
  # Specifies a table definition in the Glue Data Catalog.
1396
1446
  #
1397
1447
  # @note When making an API call, you may pass CatalogEntry
@@ -4689,6 +4739,137 @@ module Aws::Glue
4689
4739
  include Aws::Structure
4690
4740
  end
4691
4741
 
4742
+ # Request to create a new session.
4743
+ #
4744
+ # @note When making an API call, you may pass CreateSessionRequest
4745
+ # data as a hash:
4746
+ #
4747
+ # {
4748
+ # id: "NameString", # required
4749
+ # description: "DescriptionString",
4750
+ # role: "OrchestrationRoleArn", # required
4751
+ # command: { # required
4752
+ # name: "NameString",
4753
+ # python_version: "PythonVersionString",
4754
+ # },
4755
+ # timeout: 1,
4756
+ # idle_timeout: 1,
4757
+ # default_arguments: {
4758
+ # "OrchestrationNameString" => "OrchestrationArgumentsValue",
4759
+ # },
4760
+ # connections: {
4761
+ # connections: ["GenericString"],
4762
+ # },
4763
+ # max_capacity: 1.0,
4764
+ # number_of_workers: 1,
4765
+ # worker_type: "Standard", # accepts Standard, G.1X, G.2X
4766
+ # security_configuration: "NameString",
4767
+ # glue_version: "GlueVersionString",
4768
+ # tags: {
4769
+ # "TagKey" => "TagValue",
4770
+ # },
4771
+ # request_origin: "OrchestrationNameString",
4772
+ # }
4773
+ #
4774
+ # @!attribute [rw] id
4775
+ # The ID of the session request.
4776
+ # @return [String]
4777
+ #
4778
+ # @!attribute [rw] description
4779
+ # The description of the session.
4780
+ # @return [String]
4781
+ #
4782
+ # @!attribute [rw] role
4783
+ # The IAM Role ARN
4784
+ # @return [String]
4785
+ #
4786
+ # @!attribute [rw] command
4787
+ # The `SessionCommand` that runs the job.
4788
+ # @return [Types::SessionCommand]
4789
+ #
4790
+ # @!attribute [rw] timeout
4791
+ # The number of seconds before request times out.
4792
+ # @return [Integer]
4793
+ #
4794
+ # @!attribute [rw] idle_timeout
4795
+ # The number of seconds when idle before request times out.
4796
+ # @return [Integer]
4797
+ #
4798
+ # @!attribute [rw] default_arguments
4799
+ # A map array of key-value pairs. Max is 75 pairs.
4800
+ # @return [Hash<String,String>]
4801
+ #
4802
+ # @!attribute [rw] connections
4803
+ # The number of connections to use for the session.
4804
+ # @return [Types::ConnectionsList]
4805
+ #
4806
+ # @!attribute [rw] max_capacity
4807
+ # The number of AWS Glue data processing units (DPUs) that can be
4808
+ # allocated when the job runs. A DPU is a relative measure of
4809
+ # processing power that consists of 4 vCPUs of compute capacity and 16
4810
+ # GB memory.
4811
+ # @return [Float]
4812
+ #
4813
+ # @!attribute [rw] number_of_workers
4814
+ # The number of workers to use for the session.
4815
+ # @return [Integer]
4816
+ #
4817
+ # @!attribute [rw] worker_type
4818
+ # The Worker Type. Can be one of G.1X, G.2X, Standard
4819
+ # @return [String]
4820
+ #
4821
+ # @!attribute [rw] security_configuration
4822
+ # The name of the SecurityConfiguration structure to be used with the
4823
+ # session
4824
+ # @return [String]
4825
+ #
4826
+ # @!attribute [rw] glue_version
4827
+ # The Glue version determines the versions of Apache Spark and Python
4828
+ # that AWS Glue supports. The GlueVersion must be greater than 2.0.
4829
+ # @return [String]
4830
+ #
4831
+ # @!attribute [rw] tags
4832
+ # The map of key value pairs (tags) belonging to the session.
4833
+ # @return [Hash<String,String>]
4834
+ #
4835
+ # @!attribute [rw] request_origin
4836
+ # The origin of the request.
4837
+ # @return [String]
4838
+ #
4839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateSessionRequest AWS API Documentation
4840
+ #
4841
+ class CreateSessionRequest < Struct.new(
4842
+ :id,
4843
+ :description,
4844
+ :role,
4845
+ :command,
4846
+ :timeout,
4847
+ :idle_timeout,
4848
+ :default_arguments,
4849
+ :connections,
4850
+ :max_capacity,
4851
+ :number_of_workers,
4852
+ :worker_type,
4853
+ :security_configuration,
4854
+ :glue_version,
4855
+ :tags,
4856
+ :request_origin)
4857
+ SENSITIVE = []
4858
+ include Aws::Structure
4859
+ end
4860
+
4861
+ # @!attribute [rw] session
4862
+ # Returns the session object in the response.
4863
+ # @return [Types::Session]
4864
+ #
4865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateSessionResponse AWS API Documentation
4866
+ #
4867
+ class CreateSessionResponse < Struct.new(
4868
+ :session)
4869
+ SENSITIVE = []
4870
+ include Aws::Structure
4871
+ end
4872
+
4692
4873
  # @note When making an API call, you may pass CreateTableRequest
4693
4874
  # data as a hash:
4694
4875
  #
@@ -6085,6 +6266,43 @@ module Aws::Glue
6085
6266
  #
6086
6267
  class DeleteSecurityConfigurationResponse < Aws::EmptyStructure; end
6087
6268
 
6269
+ # @note When making an API call, you may pass DeleteSessionRequest
6270
+ # data as a hash:
6271
+ #
6272
+ # {
6273
+ # id: "NameString", # required
6274
+ # request_origin: "OrchestrationNameString",
6275
+ # }
6276
+ #
6277
+ # @!attribute [rw] id
6278
+ # The ID of the session to be deleted.
6279
+ # @return [String]
6280
+ #
6281
+ # @!attribute [rw] request_origin
6282
+ # The name of the origin of the delete session request.
6283
+ # @return [String]
6284
+ #
6285
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteSessionRequest AWS API Documentation
6286
+ #
6287
+ class DeleteSessionRequest < Struct.new(
6288
+ :id,
6289
+ :request_origin)
6290
+ SENSITIVE = []
6291
+ include Aws::Structure
6292
+ end
6293
+
6294
+ # @!attribute [rw] id
6295
+ # Returns the ID of the deleted session.
6296
+ # @return [String]
6297
+ #
6298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteSessionResponse AWS API Documentation
6299
+ #
6300
+ class DeleteSessionResponse < Struct.new(
6301
+ :id)
6302
+ SENSITIVE = []
6303
+ include Aws::Structure
6304
+ end
6305
+
6088
6306
  # @note When making an API call, you may pass DeleteTableRequest
6089
6307
  # data as a hash:
6090
6308
  #
@@ -9592,6 +9810,86 @@ module Aws::Glue
9592
9810
  include Aws::Structure
9593
9811
  end
9594
9812
 
9813
+ # @note When making an API call, you may pass GetSessionRequest
9814
+ # data as a hash:
9815
+ #
9816
+ # {
9817
+ # id: "NameString", # required
9818
+ # request_origin: "OrchestrationNameString",
9819
+ # }
9820
+ #
9821
+ # @!attribute [rw] id
9822
+ # The ID of the session.
9823
+ # @return [String]
9824
+ #
9825
+ # @!attribute [rw] request_origin
9826
+ # The origin of the request.
9827
+ # @return [String]
9828
+ #
9829
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetSessionRequest AWS API Documentation
9830
+ #
9831
+ class GetSessionRequest < Struct.new(
9832
+ :id,
9833
+ :request_origin)
9834
+ SENSITIVE = []
9835
+ include Aws::Structure
9836
+ end
9837
+
9838
+ # @!attribute [rw] session
9839
+ # The session object is returned in the response.
9840
+ # @return [Types::Session]
9841
+ #
9842
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetSessionResponse AWS API Documentation
9843
+ #
9844
+ class GetSessionResponse < Struct.new(
9845
+ :session)
9846
+ SENSITIVE = []
9847
+ include Aws::Structure
9848
+ end
9849
+
9850
+ # @note When making an API call, you may pass GetStatementRequest
9851
+ # data as a hash:
9852
+ #
9853
+ # {
9854
+ # session_id: "NameString", # required
9855
+ # id: 1, # required
9856
+ # request_origin: "OrchestrationNameString",
9857
+ # }
9858
+ #
9859
+ # @!attribute [rw] session_id
9860
+ # The Session ID of the statement.
9861
+ # @return [String]
9862
+ #
9863
+ # @!attribute [rw] id
9864
+ # The Id of the statement.
9865
+ # @return [Integer]
9866
+ #
9867
+ # @!attribute [rw] request_origin
9868
+ # The origin of the request.
9869
+ # @return [String]
9870
+ #
9871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetStatementRequest AWS API Documentation
9872
+ #
9873
+ class GetStatementRequest < Struct.new(
9874
+ :session_id,
9875
+ :id,
9876
+ :request_origin)
9877
+ SENSITIVE = []
9878
+ include Aws::Structure
9879
+ end
9880
+
9881
+ # @!attribute [rw] statement
9882
+ # Returns the statement.
9883
+ # @return [Types::Statement]
9884
+ #
9885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetStatementResponse AWS API Documentation
9886
+ #
9887
+ class GetStatementResponse < Struct.new(
9888
+ :statement)
9889
+ SENSITIVE = []
9890
+ include Aws::Structure
9891
+ end
9892
+
9595
9893
  # @note When making an API call, you may pass GetTableRequest
9596
9894
  # data as a hash:
9597
9895
  #
@@ -9973,6 +10271,8 @@ module Aws::Glue
9973
10271
  # partition_values: ["ValueString"], # required
9974
10272
  # audit_context: {
9975
10273
  # additional_audit_context: "AuditContextString",
10274
+ # requested_columns: ["ColumnNameString"],
10275
+ # all_columns_requested: false,
9976
10276
  # },
9977
10277
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
9978
10278
  # }
@@ -9990,6 +10290,7 @@ module Aws::Glue
9990
10290
  # @return [Array<String>]
9991
10291
  #
9992
10292
  # @!attribute [rw] audit_context
10293
+ # A structure containing information for audit.
9993
10294
  # @return [Types::AuditContext]
9994
10295
  #
9995
10296
  # @!attribute [rw] supported_permission_types
@@ -10038,6 +10339,8 @@ module Aws::Glue
10038
10339
  # expression: "PredicateString",
10039
10340
  # audit_context: {
10040
10341
  # additional_audit_context: "AuditContextString",
10342
+ # requested_columns: ["ColumnNameString"],
10343
+ # all_columns_requested: false,
10041
10344
  # },
10042
10345
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
10043
10346
  # next_token: "Token",
@@ -10061,6 +10364,7 @@ module Aws::Glue
10061
10364
  # @return [String]
10062
10365
  #
10063
10366
  # @!attribute [rw] audit_context
10367
+ # A structure containing information for audit.
10064
10368
  # @return [Types::AuditContext]
10065
10369
  #
10066
10370
  # @!attribute [rw] supported_permission_types
@@ -10117,6 +10421,8 @@ module Aws::Glue
10117
10421
  # name: "NameString", # required
10118
10422
  # audit_context: {
10119
10423
  # additional_audit_context: "AuditContextString",
10424
+ # requested_columns: ["ColumnNameString"],
10425
+ # all_columns_requested: false,
10120
10426
  # },
10121
10427
  # supported_permission_types: ["COLUMN_PERMISSION"], # required, accepts COLUMN_PERMISSION, CELL_FILTER_PERMISSION
10122
10428
  # }
@@ -10131,6 +10437,7 @@ module Aws::Glue
10131
10437
  # @return [String]
10132
10438
  #
10133
10439
  # @!attribute [rw] audit_context
10440
+ # A structure containing information for audit.
10134
10441
  # @return [Types::AuditContext]
10135
10442
  #
10136
10443
  # @!attribute [rw] supported_permission_types
@@ -10460,7 +10767,7 @@ module Aws::Glue
10460
10767
  # An encryption operation failed.
10461
10768
  #
10462
10769
  # @!attribute [rw] message
10463
- # A message describing the problem.
10770
+ # The message describing the problem.
10464
10771
  # @return [String]
10465
10772
  #
10466
10773
  # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GlueEncryptionException AWS API Documentation
@@ -10621,6 +10928,20 @@ module Aws::Glue
10621
10928
  include Aws::Structure
10622
10929
  end
10623
10930
 
10931
+ # The session is in an invalid state to perform a requested operation.
10932
+ #
10933
+ # @!attribute [rw] message
10934
+ # A message describing the problem.
10935
+ # @return [String]
10936
+ #
10937
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/IllegalSessionStateException AWS API Documentation
10938
+ #
10939
+ class IllegalSessionStateException < Struct.new(
10940
+ :message)
10941
+ SENSITIVE = []
10942
+ include Aws::Structure
10943
+ end
10944
+
10624
10945
  # The workflow is in an invalid state to perform a requested operation.
10625
10946
  #
10626
10947
  # @!attribute [rw] message
@@ -12167,6 +12488,115 @@ module Aws::Glue
12167
12488
  include Aws::Structure
12168
12489
  end
12169
12490
 
12491
+ # @note When making an API call, you may pass ListSessionsRequest
12492
+ # data as a hash:
12493
+ #
12494
+ # {
12495
+ # next_token: "OrchestrationToken",
12496
+ # max_results: 1,
12497
+ # tags: {
12498
+ # "TagKey" => "TagValue",
12499
+ # },
12500
+ # request_origin: "OrchestrationNameString",
12501
+ # }
12502
+ #
12503
+ # @!attribute [rw] next_token
12504
+ # The token for the next set of results, or null if there are no more
12505
+ # result.
12506
+ # @return [String]
12507
+ #
12508
+ # @!attribute [rw] max_results
12509
+ # The maximum number of results.
12510
+ # @return [Integer]
12511
+ #
12512
+ # @!attribute [rw] tags
12513
+ # Tags belonging to the session.
12514
+ # @return [Hash<String,String>]
12515
+ #
12516
+ # @!attribute [rw] request_origin
12517
+ # The origin of the request.
12518
+ # @return [String]
12519
+ #
12520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListSessionsRequest AWS API Documentation
12521
+ #
12522
+ class ListSessionsRequest < Struct.new(
12523
+ :next_token,
12524
+ :max_results,
12525
+ :tags,
12526
+ :request_origin)
12527
+ SENSITIVE = []
12528
+ include Aws::Structure
12529
+ end
12530
+
12531
+ # @!attribute [rw] ids
12532
+ # Returns the Id of the session.
12533
+ # @return [Array<String>]
12534
+ #
12535
+ # @!attribute [rw] sessions
12536
+ # Returns the session object.
12537
+ # @return [Array<Types::Session>]
12538
+ #
12539
+ # @!attribute [rw] next_token
12540
+ # The token for the next set of results, or null if there are no more
12541
+ # result.
12542
+ # @return [String]
12543
+ #
12544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListSessionsResponse AWS API Documentation
12545
+ #
12546
+ class ListSessionsResponse < Struct.new(
12547
+ :ids,
12548
+ :sessions,
12549
+ :next_token)
12550
+ SENSITIVE = []
12551
+ include Aws::Structure
12552
+ end
12553
+
12554
+ # @note When making an API call, you may pass ListStatementsRequest
12555
+ # data as a hash:
12556
+ #
12557
+ # {
12558
+ # session_id: "NameString", # required
12559
+ # request_origin: "OrchestrationNameString",
12560
+ # next_token: "OrchestrationToken",
12561
+ # }
12562
+ #
12563
+ # @!attribute [rw] session_id
12564
+ # The Session ID of the statements.
12565
+ # @return [String]
12566
+ #
12567
+ # @!attribute [rw] request_origin
12568
+ # The origin of the request to list statements.
12569
+ # @return [String]
12570
+ #
12571
+ # @!attribute [rw] next_token
12572
+ # @return [String]
12573
+ #
12574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListStatementsRequest AWS API Documentation
12575
+ #
12576
+ class ListStatementsRequest < Struct.new(
12577
+ :session_id,
12578
+ :request_origin,
12579
+ :next_token)
12580
+ SENSITIVE = []
12581
+ include Aws::Structure
12582
+ end
12583
+
12584
+ # @!attribute [rw] statements
12585
+ # Returns the list of statements.
12586
+ # @return [Array<Types::Statement>]
12587
+ #
12588
+ # @!attribute [rw] next_token
12589
+ # @return [String]
12590
+ #
12591
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListStatementsResponse AWS API Documentation
12592
+ #
12593
+ class ListStatementsResponse < Struct.new(
12594
+ :statements,
12595
+ :next_token)
12596
+ SENSITIVE = []
12597
+ include Aws::Structure
12598
+ end
12599
+
12170
12600
  # @note When making an API call, you may pass ListTriggersRequest
12171
12601
  # data as a hash:
12172
12602
  #
@@ -14059,6 +14489,49 @@ module Aws::Glue
14059
14489
  include Aws::Structure
14060
14490
  end
14061
14491
 
14492
+ # @note When making an API call, you may pass RunStatementRequest
14493
+ # data as a hash:
14494
+ #
14495
+ # {
14496
+ # session_id: "NameString", # required
14497
+ # code: "OrchestrationStatementCodeString", # required
14498
+ # request_origin: "OrchestrationNameString",
14499
+ # }
14500
+ #
14501
+ # @!attribute [rw] session_id
14502
+ # The Session Id of the statement to be run.
14503
+ # @return [String]
14504
+ #
14505
+ # @!attribute [rw] code
14506
+ # The statement code to be run.
14507
+ # @return [String]
14508
+ #
14509
+ # @!attribute [rw] request_origin
14510
+ # The origin of the request.
14511
+ # @return [String]
14512
+ #
14513
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/RunStatementRequest AWS API Documentation
14514
+ #
14515
+ class RunStatementRequest < Struct.new(
14516
+ :session_id,
14517
+ :code,
14518
+ :request_origin)
14519
+ SENSITIVE = []
14520
+ include Aws::Structure
14521
+ end
14522
+
14523
+ # @!attribute [rw] id
14524
+ # Returns the Id of the statement that was run.
14525
+ # @return [Integer]
14526
+ #
14527
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/RunStatementResponse AWS API Documentation
14528
+ #
14529
+ class RunStatementResponse < Struct.new(
14530
+ :id)
14531
+ SENSITIVE = []
14532
+ include Aws::Structure
14533
+ end
14534
+
14062
14535
  # Specifies how Amazon Simple Storage Service (Amazon S3) data should be
14063
14536
  # encrypted.
14064
14537
  #
@@ -14673,6 +15146,115 @@ module Aws::Glue
14673
15146
  include Aws::Structure
14674
15147
  end
14675
15148
 
15149
+ # The period in which a remote Spark runtime environment is running.
15150
+ #
15151
+ # @!attribute [rw] id
15152
+ # The ID of the session.
15153
+ # @return [String]
15154
+ #
15155
+ # @!attribute [rw] created_on
15156
+ # The time and date when the session was created.
15157
+ # @return [Time]
15158
+ #
15159
+ # @!attribute [rw] status
15160
+ # The session status.
15161
+ # @return [String]
15162
+ #
15163
+ # @!attribute [rw] error_message
15164
+ # The error message displayed during the session.
15165
+ # @return [String]
15166
+ #
15167
+ # @!attribute [rw] description
15168
+ # The description of the session.
15169
+ # @return [String]
15170
+ #
15171
+ # @!attribute [rw] role
15172
+ # The name or Amazon Resource Name (ARN) of the IAM role associated
15173
+ # with the Session.
15174
+ # @return [String]
15175
+ #
15176
+ # @!attribute [rw] command
15177
+ # The command object.See SessionCommand.
15178
+ # @return [Types::SessionCommand]
15179
+ #
15180
+ # @!attribute [rw] default_arguments
15181
+ # A map array of key-value pairs. Max is 75 pairs.
15182
+ # @return [Hash<String,String>]
15183
+ #
15184
+ # @!attribute [rw] connections
15185
+ # The number of connections used for the session.
15186
+ # @return [Types::ConnectionsList]
15187
+ #
15188
+ # @!attribute [rw] progress
15189
+ # The code execution progress of the session.
15190
+ # @return [Float]
15191
+ #
15192
+ # @!attribute [rw] max_capacity
15193
+ # The number of AWS Glue data processing units (DPUs) that can be
15194
+ # allocated when the job runs. A DPU is a relative measure of
15195
+ # processing power that consists of 4 vCPUs of compute capacity and 16
15196
+ # GB memory.
15197
+ # @return [Float]
15198
+ #
15199
+ # @!attribute [rw] security_configuration
15200
+ # The name of the SecurityConfiguration structure to be used with the
15201
+ # session.
15202
+ # @return [String]
15203
+ #
15204
+ # @!attribute [rw] glue_version
15205
+ # The Glue version determines the versions of Apache Spark and Python
15206
+ # that AWS Glue supports. The GlueVersion must be greater than 2.0.
15207
+ # @return [String]
15208
+ #
15209
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Session AWS API Documentation
15210
+ #
15211
+ class Session < Struct.new(
15212
+ :id,
15213
+ :created_on,
15214
+ :status,
15215
+ :error_message,
15216
+ :description,
15217
+ :role,
15218
+ :command,
15219
+ :default_arguments,
15220
+ :connections,
15221
+ :progress,
15222
+ :max_capacity,
15223
+ :security_configuration,
15224
+ :glue_version)
15225
+ SENSITIVE = []
15226
+ include Aws::Structure
15227
+ end
15228
+
15229
+ # The `SessionCommand` that runs the job.
15230
+ #
15231
+ # @note When making an API call, you may pass SessionCommand
15232
+ # data as a hash:
15233
+ #
15234
+ # {
15235
+ # name: "NameString",
15236
+ # python_version: "PythonVersionString",
15237
+ # }
15238
+ #
15239
+ # @!attribute [rw] name
15240
+ # Specifies the name of the SessionCommand.Can be 'glueetl' or
15241
+ # 'gluestreaming'.
15242
+ # @return [String]
15243
+ #
15244
+ # @!attribute [rw] python_version
15245
+ # Specifies the Python version. The Python version indicates the
15246
+ # version supported for jobs of type Spark.
15247
+ # @return [String]
15248
+ #
15249
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SessionCommand AWS API Documentation
15250
+ #
15251
+ class SessionCommand < Struct.new(
15252
+ :name,
15253
+ :python_version)
15254
+ SENSITIVE = []
15255
+ include Aws::Structure
15256
+ end
15257
+
14676
15258
  # Specifies skewed values in a table. Skewed values are those that occur
14677
15259
  # with very high frequency.
14678
15260
  #
@@ -15224,6 +15806,104 @@ module Aws::Glue
15224
15806
  include Aws::Structure
15225
15807
  end
15226
15808
 
15809
+ # The statement or request for a particular action to occur in a
15810
+ # session.
15811
+ #
15812
+ # @!attribute [rw] id
15813
+ # The ID of the statement.
15814
+ # @return [Integer]
15815
+ #
15816
+ # @!attribute [rw] code
15817
+ # The execution code of the statement.
15818
+ # @return [String]
15819
+ #
15820
+ # @!attribute [rw] state
15821
+ # The state while request is actioned.
15822
+ # @return [String]
15823
+ #
15824
+ # @!attribute [rw] output
15825
+ # The output in JSON.
15826
+ # @return [Types::StatementOutput]
15827
+ #
15828
+ # @!attribute [rw] progress
15829
+ # The code execution progress.
15830
+ # @return [Float]
15831
+ #
15832
+ # @!attribute [rw] started_on
15833
+ # The unix time and date that the job definition was started.
15834
+ # @return [Integer]
15835
+ #
15836
+ # @!attribute [rw] completed_on
15837
+ # The unix time and date that the job definition was completed.
15838
+ # @return [Integer]
15839
+ #
15840
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Statement AWS API Documentation
15841
+ #
15842
+ class Statement < Struct.new(
15843
+ :id,
15844
+ :code,
15845
+ :state,
15846
+ :output,
15847
+ :progress,
15848
+ :started_on,
15849
+ :completed_on)
15850
+ SENSITIVE = []
15851
+ include Aws::Structure
15852
+ end
15853
+
15854
+ # The code execution output in JSON format.
15855
+ #
15856
+ # @!attribute [rw] data
15857
+ # The code execution output.
15858
+ # @return [Types::StatementOutputData]
15859
+ #
15860
+ # @!attribute [rw] execution_count
15861
+ # The execution count of the output.
15862
+ # @return [Integer]
15863
+ #
15864
+ # @!attribute [rw] status
15865
+ # The status of the code execution output.
15866
+ # @return [String]
15867
+ #
15868
+ # @!attribute [rw] error_name
15869
+ # The name of the error in the output.
15870
+ # @return [String]
15871
+ #
15872
+ # @!attribute [rw] error_value
15873
+ # The error value of the output.
15874
+ # @return [String]
15875
+ #
15876
+ # @!attribute [rw] traceback
15877
+ # The traceback of the output.
15878
+ # @return [Array<String>]
15879
+ #
15880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StatementOutput AWS API Documentation
15881
+ #
15882
+ class StatementOutput < Struct.new(
15883
+ :data,
15884
+ :execution_count,
15885
+ :status,
15886
+ :error_name,
15887
+ :error_value,
15888
+ :traceback)
15889
+ SENSITIVE = []
15890
+ include Aws::Structure
15891
+ end
15892
+
15893
+ # The code execution output in JSON format.
15894
+ #
15895
+ # @!attribute [rw] text_plain
15896
+ # The code execution output in text format.
15897
+ # @return [String]
15898
+ #
15899
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StatementOutputData AWS API Documentation
15900
+ #
15901
+ class StatementOutputData < Struct.new(
15902
+ :text_plain)
15903
+ SENSITIVE = []
15904
+ include Aws::Structure
15905
+ end
15906
+
15227
15907
  # @note When making an API call, you may pass StopCrawlerRequest
15228
15908
  # data as a hash:
15229
15909
  #
@@ -15270,6 +15950,43 @@ module Aws::Glue
15270
15950
  #
15271
15951
  class StopCrawlerScheduleResponse < Aws::EmptyStructure; end
15272
15952
 
15953
+ # @note When making an API call, you may pass StopSessionRequest
15954
+ # data as a hash:
15955
+ #
15956
+ # {
15957
+ # id: "NameString", # required
15958
+ # request_origin: "OrchestrationNameString",
15959
+ # }
15960
+ #
15961
+ # @!attribute [rw] id
15962
+ # The ID of the session to be stopped.
15963
+ # @return [String]
15964
+ #
15965
+ # @!attribute [rw] request_origin
15966
+ # The origin of the request.
15967
+ # @return [String]
15968
+ #
15969
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopSessionRequest AWS API Documentation
15970
+ #
15971
+ class StopSessionRequest < Struct.new(
15972
+ :id,
15973
+ :request_origin)
15974
+ SENSITIVE = []
15975
+ include Aws::Structure
15976
+ end
15977
+
15978
+ # @!attribute [rw] id
15979
+ # Returns the Id of the stopped session.
15980
+ # @return [String]
15981
+ #
15982
+ # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopSessionResponse AWS API Documentation
15983
+ #
15984
+ class StopSessionResponse < Struct.new(
15985
+ :id)
15986
+ SENSITIVE = []
15987
+ include Aws::Structure
15988
+ end
15989
+
15273
15990
  # @note When making an API call, you may pass StopTriggerRequest
15274
15991
  # data as a hash:
15275
15992
  #