Last chance! 50% off unlimited learning
Sale ends in
Returns a list of all grants for which the grant\'s RetiringPrincipal
matches the one specified.
kms_list_retirable_grants(Limit, Marker, RetiringPrincipal)
Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.
Use this parameter in a subsequent request after you receive a response
with truncated results. Set it to the value of NextMarker
from the
truncated response you just received.
[required] The retiring principal for which to list grants.
To specify the retiring principal, use the Amazon Resource Name (ARN) of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax for specifying a principal, see AWS Identity and Access Management (IAM) in the Example ARNs section of the Amazon Web Services General Reference.
svc$list_retirable_grants( Limit = 123, Marker = "string", RetiringPrincipal = "string" )
A typical use is to list all grants that you are able to retire. To retire a grant, use RetireGrant.
# NOT RUN {
# The following example lists the grants that the specified principal
# (identity) can retire.
svc$list_retirable_grants(
RetiringPrincipal = "arn:aws:iam::111122223333:role/ExampleRole"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab