The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed
in ReplicationStatus.
class
Amazonite::SecretsManager::DescribeSecretResponse
- Amazonite::SecretsManager::DescribeSecretResponse
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
secrets_manager/describe_secret_response.crConstructors
- .new(pull : JSON::PullParser)
- .new(arn : String | Nil = nil, name : String | Nil = nil, type : String | Nil = nil, description : String | Nil = nil, kms_key_id : String | Nil = nil, rotation_enabled : Bool | Nil = nil, rotation_lambda_arn : String | Nil = nil, rotation_rules : RotationRulesType | Nil = nil, external_secret_rotation_metadata : Array(ExternalSecretRotationMetadataItem) | Nil = nil, external_secret_rotation_role_arn : String | Nil = nil, last_rotated_date : Time | Nil = nil, last_changed_date : Time | Nil = nil, last_accessed_date : Time | Nil = nil, deleted_date : Time | Nil = nil, next_rotation_date : Time | Nil = nil, tags : Array(Tag) | Nil = nil, version_ids_to_stages : Hash(String, Array(String)) | Nil = nil, owning_service : String | Nil = nil, created_date : Time | Nil = nil, primary_region : String | Nil = nil, replication_status : Array(ReplicationStatusType) | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#arn : String | Nil
The ARN of the secret.
-
#arn=(arn : String | Nil)
The ARN of the secret.
-
#created_date : Time | Nil
The date the secret was created.
-
#created_date=(created_date : Time | Nil)
The date the secret was created.
-
#deleted_date : Time | Nil
The date the secret is scheduled for deletion.
-
#deleted_date=(deleted_date : Time | Nil)
The date the secret is scheduled for deletion.
-
#description : String | Nil
The description of the secret.
-
#description=(description : String | Nil)
The description of the secret.
-
#external_secret_rotation_metadata : Array(ExternalSecretRotationMetadataItem) | Nil
The metadata needed to successfully rotate a managed external secret.
-
#external_secret_rotation_metadata=(external_secret_rotation_metadata : Array(ExternalSecretRotationMetadataItem) | Nil)
The metadata needed to successfully rotate a managed external secret.
-
#external_secret_rotation_role_arn : String | Nil
The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner.
-
#external_secret_rotation_role_arn=(external_secret_rotation_role_arn : String | Nil)
The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner.
-
#hash(hasher)
See
Object#hash(hasher) -
#kms_key_id : String | Nil
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value.
-
#kms_key_id=(kms_key_id : String | Nil)
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value.
-
#last_accessed_date : Time | Nil
The date that the secret was last accessed in the Region.
-
#last_accessed_date=(last_accessed_date : Time | Nil)
The date that the secret was last accessed in the Region.
-
#last_changed_date : Time | Nil
The last date and time that this secret was modified in any way.
-
#last_changed_date=(last_changed_date : Time | Nil)
The last date and time that this secret was modified in any way.
-
#last_rotated_date : Time | Nil
The last date and time that Secrets Manager rotated the secret.
-
#last_rotated_date=(last_rotated_date : Time | Nil)
The last date and time that Secrets Manager rotated the secret.
-
#name : String | Nil
The name of the secret.
-
#name=(name : String | Nil)
The name of the secret.
-
#next_rotation_date : Time | Nil
The next rotation is scheduled to occur on or before this date.
-
#next_rotation_date=(next_rotation_date : Time | Nil)
The next rotation is scheduled to occur on or before this date.
-
#owning_service : String | Nil
The ID of the service that created this secret.
-
#owning_service=(owning_service : String | Nil)
The ID of the service that created this secret.
-
#primary_region : String | Nil
The Region the secret is in.
-
#primary_region=(primary_region : String | Nil)
The Region the secret is in.
-
#replication_status : Array(ReplicationStatusType) | Nil
A list of the replicas of this secret and their status:
-
#replication_status=(replication_status : Array(ReplicationStatusType) | Nil)
A list of the replicas of this secret and their status:
-
#rotation_enabled : Bool | Nil
Specifies whether automatic rotation is turned on for this secret.
-
#rotation_enabled=(rotation_enabled : Bool | Nil)
Specifies whether automatic rotation is turned on for this secret.
-
#rotation_lambda_arn : String | Nil
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
-
#rotation_lambda_arn=(rotation_lambda_arn : String | Nil)
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
-
#rotation_rules : RotationRulesType | Nil
The rotation schedule and Lambda function for this secret.
-
#rotation_rules=(rotation_rules : RotationRulesType | Nil)
The rotation schedule and Lambda function for this secret.
-
#tags : Array(Tag) | Nil
The list of tags attached to the secret.
-
#tags=(tags : Array(Tag) | Nil)
The list of tags attached to the secret.
-
#type : String | Nil
The exact string that identifies the partner that holds the external secret.
-
#type=(type : String | Nil)
The exact string that identifies the partner that holds the external secret.
- #validate! : Nil
-
#version_ids_to_stages : Hash(String, Array(String)) | Nil
A list of the versions of the secret that have staging labels attached.
-
#version_ids_to_stages=(version_ids_to_stages : Hash(String, Array(String)) | Nil)
A list of the versions of the secret that have staging labels attached.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.
The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information about the required information, see Managed external secrets partners.
The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information about the required information, see Managed external secrets partners.
The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner. For more information, see Security and permissions.
The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner. For more information, see Security and permissions.
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If
the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager, this
field is omitted. Secrets created using the console use an KMS key ID.
The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If
the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager, this
field is omitted. Secrets created using the console use an KMS key ID.
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
The last date and time that this secret was modified in any way.
The last date and time that this secret was modified in any way.
The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.
This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.
The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.
The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.
The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed
in ReplicationStatus.
A list of the replicas of this secret and their status:
-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
A list of the replicas of this secret and their status:
-
Failed, which indicates that the replica was not created. -
InProgress, which indicates that Secrets Manager is in the process of creating the replica. -
InSync, which indicates that the replica was created.
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.
To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.
The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.
The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
The exact string that identifies the partner that holds the external secret. For more information, see Using Secrets Manager managed external secrets.
The exact string that identifies the partner that holds the external secret. For more information, see Using Secrets Manager managed external secrets.
A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
-
AWSCURRENT, which indicates the current version of the secret. -
AWSPENDING, which indicates the version of the secret that contains new secret information that will become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING version ID before creating the new
secret version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS, which indicates the previous current version of the secret. You can use this as the last known good version.
For more information about rotation and staging labels, see How rotation works.
A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.
Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:
-
AWSCURRENT, which indicates the current version of the secret. -
AWSPENDING, which indicates the version of the secret that contains new secret information that will become the next current version when rotation finishes.
During rotation, Secrets Manager creates an AWSPENDING version ID before creating the new
secret version. To check if a secret version exists, call GetSecretValue.
AWSPREVIOUS, which indicates the previous current version of the secret. You can use this as the last known good version.
For more information about rotation and staging labels, see How rotation works.