0.4.23 • Published 11 months ago

@veterancrowd/wrapped-secrets-manager-client v0.4.23

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

Backup Status

wrapped-client-secrets-manager

This package wraps the Secrets Manager Client - AWS SDK for JavaScript v3 to provide consistent logging and other services.

API Documentation

wrapped-secrets-manager-client

wrapped-secrets-manager-client.WrappedSecretsManagerClient

Wraps an AWS Secrets Manager client to provide standard logging & services.

Kind: static class of wrapped-secrets-manager-client

new exports.WrappedSecretsManagerClient(options)

WrappedSqsClient constructor.

ParamTypeDescription
optionsobjectOptions.
options.loggerobjectLogger instance (default is global console object). Must have info, error & debug methods
options.logInternalsbooleanLog AWS client internals (default is false).
options.configobjectSecretsManagerClientConfig.

wrappedSecretsManagerClient.createSecret(options) ⇒ Promise.<CreateSecretResponse>

Create a secret.

Kind: instance method of WrappedSecretsManagerClient
Returns: Promise.<CreateSecretResponse> - Response object.

ParamTypeDescription
optionsobjectOptions.
options.descriptionstringA user-provided description of the secret.
options.forceOverwriteReplicaSecretbooleanSpecifies whether to overwrite a secret with the same name in the destination Region.
options.namestringSpecifies the friendly name of the new secret. The secret name must be ASCII letters, digits, or the following characters : /_+=.@-
options.valuestring | objectSpecifies the value of the secret.
options.versionIdstringA unique identifier for the request. If you repeat the request with the same client request token, but change other parameters, AWS CloudFormation returns an error, indicating that the request is not idempotent. Generated by AWS if not submitted.

wrappedSecretsManagerClient.deleteSecret(options) ⇒ Promise.<DeleteSecretResponse>

Delete a secret.

Kind: instance method of WrappedSecretsManagerClient
Returns: Promise.<DeleteSecretResponse> - Response object.

ParamTypeDescription
optionsobjectOptions.
options.secretIdstringThe ARN or name of the secret to delete.
options.recoveryWindowInDaysstringSpecifies the number of days that AWS CloudFormation waits before deleting the secret permanently. You can specify a minimum value of 7 to a maximum value of 30 days. The default value is 30.
options.forceDeleteWithoutRecoverystringSpecifies whether to delete the secret without any recovery window.

wrappedSecretsManagerClient.describeSecret(options) ⇒ Promise.<object>

Describe a secret.

Kind: instance method of WrappedSecretsManagerClient
Returns: Promise.<object> - Response object (see DescribeSecretCommandOutput).

ParamTypeDescription
optionsobjectOptions.
options.secretIdstringThe ARN or name of the secret to describe.

wrappedSecretsManagerClient.getSecretValue(options) ⇒ Promise.<GetSecretValueResponse>

Get a secret value.

Kind: instance method of WrappedSecretsManagerClient
Returns: Promise.<GetSecretValueResponse> - Response object.

ParamTypeDescription
optionsobjectOptions.
options.secretIdstringThe ARN or name of the secret.
options.versionIdstringThe unique identifier of the version of the secret that you want to retrieve.

wrappedSecretsManagerClient.putSecretValue(options) ⇒ Promise.<PutSecretValueResponse>

Put a secret value.

Kind: instance method of WrappedSecretsManagerClient
Returns: Promise.<PutSecretValueResponse> - Response object.

ParamTypeDescription
optionsobjectOptions.
options.secretIdstringThe ARN or name of the secret.
options.valuestring | objectSpecifies the value of the secret.
options.versionIdstringA unique identifier for the request. If you repeat the request with the same client request token, but change other parameters, AWS CloudFormation returns an error, indicating that the request is not idempotent. Generated by AWS if not submitted.

wrapped-secrets-manager-client~CreateSecretResponse : object

Kind: inner typedef of wrapped-secrets-manager-client
Properties

NameTypeDescription
arnstringThe Amazon Resource Name (ARN) of the secret.
namestringThe friendly name of the secret.
replicationStatusstringThe status of replication for the secret.
versionIdstringThe unique identifier of the version of the secret that was created.

wrapped-secrets-manager-client~DeleteSecretResponse : object

Kind: inner typedef of wrapped-secrets-manager-client
Properties

NameTypeDescription
arnstringThe ARN of the secret that is scheduled for deletion.
deletionDateDateThe date and time after which this secret Secrets Manager can permanently delete this secret, and it can no longer be restored. This value is the date and time of the delete request plus the number of days in RecoveryWindowInDays.
namestringThe friendly name of the secret that is scheduled for deletion.

wrapped-secrets-manager-client~GetSecretValueResponse : object

Kind: inner typedef of wrapped-secrets-manager-client
Properties

NameTypeDescription
arnstringThe ARN of the secret.
createdDateDateThe date and time that this version of the secret was created.
namestringThe friendly name of the secret.
valuestring | objectThe secret value.
versionIdstringThe unique identifier of this version of the secret.

wrapped-secrets-manager-client~PutSecretValueResponse : object

Kind: inner typedef of wrapped-secrets-manager-client
Properties

NameTypeDescription
arnstringThe Amazon Resource Name (ARN) of the secret.
namestringThe friendly name of the secret.
versionIdstringThe unique identifier of the version of the secret.

See more great templates and other tools on my GitHub Profile!

0.4.21

12 months ago

0.4.22

11 months ago

0.4.23

11 months ago

0.4.20

1 year ago

0.4.19

1 year ago

0.4.18

1 year ago

0.4.17

1 year ago

0.4.16

1 year ago

0.4.15

1 year ago

0.4.14

1 year ago

0.4.13

1 year ago

0.4.12

1 year ago

0.4.11

1 year ago

0.4.10

1 year ago

0.4.9

1 year ago

0.4.8

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.3.5

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.3.4

2 years ago

0.4.2

2 years ago

0.3.2

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.3.0-0

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago