@Generated(value="software.amazon.awssdk:codegen") public final class DescribeSecretResponse extends SecretsManagerResponse implements ToCopyableBuilder<DescribeSecretResponse.Builder,DescribeSecretResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeSecretResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The ARN of the secret.
|
static DescribeSecretResponse.Builder |
builder() |
Instant |
deletedDate()
This value exists if the secret is scheduled for deletion.
|
String |
description()
The user-provided description of the secret.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsKeyId()
The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the
SecretString or
SecretBinary fields in each version of the secret. |
Instant |
lastAccessedDate()
The last date that this secret was accessed.
|
Instant |
lastChangedDate()
The last date and time that this secret was modified in any way.
|
Instant |
lastRotatedDate()
The most recent date and time that the Secrets Manager rotation process was successfully completed.
|
String |
name()
The user-provided friendly name of the secret.
|
String |
owningService()
Returns the value of the OwningService property for this object.
|
Boolean |
rotationEnabled()
Specifies whether automatic rotation is enabled for this secret.
|
String |
rotationLambdaARN()
The ARN of a Lambda function that's invoked by Secrets Manager to rotate the secret either automatically per the
schedule or manually by a call to
RotateSecret. |
RotationRulesType |
rotationRules()
A structure that contains the rotation configuration for this secret.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeSecretResponse.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The list of user-defined tags that are associated with the secret.
|
DescribeSecretResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Map<String,List<String>> |
versionIdsToStages()
A list of all of the currently assigned
VersionStage staging labels and the VersionId
that each is attached to. |
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String arn()
The ARN of the secret.
public String name()
The user-provided friendly name of the secret.
public String description()
The user-provided description of the secret.
public String kmsKeyId()
The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the SecretString or
SecretBinary fields in each version of the secret. If you don't provide a key, then Secrets Manager
defaults to encrypting the secret fields with the default AWS KMS CMK (the one named
awssecretsmanager) for this account.
SecretString or SecretBinary fields in each version of the secret. If you don't
provide a key, then Secrets Manager defaults to encrypting the secret fields with the default AWS KMS CMK
(the one named awssecretsmanager) for this account.public Boolean rotationEnabled()
Specifies whether automatic rotation is enabled for this secret.
To enable rotation, use RotateSecret with AutomaticallyRotateAfterDays set to a value greater
than 0. To disable rotation, use CancelRotateSecret.
To enable rotation, use RotateSecret with AutomaticallyRotateAfterDays set to a value
greater than 0. To disable rotation, use CancelRotateSecret.
public String rotationLambdaARN()
The ARN of a Lambda function that's invoked by Secrets Manager to rotate the secret either automatically per the
schedule or manually by a call to RotateSecret.
RotateSecret.public RotationRulesType rotationRules()
A structure that contains the rotation configuration for this secret.
public Instant lastRotatedDate()
The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret has never rotated.
public Instant lastChangedDate()
The last date and time that this secret was modified in any way.
public Instant lastAccessedDate()
The last date that this secret was accessed. This value is truncated to midnight of the date and therefore shows only the date, not the time.
public Instant deletedDate()
This value exists if the secret is scheduled for deletion. Some time after the specified date and time, Secrets Manager deletes the secret and all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret information, is not accessible. To cancel a scheduled deletion and restore access, use RestoreSecret.
If a secret is scheduled for deletion, then its details, including the encrypted secret information, is not accessible. To cancel a scheduled deletion and restore access, use RestoreSecret.
public List<Tag> tags()
The list of user-defined tags that are associated with the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,List<String>> versionIdsToStages()
A list of all of the currently assigned VersionStage staging labels and the VersionId
that each is attached to. Staging labels are used to keep track of the different versions during the rotation
process.
A version that does not have any staging labels attached is considered deprecated and subject to deletion. Such versions are not included in this list.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
VersionStage staging labels and the
VersionId that each is attached to. Staging labels are used to keep track of the different
versions during the rotation process. A version that does not have any staging labels attached is considered deprecated and subject to deletion. Such versions are not included in this list.
public String owningService()
public DescribeSecretResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeSecretResponse.Builder,DescribeSecretResponse>toBuilder in class AwsResponsepublic static DescribeSecretResponse.Builder builder()
public static Class<? extends DescribeSecretResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2019. All rights reserved.