Packages

Elixir client for the S2 durable stream API

Current section

Files

Jump to
s2_client lib s2 schemas create_basin_request.ex
Raw

lib/s2/schemas/create_basin_request.ex

defmodule S2.CreateBasinRequest do
@moduledoc """
Provides struct and type for a CreateBasinRequest
"""
@type t :: %__MODULE__{
basin: String.t(),
config: S2.BasinConfig.t() | nil,
scope: String.t() | nil
}
defstruct [:basin, :config, :scope]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
basin: :string,
config: {:union, [{S2.BasinConfig, :t}, :null]},
scope: {:union, [{:const, "aws:us-east-1"}, :null]}
]
end
end