Skip to content

Commit f23b9d9

Browse files
committed
Merge service and resource grammar
ServiceStatement and ResourceStatement differed only by the type name, so they were merged into EntityStatement.
1 parent 9cb0328 commit f23b9d9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/source-2.0/spec/idl.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@ string support defined in :rfc:`7405`.
179179
:/ `EnumStatement`
180180
:/ `AggregateShapeStatement`
181181
:/ `StructureStatement`
182-
:/ `ServiceStatement`
182+
:/ `EntityStatement`
183183
:/ `OperationStatement`
184-
:/ `ResourceStatement`
185184
SimpleShapeStatement :`SimpleTypeName` `SP` `Identifier` [`Mixins`]
186185
SimpleTypeName :%s"blob" / %s"boolean" / %s"document" / %s"string"
187186
:/ %s"byte" / %s"short" / %s"integer" / %s"long"
@@ -201,8 +200,8 @@ string support defined in :rfc:`7405`.
201200
ShapeMember :(`ExplicitShapeMember` / `ElidedShapeMember`) [`ValueAssignment`]
202201
ExplicitShapeMember :`Identifier` [`SP`] ":" [`SP`] `ShapeId`
203202
ElidedShapeMember :"$" `Identifier`
204-
ServiceStatement :%s"service" `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
205-
ResourceStatement :%s"resource" `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
203+
EntityStatement :`EntityTypeName` `SP` `Identifier` [`Mixins`] [`WS`] `NodeObject`
204+
EntityTypeName :%s"service" / %s"resource"
206205
OperationStatement :%s"operation" `SP` `Identifier` [`Mixins`] [`WS`] `OperationBody`
207206
OperationBody :"{" [`WS`]
208207
: *(`OperationInput` / `OperationOutput` / `OperationErrors`)
@@ -1225,7 +1224,7 @@ The following example defines a union shape with several members:
12251224
Service shape
12261225
-------------
12271226

1228-
A service shape is defined using a :token:`smithy:ServiceStatement` and the provided
1227+
A service shape is defined using a :token:`smithy:EntityStatement` and the provided
12291228
:token:`smithy:NodeObject` supports the same properties defined in the
12301229
:ref:`service specification <service>`.
12311230

@@ -1431,7 +1430,7 @@ The suffixes for the generated names can be customized using the
14311430
Resource shape
14321431
--------------
14331432

1434-
A resource shape is defined using a :token:`smithy:ResourceStatement` and the
1433+
A resource shape is defined using a :token:`smithy:EntityStatement` and the
14351434
provided :token:`smithy:NodeObject` supports the same properties defined in the
14361435
:ref:`resource specification <resource>`.
14371436

0 commit comments

Comments
 (0)