SecretsManagerClient.update_secret_version_stage
rboto-secrets-manager==0.4.0 · Service index · Types
Model summary (excerpt): Modifies the staging labels attached to a version of a secret. Secrets Manager uses staging labels to track a version as it progresses through the secret rotation process. Each staging label can be attached to only one version at a time. To add a staging label to a version when it is already attached to another version, Secrets Manager first removes it from the other version first and then...
Install and imports
from rboto import SecretsManagerClient
from rboto_secrets_manager.types import (
UpdateSecretVersionStageOutput,
)
Signature
async def update_secret_version_stage(
*,
secret_id: str,
version_stage: str,
remove_from_version_id: str | None = None,
move_to_version_id: str | None = None,
) -> UpdateSecretVersionStageOutput: ...
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 the name of the secret with the version and staging labelsto modify. For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN . |
version_stage |
Yes | The staging label to add to this version. |
remove_from_version_id |
No | The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation... |
move_to_version_id |
No | The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter. If the staging label is already attached to a different version of the secret, then you must also specify the RemoveFromVersionId parameter. |
Output
UpdateSecretVersionStageOutput.
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 | — |
| 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.
Related types
UpdateSecretVersionStageOutput
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, InvalidRequestError, LimitExceededError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.