aws-sdk-emrcontainers 1.18.0 → 1.19.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: 05610d3640609f7c639706fb2da50b6095a15c05b8cdc314104bed98830465ae
4
- data.tar.gz: 2922a0dbb1ea2a4d251ac9a03ace43e191d33078885e86503dc374bdc041fc71
3
+ metadata.gz: e961f7ae43d0324e9507edb28729ce025b3d8ae4ba1ece5e1d179c507bd0e29a
4
+ data.tar.gz: 3f932da5f078c7a9d64c43080cdb40471bb584b1769ac5448c1b8f3df5dc9bb1
5
5
  SHA512:
6
- metadata.gz: 54551f0a325da2bc5717ff4eb1d8715a0a8b6d3a12b8db7d58c0257dc666a74df70f3d4389316e2ede69ef74f2f10822ed61763e633a656fe186e800d7338187
7
- data.tar.gz: c017686399cf638b3992599e4381c1e231373ecf6d322c6469c65ff0d96409dc6b67ecb8b2e77934398abf814f89617fe56893b3c9fbaff58226ef43003f54d9
6
+ metadata.gz: 582b02c8072bf8814d642eceea15c5e0948cf73eb3c7a76cbf549188e4954e42a878f78e68c69fb17cfe722be8daa4f63ee8e8be5b7ad94738605ed15c5b048d
7
+ data.tar.gz: 02f84d5db3e636d3df0490feb6b64ba0101fe59fd209e2aae774fc68ca4d054e3bbbdff6d4dd2fa5d35fc3fd654f92b3f394d7aa8bdf9f1b390945e804d088c5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2023-02-09)
5
+ ------------------
6
+
7
+ * Feature - EMR on EKS allows configuring retry policies for job runs through the StartJobRun API. Using retry policies, a job cause a driver pod to be restarted automatically if it fails or is deleted. The job's status can be seen in the DescribeJobRun and ListJobRun APIs and monitored using CloudWatch events.
8
+
4
9
  1.18.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.19.0
@@ -509,8 +509,8 @@ module Aws::EMRContainers
509
509
  end
510
510
 
511
511
  # Creates a managed endpoint. A managed endpoint is a gateway that
512
- # connects EMR Studio to Amazon EMR on EKS so that EMR Studio can
513
- # communicate with your virtual cluster.
512
+ # connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR
513
+ # Studio can communicate with your virtual cluster.
514
514
  #
515
515
  # @option params [required, String] :name
516
516
  # The name of the managed endpoint.
@@ -699,8 +699,8 @@ module Aws::EMRContainers
699
699
  end
700
700
 
701
701
  # Deletes a managed endpoint. A managed endpoint is a gateway that
702
- # connects EMR Studio to Amazon EMR on EKS so that EMR Studio can
703
- # communicate with your virtual cluster.
702
+ # connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR
703
+ # Studio can communicate with your virtual cluster.
704
704
  #
705
705
  # @option params [required, String] :id
706
706
  # The ID of the managed endpoint.
@@ -820,6 +820,8 @@ module Aws::EMRContainers
820
820
  # resp.job_run.failure_reason #=> String, one of "INTERNAL_ERROR", "USER_ERROR", "VALIDATION_ERROR", "CLUSTER_UNAVAILABLE"
821
821
  # resp.job_run.tags #=> Hash
822
822
  # resp.job_run.tags["String128"] #=> String
823
+ # resp.job_run.retry_policy_configuration.max_attempts #=> Integer
824
+ # resp.job_run.retry_policy_execution.current_attempt_count #=> Integer
823
825
  #
824
826
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/DescribeJobRun AWS API Documentation
825
827
  #
@@ -893,8 +895,9 @@ module Aws::EMRContainers
893
895
  end
894
896
 
895
897
  # Displays detailed information about a managed endpoint. A managed
896
- # endpoint is a gateway that connects EMR Studio to Amazon EMR on EKS so
897
- # that EMR Studio can communicate with your virtual cluster.
898
+ # endpoint is a gateway that connects Amazon EMR Studio to Amazon EMR on
899
+ # EKS so that Amazon EMR Studio can communicate with your virtual
900
+ # cluster.
898
901
  #
899
902
  # @option params [required, String] :id
900
903
  # This output displays ID of the managed endpoint.
@@ -1074,6 +1077,8 @@ module Aws::EMRContainers
1074
1077
  # resp.job_runs[0].failure_reason #=> String, one of "INTERNAL_ERROR", "USER_ERROR", "VALIDATION_ERROR", "CLUSTER_UNAVAILABLE"
1075
1078
  # resp.job_runs[0].tags #=> Hash
1076
1079
  # resp.job_runs[0].tags["String128"] #=> String
1080
+ # resp.job_runs[0].retry_policy_configuration.max_attempts #=> Integer
1081
+ # resp.job_runs[0].retry_policy_execution.current_attempt_count #=> Integer
1077
1082
  # resp.next_token #=> String
1078
1083
  #
1079
1084
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/ListJobRuns AWS API Documentation
@@ -1165,8 +1170,9 @@ module Aws::EMRContainers
1165
1170
  end
1166
1171
 
1167
1172
  # Lists managed endpoints based on a set of parameters. A managed
1168
- # endpoint is a gateway that connects EMR Studio to Amazon EMR on EKS so
1169
- # that EMR Studio can communicate with your virtual cluster.
1173
+ # endpoint is a gateway that connects Amazon EMR Studio to Amazon EMR on
1174
+ # EKS so that Amazon EMR Studio can communicate with your virtual
1175
+ # cluster.
1170
1176
  #
1171
1177
  # @option params [required, String] :virtual_cluster_id
1172
1178
  # The ID of the virtual cluster.
@@ -1292,8 +1298,8 @@ module Aws::EMRContainers
1292
1298
  # The container provider ID of the virtual cluster.
1293
1299
  #
1294
1300
  # @option params [String] :container_provider_type
1295
- # The container provider type of the virtual cluster. EKS is the only
1296
- # supported type as of now.
1301
+ # The container provider type of the virtual cluster. Amazon EKS is the
1302
+ # only supported type as of now.
1297
1303
  #
1298
1304
  # @option params [Time,DateTime,Date,Integer,String] :created_after
1299
1305
  # The date and time after which the virtual clusters are created.
@@ -1390,6 +1396,9 @@ module Aws::EMRContainers
1390
1396
  # @option params [Hash<String,String>] :job_template_parameters
1391
1397
  # The values of job template parameters to start a job run.
1392
1398
  #
1399
+ # @option params [Types::RetryPolicyConfiguration] :retry_policy_configuration
1400
+ # The retry policy configuration for the job run.
1401
+ #
1393
1402
  # @return [Types::StartJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1394
1403
  #
1395
1404
  # * {Types::StartJobRunResponse#id #id} => String
@@ -1446,6 +1455,9 @@ module Aws::EMRContainers
1446
1455
  # job_template_parameters: {
1447
1456
  # "TemplateParameterName" => "String1024",
1448
1457
  # },
1458
+ # retry_policy_configuration: {
1459
+ # max_attempts: 1, # required
1460
+ # },
1449
1461
  # })
1450
1462
  #
1451
1463
  # @example Response structure
@@ -1464,16 +1476,17 @@ module Aws::EMRContainers
1464
1476
  req.send_request(options)
1465
1477
  end
1466
1478
 
1467
- # Assigns tags to resources. A tag is a label that you assign to an AWS
1468
- # resource. Each tag consists of a key and an optional value, both of
1469
- # which you define. Tags enable you to categorize your AWS resources by
1470
- # attributes such as purpose, owner, or environment. When you have many
1471
- # resources of the same type, you can quickly identify a specific
1472
- # resource based on the tags you've assigned to it. For example, you
1473
- # can define a set of tags for your Amazon EMR on EKS clusters to help
1474
- # you track each cluster's owner and stack level. We recommend that you
1475
- # devise a consistent set of tag keys for each resource type. You can
1476
- # then search and filter the resources based on the tags that you add.
1479
+ # Assigns tags to resources. A tag is a label that you assign to an
1480
+ # Amazon Web Services resource. Each tag consists of a key and an
1481
+ # optional value, both of which you define. Tags enable you to
1482
+ # categorize your Amazon Web Services resources by attributes such as
1483
+ # purpose, owner, or environment. When you have many resources of the
1484
+ # same type, you can quickly identify a specific resource based on the
1485
+ # tags you've assigned to it. For example, you can define a set of tags
1486
+ # for your Amazon EMR on EKS clusters to help you track each cluster's
1487
+ # owner and stack level. We recommend that you devise a consistent set
1488
+ # of tag keys for each resource type. You can then search and filter the
1489
+ # resources based on the tags that you add.
1477
1490
  #
1478
1491
  # @option params [required, String] :resource_arn
1479
1492
  # The ARN of resources.
@@ -1540,7 +1553,7 @@ module Aws::EMRContainers
1540
1553
  params: params,
1541
1554
  config: config)
1542
1555
  context[:gem_name] = 'aws-sdk-emrcontainers'
1543
- context[:gem_version] = '1.18.0'
1556
+ context[:gem_version] = '1.19.0'
1544
1557
  Seahorse::Client::Request.new(handlers, context)
1545
1558
  end
1546
1559
 
@@ -100,6 +100,8 @@ module Aws::EMRContainers
100
100
  ResourceIdString = Shapes::StringShape.new(name: 'ResourceIdString')
101
101
  ResourceNameString = Shapes::StringShape.new(name: 'ResourceNameString')
102
102
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
103
+ RetryPolicyConfiguration = Shapes::StructureShape.new(name: 'RetryPolicyConfiguration')
104
+ RetryPolicyExecution = Shapes::StructureShape.new(name: 'RetryPolicyExecution')
103
105
  RsiArn = Shapes::StringShape.new(name: 'RsiArn')
104
106
  S3MonitoringConfiguration = Shapes::StructureShape.new(name: 'S3MonitoringConfiguration')
105
107
  SensitivePropertiesMap = Shapes::MapShape.new(name: 'SensitivePropertiesMap')
@@ -314,6 +316,8 @@ module Aws::EMRContainers
314
316
  JobRun.add_member(:state_details, Shapes::ShapeRef.new(shape: String256, location_name: "stateDetails"))
315
317
  JobRun.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
316
318
  JobRun.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
319
+ JobRun.add_member(:retry_policy_configuration, Shapes::ShapeRef.new(shape: RetryPolicyConfiguration, location_name: "retryPolicyConfiguration"))
320
+ JobRun.add_member(:retry_policy_execution, Shapes::ShapeRef.new(shape: RetryPolicyExecution, location_name: "retryPolicyExecution"))
317
321
  JobRun.struct_class = Types::JobRun
318
322
 
319
323
  JobRunStates.member = Shapes::ShapeRef.new(shape: JobRunState)
@@ -420,6 +424,12 @@ module Aws::EMRContainers
420
424
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String1024, location_name: "message"))
421
425
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
422
426
 
427
+ RetryPolicyConfiguration.add_member(:max_attempts, Shapes::ShapeRef.new(shape: JavaInteger, required: true, location_name: "maxAttempts"))
428
+ RetryPolicyConfiguration.struct_class = Types::RetryPolicyConfiguration
429
+
430
+ RetryPolicyExecution.add_member(:current_attempt_count, Shapes::ShapeRef.new(shape: JavaInteger, required: true, location_name: "currentAttemptCount"))
431
+ RetryPolicyExecution.struct_class = Types::RetryPolicyExecution
432
+
423
433
  S3MonitoringConfiguration.add_member(:log_uri, Shapes::ShapeRef.new(shape: UriString, required: true, location_name: "logUri"))
424
434
  S3MonitoringConfiguration.struct_class = Types::S3MonitoringConfiguration
425
435
 
@@ -445,6 +455,7 @@ module Aws::EMRContainers
445
455
  StartJobRunRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
446
456
  StartJobRunRequest.add_member(:job_template_id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "jobTemplateId"))
447
457
  StartJobRunRequest.add_member(:job_template_parameters, Shapes::ShapeRef.new(shape: TemplateParameterInputMap, location_name: "jobTemplateParameters"))
458
+ StartJobRunRequest.add_member(:retry_policy_configuration, Shapes::ShapeRef.new(shape: RetryPolicyConfiguration, location_name: "retryPolicyConfiguration"))
448
459
  StartJobRunRequest.struct_class = Types::StartJobRunRequest
449
460
 
450
461
  StartJobRunResponse.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "id"))
@@ -50,6 +50,9 @@ module Aws::EMRContainers
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
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -15,7 +15,7 @@ module Aws::EMRContainers
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
17
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
19
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
20
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
21
  end
@@ -145,7 +145,7 @@ module Aws::EMRContainers
145
145
  # @note ContainerInfo is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ContainerInfo corresponding to the set member.
146
146
  #
147
147
  # @!attribute [rw] eks_info
148
- # The information about the EKS cluster.
148
+ # The information about the Amazon EKS cluster.
149
149
  # @return [Types::EksInfo]
150
150
  #
151
151
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/ContainerInfo AWS API Documentation
@@ -164,8 +164,8 @@ module Aws::EMRContainers
164
164
  # The information about the container provider.
165
165
  #
166
166
  # @!attribute [rw] type
167
- # The type of the container provider. EKS is the only supported type
168
- # as of now.
167
+ # The type of the container provider. Amazon EKS is the only supported
168
+ # type as of now.
169
169
  # @return [String]
170
170
  #
171
171
  # @!attribute [rw] id
@@ -576,10 +576,10 @@ module Aws::EMRContainers
576
576
  include Aws::Structure
577
577
  end
578
578
 
579
- # The information about the EKS cluster.
579
+ # The information about the Amazon EKS cluster.
580
580
  #
581
581
  # @!attribute [rw] namespace
582
- # The namespaces of the EKS cluster.
582
+ # The namespaces of the Amazon EKS cluster.
583
583
  # @return [String]
584
584
  #
585
585
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/EksInfo AWS API Documentation
@@ -796,6 +796,14 @@ module Aws::EMRContainers
796
796
  # The assigned tags of the job run.
797
797
  # @return [Hash<String,String>]
798
798
  #
799
+ # @!attribute [rw] retry_policy_configuration
800
+ # The configuration of the retry policy that the job runs on.
801
+ # @return [Types::RetryPolicyConfiguration]
802
+ #
803
+ # @!attribute [rw] retry_policy_execution
804
+ # The current status of the retry policy executed on the job.
805
+ # @return [Types::RetryPolicyExecution]
806
+ #
799
807
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/JobRun AWS API Documentation
800
808
  #
801
809
  class JobRun < Struct.new(
@@ -814,7 +822,9 @@ module Aws::EMRContainers
814
822
  :finished_at,
815
823
  :state_details,
816
824
  :failure_reason,
817
- :tags)
825
+ :tags,
826
+ :retry_policy_configuration,
827
+ :retry_policy_execution)
818
828
  SENSITIVE = []
819
829
  include Aws::Structure
820
830
  end
@@ -1111,8 +1121,8 @@ module Aws::EMRContainers
1111
1121
  # @return [String]
1112
1122
  #
1113
1123
  # @!attribute [rw] container_provider_type
1114
- # The container provider type of the virtual cluster. EKS is the only
1115
- # supported type as of now.
1124
+ # The container provider type of the virtual cluster. Amazon EKS is
1125
+ # the only supported type as of now.
1116
1126
  # @return [String]
1117
1127
  #
1118
1128
  # @!attribute [rw] created_after
@@ -1286,6 +1296,34 @@ module Aws::EMRContainers
1286
1296
  include Aws::Structure
1287
1297
  end
1288
1298
 
1299
+ # The configuration of the retry policy that the job runs on.
1300
+ #
1301
+ # @!attribute [rw] max_attempts
1302
+ # The maximum number of attempts on the job's driver.
1303
+ # @return [Integer]
1304
+ #
1305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/RetryPolicyConfiguration AWS API Documentation
1306
+ #
1307
+ class RetryPolicyConfiguration < Struct.new(
1308
+ :max_attempts)
1309
+ SENSITIVE = []
1310
+ include Aws::Structure
1311
+ end
1312
+
1313
+ # The current status of the retry policy executed on the job.
1314
+ #
1315
+ # @!attribute [rw] current_attempt_count
1316
+ # The current number of attempts made on the driver of the job.
1317
+ # @return [Integer]
1318
+ #
1319
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/RetryPolicyExecution AWS API Documentation
1320
+ #
1321
+ class RetryPolicyExecution < Struct.new(
1322
+ :current_attempt_count)
1323
+ SENSITIVE = []
1324
+ include Aws::Structure
1325
+ end
1326
+
1289
1327
  # Amazon S3 configuration for monitoring log publishing. You can
1290
1328
  # configure your jobs to send log information to Amazon S3.
1291
1329
  #
@@ -1387,6 +1425,10 @@ module Aws::EMRContainers
1387
1425
  # The values of job template parameters to start a job run.
1388
1426
  # @return [Hash<String,String>]
1389
1427
  #
1428
+ # @!attribute [rw] retry_policy_configuration
1429
+ # The retry policy configuration for the job run.
1430
+ # @return [Types::RetryPolicyConfiguration]
1431
+ #
1390
1432
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/StartJobRunRequest AWS API Documentation
1391
1433
  #
1392
1434
  class StartJobRunRequest < Struct.new(
@@ -1399,7 +1441,8 @@ module Aws::EMRContainers
1399
1441
  :configuration_overrides,
1400
1442
  :tags,
1401
1443
  :job_template_id,
1402
- :job_template_parameters)
1444
+ :job_template_parameters,
1445
+ :retry_policy_configuration)
1403
1446
  SENSITIVE = []
1404
1447
  include Aws::Structure
1405
1448
  end
@@ -1457,7 +1500,7 @@ module Aws::EMRContainers
1457
1500
  #
1458
1501
  # @!attribute [rw] type
1459
1502
  # The type of the job template parameter. Allowed values are:
1460
- # ‘String’, ‘Number’.
1503
+ # ‘STRING’, ‘NUMBER’.
1461
1504
  # @return [String]
1462
1505
  #
1463
1506
  # @!attribute [rw] default_value
@@ -1511,9 +1554,9 @@ module Aws::EMRContainers
1511
1554
  # Kubernetes namespace that Amazon EMR is registered with. Amazon EMR
1512
1555
  # uses virtual clusters to run jobs and host endpoints. Multiple virtual
1513
1556
  # clusters can be backed by the same physical cluster. However, each
1514
- # virtual cluster maps to one namespace on an EKS cluster. Virtual
1515
- # clusters do not create any active resources that contribute to your
1516
- # bill or that require lifecycle management outside the service.
1557
+ # virtual cluster maps to one namespace on an Amazon EKS cluster.
1558
+ # Virtual clusters do not create any active resources that contribute to
1559
+ # your bill or that require lifecycle management outside the service.
1517
1560
  #
1518
1561
  # @!attribute [rw] id
1519
1562
  # The ID of the virtual cluster.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-emrcontainers/customizations'
52
52
  # @!group service
53
53
  module Aws::EMRContainers
54
54
 
55
- GEM_VERSION = '1.18.0'
55
+ GEM_VERSION = '1.19.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emrcontainers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.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-18 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core