aws-sdk-emrcontainers 1.19.0 → 1.20.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: e961f7ae43d0324e9507edb28729ce025b3d8ae4ba1ece5e1d179c507bd0e29a
4
- data.tar.gz: 3f932da5f078c7a9d64c43080cdb40471bb584b1769ac5448c1b8f3df5dc9bb1
3
+ metadata.gz: 5108549d8320b5b22cb6a704863373806a2780e9f76cf1d04de5999f1fd6c02c
4
+ data.tar.gz: 151f3462af5a16506f2183ca6039d978e82568168102c2ccb970dccb386895b9
5
5
  SHA512:
6
- metadata.gz: 582b02c8072bf8814d642eceea15c5e0948cf73eb3c7a76cbf549188e4954e42a878f78e68c69fb17cfe722be8daa4f63ee8e8be5b7ad94738605ed15c5b048d
7
- data.tar.gz: 02f84d5db3e636d3df0490feb6b64ba0101fe59fd209e2aae774fc68ca4d054e3bbbdff6d4dd2fa5d35fc3fd654f92b3f394d7aa8bdf9f1b390945e804d088c5
6
+ metadata.gz: f2302b5822e6744dfb34c5681bd09fe8b7f285fa118cd57102d343c956e739c825e250f70440b750940357dfdb0e95afd9db0a941a7d0ce3c30ae12868a16d93
7
+ data.tar.gz: 16c8be96d7aa870a44c968972afc1bdbda3d84c479bc159501ac4297306229d17cce1e938cbd094616d503fc07ec008d456621b9d02f03060ec786f13f2cb165
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2023-04-27)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.19.0 (2023-02-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.20.0
@@ -1000,6 +1000,68 @@ module Aws::EMRContainers
1000
1000
  req.send_request(options)
1001
1001
  end
1002
1002
 
1003
+ # Generate a session token to connect to a managed endpoint.
1004
+ #
1005
+ # @option params [required, String] :endpoint_identifier
1006
+ # The ARN of the managed endpoint for which the request is submitted.
1007
+ #
1008
+ # @option params [required, String] :virtual_cluster_identifier
1009
+ # The ARN of the Virtual Cluster which the Managed Endpoint belongs to.
1010
+ #
1011
+ # @option params [required, String] :execution_role_arn
1012
+ # The IAM Execution Role ARN that will be used by the job run.
1013
+ #
1014
+ # @option params [required, String] :credential_type
1015
+ # Type of the token requested. Currently supported and default value of
1016
+ # this field is “TOKEN.”
1017
+ #
1018
+ # @option params [Integer] :duration_in_seconds
1019
+ # Duration in seconds for which the session token is valid. The default
1020
+ # duration is 15 minutes and the maximum is 12 hours.
1021
+ #
1022
+ # @option params [String] :log_context
1023
+ # String identifier used to separate sections of the execution logs
1024
+ # uploaded to S3.
1025
+ #
1026
+ # @option params [String] :client_token
1027
+ # The client idempotency token of the job run request.
1028
+ #
1029
+ # **A suitable default value is auto-generated.** You should normally
1030
+ # not need to pass this option.**
1031
+ #
1032
+ # @return [Types::GetManagedEndpointSessionCredentialsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1033
+ #
1034
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#id #id} => String
1035
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#credentials #credentials} => Types::Credentials
1036
+ # * {Types::GetManagedEndpointSessionCredentialsResponse#expires_at #expires_at} => Time
1037
+ #
1038
+ # @example Request syntax with placeholder values
1039
+ #
1040
+ # resp = client.get_managed_endpoint_session_credentials({
1041
+ # endpoint_identifier: "String2048", # required
1042
+ # virtual_cluster_identifier: "String2048", # required
1043
+ # execution_role_arn: "IAMRoleArn", # required
1044
+ # credential_type: "CredentialType", # required
1045
+ # duration_in_seconds: 1,
1046
+ # log_context: "LogContext",
1047
+ # client_token: "ClientToken",
1048
+ # })
1049
+ #
1050
+ # @example Response structure
1051
+ #
1052
+ # resp.id #=> String
1053
+ # resp.credentials.token #=> String
1054
+ # resp.expires_at #=> Time
1055
+ #
1056
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-containers-2020-10-01/GetManagedEndpointSessionCredentials AWS API Documentation
1057
+ #
1058
+ # @overload get_managed_endpoint_session_credentials(params = {})
1059
+ # @param [Hash] params ({})
1060
+ def get_managed_endpoint_session_credentials(params = {}, options = {})
1061
+ req = build_request(:get_managed_endpoint_session_credentials, params)
1062
+ req.send_request(options)
1063
+ end
1064
+
1003
1065
  # Lists job runs based on a set of parameters. A job run is a unit of
1004
1066
  # work, such as a Spark jar, PySpark script, or SparkSQL query, that you
1005
1067
  # submit to Amazon EMR on EKS.
@@ -1553,7 +1615,7 @@ module Aws::EMRContainers
1553
1615
  params: params,
1554
1616
  config: config)
1555
1617
  context[:gem_name] = 'aws-sdk-emrcontainers'
1556
- context[:gem_version] = '1.19.0'
1618
+ context[:gem_version] = '1.20.0'
1557
1619
  Seahorse::Client::Request.new(handlers, context)
1558
1620
  end
1559
1621
 
@@ -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.20.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.20.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-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core