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

Represents a deployed build of a given set of Functions and/or Assets at a specific URL.

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

# `create`

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

Create a new environment.

Operation: `CreateEnvironment` | Tags: ServerlessV1Environment

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `UniqueName` | string | A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `DomainSuffix` | string | A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. |

# `delete`

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

Delete a specific environment.

Operation: `DeleteEnvironment` | Tags: ServerlessV1Environment

# `fetch`

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

Retrieve a specific environment.

Operation: `FetchEnvironment` | Tags: ServerlessV1Environment

# `list`

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

Retrieve a list of all environments.

Operation: `ListEnvironment` | Tags: ServerlessV1Environment

# `stream`

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

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

---

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