Module Smaws_Client_SecretsManager.ListSecrets

Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.

All Secrets Manager operations are eventually consistent. ListSecrets might not reflect changes from the last five minutes. You can get more recent information for a specific secret by calling DescribeSecret.

To list the versions of a secret, use ListSecretVersionIds.

To retrieve the values for the secrets, call BatchGetSecretValue or GetSecretValue.

For information about finding secrets in the console, see Find secrets in Secrets Manager.

Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.

Required permissions: secretsmanager:ListSecrets. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidNextTokenException of Types.invalid_next_token_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidRequestException of Types.invalid_request_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.list_secrets_request -> (Types.list_secrets_response, [> Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidNextTokenException of Types.invalid_next_token_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidRequestException of Types.invalid_request_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.list_secrets_request -> (Types.list_secrets_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidNextTokenException of Types.invalid_next_token_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidRequestException of Types.invalid_request_exception ] * Smaws_Lib.Response.metadata) Stdlib.result