aws-sdk-ram 1.35.0 → 1.38.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: 51ef2e78f421e30ed210d8b657ba4a09ec06d29513f81bf2d098a49eec22a0aa
4
- data.tar.gz: a55db117461296b2753b7d9cc8671e4fb582e5195790b61f76807b309d8f90b5
3
+ metadata.gz: 37bd8b6d51020c43b22954554a156b86092881e5649a2aa9d0cb38a4bf0d2df7
4
+ data.tar.gz: 1117ceb5c6b158383f1b2f7ac3e4c16258ca7a1433a780e52174afc54dd45559
5
5
  SHA512:
6
- metadata.gz: 61c313b926cdabeb4fa659b0ca7821c17a501f711807bbd031e5a782a0d9709cb8f99e5fc508fe6e3e954f28b56f4450db0ad278ede13c879617ad2d772c2fa1
7
- data.tar.gz: f1cd519d658d7993aa97d412e77c668a5113cc919f3ef9bd790f1c097902f1b990d1d02492030652b72f5e3a15ca7928e11c4ff85457625a1723be6cc2fd3136
6
+ metadata.gz: e0cba80897b3791f6e9b6f4309bd18393fd7ea81779834dcc7de28eb1e5d7314f93d4fdb3ef12f23bbaf26dcfcef73a9cce129f67dc595dd0e375474ac69df6d
7
+ data.tar.gz: 81a78b756de5faf95ebcf9c0341fa31375e3690e04776800f0729fe4d7026582d04ad15dbdc418ac3f534847489fa85f03ab30f1a1291b3c223b1476e65ca1c0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.38.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.37.0 (2022-02-03)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.36.0 (2022-01-14)
15
+ ------------------
16
+
17
+ * Feature - This release adds the ListPermissionVersions API which lists the versions for a given permission.
18
+
4
19
  1.35.0 (2021-12-21)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.35.0
1
+ 1.38.0
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
33
35
 
@@ -74,7 +76,9 @@ module Aws::RAM
74
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
77
  add_plugin(Aws::Plugins::TransferEncoding)
76
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
77
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
78
82
  add_plugin(Aws::Plugins::SignatureV4)
79
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
80
84
 
@@ -585,7 +589,9 @@ module Aws::RAM
585
589
  # @option params [Integer] :permission_version
586
590
  # Specifies the version of the RAM permission to associate with the
587
591
  # resource share. If you don't specify this parameter, the operation
588
- # uses the version designated as the default.
592
+ # uses the version designated as the default. You can use the
593
+ # ListPermissionVersions operation to discover the available versions of
594
+ # a permission.
589
595
  #
590
596
  # @return [Types::AssociateResourceSharePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
591
597
  #
@@ -1516,6 +1522,75 @@ module Aws::RAM
1516
1522
  req.send_request(options)
1517
1523
  end
1518
1524
 
1525
+ # Lists the available versions of the specified RAM permission.
1526
+ #
1527
+ # @option params [required, String] :permission_arn
1528
+ # Specifies the [Amazon Resoure Name (ARN)][1] of the RAM permission
1529
+ # whose versions you want to list. You can use the `permissionVersion`
1530
+ # parameter on the AssociateResourceSharePermission operation to specify
1531
+ # a non-default version to attach.
1532
+ #
1533
+ #
1534
+ #
1535
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1536
+ #
1537
+ # @option params [String] :next_token
1538
+ # Specifies that you want to receive the next page of results. Valid
1539
+ # only if you received a `NextToken` response in the previous request.
1540
+ # If you did, it indicates that more output is available. Set this
1541
+ # parameter to the value provided by the previous call's `NextToken`
1542
+ # response to request the next page of results.
1543
+ #
1544
+ # @option params [Integer] :max_results
1545
+ # Specifies the total number of results that you want included on each
1546
+ # page of the response. If you do not include this parameter, it
1547
+ # defaults to a value that is specific to the operation. If additional
1548
+ # items exist beyond the number you specify, the `NextToken` response
1549
+ # element is returned with a value (not null). Include the specified
1550
+ # value as the `NextToken` request parameter in the next call to the
1551
+ # operation to get the next part of the results. Note that the service
1552
+ # might return fewer results than the maximum even when there are more
1553
+ # results available. You should check `NextToken` after every operation
1554
+ # to ensure that you receive all of the results.
1555
+ #
1556
+ # @return [Types::ListPermissionVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1557
+ #
1558
+ # * {Types::ListPermissionVersionsResponse#permissions #permissions} => Array<Types::ResourceSharePermissionSummary>
1559
+ # * {Types::ListPermissionVersionsResponse#next_token #next_token} => String
1560
+ #
1561
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1562
+ #
1563
+ # @example Request syntax with placeholder values
1564
+ #
1565
+ # resp = client.list_permission_versions({
1566
+ # permission_arn: "String", # required
1567
+ # next_token: "String",
1568
+ # max_results: 1,
1569
+ # })
1570
+ #
1571
+ # @example Response structure
1572
+ #
1573
+ # resp.permissions #=> Array
1574
+ # resp.permissions[0].arn #=> String
1575
+ # resp.permissions[0].version #=> String
1576
+ # resp.permissions[0].default_version #=> Boolean
1577
+ # resp.permissions[0].name #=> String
1578
+ # resp.permissions[0].resource_type #=> String
1579
+ # resp.permissions[0].status #=> String
1580
+ # resp.permissions[0].creation_time #=> Time
1581
+ # resp.permissions[0].last_updated_time #=> Time
1582
+ # resp.permissions[0].is_resource_type_default #=> Boolean
1583
+ # resp.next_token #=> String
1584
+ #
1585
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersions AWS API Documentation
1586
+ #
1587
+ # @overload list_permission_versions(params = {})
1588
+ # @param [Hash] params ({})
1589
+ def list_permission_versions(params = {}, options = {})
1590
+ req = build_request(:list_permission_versions, params)
1591
+ req.send_request(options)
1592
+ end
1593
+
1519
1594
  # Retrieves a list of available RAM permissions that you can use for the
1520
1595
  # supported resource types.
1521
1596
  #
@@ -2224,7 +2299,7 @@ module Aws::RAM
2224
2299
  params: params,
2225
2300
  config: config)
2226
2301
  context[:gem_name] = 'aws-sdk-ram'
2227
- context[:gem_version] = '1.35.0'
2302
+ context[:gem_version] = '1.38.0'
2228
2303
  Seahorse::Client::Request.new(handlers, context)
2229
2304
  end
2230
2305
 
@@ -51,6 +51,8 @@ module Aws::RAM
51
51
  InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
52
52
  ListPendingInvitationResourcesRequest = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesRequest')
53
53
  ListPendingInvitationResourcesResponse = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesResponse')
54
+ ListPermissionVersionsRequest = Shapes::StructureShape.new(name: 'ListPermissionVersionsRequest')
55
+ ListPermissionVersionsResponse = Shapes::StructureShape.new(name: 'ListPermissionVersionsResponse')
54
56
  ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
55
57
  ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
56
58
  ListPrincipalsRequest = Shapes::StructureShape.new(name: 'ListPrincipalsRequest')
@@ -287,6 +289,15 @@ module Aws::RAM
287
289
  ListPendingInvitationResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
288
290
  ListPendingInvitationResourcesResponse.struct_class = Types::ListPendingInvitationResourcesResponse
289
291
 
292
+ ListPermissionVersionsRequest.add_member(:permission_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "permissionArn"))
293
+ ListPermissionVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
294
+ ListPermissionVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
295
+ ListPermissionVersionsRequest.struct_class = Types::ListPermissionVersionsRequest
296
+
297
+ ListPermissionVersionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: ResourceSharePermissionList, location_name: "permissions"))
298
+ ListPermissionVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
299
+ ListPermissionVersionsResponse.struct_class = Types::ListPermissionVersionsResponse
300
+
290
301
  ListPermissionsRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
291
302
  ListPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
292
303
  ListPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
@@ -816,6 +827,27 @@ module Aws::RAM
816
827
  )
817
828
  end)
818
829
 
830
+ api.add_operation(:list_permission_versions, Seahorse::Model::Operation.new.tap do |o|
831
+ o.name = "ListPermissionVersions"
832
+ o.http_method = "POST"
833
+ o.http_request_uri = "/listpermissionversions"
834
+ o.input = Shapes::ShapeRef.new(shape: ListPermissionVersionsRequest)
835
+ o.output = Shapes::ShapeRef.new(shape: ListPermissionVersionsResponse)
836
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
837
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
838
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
839
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
840
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
841
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
842
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
843
+ o[:pager] = Aws::Pager.new(
844
+ limit_key: "max_results",
845
+ tokens: {
846
+ "next_token" => "next_token"
847
+ }
848
+ )
849
+ end)
850
+
819
851
  api.add_operation(:list_permissions, Seahorse::Model::Operation.new.tap do |o|
820
852
  o.name = "ListPermissions"
821
853
  o.http_method = "POST"
@@ -140,7 +140,9 @@ module Aws::RAM
140
140
  # @!attribute [rw] permission_version
141
141
  # Specifies the version of the RAM permission to associate with the
142
142
  # resource share. If you don't specify this parameter, the operation
143
- # uses the version designated as the default.
143
+ # uses the version designated as the default. You can use the
144
+ # ListPermissionVersions operation to discover the available versions
145
+ # of a permission.
144
146
  # @return [Integer]
145
147
  #
146
148
  # @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceSharePermissionRequest AWS API Documentation
@@ -1340,6 +1342,80 @@ module Aws::RAM
1340
1342
  include Aws::Structure
1341
1343
  end
1342
1344
 
1345
+ # @note When making an API call, you may pass ListPermissionVersionsRequest
1346
+ # data as a hash:
1347
+ #
1348
+ # {
1349
+ # permission_arn: "String", # required
1350
+ # next_token: "String",
1351
+ # max_results: 1,
1352
+ # }
1353
+ #
1354
+ # @!attribute [rw] permission_arn
1355
+ # Specifies the [Amazon Resoure Name (ARN)][1] of the RAM permission
1356
+ # whose versions you want to list. You can use the `permissionVersion`
1357
+ # parameter on the AssociateResourceSharePermission operation to
1358
+ # specify a non-default version to attach.
1359
+ #
1360
+ #
1361
+ #
1362
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1363
+ # @return [String]
1364
+ #
1365
+ # @!attribute [rw] next_token
1366
+ # Specifies that you want to receive the next page of results. Valid
1367
+ # only if you received a `NextToken` response in the previous request.
1368
+ # If you did, it indicates that more output is available. Set this
1369
+ # parameter to the value provided by the previous call's `NextToken`
1370
+ # response to request the next page of results.
1371
+ # @return [String]
1372
+ #
1373
+ # @!attribute [rw] max_results
1374
+ # Specifies the total number of results that you want included on each
1375
+ # page of the response. If you do not include this parameter, it
1376
+ # defaults to a value that is specific to the operation. If additional
1377
+ # items exist beyond the number you specify, the `NextToken` response
1378
+ # element is returned with a value (not null). Include the specified
1379
+ # value as the `NextToken` request parameter in the next call to the
1380
+ # operation to get the next part of the results. Note that the service
1381
+ # might return fewer results than the maximum even when there are more
1382
+ # results available. You should check `NextToken` after every
1383
+ # operation to ensure that you receive all of the results.
1384
+ # @return [Integer]
1385
+ #
1386
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersionsRequest AWS API Documentation
1387
+ #
1388
+ class ListPermissionVersionsRequest < Struct.new(
1389
+ :permission_arn,
1390
+ :next_token,
1391
+ :max_results)
1392
+ SENSITIVE = []
1393
+ include Aws::Structure
1394
+ end
1395
+
1396
+ # @!attribute [rw] permissions
1397
+ # An array of objects that contain details for each of the available
1398
+ # versions.
1399
+ # @return [Array<Types::ResourceSharePermissionSummary>]
1400
+ #
1401
+ # @!attribute [rw] next_token
1402
+ # If present, this value indicates that more output is available than
1403
+ # is included in the current response. Use this value in the
1404
+ # `NextToken` request parameter in a subsequent call to the operation
1405
+ # to get the next part of the output. You should repeat this until the
1406
+ # `NextToken` response element comes back as `null`. This indicates
1407
+ # that this is the last page of results.
1408
+ # @return [String]
1409
+ #
1410
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersionsResponse AWS API Documentation
1411
+ #
1412
+ class ListPermissionVersionsResponse < Struct.new(
1413
+ :permissions,
1414
+ :next_token)
1415
+ SENSITIVE = []
1416
+ include Aws::Structure
1417
+ end
1418
+
1343
1419
  # @note When making an API call, you may pass ListPermissionsRequest
1344
1420
  # data as a hash:
1345
1421
  #
data/lib/aws-sdk-ram.rb CHANGED
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-ram/customizations'
48
48
  # @!group service
49
49
  module Aws::RAM
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.38.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.38.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: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-02-24 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.125.0
22
+ version: 3.127.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.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement