## Functions

| Function | Description |
|---|---|
| [afterFirstDeploy(action)](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecycleafterfirstdeploy) | Registers an action to be executed automatically post-deployment when resources in this codebase are deployed for the first time. |
| [afterRedeploy(action)](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecycleafterredeploy) | Registers an action to be executed automatically post-deployment when resources in this codebase are updated. |

## Interfaces

| Interface | Description |
|---|---|
| [CallAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle.callaction#lifecyclecallaction_interface) |   |
| [TaskAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle.taskaction#lifecycletaskaction_interface) |   |

## Type Aliases

| Type Alias | Description |
|---|---|
| [HttpAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecyclehttpaction) |   |
| [LifecycleAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecyclelifecycleaction) |   |

## lifecycle.afterFirstDeploy()

Registers an action to be executed automatically post-deployment when resources in this codebase are deployed for the first time.

**Signature:**

    export declare function afterFirstDeploy(action: LifecycleAction): void;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| action | [LifecycleAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecyclelifecycleaction) | The lifecycle action to execute. |

**Returns:**

void

## lifecycle.afterRedeploy()

Registers an action to be executed automatically post-deployment when resources in this codebase are updated.

**Signature:**

    export declare function afterRedeploy(action: LifecycleAction): void;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| action | [LifecycleAction](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.lifecycle#lifecyclelifecycleaction) | The lifecycle action to execute. |

**Returns:**

void

## lifecycle.HttpAction

**Signature:**

    export type HttpAction = ({
        function: string;
    } | {
        url: string;
    }) & {
        method?: "GET" | "POST" | "PUT" | "DELETE";
        headers?: Record<string, string>;
        body?: unknown;
    };

## lifecycle.LifecycleAction

**Signature:**

    export type LifecycleAction = {
        task: TaskAction;
        call?: never;
        http?: never;
    } | {
        call: CallAction;
        task?: never;
        http?: never;
    } | {
        http: HttpAction;
        task?: never;
        call?: never;
    };