@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 |
createdDate()
The date you created the secret.
|
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() |
boolean |
hasReplicationStatus()
For responses, this returns true if the service returned a value for the ReplicationStatus property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasVersionIdsToStages()
For responses, this returns true if the service returned a value for the VersionIdsToStages property.
|
String |
kmsKeyId()
The ARN or alias of the Amazon Web Services 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 last date and time that the rotation process for this secret was invoked.
|
String |
name()
The user-provided friendly name of the secret.
|
String |
owningService()
Returns the name of the service that created this secret.
|
String |
primaryRegion()
Specifies the primary region for secret replication.
|
List<ReplicationStatusType> |
replicationStatus()
Describes a list of replication status objects as
InProgress, Failed or
InSync.P |
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 with 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 final String arn()
The ARN of the secret.
public final String name()
The user-provided friendly name of the secret.
public final String description()
The user-provided description of the secret.
public final String kmsKeyId()
The ARN or alias of the Amazon Web Services 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 Amazon Web Services 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 Amazon Web
Services KMS CMK (the one named awssecretsmanager) for this account.public final 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 final 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 final RotationRulesType rotationRules()
A structure with the rotation configuration for this secret. This field is only populated if rotation is configured.
public final Instant lastRotatedDate()
The last date and time that the rotation process for this secret was invoked.
The most recent date and time that the Secrets Manager rotation process successfully completed. If the secret doesn't rotate, Secrets Manager returns a null value.
The most recent date and time that the Secrets Manager rotation process successfully completed. If the secret doesn't rotate, Secrets Manager returns a null value.
public final Instant lastChangedDate()
The last date and time that this secret was modified in any way.
public final 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 final 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 final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final boolean hasVersionIdsToStages()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVersionIdsToStages() method.
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 final String owningService()
Returns the name of the service that created this secret.
public final Instant createdDate()
The date you created the secret.
public final String primaryRegion()
Specifies the primary region for secret replication.
public final boolean hasReplicationStatus()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ReplicationStatusType> replicationStatus()
Describes a list of replication status objects as InProgress, Failed or
InSync.P
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasReplicationStatus() method.
InProgress, Failed or
InSync.Ppublic 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 final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.