aws-sdk-emrserverless 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d3872913661ecc2a1745c33fa561fa268143b6035d1e4f9c6c7007bcf28ec39
4
- data.tar.gz: 31c145276d25a7d6ed6f80f16df5c67c20e2a6656f78841200cb45f184d7da19
3
+ metadata.gz: bcc48e158d5cd56b7daa62ed525844fda0be0b2120985b6708ae9dde7ad94c2d
4
+ data.tar.gz: 2773d06fdaf913d51510e83192171fe79de81045b6b7809ad15156bb03b0df1e
5
5
  SHA512:
6
- metadata.gz: e7b34dcfdc2c0d3d7a1dc64eba8f98838f7065d6cc61a75afd77374806f1784e91002e77ff7157ca492c1a73c85f79f649d64d826624e040a3d709f88ab280c4
7
- data.tar.gz: ee83413d49e4ea55c3f56baf790c795519725529ac56008aaeb68694b96c5373bf1f328203b5dae4404dc5d64f6449d3b28aeff3034a2483cb10f51445506122
6
+ metadata.gz: 61d6bfe4cbb5e417c213aa9db67eb83849fe19b68ec4be063fa72480758c34c5485cbf0997374efc43659ad1a73d183aca5c74c3e866172c890976b6667e0285
7
+ data.tar.gz: 03fc24f1c2a26362a0139a02abb1d361d609e83f409561de953beda9e66b50238b324a9eaffd42ad14c4e47dd324443831b29e78ecefd0ede0788e324ddeb74a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
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
+
9
+ 1.5.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.4.0 (2023-01-05)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
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 AWS
1012
- # resource. Each tag consists of a key and an optional value, both of
1013
- # which you define. Tags enable you to categorize your AWS resources by
1014
- # attributes such as purpose, owner, or environment. When you have many
1015
- # resources of the same type, you can quickly identify a specific
1016
- # resource based on the tags you've assigned to it.
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.4.0'
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?
@@ -9,104 +9,46 @@
9
9
 
10
10
  module Aws::EMRServerless
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- 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"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://emr-serverless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBGSVBTIGNvbXBsaWFudCBl
45
- bmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVlc3Qgd2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bGVzIjpbeyJjb25k
96
- aXRpb25zIjpbeyJmbiI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbdHJ1ZSx7
97
- ImZuIjoiZ2V0QXR0ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRpdGlvblJlc3Vs
98
- dCJ9LCJzdXBwb3J0c0R1YWxTdGFjayJdfV19XSwidHlwZSI6InRyZWUiLCJy
99
- dWxlcyI6W3siY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
100
- dHBzOi8vZW1yLXNlcnZlcmxlc3Mue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3Vs
101
- dCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRl
102
- cnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltd
103
- LCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRp
104
- dGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJv
105
- ciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0
106
- cHM6Ly9lbXItc2VydmVybGVzcy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0
107
- I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0
108
- eXBlIjoiZW5kcG9pbnQifV19XX0=
109
-
110
- JSON
111
53
  end
112
54
  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
- # The output lists the execution role ARN of the job run.
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 AWS
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]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-emrserverless/customizations'
52
52
  # @!group service
53
53
  module Aws::EMRServerless
54
54
 
55
- GEM_VERSION = '1.4.0'
55
+ GEM_VERSION = '1.6.0'
56
56
 
57
57
  end
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.0
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-01-05 00:00:00.000000000 Z
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