aws-sdk-ram 1.35.0 → 1.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ram/client.rb +73 -2
- data/lib/aws-sdk-ram/client_api.rb +32 -0
- data/lib/aws-sdk-ram/types.rb +77 -1
- data/lib/aws-sdk-ram.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 472b32e157dd694c328a9c5c74059317cbb6c3cf66983bbf8b63cfc8a5b63599
|
4
|
+
data.tar.gz: 8765d9a071640505dff4f49af1a7f6cabe4c5fab40953a7f168279e6aacef988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 764f8950bed887248dee51710e11130cc2523bd01e3e6c1ec26a545a4752c65bbcf5811e2f55cf95c05c701ccc6f9432f831c84eb933b70149a363c4b0c6436a
|
7
|
+
data.tar.gz: dfdcedea948a8baf1217efadd290744f77a4d671bb7c9f3f53dd4b827d0eb99f197aee0b5bd5978ebea6a16122094c32e2c4dd8c383108a24dae1a39b31c7abe
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.36.0
|
data/lib/aws-sdk-ram/client.rb
CHANGED
@@ -585,7 +585,9 @@ module Aws::RAM
|
|
585
585
|
# @option params [Integer] :permission_version
|
586
586
|
# Specifies the version of the RAM permission to associate with the
|
587
587
|
# resource share. If you don't specify this parameter, the operation
|
588
|
-
# uses the version designated as the default.
|
588
|
+
# uses the version designated as the default. You can use the
|
589
|
+
# ListPermissionVersions operation to discover the available versions of
|
590
|
+
# a permission.
|
589
591
|
#
|
590
592
|
# @return [Types::AssociateResourceSharePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
591
593
|
#
|
@@ -1516,6 +1518,75 @@ module Aws::RAM
|
|
1516
1518
|
req.send_request(options)
|
1517
1519
|
end
|
1518
1520
|
|
1521
|
+
# Lists the available versions of the specified RAM permission.
|
1522
|
+
#
|
1523
|
+
# @option params [required, String] :permission_arn
|
1524
|
+
# Specifies the [Amazon Resoure Name (ARN)][1] of the RAM permission
|
1525
|
+
# whose versions you want to list. You can use the `permissionVersion`
|
1526
|
+
# parameter on the AssociateResourceSharePermission operation to specify
|
1527
|
+
# a non-default version to attach.
|
1528
|
+
#
|
1529
|
+
#
|
1530
|
+
#
|
1531
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
1532
|
+
#
|
1533
|
+
# @option params [String] :next_token
|
1534
|
+
# Specifies that you want to receive the next page of results. Valid
|
1535
|
+
# only if you received a `NextToken` response in the previous request.
|
1536
|
+
# If you did, it indicates that more output is available. Set this
|
1537
|
+
# parameter to the value provided by the previous call's `NextToken`
|
1538
|
+
# response to request the next page of results.
|
1539
|
+
#
|
1540
|
+
# @option params [Integer] :max_results
|
1541
|
+
# Specifies the total number of results that you want included on each
|
1542
|
+
# page of the response. If you do not include this parameter, it
|
1543
|
+
# defaults to a value that is specific to the operation. If additional
|
1544
|
+
# items exist beyond the number you specify, the `NextToken` response
|
1545
|
+
# element is returned with a value (not null). Include the specified
|
1546
|
+
# value as the `NextToken` request parameter in the next call to the
|
1547
|
+
# operation to get the next part of the results. Note that the service
|
1548
|
+
# might return fewer results than the maximum even when there are more
|
1549
|
+
# results available. You should check `NextToken` after every operation
|
1550
|
+
# to ensure that you receive all of the results.
|
1551
|
+
#
|
1552
|
+
# @return [Types::ListPermissionVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1553
|
+
#
|
1554
|
+
# * {Types::ListPermissionVersionsResponse#permissions #permissions} => Array<Types::ResourceSharePermissionSummary>
|
1555
|
+
# * {Types::ListPermissionVersionsResponse#next_token #next_token} => String
|
1556
|
+
#
|
1557
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1558
|
+
#
|
1559
|
+
# @example Request syntax with placeholder values
|
1560
|
+
#
|
1561
|
+
# resp = client.list_permission_versions({
|
1562
|
+
# permission_arn: "String", # required
|
1563
|
+
# next_token: "String",
|
1564
|
+
# max_results: 1,
|
1565
|
+
# })
|
1566
|
+
#
|
1567
|
+
# @example Response structure
|
1568
|
+
#
|
1569
|
+
# resp.permissions #=> Array
|
1570
|
+
# resp.permissions[0].arn #=> String
|
1571
|
+
# resp.permissions[0].version #=> String
|
1572
|
+
# resp.permissions[0].default_version #=> Boolean
|
1573
|
+
# resp.permissions[0].name #=> String
|
1574
|
+
# resp.permissions[0].resource_type #=> String
|
1575
|
+
# resp.permissions[0].status #=> String
|
1576
|
+
# resp.permissions[0].creation_time #=> Time
|
1577
|
+
# resp.permissions[0].last_updated_time #=> Time
|
1578
|
+
# resp.permissions[0].is_resource_type_default #=> Boolean
|
1579
|
+
# resp.next_token #=> String
|
1580
|
+
#
|
1581
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersions AWS API Documentation
|
1582
|
+
#
|
1583
|
+
# @overload list_permission_versions(params = {})
|
1584
|
+
# @param [Hash] params ({})
|
1585
|
+
def list_permission_versions(params = {}, options = {})
|
1586
|
+
req = build_request(:list_permission_versions, params)
|
1587
|
+
req.send_request(options)
|
1588
|
+
end
|
1589
|
+
|
1519
1590
|
# Retrieves a list of available RAM permissions that you can use for the
|
1520
1591
|
# supported resource types.
|
1521
1592
|
#
|
@@ -2224,7 +2295,7 @@ module Aws::RAM
|
|
2224
2295
|
params: params,
|
2225
2296
|
config: config)
|
2226
2297
|
context[:gem_name] = 'aws-sdk-ram'
|
2227
|
-
context[:gem_version] = '1.
|
2298
|
+
context[:gem_version] = '1.36.0'
|
2228
2299
|
Seahorse::Client::Request.new(handlers, context)
|
2229
2300
|
end
|
2230
2301
|
|
@@ -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"
|
data/lib/aws-sdk-ram/types.rb
CHANGED
@@ -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
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.
|
4
|
+
version: 1.36.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:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|