aws-sdk-rolesanywhere 1.22.0 → 1.24.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: ea7d237a4ae15cad1823cc3ec0960e5bcc7a501e8b9b563f79ac634ae95f5f45
4
- data.tar.gz: 32948ad9c8a0cfec9c4294c0a08ae39d6bdd37126b829e19532e07d9bf7fc433
3
+ metadata.gz: adf4825fdcd3643fbb444cf94291617c51104de233f5e03efb8e948ee8a682e6
4
+ data.tar.gz: 2405e7c9d80cd0c7dff3c6460c5e17a65b595adb2ebd9ea8d0d6334b0b00386d
5
5
  SHA512:
6
- metadata.gz: 9bea3321843cbae153e433d95e756e17bbd6269640d907a8c07a50f28b6e82bc304435db031d93d04c61cce1fdf2ece27ae1dc477575f67e037621636043a7c5
7
- data.tar.gz: 9f648c62814532d939456f5b3f73ceb39925adbff9eda9d7c0397bede2e8a1567b2a1a91442d2f1265e2bbaffa1c7032acf4b94c0a8fb6959244853007cca9c8
6
+ metadata.gz: e547c742eb712ec371a7ba0a6e8536c23add431f8c7807f248943882f147c54ac4e925a3b89be76e9975c8123babd8758a5f866814dd46e5dcba692f939a24b0
7
+ data.tar.gz: d6690d9f72574879286def9a9d81ffa296681392ee08ba20dd49fdb88ce9dc054fbb843fcd34bb98a84772eca106ec8e37955dbbad9b6a3eb872718efd3761db
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.23.0 (2024-07-30)
10
+ ------------------
11
+
12
+ * Feature - IAM RolesAnywhere now supports custom role session name on the CreateSession. This release adds the acceptRoleSessionName option to a profile to control whether a role session name will be accepted in a session request with a given profile.
13
+
4
14
  1.22.0 (2024-07-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.24.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
 
@@ -83,6 +84,7 @@ module Aws::RolesAnywhere
83
84
  add_plugin(Aws::Plugins::RequestCompression)
84
85
  add_plugin(Aws::Plugins::DefaultsMode)
85
86
  add_plugin(Aws::Plugins::RecursionDetection)
87
+ add_plugin(Aws::Plugins::Telemetry)
86
88
  add_plugin(Aws::Plugins::Sign)
87
89
  add_plugin(Aws::Plugins::Protocols::RestJson)
88
90
  add_plugin(Aws::RolesAnywhere::Plugins::Endpoints)
@@ -330,6 +332,16 @@ module Aws::RolesAnywhere
330
332
  # ** Please note ** When response stubbing is enabled, no HTTP
331
333
  # requests are made, and retries are disabled.
332
334
  #
335
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
336
+ # Allows you to provide a telemetry provider, which is used to
337
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
338
+ # will not record or emit any telemetry data. The SDK supports the
339
+ # following telemetry providers:
340
+ #
341
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
342
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
343
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
344
+ #
333
345
  # @option options [Aws::TokenProvider] :token_provider
334
346
  # A Bearer Token Provider. This can be an instance of any one of the
335
347
  # following classes:
@@ -431,6 +443,10 @@ module Aws::RolesAnywhere
431
443
  #
432
444
  # <b>Required permissions: </b> `rolesanywhere:CreateProfile`.
433
445
  #
446
+ # @option params [Boolean] :accept_role_session_name
447
+ # Used to determine if a custom role session name will be accepted in a
448
+ # temporary credential request.
449
+ #
434
450
  # @option params [Integer] :duration_seconds
435
451
  # Used to determine how long sessions vended using this profile are
436
452
  # valid for. See the `Expiration` section of the [CreateSession API
@@ -473,6 +489,7 @@ module Aws::RolesAnywhere
473
489
  # @example Request syntax with placeholder values
474
490
  #
475
491
  # resp = client.create_profile({
492
+ # accept_role_session_name: false,
476
493
  # duration_seconds: 1,
477
494
  # enabled: false,
478
495
  # managed_policy_arns: ["ManagedPolicyListMemberString"],
@@ -490,6 +507,7 @@ module Aws::RolesAnywhere
490
507
  #
491
508
  # @example Response structure
492
509
  #
510
+ # resp.profile.accept_role_session_name #=> Boolean
493
511
  # resp.profile.attribute_mappings #=> Array
494
512
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
495
513
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -629,6 +647,7 @@ module Aws::RolesAnywhere
629
647
  #
630
648
  # @example Response structure
631
649
  #
650
+ # resp.profile.accept_role_session_name #=> Boolean
632
651
  # resp.profile.attribute_mappings #=> Array
633
652
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
634
653
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -713,6 +732,7 @@ module Aws::RolesAnywhere
713
732
  #
714
733
  # @example Response structure
715
734
  #
735
+ # resp.profile.accept_role_session_name #=> Boolean
716
736
  # resp.profile.attribute_mappings #=> Array
717
737
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
718
738
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -842,6 +862,7 @@ module Aws::RolesAnywhere
842
862
  #
843
863
  # @example Response structure
844
864
  #
865
+ # resp.profile.accept_role_session_name #=> Boolean
845
866
  # resp.profile.attribute_mappings #=> Array
846
867
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
847
868
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -973,6 +994,7 @@ module Aws::RolesAnywhere
973
994
  #
974
995
  # @example Response structure
975
996
  #
997
+ # resp.profile.accept_role_session_name #=> Boolean
976
998
  # resp.profile.attribute_mappings #=> Array
977
999
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
978
1000
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -1102,6 +1124,7 @@ module Aws::RolesAnywhere
1102
1124
  #
1103
1125
  # @example Response structure
1104
1126
  #
1127
+ # resp.profile.accept_role_session_name #=> Boolean
1105
1128
  # resp.profile.attribute_mappings #=> Array
1106
1129
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
1107
1130
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -1369,6 +1392,7 @@ module Aws::RolesAnywhere
1369
1392
  #
1370
1393
  # resp.next_token #=> String
1371
1394
  # resp.profiles #=> Array
1395
+ # resp.profiles[0].accept_role_session_name #=> Boolean
1372
1396
  # resp.profiles[0].attribute_mappings #=> Array
1373
1397
  # resp.profiles[0].attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
1374
1398
  # resp.profiles[0].attribute_mappings[0].mapping_rules #=> Array
@@ -1565,6 +1589,7 @@ module Aws::RolesAnywhere
1565
1589
  #
1566
1590
  # @example Response structure
1567
1591
  #
1592
+ # resp.profile.accept_role_session_name #=> Boolean
1568
1593
  # resp.profile.attribute_mappings #=> Array
1569
1594
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
1570
1595
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -1823,6 +1848,10 @@ module Aws::RolesAnywhere
1823
1848
  #
1824
1849
  # <b>Required permissions: </b> `rolesanywhere:UpdateProfile`.
1825
1850
  #
1851
+ # @option params [Boolean] :accept_role_session_name
1852
+ # Used to determine if a custom role session name will be accepted in a
1853
+ # temporary credential request.
1854
+ #
1826
1855
  # @option params [Integer] :duration_seconds
1827
1856
  # Used to determine how long sessions vended using this profile are
1828
1857
  # valid for. See the `Expiration` section of the [CreateSession API
@@ -1858,6 +1887,7 @@ module Aws::RolesAnywhere
1858
1887
  # @example Request syntax with placeholder values
1859
1888
  #
1860
1889
  # resp = client.update_profile({
1890
+ # accept_role_session_name: false,
1861
1891
  # duration_seconds: 1,
1862
1892
  # managed_policy_arns: ["ManagedPolicyListMemberString"],
1863
1893
  # name: "ResourceName",
@@ -1868,6 +1898,7 @@ module Aws::RolesAnywhere
1868
1898
  #
1869
1899
  # @example Response structure
1870
1900
  #
1901
+ # resp.profile.accept_role_session_name #=> Boolean
1871
1902
  # resp.profile.attribute_mappings #=> Array
1872
1903
  # resp.profile.attribute_mappings[0].certificate_field #=> String, one of "x509Subject", "x509Issuer", "x509SAN"
1873
1904
  # resp.profile.attribute_mappings[0].mapping_rules #=> Array
@@ -1966,14 +1997,19 @@ module Aws::RolesAnywhere
1966
1997
  # @api private
1967
1998
  def build_request(operation_name, params = {})
1968
1999
  handlers = @handlers.for(operation_name)
2000
+ tracer = config.telemetry_provider.tracer_provider.tracer(
2001
+ Aws::Telemetry.module_to_tracer_name('Aws::RolesAnywhere')
2002
+ )
1969
2003
  context = Seahorse::Client::RequestContext.new(
1970
2004
  operation_name: operation_name,
1971
2005
  operation: config.api.operation(operation_name),
1972
2006
  client: self,
1973
2007
  params: params,
1974
- config: config)
2008
+ config: config,
2009
+ tracer: tracer
2010
+ )
1975
2011
  context[:gem_name] = 'aws-sdk-rolesanywhere'
1976
- context[:gem_version] = '1.22.0'
2012
+ context[:gem_version] = '1.24.0'
1977
2013
  Seahorse::Client::Request.new(handlers, context)
1978
2014
  end
1979
2015
 
@@ -123,6 +123,7 @@ module Aws::RolesAnywhere
123
123
 
124
124
  AttributeMappings.member = Shapes::ShapeRef.new(shape: AttributeMapping)
125
125
 
126
+ CreateProfileRequest.add_member(:accept_role_session_name, Shapes::ShapeRef.new(shape: Boolean, location_name: "acceptRoleSessionName"))
126
127
  CreateProfileRequest.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: CreateProfileRequestDurationSecondsInteger, location_name: "durationSeconds"))
127
128
  CreateProfileRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "enabled"))
128
129
  CreateProfileRequest.add_member(:managed_policy_arns, Shapes::ShapeRef.new(shape: ManagedPolicyList, location_name: "managedPolicyArns"))
@@ -246,6 +247,7 @@ module Aws::RolesAnywhere
246
247
 
247
248
  NotificationSettings.member = Shapes::ShapeRef.new(shape: NotificationSetting)
248
249
 
250
+ ProfileDetail.add_member(:accept_role_session_name, Shapes::ShapeRef.new(shape: Boolean, location_name: "acceptRoleSessionName"))
249
251
  ProfileDetail.add_member(:attribute_mappings, Shapes::ShapeRef.new(shape: AttributeMappings, location_name: "attributeMappings"))
250
252
  ProfileDetail.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "createdAt"))
251
253
  ProfileDetail.add_member(:created_by, Shapes::ShapeRef.new(shape: String, location_name: "createdBy"))
@@ -387,6 +389,7 @@ module Aws::RolesAnywhere
387
389
  UpdateCrlRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
388
390
  UpdateCrlRequest.struct_class = Types::UpdateCrlRequest
389
391
 
392
+ UpdateProfileRequest.add_member(:accept_role_session_name, Shapes::ShapeRef.new(shape: Boolean, location_name: "acceptRoleSessionName"))
390
393
  UpdateProfileRequest.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: UpdateProfileRequestDurationSecondsInteger, location_name: "durationSeconds"))
391
394
  UpdateProfileRequest.add_member(:managed_policy_arns, Shapes::ShapeRef.new(shape: ManagedPolicyList, location_name: "managedPolicyArns"))
392
395
  UpdateProfileRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
@@ -411,9 +414,11 @@ module Aws::RolesAnywhere
411
414
 
412
415
  api.metadata = {
413
416
  "apiVersion" => "2018-05-10",
417
+ "auth" => ["aws.auth#sigv4"],
414
418
  "endpointPrefix" => "rolesanywhere",
415
419
  "jsonVersion" => "1.1",
416
420
  "protocol" => "rest-json",
421
+ "protocols" => ["rest-json"],
417
422
  "serviceFullName" => "IAM Roles Anywhere",
418
423
  "serviceId" => "RolesAnywhere",
419
424
  "signatureVersion" => "v4",
@@ -44,6 +44,11 @@ module Aws::RolesAnywhere
44
44
  include Aws::Structure
45
45
  end
46
46
 
47
+ # @!attribute [rw] accept_role_session_name
48
+ # Used to determine if a custom role session name will be accepted in
49
+ # a temporary credential request.
50
+ # @return [Boolean]
51
+ #
47
52
  # @!attribute [rw] duration_seconds
48
53
  # Used to determine how long sessions vended using this profile are
49
54
  # valid for. See the `Expiration` section of the [CreateSession API
@@ -90,6 +95,7 @@ module Aws::RolesAnywhere
90
95
  # @see http://docs.aws.amazon.com/goto/WebAPI/rolesanywhere-2018-05-10/CreateProfileRequest AWS API Documentation
91
96
  #
92
97
  class CreateProfileRequest < Struct.new(
98
+ :accept_role_session_name,
93
99
  :duration_seconds,
94
100
  :enabled,
95
101
  :managed_policy_arns,
@@ -583,6 +589,11 @@ module Aws::RolesAnywhere
583
589
 
584
590
  # The state of the profile after a read or write operation.
585
591
  #
592
+ # @!attribute [rw] accept_role_session_name
593
+ # Used to determine if a custom role session name will be accepted in
594
+ # a temporary credential request.
595
+ # @return [Boolean]
596
+ #
586
597
  # @!attribute [rw] attribute_mappings
587
598
  # A mapping applied to the authenticating end-entity certificate.
588
599
  # @return [Array<Types::AttributeMapping>]
@@ -649,6 +660,7 @@ module Aws::RolesAnywhere
649
660
  # @see http://docs.aws.amazon.com/goto/WebAPI/rolesanywhere-2018-05-10/ProfileDetail AWS API Documentation
650
661
  #
651
662
  class ProfileDetail < Struct.new(
663
+ :accept_role_session_name,
652
664
  :attribute_mappings,
653
665
  :created_at,
654
666
  :created_by,
@@ -1158,6 +1170,11 @@ module Aws::RolesAnywhere
1158
1170
  include Aws::Structure
1159
1171
  end
1160
1172
 
1173
+ # @!attribute [rw] accept_role_session_name
1174
+ # Used to determine if a custom role session name will be accepted in
1175
+ # a temporary credential request.
1176
+ # @return [Boolean]
1177
+ #
1161
1178
  # @!attribute [rw] duration_seconds
1162
1179
  # Used to determine how long sessions vended using this profile are
1163
1180
  # valid for. See the `Expiration` section of the [CreateSession API
@@ -1195,6 +1212,7 @@ module Aws::RolesAnywhere
1195
1212
  # @see http://docs.aws.amazon.com/goto/WebAPI/rolesanywhere-2018-05-10/UpdateProfileRequest AWS API Documentation
1196
1213
  #
1197
1214
  class UpdateProfileRequest < Struct.new(
1215
+ :accept_role_session_name,
1198
1216
  :duration_seconds,
1199
1217
  :managed_policy_arns,
1200
1218
  :name,
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-rolesanywhere/customizations'
52
52
  # @!group service
53
53
  module Aws::RolesAnywhere
54
54
 
55
- GEM_VERSION = '1.22.0'
55
+ GEM_VERSION = '1.24.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
@@ -79,6 +80,7 @@ module Aws
79
80
  end
80
81
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RolesAnywhere/Client.html#create_profile-instance_method
81
82
  def create_profile: (
83
+ ?accept_role_session_name: bool,
82
84
  ?duration_seconds: ::Integer,
83
85
  ?enabled: bool,
84
86
  ?managed_policy_arns: Array[::String],
@@ -439,6 +441,7 @@ module Aws
439
441
  end
440
442
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RolesAnywhere/Client.html#update_profile-instance_method
441
443
  def update_profile: (
444
+ ?accept_role_session_name: bool,
442
445
  ?duration_seconds: ::Integer,
443
446
  ?managed_policy_arns: Array[::String],
444
447
  ?name: ::String,
data/sig/resource.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
data/sig/types.rbs CHANGED
@@ -20,6 +20,7 @@ module Aws::RolesAnywhere
20
20
  end
21
21
 
22
22
  class CreateProfileRequest
23
+ attr_accessor accept_role_session_name: bool
23
24
  attr_accessor duration_seconds: ::Integer
24
25
  attr_accessor enabled: bool
25
26
  attr_accessor managed_policy_arns: ::Array[::String]
@@ -164,6 +165,7 @@ module Aws::RolesAnywhere
164
165
  end
165
166
 
166
167
  class ProfileDetail
168
+ attr_accessor accept_role_session_name: bool
167
169
  attr_accessor attribute_mappings: ::Array[Types::AttributeMapping]
168
170
  attr_accessor created_at: ::Time
169
171
  attr_accessor created_by: ::String
@@ -347,6 +349,7 @@ module Aws::RolesAnywhere
347
349
  end
348
350
 
349
351
  class UpdateProfileRequest
352
+ attr_accessor accept_role_session_name: bool
350
353
  attr_accessor duration_seconds: ::Integer
351
354
  attr_accessor managed_policy_arns: ::Array[::String]
352
355
  attr_accessor name: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rolesanywhere
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.24.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: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-09-03 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.201.0
22
+ version: 3.203.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.201.0
32
+ version: 3.203.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: '1.5'
47
47
  description: Official AWS Ruby gem for IAM Roles Anywhere. This gem is part of the
48
48
  AWS SDK for Ruby.
49
49
  email: