Documentation
¶
Overview ¶
Package secretsmanager provides a client to make API requests to AWS Secrets Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrSecretAlreadyExists ¶
type ErrSecretAlreadyExists struct {
// contains filtered or unexported fields
}
ErrSecretAlreadyExists occurs if a secret with the same name already exists.
func (*ErrSecretAlreadyExists) Error ¶
func (err *ErrSecretAlreadyExists) Error() string
type SecretsManager ¶
type SecretsManager struct {
// contains filtered or unexported fields
}
SecretsManager wraps the AWS SecretManager client.
func New ¶
func New() (*SecretsManager, error)
New returns a SecretsManager configured with the default session.
func (*SecretsManager) CreateSecret ¶
func (s *SecretsManager) CreateSecret(secretName, secretString string) (string, error)
CreateSecret creates a secret using the default KMS key "aws/secretmanager" to encrypt the secret and returns its ARN.
func (*SecretsManager) DeleteSecret ¶
func (s *SecretsManager) DeleteSecret(secretName string) error
DeleteSecret force removes the secret from SecretsManager.
Click to show internal directories.
Click to hide internal directories.