Skip to content

Commit 309ad1c

Browse files
authored
private/model/api: Update SDK service initialization doc (#141)
Updates the SDK's service initialization doc template to reflect the v2 SDK's configuration update change from v1. Update of #136
1 parent bbadf0c commit 309ad1c

File tree

141 files changed

+1
-1351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+1
-1351
lines changed

private/model/api/api.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,10 @@ const (
480480
{{- end }}
481481
482482
// New creates a new instance of the {{ .StructName }} client with a config.
483-
// If additional configuration is needed for the client instance use the
484-
// optional aws.Config parameter to add your extra config.
485483
//
486484
// Example:
487485
// // Create a {{ .StructName }} client from just a config.
488486
// svc := {{ .PackageName }}.New(myConfig)
489-
//
490-
// // Create a {{ .StructName }} client with additional configuration
491-
// svc := {{ .PackageName }}.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
492487
func New(config aws.Config) *{{ .StructName }} {
493488
var signingName string
494489
{{- if .Metadata.SigningName }}

private/protocol/ec2query/build_test.go

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,10 @@ type InputService1ProtocolTest struct {
5252
}
5353

5454
// New creates a new instance of the InputService1ProtocolTest client with a config.
55-
// If additional configuration is needed for the client instance use the
56-
// optional aws.Config parameter to add your extra config.
5755
//
5856
// Example:
5957
// // Create a InputService1ProtocolTest client from just a config.
6058
// svc := inputservice1protocoltest.New(myConfig)
61-
//
62-
// // Create a InputService1ProtocolTest client with additional configuration
63-
// svc := inputservice1protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
6459
func NewInputService1ProtocolTest(config aws.Config) *InputService1ProtocolTest {
6560
var signingName string
6661
signingRegion := config.Region
@@ -173,15 +168,10 @@ type InputService2ProtocolTest struct {
173168
}
174169

175170
// New creates a new instance of the InputService2ProtocolTest client with a config.
176-
// If additional configuration is needed for the client instance use the
177-
// optional aws.Config parameter to add your extra config.
178171
//
179172
// Example:
180173
// // Create a InputService2ProtocolTest client from just a config.
181174
// svc := inputservice2protocoltest.New(myConfig)
182-
//
183-
// // Create a InputService2ProtocolTest client with additional configuration
184-
// svc := inputservice2protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
185175
func NewInputService2ProtocolTest(config aws.Config) *InputService2ProtocolTest {
186176
var signingName string
187177
signingRegion := config.Region
@@ -296,15 +286,10 @@ type InputService3ProtocolTest struct {
296286
}
297287

298288
// New creates a new instance of the InputService3ProtocolTest client with a config.
299-
// If additional configuration is needed for the client instance use the
300-
// optional aws.Config parameter to add your extra config.
301289
//
302290
// Example:
303291
// // Create a InputService3ProtocolTest client from just a config.
304292
// svc := inputservice3protocoltest.New(myConfig)
305-
//
306-
// // Create a InputService3ProtocolTest client with additional configuration
307-
// svc := inputservice3protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
308293
func NewInputService3ProtocolTest(config aws.Config) *InputService3ProtocolTest {
309294
var signingName string
310295
signingRegion := config.Region
@@ -421,15 +406,10 @@ type InputService4ProtocolTest struct {
421406
}
422407

423408
// New creates a new instance of the InputService4ProtocolTest client with a config.
424-
// If additional configuration is needed for the client instance use the
425-
// optional aws.Config parameter to add your extra config.
426409
//
427410
// Example:
428411
// // Create a InputService4ProtocolTest client from just a config.
429412
// svc := inputservice4protocoltest.New(myConfig)
430-
//
431-
// // Create a InputService4ProtocolTest client with additional configuration
432-
// svc := inputservice4protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
433413
func NewInputService4ProtocolTest(config aws.Config) *InputService4ProtocolTest {
434414
var signingName string
435415
signingRegion := config.Region
@@ -546,15 +526,10 @@ type InputService5ProtocolTest struct {
546526
}
547527

548528
// New creates a new instance of the InputService5ProtocolTest client with a config.
549-
// If additional configuration is needed for the client instance use the
550-
// optional aws.Config parameter to add your extra config.
551529
//
552530
// Example:
553531
// // Create a InputService5ProtocolTest client from just a config.
554532
// svc := inputservice5protocoltest.New(myConfig)
555-
//
556-
// // Create a InputService5ProtocolTest client with additional configuration
557-
// svc := inputservice5protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
558533
func NewInputService5ProtocolTest(config aws.Config) *InputService5ProtocolTest {
559534
var signingName string
560535
signingRegion := config.Region
@@ -665,15 +640,10 @@ type InputService6ProtocolTest struct {
665640
}
666641

667642
// New creates a new instance of the InputService6ProtocolTest client with a config.
668-
// If additional configuration is needed for the client instance use the
669-
// optional aws.Config parameter to add your extra config.
670643
//
671644
// Example:
672645
// // Create a InputService6ProtocolTest client from just a config.
673646
// svc := inputservice6protocoltest.New(myConfig)
674-
//
675-
// // Create a InputService6ProtocolTest client with additional configuration
676-
// svc := inputservice6protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
677647
func NewInputService6ProtocolTest(config aws.Config) *InputService6ProtocolTest {
678648
var signingName string
679649
signingRegion := config.Region
@@ -784,15 +754,10 @@ type InputService7ProtocolTest struct {
784754
}
785755

786756
// New creates a new instance of the InputService7ProtocolTest client with a config.
787-
// If additional configuration is needed for the client instance use the
788-
// optional aws.Config parameter to add your extra config.
789757
//
790758
// Example:
791759
// // Create a InputService7ProtocolTest client from just a config.
792760
// svc := inputservice7protocoltest.New(myConfig)
793-
//
794-
// // Create a InputService7ProtocolTest client with additional configuration
795-
// svc := inputservice7protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
796761
func NewInputService7ProtocolTest(config aws.Config) *InputService7ProtocolTest {
797762
var signingName string
798763
signingRegion := config.Region
@@ -904,15 +869,10 @@ type InputService8ProtocolTest struct {
904869
}
905870

906871
// New creates a new instance of the InputService8ProtocolTest client with a config.
907-
// If additional configuration is needed for the client instance use the
908-
// optional aws.Config parameter to add your extra config.
909872
//
910873
// Example:
911874
// // Create a InputService8ProtocolTest client from just a config.
912875
// svc := inputservice8protocoltest.New(myConfig)
913-
//
914-
// // Create a InputService8ProtocolTest client with additional configuration
915-
// svc := inputservice8protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
916876
func NewInputService8ProtocolTest(config aws.Config) *InputService8ProtocolTest {
917877
var signingName string
918878
signingRegion := config.Region
@@ -1023,15 +983,10 @@ type InputService9ProtocolTest struct {
1023983
}
1024984

1025985
// New creates a new instance of the InputService9ProtocolTest client with a config.
1026-
// If additional configuration is needed for the client instance use the
1027-
// optional aws.Config parameter to add your extra config.
1028986
//
1029987
// Example:
1030988
// // Create a InputService9ProtocolTest client from just a config.
1031989
// svc := inputservice9protocoltest.New(myConfig)
1032-
//
1033-
// // Create a InputService9ProtocolTest client with additional configuration
1034-
// svc := inputservice9protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
1035990
func NewInputService9ProtocolTest(config aws.Config) *InputService9ProtocolTest {
1036991
var signingName string
1037992
signingRegion := config.Region
@@ -1201,15 +1156,10 @@ type InputService10ProtocolTest struct {
12011156
}
12021157

12031158
// New creates a new instance of the InputService10ProtocolTest client with a config.
1204-
// If additional configuration is needed for the client instance use the
1205-
// optional aws.Config parameter to add your extra config.
12061159
//
12071160
// Example:
12081161
// // Create a InputService10ProtocolTest client from just a config.
12091162
// svc := inputservice10protocoltest.New(myConfig)
1210-
//
1211-
// // Create a InputService10ProtocolTest client with additional configuration
1212-
// svc := inputservice10protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
12131163
func NewInputService10ProtocolTest(config aws.Config) *InputService10ProtocolTest {
12141164
var signingName string
12151165
signingRegion := config.Region

private/protocol/ec2query/unmarshal_test.go

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,10 @@ type OutputService1ProtocolTest struct {
5252
}
5353

5454
// New creates a new instance of the OutputService1ProtocolTest client with a config.
55-
// If additional configuration is needed for the client instance use the
56-
// optional aws.Config parameter to add your extra config.
5755
//
5856
// Example:
5957
// // Create a OutputService1ProtocolTest client from just a config.
6058
// svc := outputservice1protocoltest.New(myConfig)
61-
//
62-
// // Create a OutputService1ProtocolTest client with additional configuration
63-
// svc := outputservice1protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
6459
func NewOutputService1ProtocolTest(config aws.Config) *OutputService1ProtocolTest {
6560
var signingName string
6661
signingRegion := config.Region
@@ -183,15 +178,10 @@ type OutputService2ProtocolTest struct {
183178
}
184179

185180
// New creates a new instance of the OutputService2ProtocolTest client with a config.
186-
// If additional configuration is needed for the client instance use the
187-
// optional aws.Config parameter to add your extra config.
188181
//
189182
// Example:
190183
// // Create a OutputService2ProtocolTest client from just a config.
191184
// svc := outputservice2protocoltest.New(myConfig)
192-
//
193-
// // Create a OutputService2ProtocolTest client with additional configuration
194-
// svc := outputservice2protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
195185
func NewOutputService2ProtocolTest(config aws.Config) *OutputService2ProtocolTest {
196186
var signingName string
197187
signingRegion := config.Region
@@ -301,15 +291,10 @@ type OutputService3ProtocolTest struct {
301291
}
302292

303293
// New creates a new instance of the OutputService3ProtocolTest client with a config.
304-
// If additional configuration is needed for the client instance use the
305-
// optional aws.Config parameter to add your extra config.
306294
//
307295
// Example:
308296
// // Create a OutputService3ProtocolTest client from just a config.
309297
// svc := outputservice3protocoltest.New(myConfig)
310-
//
311-
// // Create a OutputService3ProtocolTest client with additional configuration
312-
// svc := outputservice3protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
313298
func NewOutputService3ProtocolTest(config aws.Config) *OutputService3ProtocolTest {
314299
var signingName string
315300
signingRegion := config.Region
@@ -418,15 +403,10 @@ type OutputService4ProtocolTest struct {
418403
}
419404

420405
// New creates a new instance of the OutputService4ProtocolTest client with a config.
421-
// If additional configuration is needed for the client instance use the
422-
// optional aws.Config parameter to add your extra config.
423406
//
424407
// Example:
425408
// // Create a OutputService4ProtocolTest client from just a config.
426409
// svc := outputservice4protocoltest.New(myConfig)
427-
//
428-
// // Create a OutputService4ProtocolTest client with additional configuration
429-
// svc := outputservice4protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
430410
func NewOutputService4ProtocolTest(config aws.Config) *OutputService4ProtocolTest {
431411
var signingName string
432412
signingRegion := config.Region
@@ -535,15 +515,10 @@ type OutputService5ProtocolTest struct {
535515
}
536516

537517
// New creates a new instance of the OutputService5ProtocolTest client with a config.
538-
// If additional configuration is needed for the client instance use the
539-
// optional aws.Config parameter to add your extra config.
540518
//
541519
// Example:
542520
// // Create a OutputService5ProtocolTest client from just a config.
543521
// svc := outputservice5protocoltest.New(myConfig)
544-
//
545-
// // Create a OutputService5ProtocolTest client with additional configuration
546-
// svc := outputservice5protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
547522
func NewOutputService5ProtocolTest(config aws.Config) *OutputService5ProtocolTest {
548523
var signingName string
549524
signingRegion := config.Region
@@ -652,15 +627,10 @@ type OutputService6ProtocolTest struct {
652627
}
653628

654629
// New creates a new instance of the OutputService6ProtocolTest client with a config.
655-
// If additional configuration is needed for the client instance use the
656-
// optional aws.Config parameter to add your extra config.
657630
//
658631
// Example:
659632
// // Create a OutputService6ProtocolTest client from just a config.
660633
// svc := outputservice6protocoltest.New(myConfig)
661-
//
662-
// // Create a OutputService6ProtocolTest client with additional configuration
663-
// svc := outputservice6protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
664634
func NewOutputService6ProtocolTest(config aws.Config) *OutputService6ProtocolTest {
665635
var signingName string
666636
signingRegion := config.Region
@@ -775,15 +745,10 @@ type OutputService7ProtocolTest struct {
775745
}
776746

777747
// New creates a new instance of the OutputService7ProtocolTest client with a config.
778-
// If additional configuration is needed for the client instance use the
779-
// optional aws.Config parameter to add your extra config.
780748
//
781749
// Example:
782750
// // Create a OutputService7ProtocolTest client from just a config.
783751
// svc := outputservice7protocoltest.New(myConfig)
784-
//
785-
// // Create a OutputService7ProtocolTest client with additional configuration
786-
// svc := outputservice7protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
787752
func NewOutputService7ProtocolTest(config aws.Config) *OutputService7ProtocolTest {
788753
var signingName string
789754
signingRegion := config.Region
@@ -892,15 +857,10 @@ type OutputService8ProtocolTest struct {
892857
}
893858

894859
// New creates a new instance of the OutputService8ProtocolTest client with a config.
895-
// If additional configuration is needed for the client instance use the
896-
// optional aws.Config parameter to add your extra config.
897860
//
898861
// Example:
899862
// // Create a OutputService8ProtocolTest client from just a config.
900863
// svc := outputservice8protocoltest.New(myConfig)
901-
//
902-
// // Create a OutputService8ProtocolTest client with additional configuration
903-
// svc := outputservice8protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
904864
func NewOutputService8ProtocolTest(config aws.Config) *OutputService8ProtocolTest {
905865
var signingName string
906866
signingRegion := config.Region
@@ -1009,15 +969,10 @@ type OutputService9ProtocolTest struct {
1009969
}
1010970

1011971
// New creates a new instance of the OutputService9ProtocolTest client with a config.
1012-
// If additional configuration is needed for the client instance use the
1013-
// optional aws.Config parameter to add your extra config.
1014972
//
1015973
// Example:
1016974
// // Create a OutputService9ProtocolTest client from just a config.
1017975
// svc := outputservice9protocoltest.New(myConfig)
1018-
//
1019-
// // Create a OutputService9ProtocolTest client with additional configuration
1020-
// svc := outputservice9protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
1021976
func NewOutputService9ProtocolTest(config aws.Config) *OutputService9ProtocolTest {
1022977
var signingName string
1023978
signingRegion := config.Region
@@ -1126,15 +1081,10 @@ type OutputService10ProtocolTest struct {
11261081
}
11271082

11281083
// New creates a new instance of the OutputService10ProtocolTest client with a config.
1129-
// If additional configuration is needed for the client instance use the
1130-
// optional aws.Config parameter to add your extra config.
11311084
//
11321085
// Example:
11331086
// // Create a OutputService10ProtocolTest client from just a config.
11341087
// svc := outputservice10protocoltest.New(myConfig)
1135-
//
1136-
// // Create a OutputService10ProtocolTest client with additional configuration
1137-
// svc := outputservice10protocoltest.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
11381088
func NewOutputService10ProtocolTest(config aws.Config) *OutputService10ProtocolTest {
11391089
var signingName string
11401090
signingRegion := config.Region

0 commit comments

Comments
 (0)