A parametrized string whose value is stored in Cloud Secret Manager instead of the local filesystem. Supply instances of SecretParams to the secrets array while defining a Function to make their values accessible during execution of that Function.

**Signature:**

    export declare class SecretParam 

## Constructors

| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(name, options)](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparam#paramssecretparamconstructor) |   | Constructs a new instance of the `SecretParam` class |

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [name](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparam#paramssecretparamname) |   | string |   |
| [options](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparam#paramssecretparamoptions) |   | [SecretParamOptions](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparamoptions#paramssecretparamoptions_interface) |   |
| [type](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparam#paramssecretparamtype) | `static` | ParamValueType |   |

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [value()](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparam#paramssecretparamvalue) |   | Returns the secret's value at runtime. Throws an error if accessed during deployment. |

## params.SecretParam.(constructor)

Constructs a new instance of the `SecretParam` class

**Signature:**

    constructor(name: string, options?: SecretParamOptions);

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string |   |
| options | [SecretParamOptions](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.params.secretparamoptions#paramssecretparamoptions_interface) |   |

## params.SecretParam.name

**Signature:**

    name: string;

## params.SecretParam.options

**Signature:**

    readonly options: SecretParamOptions;

## params.SecretParam.type

**Signature:**

    static type: ParamValueType;

## params.SecretParam.value()

Returns the secret's value at runtime. Throws an error if accessed during deployment.

**Signature:**

    value(): string;

**Returns:**

string