Skip to content

Commit 3c92c45

Browse files
committed
Add bdd trait; no-op for now since there is no generator for it
1 parent 0c8932e commit 3c92c45

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

codegen/kitchensink-test-codegen/model/main.smithy

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,56 @@ namespace aws.kitchensinktest
7676
}
7777
]
7878
})
79+
@smithy.rules#endpointBdd(
80+
version: "1.1"
81+
parameters: {
82+
Region: {
83+
builtIn: "AWS::Region"
84+
required: true
85+
documentation: "The AWS region"
86+
type: "string"
87+
}
88+
Id: {
89+
required: false
90+
documentation: "The item id"
91+
type: "string"
92+
}
93+
}
94+
conditions: [
95+
{
96+
fn: "isSet"
97+
argv: [
98+
{
99+
ref: "Id"
100+
}
101+
]
102+
}
103+
]
104+
results: [
105+
{
106+
conditions: []
107+
endpoint: {
108+
url: "https://{Id}.example.{Region}.amazonaws.com"
109+
properties: {}
110+
headers: {}
111+
}
112+
type: "endpoint"
113+
}
114+
{
115+
documentation: "Default regional endpoint"
116+
conditions: []
117+
endpoint: {
118+
url: "https://example.{Region}.amazonaws.com"
119+
properties: {}
120+
headers: {}
121+
}
122+
type: "endpoint"
123+
}
124+
]
125+
root: 2
126+
nodeCount: 2
127+
nodes: "/////wAAAAH/////AAAAAAX14QEF9eEC"
128+
)
79129
service AwsJson1KitchenSink {
80130
version: "2025-03-01",
81131
operations: [GetItem],

0 commit comments

Comments
 (0)