The Client makes requests to the http:localhost endpoint exposed by the AWS Parameters and Secrets Lambda Extension.

Constructors

Properties

baseUrl: string

The Extension's base URL endpoint. Protocol + host + port number.

Default

http://localhost:2773

requester: Requester

An object capable of making a HTTP GET Request

Default

FetchRequester

Methods

  • Get a Secrets Manager BinarySecret Value as a Buffer from the Extension.

    Converts the Extension's Base64 string response to a Buffer.

    Parameters

    • secretId: string

      the secret id

    • Optional options: SecretOptions

      optional qualifiers.

    Returns Promise<null | Buffer>

    a Promise of a Binary Secret as a Buffer. null` if error or undefined.

  • Get a Binary Secret from the SSM Parameter Store using the Extension.

    Always returns the decrypted value. The WithDecryption flag must be True for retrieving a Secret Manager secret.

    Parameters

    • secretId: string

      the BinarySecret secret name

    • Optional options: SecretFromParamStoreOptions

      optional qualifiers. The Client sets withDecryption: true by default.

    Returns Promise<null | Buffer>

    a Promise of a Binary Secret as a Buffer. null` if error or undefined.

  • Get the extension localhost URL path for a SSM Parameter

    Parameters

    • parameterName: string

      the parameter name

    • Optional options: ParameterOptions

      optional qualifiers

    Returns string

    the localhost path of the request

  • Get the full Response object from the Extension for a SSM Parameter

    Parameters

    • parameterName: string

      the parameter name

    • Optional options: ParameterOptions

      optional qualifiers

    Returns Promise<ParameterResponse | ErrorResponse>

    a Promise of the full response object returned by the Extension.

  • Get the extension localhost URL path for a SecretManager Secret

    Parameters

    • secretId: string

      the secret id

    • Optional options: SecretOptions

      optional qualifiers

    Returns string

    the localhost path of the request

  • Get the full Response object from the Extension for a SecretManager Secret.

    For Binary Secrets "The response parameter represents the binary data as a base64-encoded string." (GetSecretValueCommandOutput)

    Parameters

    • secretId: string

      the secret id

    • Optional options: SecretOptions

      optional qualifiers.

    Returns Promise<SecretResponse | ErrorResponse>

    a Promise of the full response object returned by the Extension

  • Get a SSM String Parameter List Value from the Extension.

    Parameters

    • parameterName: string

      the SecureString parameter name

    • Optional options: SecureStringParameterOptions

      optional qualifiers. The Client sets withDecryption: true by default.

    Returns Promise<null | string>

    a Promise of the parameter's value. null if error or undefined.

  • Get a SSM String Parameter List Values as an array from the Extension.

    Use the stringParameter method to return the stringified value of a StringList.

    Parameters

    • parameterName: string

      the StringList parameter name

    • Optional options: StringParameterOptions

      optional qualifiers

    Returns Promise<null | string[]>

    a Promise of the parameter's values as an array. null if error or undefined.

  • Get a SSM String Parameter Value for from the Extension.

    If parameterName returns a comma-deliminated string for a StringList and the decrypted value of a SecureString.

    Parameters

    • parameterName: string

      the String or StringList parameter name

    • Optional options: StringParameterOptions

      optional qualifiers

    Returns Promise<null | string>

    a Promise of the parameter's string valu. null if error or undefined.

    • Get a Secrets Manager StringSecret Value from the Extension.

    Parameters

    • secretId: string

      the secret id

    • Optional options: SecretOptions

      optional qualifiers.

    Returns Promise<null | string>

    a Promise of a String Secret or null if error or undefined

  • Get a String Secret from the SSM Parameter Store using the Extension.

    Always returns the decrypted value. The WithDecryption flag must be True for retrieving a Secret Manager secret.

    Parameters

    • secretId: string

      the StringSecret secret name

    • Optional options: SecretFromParamStoreOptions

      optional qualifiers. The Client sets withDecryption: true by default.

    Returns Promise<null | string>

    a Promise of the parameter's value. null if error or undefined.

Generated using TypeDoc