aws-sdk-emrserverless 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-emrserverless/client.rb +9 -7
- data/lib/aws-sdk-emrserverless/client_api.rb +1 -0
- data/lib/aws-sdk-emrserverless/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-emrserverless/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-emrserverless/types.rb +10 -4
- data/lib/aws-sdk-emrserverless.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcc48e158d5cd56b7daa62ed525844fda0be0b2120985b6708ae9dde7ad94c2d
|
4
|
+
data.tar.gz: 2773d06fdaf913d51510e83192171fe79de81045b6b7809ad15156bb03b0df1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d6bfe4cbb5e417c213aa9db67eb83849fe19b68ec4be063fa72480758c34c5485cbf0997374efc43659ad1a73d183aca5c74c3e866172c890976b6667e0285
|
7
|
+
data.tar.gz: 03fc24f1c2a26362a0139a02abb1d361d609e83f409561de953beda9e66b50238b324a9eaffd42ad14c4e47dd324443831b29e78ecefd0ede0788e324ddeb74a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.6.0 (2023-04-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release extends GetJobRun API to return job run timeout (executionTimeoutMinutes) specified during StartJobRun call (or default timeout of 720 minutes if none was specified).
|
8
|
+
|
4
9
|
1.5.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
@@ -702,6 +702,7 @@ module Aws::EMRServerless
|
|
702
702
|
# resp.job_run.network_configuration.security_group_ids #=> Array
|
703
703
|
# resp.job_run.network_configuration.security_group_ids[0] #=> String
|
704
704
|
# resp.job_run.total_execution_duration_seconds #=> Integer
|
705
|
+
# resp.job_run.execution_timeout_minutes #=> Integer
|
705
706
|
#
|
706
707
|
# @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetJobRun AWS API Documentation
|
707
708
|
#
|
@@ -1008,12 +1009,13 @@ module Aws::EMRServerless
|
|
1008
1009
|
req.send_request(options)
|
1009
1010
|
end
|
1010
1011
|
|
1011
|
-
# Assigns tags to resources. A tag is a label that you assign to an
|
1012
|
-
# resource. Each tag consists of a key and an
|
1013
|
-
# which you define. Tags enable you to
|
1014
|
-
#
|
1015
|
-
#
|
1016
|
-
#
|
1012
|
+
# Assigns tags to resources. A tag is a label that you assign to an
|
1013
|
+
# Amazon Web Services resource. Each tag consists of a key and an
|
1014
|
+
# optional value, both of which you define. Tags enable you to
|
1015
|
+
# categorize your Amazon Web Services resources by attributes such as
|
1016
|
+
# purpose, owner, or environment. When you have many resources of the
|
1017
|
+
# same type, you can quickly identify a specific resource based on the
|
1018
|
+
# tags you've assigned to it.
|
1017
1019
|
#
|
1018
1020
|
# @option params [required, String] :resource_arn
|
1019
1021
|
# The Amazon Resource Name (ARN) that identifies the resource to list
|
@@ -1226,7 +1228,7 @@ module Aws::EMRServerless
|
|
1226
1228
|
params: params,
|
1227
1229
|
config: config)
|
1228
1230
|
context[:gem_name] = 'aws-sdk-emrserverless'
|
1229
|
-
context[:gem_version] = '1.
|
1231
|
+
context[:gem_version] = '1.6.0'
|
1230
1232
|
Seahorse::Client::Request.new(handlers, context)
|
1231
1233
|
end
|
1232
1234
|
|
@@ -291,6 +291,7 @@ module Aws::EMRServerless
|
|
291
291
|
JobRun.add_member(:total_resource_utilization, Shapes::ShapeRef.new(shape: TotalResourceUtilization, location_name: "totalResourceUtilization"))
|
292
292
|
JobRun.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
293
293
|
JobRun.add_member(:total_execution_duration_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "totalExecutionDurationSeconds"))
|
294
|
+
JobRun.add_member(:execution_timeout_minutes, Shapes::ShapeRef.new(shape: Duration, location_name: "executionTimeoutMinutes", metadata: {"box"=>true}))
|
294
295
|
JobRun.struct_class = Types::JobRun
|
295
296
|
|
296
297
|
JobRunStateSet.member = Shapes::ShapeRef.new(shape: JobRunState)
|
@@ -50,9 +50,6 @@ module Aws::EMRServerless
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::EMRServerless
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -721,6 +721,11 @@ module Aws::EMRServerless
|
|
721
721
|
# state.
|
722
722
|
# @return [Integer]
|
723
723
|
#
|
724
|
+
# @!attribute [rw] execution_timeout_minutes
|
725
|
+
# Maximum duration for the job run to run. If the job run runs beyond
|
726
|
+
# this duration, it will be automatically cancelled.
|
727
|
+
# @return [Integer]
|
728
|
+
#
|
724
729
|
# @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRun AWS API Documentation
|
725
730
|
#
|
726
731
|
class JobRun < Struct.new(
|
@@ -740,7 +745,8 @@ module Aws::EMRServerless
|
|
740
745
|
:tags,
|
741
746
|
:total_resource_utilization,
|
742
747
|
:network_configuration,
|
743
|
-
:total_execution_duration_seconds
|
748
|
+
:total_execution_duration_seconds,
|
749
|
+
:execution_timeout_minutes)
|
744
750
|
SENSITIVE = []
|
745
751
|
include Aws::Structure
|
746
752
|
end
|
@@ -1175,7 +1181,7 @@ module Aws::EMRServerless
|
|
1175
1181
|
# @return [String]
|
1176
1182
|
#
|
1177
1183
|
# @!attribute [rw] arn
|
1178
|
-
#
|
1184
|
+
# This output displays the ARN of the job run..
|
1179
1185
|
# @return [String]
|
1180
1186
|
#
|
1181
1187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/StartJobRunResponse AWS API Documentation
|
@@ -1366,8 +1372,8 @@ module Aws::EMRServerless
|
|
1366
1372
|
include Aws::Structure
|
1367
1373
|
end
|
1368
1374
|
|
1369
|
-
# The input fails to satisfy the constraints specified by an
|
1370
|
-
# service.
|
1375
|
+
# The input fails to satisfy the constraints specified by an Amazon Web
|
1376
|
+
# Services service.
|
1371
1377
|
#
|
1372
1378
|
# @!attribute [rw] message
|
1373
1379
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-emrserverless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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: 2023-
|
11
|
+
date: 2023-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|