public class ListRetirableGrantsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Returns all grants in which the specified principal is the
RetiringPrincipal
in the grant.
You can specify any principal in your AWS account. The grants that are returned include grants for CMKs in your AWS account and other AWS accounts.
You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.
Cross-account use: You must specify a principal in your AWS account.
However, this operation can return grants in any AWS account. You do not need
kms:ListRetirableGrants
permission (or any other additional
permission) in any AWS account other than your own.
Required permissions: kms:ListRetirableGrants (IAM policy) in your AWS account.
Related operations:
Constructor and Description |
---|
ListRetirableGrantsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getLimit()
Use this parameter to specify the maximum number of items to return.
|
java.lang.String |
getMarker()
Use this parameter in a subsequent request after you receive a response
with truncated results.
|
java.lang.String |
getRetiringPrincipal()
The retiring principal for which to list grants.
|
int |
hashCode() |
void |
setLimit(java.lang.Integer limit)
Use this parameter to specify the maximum number of items to return.
|
void |
setMarker(java.lang.String marker)
Use this parameter in a subsequent request after you receive a response
with truncated results.
|
void |
setRetiringPrincipal(java.lang.String retiringPrincipal)
The retiring principal for which to list grants.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListRetirableGrantsRequest |
withLimit(java.lang.Integer limit)
Use this parameter to specify the maximum number of items to return.
|
ListRetirableGrantsRequest |
withMarker(java.lang.String marker)
Use this parameter in a subsequent request after you receive a response
with truncated results.
|
ListRetirableGrantsRequest |
withRetiringPrincipal(java.lang.String retiringPrincipal)
The retiring principal for which to list grants.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.Integer getLimit()
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.
Constraints:
Range: 1 - 1000
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.
public void setLimit(java.lang.Integer limit)
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.
Constraints:
Range: 1 - 1000
limit
- 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.
public ListRetirableGrantsRequest withLimit(java.lang.Integer limit)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1000
limit
- 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.
public java.lang.String getMarker()
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.
Constraints:
Length: 1 - 1024
Pattern: [ -ÿ]*
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.
public void setMarker(java.lang.String marker)
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.
Constraints:
Length: 1 - 1024
Pattern: [ -ÿ]*
marker
-
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.
public ListRetirableGrantsRequest withMarker(java.lang.String marker)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: [ -ÿ]*
marker
-
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.
public java.lang.String getRetiringPrincipal()
The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
public void setRetiringPrincipal(java.lang.String retiringPrincipal)
The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
retiringPrincipal
- The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
public ListRetirableGrantsRequest withRetiringPrincipal(java.lang.String retiringPrincipal)
The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^[\w+=,.@:/-]+$
retiringPrincipal
- The retiring principal for which to list grants. Enter a principal in your AWS account.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.