aws-sdk-emrcontainers 1.19.0 → 1.21.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: e961f7ae43d0324e9507edb28729ce025b3d8ae4ba1ece5e1d179c507bd0e29a
4
- data.tar.gz: 3f932da5f078c7a9d64c43080cdb40471bb584b1769ac5448c1b8f3df5dc9bb1
3
+ metadata.gz: 2be5c1e20bbe10fb720b45e3adfcc212c0f7f229e76669947e1d0cd3e065fecc
4
+ data.tar.gz: d8c30f8752ba437da439b0e1f2d23a2b6fb12d2eb390183f59531b57603806e7
5
5
  SHA512:
6
- metadata.gz: 582b02c8072bf8814d642eceea15c5e0948cf73eb3c7a76cbf549188e4954e42a878f78e68c69fb17cfe722be8daa4f63ee8e8be5b7ad94738605ed15c5b048d
7
- data.tar.gz: 02f84d5db3e636d3df0490feb6b64ba0101fe59fd209e2aae774fc68ca4d054e3bbbdff6d4dd2fa5d35fc3fd654f92b3f394d7aa8bdf9f1b390945e804d088c5
6
+ metadata.gz: abd198486ad4d4bd928c23e0209ac84e3adddf860cbf4c24592623aae5f098c85eb2b7e6a01ee8340db2d0e34e9cfcffcdf20bbfb79a4e8b819a766250eb2689
7
+ data.tar.gz: 3ce9990226ede2c6489244926acae0f83f8afdf7fd178be85aeae7b87adaa5f2aef73a0a1d64cd747326a711363c6d866cfe80a8f83bac3ff5770881fb92a589
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.21.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.20.0 (2023-04-27)
10
+ ------------------
11
+
12
+ * Feature - This release adds GetManagedEndpointSessionCredentials, a new API that allows customers to generate an auth token to connect to a managed endpoint, enabling features such as self-hosted Jupyter notebooks for EMR on EKS.
13
+
4
14
  1.19.0 (2023-02-09)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.21.0
@@ -275,6 +275,11 @@ module Aws::EMRContainers
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -1000,6 +1005,68 @@ module Aws::EMRContainers
1000
1005
  req.send_request(options)
1001
1006
  end
1002
1007
 
1008
+ # Generate a session token to connect to a managed endpoint.
1009
+ #
1010
+ # @option params [required, String] :endpoint_identifier
1011
+ # The ARN of the managed endpoint for which the request is submitted.
1012
+ #
1013
+ # @option params [required, String] :virtual_cluster_identifier
1014
+ # The ARN of the Virtual Cluster which the Managed Endpoint belongs to.
1015
+ #
1016
+ # @option params [required, String] :execution_role_arn
1017
+ # The IAM Execution Role ARN that will be used by the job run.
1018
+ #
1019
+ # @option params [required, String] :credential_type
1020
+ # Type of the token requested. Currently supported and default value of
1021
+ # this field is “TOKEN.”
1022
+ #
1023
+ # @option params [Integer] :duration_in_seconds
1024
+ # Duration in seconds for which the session token is valid. The default
1025
+ # duration is 15 minutes and the maximum is 12 hours.
1026
+ #
1027
+ # @option params [String] :log_context
1028
+ # String identifier used to separate sections of the execution logs
1029
+ # uploaded to S3.
1030
+ #
1031
+ # @option params [String] :client_token
1032
+ # The client idempotency token of the job run request.
1033
+ #
1034
+ # **A suitable default value is auto-generated.** You should normally
1035
+ # not need to pass this option.**
1036
+ #
1037
+ # @return [Types::GetManagedEndpointSessionCredentialsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1038
+ #
1039
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#id #id} => String
1040
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#credentials #credentials} => Types::Credentials
1041
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#expires_at #expires_at} => Time
1042
+ #
1043
+ # @example Request syntax with placeholder values
1044
+ #
1045
+ # resp = client.get_managed_endpoint_session_credentials({
1046
+ # endpoint_identifier: "String2048", # required
1047
+ # virtual_cluster_identifier: "String2048", # required
1048
+ # execution_role_arn: "IAMRoleArn", # required
1049
+ # credential_type: "CredentialType", # required
1050
+ # duration_in_seconds: 1,
1051
+ # log_context: "LogContext",
1052
+ # client_token: "ClientToken",
1053
+ # })
1054
+ #
1055
+ # @example Response structure
1056
+ #
1057
+ # resp.id #=> String
1058
+ # resp.credentials.token #=> String
1059
+ # resp.expires_at #=> Time
1060
+ #
1061
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/GetManagedEndpointSessionCredentials AWS API Documentation
1062
+ #
1063
+ # @overload get_managed_endpoint_session_credentials(params = {})
1064
+ # @param [Hash] params ({})
1065
+ def get_managed_endpoint_session_credentials(params = {}, options = {})
1066
+ req = build_request(:get_managed_endpoint_session_credentials, params)
1067
+ req.send_request(options)
1068
+ end
1069
+
1003
1070
  # Lists job runs based on a set of parameters. A job run is a unit of
1004
1071
  # work, such as a Spark jar, PySpark script, or SparkSQL query, that you
1005
1072
  # submit to Amazon EMR on EKS.
@@ -1553,7 +1620,7 @@ module Aws::EMRContainers
1553
1620
  params: params,
1554
1621
  config: config)
1555
1622
  context[:gem_name] = 'aws-sdk-emrcontainers'
1556
- context[:gem_version] = '1.19.0'
1623
+ context[:gem_version] = '1.21.0'
1557
1624
  Seahorse::Client::Request.new(handlers, context)
1558
1625
  end
1559
1626
 
@@ -33,6 +33,8 @@ module Aws::EMRContainers
33
33
  CreateManagedEndpointResponse = Shapes::StructureShape.new(name: 'CreateManagedEndpointResponse')
34
34
  CreateVirtualClusterRequest = Shapes::StructureShape.new(name: 'CreateVirtualClusterRequest')
35
35
  CreateVirtualClusterResponse = Shapes::StructureShape.new(name: 'CreateVirtualClusterResponse')
36
+ CredentialType = Shapes::StringShape.new(name: 'CredentialType')
37
+ Credentials = Shapes::UnionShape.new(name: 'Credentials')
36
38
  Date = Shapes::TimestampShape.new(name: 'Date', timestampFormat: "iso8601")
37
39
  DeleteJobTemplateRequest = Shapes::StructureShape.new(name: 'DeleteJobTemplateRequest')
38
40
  DeleteJobTemplateResponse = Shapes::StructureShape.new(name: 'DeleteJobTemplateResponse')
@@ -60,6 +62,8 @@ module Aws::EMRContainers
60
62
  EntryPointArguments = Shapes::ListShape.new(name: 'EntryPointArguments')
61
63
  EntryPointPath = Shapes::StringShape.new(name: 'EntryPointPath')
62
64
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
65
+ GetManagedEndpointSessionCredentialsRequest = Shapes::StructureShape.new(name: 'GetManagedEndpointSessionCredentialsRequest')
66
+ GetManagedEndpointSessionCredentialsResponse = Shapes::StructureShape.new(name: 'GetManagedEndpointSessionCredentialsResponse')
63
67
  IAMRoleArn = Shapes::StringShape.new(name: 'IAMRoleArn')
64
68
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
65
69
  JavaInteger = Shapes::IntegerShape.new(name: 'JavaInteger')
@@ -85,6 +89,7 @@ module Aws::EMRContainers
85
89
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
86
90
  ListVirtualClustersRequest = Shapes::StructureShape.new(name: 'ListVirtualClustersRequest')
87
91
  ListVirtualClustersResponse = Shapes::StructureShape.new(name: 'ListVirtualClustersResponse')
92
+ LogContext = Shapes::StringShape.new(name: 'LogContext')
88
93
  LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
89
94
  MonitoringConfiguration = Shapes::StructureShape.new(name: 'MonitoringConfiguration')
90
95
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -97,6 +102,7 @@ module Aws::EMRContainers
97
102
  PersistentAppUI = Shapes::StringShape.new(name: 'PersistentAppUI')
98
103
  ReleaseLabel = Shapes::StringShape.new(name: 'ReleaseLabel')
99
104
  RequestIdentityUserArn = Shapes::StringShape.new(name: 'RequestIdentityUserArn')
105
+ RequestThrottledException = Shapes::StructureShape.new(name: 'RequestThrottledException')
100
106
  ResourceIdString = Shapes::StringShape.new(name: 'ResourceIdString')
101
107
  ResourceNameString = Shapes::StringShape.new(name: 'ResourceNameString')
102
108
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -127,6 +133,7 @@ module Aws::EMRContainers
127
133
  TemplateParameterDataType = Shapes::StringShape.new(name: 'TemplateParameterDataType')
128
134
  TemplateParameterInputMap = Shapes::MapShape.new(name: 'TemplateParameterInputMap')
129
135
  TemplateParameterName = Shapes::StringShape.new(name: 'TemplateParameterName')
136
+ Token = Shapes::StringShape.new(name: 'Token')
130
137
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
131
138
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
132
139
  UriString = Shapes::StringShape.new(name: 'UriString')
@@ -216,6 +223,12 @@ module Aws::EMRContainers
216
223
  CreateVirtualClusterResponse.add_member(:arn, Shapes::ShapeRef.new(shape: VirtualClusterArn, location_name: "arn"))
217
224
  CreateVirtualClusterResponse.struct_class = Types::CreateVirtualClusterResponse
218
225
 
226
+ Credentials.add_member(:token, Shapes::ShapeRef.new(shape: Token, location_name: "token"))
227
+ Credentials.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
228
+ Credentials.add_member_subclass(:token, Types::Credentials::Token)
229
+ Credentials.add_member_subclass(:unknown, Types::Credentials::Unknown)
230
+ Credentials.struct_class = Types::Credentials
231
+
219
232
  DeleteJobTemplateRequest.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "templateId"))
220
233
  DeleteJobTemplateRequest.struct_class = Types::DeleteJobTemplateRequest
221
234
 
@@ -293,6 +306,20 @@ module Aws::EMRContainers
293
306
 
294
307
  EntryPointArguments.member = Shapes::ShapeRef.new(shape: EntryPointArgument)
295
308
 
309
+ GetManagedEndpointSessionCredentialsRequest.add_member(:endpoint_identifier, Shapes::ShapeRef.new(shape: String2048, required: true, location: "uri", location_name: "endpointId"))
310
+ GetManagedEndpointSessionCredentialsRequest.add_member(:virtual_cluster_identifier, Shapes::ShapeRef.new(shape: String2048, required: true, location: "uri", location_name: "virtualClusterId"))
311
+ GetManagedEndpointSessionCredentialsRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "executionRoleArn"))
312
+ GetManagedEndpointSessionCredentialsRequest.add_member(:credential_type, Shapes::ShapeRef.new(shape: CredentialType, required: true, location_name: "credentialType"))
313
+ GetManagedEndpointSessionCredentialsRequest.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: JavaInteger, location_name: "durationInSeconds"))
314
+ GetManagedEndpointSessionCredentialsRequest.add_member(:log_context, Shapes::ShapeRef.new(shape: LogContext, location_name: "logContext"))
315
+ GetManagedEndpointSessionCredentialsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
316
+ GetManagedEndpointSessionCredentialsRequest.struct_class = Types::GetManagedEndpointSessionCredentialsRequest
317
+
318
+ GetManagedEndpointSessionCredentialsResponse.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "id"))
319
+ GetManagedEndpointSessionCredentialsResponse.add_member(:credentials, Shapes::ShapeRef.new(shape: Credentials, location_name: "credentials"))
320
+ GetManagedEndpointSessionCredentialsResponse.add_member(:expires_at, Shapes::ShapeRef.new(shape: Date, location_name: "expiresAt"))
321
+ GetManagedEndpointSessionCredentialsResponse.struct_class = Types::GetManagedEndpointSessionCredentialsResponse
322
+
296
323
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String1024, location_name: "message"))
297
324
  InternalServerException.struct_class = Types::InternalServerException
298
325
 
@@ -421,6 +448,9 @@ module Aws::EMRContainers
421
448
  ParametricS3MonitoringConfiguration.add_member(:log_uri, Shapes::ShapeRef.new(shape: UriString, location_name: "logUri"))
422
449
  ParametricS3MonitoringConfiguration.struct_class = Types::ParametricS3MonitoringConfiguration
423
450
 
451
+ RequestThrottledException.add_member(:message, Shapes::ShapeRef.new(shape: String1024, location_name: "message"))
452
+ RequestThrottledException.struct_class = Types::RequestThrottledException
453
+
424
454
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String1024, location_name: "message"))
425
455
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
426
456
 
@@ -644,6 +674,18 @@ module Aws::EMRContainers
644
674
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
645
675
  end)
646
676
 
677
+ api.add_operation(:get_managed_endpoint_session_credentials, Seahorse::Model::Operation.new.tap do |o|
678
+ o.name = "GetManagedEndpointSessionCredentials"
679
+ o.http_method = "POST"
680
+ o.http_request_uri = "/virtualclusters/{virtualClusterId}/endpoints/{endpointId}/credentials"
681
+ o.input = Shapes::ShapeRef.new(shape: GetManagedEndpointSessionCredentialsRequest)
682
+ o.output = Shapes::ShapeRef.new(shape: GetManagedEndpointSessionCredentialsResponse)
683
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
684
+ o.errors << Shapes::ShapeRef.new(shape: RequestThrottledException)
685
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
686
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
687
+ end)
688
+
647
689
  api.add_operation(:list_job_runs, Seahorse::Model::Operation.new.tap do |o|
648
690
  o.name = "ListJobRuns"
649
691
  o.http_method = "GET"
@@ -50,9 +50,6 @@ 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
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::EMRContainers
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(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-containers-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
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://emr-containers-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
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://emr-containers.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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-containers-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-containers-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-containers.#{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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://emr-containers.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://emr-containers.#{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
@@ -165,6 +165,20 @@ module Aws::EMRContainers
165
165
  end
166
166
  end
167
167
 
168
+ class GetManagedEndpointSessionCredentials
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::EMRContainers::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
168
182
  class ListJobRuns
169
183
  def self.build(context)
170
184
  unless context.config.regional_endpoint
@@ -28,6 +28,7 @@ module Aws::EMRContainers
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {InternalServerException}
31
+ # * {RequestThrottledException}
31
32
  # * {ResourceNotFoundException}
32
33
  # * {ValidationException}
33
34
  #
@@ -52,6 +53,21 @@ module Aws::EMRContainers
52
53
  end
53
54
  end
54
55
 
56
+ class RequestThrottledException < ServiceError
57
+
58
+ # @param [Seahorse::Client::RequestContext] context
59
+ # @param [String] message
60
+ # @param [Aws::EMRContainers::Types::RequestThrottledException] data
61
+ def initialize(context, message, data = Aws::EmptyStructure.new)
62
+ super(context, message, data)
63
+ end
64
+
65
+ # @return [String]
66
+ def message
67
+ @message || @data[:message]
68
+ end
69
+ end
70
+
55
71
  class ResourceNotFoundException < ServiceError
56
72
 
57
73
  # @param [Seahorse::Client::RequestContext] context
@@ -78,6 +78,8 @@ module Aws::EMRContainers
78
78
  Aws::EMRContainers::Endpoints::DescribeManagedEndpoint.build(context)
79
79
  when :describe_virtual_cluster
80
80
  Aws::EMRContainers::Endpoints::DescribeVirtualCluster.build(context)
81
+ when :get_managed_endpoint_session_credentials
82
+ Aws::EMRContainers::Endpoints::GetManagedEndpointSessionCredentials.build(context)
81
83
  when :list_job_runs
82
84
  Aws::EMRContainers::Endpoints::ListJobRuns.build(context)
83
85
  when :list_job_templates
@@ -386,6 +386,27 @@ module Aws::EMRContainers
386
386
  include Aws::Structure
387
387
  end
388
388
 
389
+ # The structure containing the session token being returned.
390
+ #
391
+ # @note Credentials is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Credentials corresponding to the set member.
392
+ #
393
+ # @!attribute [rw] token
394
+ # The actual session token being returned.
395
+ # @return [String]
396
+ #
397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/Credentials AWS API Documentation
398
+ #
399
+ class Credentials < Struct.new(
400
+ :token,
401
+ :unknown)
402
+ SENSITIVE = [:token]
403
+ include Aws::Structure
404
+ include Aws::Structure::Union
405
+
406
+ class Token < Credentials; end
407
+ class Unknown < Credentials; end
408
+ end
409
+
389
410
  # @!attribute [rw] id
390
411
  # The ID of the job template that will be deleted.
391
412
  # @return [String]
@@ -693,6 +714,77 @@ module Aws::EMRContainers
693
714
  include Aws::Structure
694
715
  end
695
716
 
717
+ # @!attribute [rw] endpoint_identifier
718
+ # The ARN of the managed endpoint for which the request is submitted.
719
+ # @return [String]
720
+ #
721
+ # @!attribute [rw] virtual_cluster_identifier
722
+ # The ARN of the Virtual Cluster which the Managed Endpoint belongs
723
+ # to.
724
+ # @return [String]
725
+ #
726
+ # @!attribute [rw] execution_role_arn
727
+ # The IAM Execution Role ARN that will be used by the job run.
728
+ # @return [String]
729
+ #
730
+ # @!attribute [rw] credential_type
731
+ # Type of the token requested. Currently supported and default value
732
+ # of this field is “TOKEN.”
733
+ # @return [String]
734
+ #
735
+ # @!attribute [rw] duration_in_seconds
736
+ # Duration in seconds for which the session token is valid. The
737
+ # default duration is 15 minutes and the maximum is 12 hours.
738
+ # @return [Integer]
739
+ #
740
+ # @!attribute [rw] log_context
741
+ # String identifier used to separate sections of the execution logs
742
+ # uploaded to S3.
743
+ # @return [String]
744
+ #
745
+ # @!attribute [rw] client_token
746
+ # The client idempotency token of the job run request.
747
+ #
748
+ # **A suitable default value is auto-generated.** You should normally
749
+ # not need to pass this option.
750
+ # @return [String]
751
+ #
752
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/GetManagedEndpointSessionCredentialsRequest AWS API Documentation
753
+ #
754
+ class GetManagedEndpointSessionCredentialsRequest < Struct.new(
755
+ :endpoint_identifier,
756
+ :virtual_cluster_identifier,
757
+ :execution_role_arn,
758
+ :credential_type,
759
+ :duration_in_seconds,
760
+ :log_context,
761
+ :client_token)
762
+ SENSITIVE = []
763
+ include Aws::Structure
764
+ end
765
+
766
+ # @!attribute [rw] id
767
+ # The identifier of the session token returned.
768
+ # @return [String]
769
+ #
770
+ # @!attribute [rw] credentials
771
+ # The structure containing the session credentials.
772
+ # @return [Types::Credentials]
773
+ #
774
+ # @!attribute [rw] expires_at
775
+ # The date and time when the session token will expire.
776
+ # @return [Time]
777
+ #
778
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/GetManagedEndpointSessionCredentialsResponse AWS API Documentation
779
+ #
780
+ class GetManagedEndpointSessionCredentialsResponse < Struct.new(
781
+ :id,
782
+ :credentials,
783
+ :expires_at)
784
+ SENSITIVE = []
785
+ include Aws::Structure
786
+ end
787
+
696
788
  # This is an internal server exception.
697
789
  #
698
790
  # @!attribute [rw] message
@@ -1283,6 +1375,19 @@ module Aws::EMRContainers
1283
1375
  include Aws::Structure
1284
1376
  end
1285
1377
 
1378
+ # The request throttled.
1379
+ #
1380
+ # @!attribute [rw] message
1381
+ # @return [String]
1382
+ #
1383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/RequestThrottledException AWS API Documentation
1384
+ #
1385
+ class RequestThrottledException < Struct.new(
1386
+ :message)
1387
+ SENSITIVE = []
1388
+ include Aws::Structure
1389
+ end
1390
+
1286
1391
  # The specified resource was not found.
1287
1392
  #
1288
1393
  # @!attribute [rw] message
@@ -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.19.0'
55
+ GEM_VERSION = '1.21.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.19.0
4
+ version: 1.21.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-02-09 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement