Skip to content

Commit

Permalink
Merge service and resource grammar
Browse files Browse the repository at this point in the history
ServiceStatement and ResourceStatement differed only by the type
name, so they were merged into EntityStatement.
  • Loading branch information
milesziemer committed May 24, 2023
1 parent 9cb0328 commit af1475b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source-2.0/spec/idl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ string support defined in :rfc:`7405`.
:/ `EnumStatement`
:/ `AggregateShapeStatement`
:/ `StructureStatement`
:/ `ServiceStatement`
:/ `UnionStatement`
:/ `EntityStatement`
:/ `OperationStatement`
:/ `ResourceStatement`
SimpleShapeStatement :`SimpleTypeName` `SP` `Identifier` [`Mixins`]
SimpleTypeName :%s"blob" / %s"boolean" / %s"document" / %s"string"
:/ %s"byte" / %s"short" / %s"integer" / %s"long"
Expand All @@ -201,8 +201,8 @@ string support defined in :rfc:`7405`.
ShapeMember :(`ExplicitShapeMember` / `ElidedShapeMember`) [`ValueAssignment`]
ExplicitShapeMember :`Identifier` [`SP`] ":" [`SP`] `ShapeId`
ElidedShapeMember :"$" `Identifier`
ServiceStatement :%s"service" `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
ResourceStatement :%s"resource" `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
EntityStatement :`EntityTypeName` `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
EntityTypeName :%s"service" / %s"resource"
OperationStatement :%s"operation" `SP` `Identifier` [`Mixins`] [`WS`] `OperationBody`
OperationBody :"{" [`WS`]
: *(`OperationInput` / `OperationOutput` / `OperationErrors`)
Expand Down Expand Up @@ -1225,7 +1225,7 @@ The following example defines a union shape with several members:
Service shape
-------------

A service shape is defined using a :token:`smithy:ServiceStatement` and the provided
A service shape is defined using a :token:`smithy:EntityStatement` and the provided
:token:`smithy:NodeObject` supports the same properties defined in the
:ref:`service specification <service>`.

Expand Down Expand Up @@ -1431,7 +1431,7 @@ The suffixes for the generated names can be customized using the
Resource shape
--------------

A resource shape is defined using a :token:`smithy:ResourceStatement` and the
A resource shape is defined using a :token:`smithy:EntityStatement` and the
provided :token:`smithy:NodeObject` supports the same properties defined in the
:ref:`resource specification <resource>`.

Expand Down

0 comments on commit af1475b

Please sign in to comment.