@Generated(value="software.amazon.awssdk:codegen") public class SecretListEntry extends Object implements StructuredPojo, ToCopyableBuilder<SecretListEntry.Builder,SecretListEntry>
A structure that contains the details about a secret. It does not include the encrypted SecretString
and
SecretBinary
values. To get those values, use the GetSecretValue operation.
Modifier and Type | Class and Description |
---|---|
static interface |
SecretListEntry.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the secret.
|
static SecretListEntry.Builder |
builder() |
Instant |
deletedDate()
The date and time on which this secret was deleted.
|
String |
description()
The user-provided description of the secret.
|
boolean |
equals(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
and 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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The friendly name of the secret.
|
Boolean |
rotationEnabled()
Indicated whether automatic, scheduled rotation is enabled for this secret.
|
String |
rotationLambdaARN()
The ARN of an AWS Lambda function that's invoked by Secrets Manager to rotate and expire the secret either
automatically per the schedule or manually by a call to RotateSecret.
|
RotationRulesType |
rotationRules()
A structure that defines the rotation configuration for the secret.
|
Map<String,List<String>> |
secretVersionsToStages()
A list of all of the currently assigned
SecretVersionStage staging labels and the
SecretVersionId that each is attached to. |
static Class<? extends SecretListEntry.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The list of user-defined tags that are associated with the secret.
|
SecretListEntry.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String arn()
The Amazon Resource Name (ARN) of the secret.
For more information about ARNs in Secrets Manager, see Policy Resources in the AWS Secrets Manager User Guide.
For more information about ARNs in Secrets Manager, see Policy Resources in the AWS Secrets Manager User Guide.
public String name()
The friendly name of the secret. You can use forward slashes in the name to represent a path hierarchy. For
example, /prod/databases/dbserver1
could represent the secret for a server named
dbserver1
in the folder databases
in the folder prod
.
/prod/databases/dbserver1
could represent the secret for a server named
dbserver1
in the folder databases
in the folder prod
.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
and 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 KMS CMK (the one named
awssecretsmanager
) for this account.
SecretString
and 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 KMS
CMK (the one named awssecretsmanager
) for this account.public Boolean rotationEnabled()
Indicated whether automatic, scheduled rotation is enabled for this secret.
public String rotationLambdaARN()
The ARN of an AWS Lambda function that's invoked by Secrets Manager to rotate and expire the secret either automatically per the schedule or manually by a call to RotateSecret.
public RotationRulesType rotationRules()
A structure that defines the rotation configuration for the secret.
public Instant lastRotatedDate()
The last date and time that the rotation process for this secret was invoked.
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()
The date and time on which this secret was deleted. Not present on active secrets. The secret can be recovered
until the number of days in the recovery window has passed, as specified in the RecoveryWindowInDays
parameter of the DeleteSecret operation.
RecoveryWindowInDays
parameter of the DeleteSecret operation.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>> secretVersionsToStages()
A list of all of the currently assigned SecretVersionStage
staging labels and the
SecretVersionId
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 SecretVersionStage
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.
SecretVersionStage
staging labels and the
SecretVersionId
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 SecretVersionStage
is considered deprecated and subject to
deletion. Such versions are not included in this list.
public SecretListEntry.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SecretListEntry.Builder,SecretListEntry>
public static SecretListEntry.Builder builder()
public static Class<? extends SecretListEntry.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.