public class GetSecretValueResult extends Object
Constructor and Description |
---|
GetSecretValueResult() |
Modifier and Type | Method and Description |
---|---|
String |
getARN()
The ARN of the secret.
|
Date |
getCreatedDate()
The date and time that this version of the secret was created.
|
String |
getName()
The friendly name of the secret.
|
ByteBuffer |
getSecretBinary()
The decrypted part of the protected secret information that was originally provided as binary data in the form
of a byte array.
|
String |
getSecretString()
The decrypted part of the protected secret information that was originally provided as a string.
|
String |
getVersionId()
The unique identifier of this version of the secret.
|
List<String> |
getVersionStages()
A list of all of the staging labels currently attached to this version of the secret.
|
void |
setARN(String inputArn)
The ARN of the secret.
|
void |
setCreatedDate(Date createdDate)
The date and time that this version of the secret was created.
|
void |
setName(String name)
The friendly name of the secret.
|
void |
setSecretBinary(ByteBuffer secretBinary)
The decrypted part of the protected secret information that was originally provided as binary data in the form
of a byte array.
|
void |
setSecretString(String secretString)
The decrypted part of the protected secret information that was originally provided as a string.
|
void |
setVersionId(String versionId)
The unique identifier of this version of the secret.
|
void |
setVersionStages(Collection<String> versionStages)
A list of all of the staging labels currently attached to this version of the secret.
|
GetSecretValueResult |
withARN(String inputARN)
The ARN of the secret.
|
GetSecretValueResult |
withCreatedDate(Date inputCreatedDate)
The date and time that this version of the secret was created.
|
GetSecretValueResult |
withName(String inputName)
The friendly name of the secret.
|
GetSecretValueResult |
withSecretBinary(ByteBuffer inputSecretBinary)
The decrypted part of the protected secret information that was originally provided as binary data in the form
of a byte array.
|
GetSecretValueResult |
withSecretString(String inputSecretString)
The decrypted part of the protected secret information that was originally provided as a string.
|
GetSecretValueResult |
withVersionId(String inputVersionId)
The unique identifier of this version of the secret.
|
GetSecretValueResult |
withVersionStages(Collection<String> inputVersionStages)
A list of all of the staging labels currently attached to this version of the secret.
|
GetSecretValueResult |
withVersionStages(String... inputVersionStage)
A list of all of the staging labels currently attached to this version of the secret.
|
public String getARN()
public void setARN(String inputArn)
inputArn
- The ARN of the secret.public Date getCreatedDate()
public void setCreatedDate(Date createdDate)
createdDate
- The date and time that this version of the secret was created.public String getName()
public void setName(String name)
name
- The friendly name of the secret.public ByteBuffer getSecretBinary()
public void setSecretBinary(ByteBuffer secretBinary)
secretBinary
- The decrypted part of the protected secret information that was originally provided as
binary data in the form of a byte array. The response parameter represents the binary data
as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda
rotation function to parse and interpret whatever you store in the SecretString or
SecretBinary fields.public String getSecretString()
public void setSecretString(String secretString)
secretString
- The decrypted part of the protected secret information that was originally provided as
a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter contains data. Secrets Manager stores the information as a JSON structure of
key/value pairs that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret,
or PutSecretValue API operations instead of the Secrets Manager console, or by using the
Other secret type in the console, then you must code your Lambda rotation function to parse
and interpret those values.public String getVersionId()
public void setVersionId(String versionId)
versionId
- The unique identifier of this version of the secret.public List<String> getVersionStages()
public void setVersionStages(Collection<String> versionStages)
versionStages
- A list of all of the staging labels currently attached to this version of the secret.public GetSecretValueResult withARN(String inputARN)
inputARN
- The ARN of the secret.public GetSecretValueResult withCreatedDate(Date inputCreatedDate)
inputCreatedDate
- The date and time that this version of the secret was created.public GetSecretValueResult withName(String inputName)
inputName
- The friendly name of the secret.public GetSecretValueResult withSecretBinary(ByteBuffer inputSecretBinary)
inputSecretBinary
- The decrypted part of the protected secret information that was originally provided as
binary data in the form of a byte array. The response parameter represents the binary data
as a base64-encoded string.
This parameter is not used if the secret is created by the Secrets Manager console.
If you store custom information in this field of the secret, then you must code your Lambda
rotation function to parse and interpret whatever you store in the SecretString or
SecretBinary fields.public GetSecretValueResult withSecretString(String inputSecretString)
inputSecretString
- The decrypted part of the protected secret information that was originally provided
as a string.
If you create this secret by using the Secrets Manager console then only the SecretString
parameter contains data. Secrets Manager stores the information as a JSON structure of
key/value pairs that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret, UpdateSecret, or
PutSecretValue API operations instead of the Secrets Manager console, or by using the Other
secret type in the console, then you must code your Lambda rotation function to parse and
interpret those values.public GetSecretValueResult withVersionId(String inputVersionId)
inputVersionId
- The unique identifier of this version of the secret.public GetSecretValueResult withVersionStages(Collection<String> inputVersionStages)
inputVersionStages
- A list of all of the staging labels currently attached to this version of the secret.public GetSecretValueResult withVersionStages(String... inputVersionStage)
inputVersionStage
- A list of all of the staging labels currently attached to this version of the secret.