ResourceShape

zio.blocks.smithy.ResourceShape
final case class ResourceShape(name: String, traits: List[TraitApplication] = ..., identifiers: Map[String, ShapeId] = ..., create: Option[ShapeId] = ..., read: Option[ShapeId] = ..., update: Option[ShapeId] = ..., delete: Option[ShapeId] = ..., list: Option[ShapeId] = ..., operations: List[ShapeId] = ..., collectionOperations: List[ShapeId] = ..., resources: List[ShapeId] = ...) extends Shape

A resource shape representing a RESTful resource with lifecycle operations.

Value parameters

collectionOperations

the ShapeIds of collection-level operations

create

the optional ShapeId of the create lifecycle operation

delete

the optional ShapeId of the delete lifecycle operation

identifiers

the resource identifiers mapping names to their target ShapeIds

list

the optional ShapeId of the list lifecycle operation

name

the shape name

operations

the ShapeIds of non-lifecycle operations bound to this resource

read

the optional ShapeId of the read lifecycle operation

resources

the ShapeIds of child resources

traits

the traits applied to this shape

update

the optional ShapeId of the update lifecycle operation

Attributes

Source
Shape.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Shape
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala