# `Twilio.Serverless.V1.Service.Environment.VariableService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/serverless/v1/service/environment/variable_service.ex#L2)

A key and value pair that is specific to an Environment.

Operations: `list`, `create`, `fetch`, `update`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Serverless.V1.Service.Environment.Variable.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a new Variable.

Operation: `CreateVariable` | Tags: ServerlessV1Variable

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Key` | string | A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Value` | string | A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Delete a specific Variable.

Operation: `DeleteVariable` | Tags: ServerlessV1Variable

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), String.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Serverless.V1.Service.Environment.Variable.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a specific Variable.

Operation: `FetchVariable` | Tags: ServerlessV1Variable

# `list`

```elixir
@spec list(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a list of all Variables.

Operation: `ListVariable` | Tags: ServerlessV1Variable

# `stream`

```elixir
@spec stream(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  Enumerable.t()
```

Stream: Retrieve a list of all Variables. (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Serverless.V1.Service.Environment.Variable.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Update a specific Variable.

Operation: `UpdateVariable` | Tags: ServerlessV1Variable

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Key` | string | A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Value` | string | A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
