Skip to content

SecretsManagerClient.describe_secret

rboto-secrets-manager==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves the details of a secret. It does not include the encrypted secret value. Secrets Manager only returns fields that have a value in the response. The VersionIdsToStages field in the response includes every version ID that has a staging label attached, even if that version doesn't contain a secret value. In contrast, ListSecretVersionIds only returns versions that contain a secret...

Install and imports

python -m pip install "rboto[secrets-manager]==0.4.0"
from rboto import SecretsManagerClient
from rboto_secrets_manager.types import (
    DescribeSecretOutput,
)

Signature

async def describe_secret(
    *,
    secret_id: str,
) -> DescribeSecretOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
secret_id Yes The ARN or name of the secret. For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN .

Output

DescribeSecretOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
arn str | None Always present —
name str | None Always present —
type str | None Always present —
description str | None Always present —
kms_key_id str | None Always present —
rotation_enabled bool | None Always present —
rotation_lambda_arn str | None Always present —
rotation_rules RotationRulesTypeOutput | None Always present RotationRulesTypeOutput
external_secret_rotation_metadata list[ExternalSecretRotationMetadataItemOutput] | None Always present ExternalSecretRotationMetadataItemOutput
external_secret_rotation_role_arn str | None Always present —
last_rotated_date str | None Always present —
last_changed_date str | None Always present —
last_accessed_date str | None Always present —
deleted_date str | None Always present —
next_rotation_date str | None Always present —
tags list[TagOutput] | None Always present TagOutput
version_ids_to_stages dict[str, list[str]] | None Always present —
owning_service str | None Always present —
created_date str | None Always present —
primary_region str | None Always present —
replication_status list[ReplicationStatusTypeOutput] | None Always present ReplicationStatusTypeOutput
cross_account_primary CrossAccountPrimaryTypeOutput | None Always present CrossAccountPrimaryTypeOutput
cross_account_replicas list[CrossAccountReplicaEntryOutput] | None Always present CrossAccountReplicaEntryOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

DescribeSecretOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_secrets_manager.exceptions:

InternalServiceError, InvalidParameterError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model