Skip to main content

string_for_secret

Macro string_for_secret 

Source
string_for_secret!() { /* proc-macro */ }
Expand description

Creates a validated StringForSecret wrapper for AWS Secrets Manager secret names at compile time.

This macro ensures that the input string is a valid name for AWS Secrets Manager secrets, following AWS naming conventions and character restrictions.

ยงValidation Rules

  • String must not be empty
  • Only alphanumeric characters, and the following special characters are allowed: /, _, +, =, ., @, -