# `Dagger.Secret`
[🔗](https://github.com/dagger/dagger/blob/v0.20.5/sdk/elixir/lib/dagger/gen/secret.ex#L2)

A reference to a secret value, which can be handled more safely than the value itself.

# `t`

```elixir
@type t() :: %Dagger.Secret{client: term(), query_builder: term()}
```

# `id`

```elixir
@spec id(t()) :: {:ok, Dagger.SecretID.t()} | {:error, term()}
```

A unique identifier for this Secret.

# `name`

```elixir
@spec name(t()) :: {:ok, String.t()} | {:error, term()}
```

The name of this secret.

# `plaintext`

```elixir
@spec plaintext(t()) :: {:ok, String.t()} | {:error, term()}
```

The value of this secret.

# `uri`

```elixir
@spec uri(t()) :: {:ok, String.t()} | {:error, term()}
```

The URI of this secret.

---

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