|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.UpdateAccessKeyRequest
public class UpdateAccessKeyRequest
Container for the parameters to the UpdateAccessKey operation
.
Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.
If the UserName
field is not specified, the UserName is determined implicitly based on the AWS Access Key ID used to sign the request.
Because this action works for access keys under the AWS account, this API can be used to manage root credentials even if the AWS account has no
associated users.
For information about rotating keys, see Managing Keys and Certificates in Using AWS Identity and Access Management .
AmazonIdentityManagement.updateAccessKey(UpdateAccessKeyRequest)
,
Serialized FormConstructor Summary | |
---|---|
UpdateAccessKeyRequest()
Default constructor for a new UpdateAccessKeyRequest object. |
|
UpdateAccessKeyRequest(String accessKeyId,
StatusType status)
Constructs a new UpdateAccessKeyRequest object. |
|
UpdateAccessKeyRequest(String accessKeyId,
String status)
Constructs a new UpdateAccessKeyRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAccessKeyId()
The Access Key ID of the Secret Access Key you want to update. |
String |
getStatus()
The status you want to assign to the Secret Access Key. |
String |
getUserName()
Name of the user whose key you want to update. |
int |
hashCode()
|
void |
setAccessKeyId(String accessKeyId)
The Access Key ID of the Secret Access Key you want to update. |
void |
setStatus(StatusType status)
The status you want to assign to the Secret Access Key. |
void |
setStatus(String status)
The status you want to assign to the Secret Access Key. |
void |
setUserName(String userName)
Name of the user whose key you want to update. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
UpdateAccessKeyRequest |
withAccessKeyId(String accessKeyId)
The Access Key ID of the Secret Access Key you want to update. |
UpdateAccessKeyRequest |
withStatus(StatusType status)
The status you want to assign to the Secret Access Key. |
UpdateAccessKeyRequest |
withStatus(String status)
The status you want to assign to the Secret Access Key. |
UpdateAccessKeyRequest |
withUserName(String userName)
Name of the user whose key you want to update. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UpdateAccessKeyRequest()
public UpdateAccessKeyRequest(String accessKeyId, String status)
accessKeyId
- The Access Key ID of the Secret Access Key you want
to update.status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.public UpdateAccessKeyRequest(String accessKeyId, StatusType status)
accessKeyId
- The Access Key ID of the Secret Access Key you want
to update.status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.Method Detail |
---|
public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user whose key you want to update.public UpdateAccessKeyRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user whose key you want to update.
public String getAccessKeyId()
Constraints:
Length: 16 - 32
Pattern: [\w]*
public void setAccessKeyId(String accessKeyId)
Constraints:
Length: 16 - 32
Pattern: [\w]*
accessKeyId
- The Access Key ID of the Secret Access Key you want to update.public UpdateAccessKeyRequest withAccessKeyId(String accessKeyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]*
accessKeyId
- The Access Key ID of the Secret Access Key you want to update.
public String getStatus()
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.StatusType
public void setStatus(String status)
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.StatusType
public UpdateAccessKeyRequest withStatus(String status)
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
StatusType
public void setStatus(StatusType status)
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.StatusType
public UpdateAccessKeyRequest withStatus(StatusType status)
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status
- The status you want to assign to the Secret Access Key.
Active
means the key can be used for API calls to AWS,
while Inactive
means the key cannot be used.
StatusType
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |