@@ -150,7 +150,7 @@ private void generateConfig() {
150
150
151
151
// The default configuration type is always just the base-level
152
152
// Smithy configuration requirements.
153
- writer .write ("export type $L = Partial<__SmithyConfiguration<$T>>" , configType ,
153
+ writer .write ("type $LType = Partial<__SmithyConfiguration<$T>>" , configType ,
154
154
applicationProtocol .getOptionsType ());
155
155
writer .write (" & ClientDefaults" );
156
156
@@ -169,10 +169,14 @@ private void generateConfig() {
169
169
writer .dedent ();
170
170
}
171
171
172
+ writer .writeDocs (String .format ("The configuration interface of %s class constructor that set the region, "
173
+ + "credentials and other options." , symbol .getName ()));
174
+ writer .write ("export interface $1L extends $1LType {}" , configType );
175
+
172
176
// Generate the corresponding "Resolved" configuration type to account for
173
177
// each "Input" configuration type.
174
178
writer .write ("" );
175
- writer .write ("export type $L = __SmithyResolvedConfiguration<$T>" ,
179
+ writer .write ("type $LType = __SmithyResolvedConfiguration<$T>" ,
176
180
resolvedConfigType , applicationProtocol .getOptionsType ());
177
181
writer .write (" & Required<ClientDefaults>" );
178
182
@@ -184,6 +188,11 @@ private void generateConfig() {
184
188
writer .dedent ();
185
189
}
186
190
191
+ writer .writeDocs (String .format ("The resolved configuration interface of %s class. This is resolved and"
192
+ + " normalized from the {@link %s | constructor configuration interface}." , symbol .getName (),
193
+ configType ));
194
+ writer .write ("export interface $1L extends $1LType {}" , resolvedConfigType );
195
+
187
196
writer .popState ();
188
197
}
189
198
@@ -268,6 +277,8 @@ private void generateService() {
268
277
private void generateClientProperties () {
269
278
// Hook for adding/changing client properties.
270
279
writer .pushState (CLIENT_PROPERTIES_SECTION );
280
+ writer .writeDocs (String .format ("The resolved configuration of %s class. This is resolved and normalized from "
281
+ + "the {@link %s | constructor configuration interface}." , symbol .getName (), configType ));
271
282
writer .write ("readonly config: $L;\n " , resolvedConfigType );
272
283
writer .popState ();
273
284
}
0 commit comments