@@ -217,7 +217,7 @@ func resource{{ .Resource }}Create(ctx context.Context, d *schema.ResourceData,
217
217
218
218
// TIP: -- 1. Get a client connection to the relevant service
219
219
{{- end }}
220
- conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client{{ else }}{{ if .AWSGoSDKV2 }}Client{{ else }} Conn{{ end }} {{ end }}
220
+ conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client() {{ else }}Conn() {{ end }}
221
221
{{ if .IncludeComments }}
222
222
// TIP: -- 2. Populate a create input structure
223
223
{{- end }}
@@ -309,7 +309,7 @@ func resource{{ .Resource }}Read(ctx context.Context, d *schema.ResourceData, me
309
309
310
310
// TIP: -- 1. Get a client connection to the relevant service
311
311
{{- end }}
312
- conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client{{ else }}Conn{{ end }}
312
+ conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client() {{ else }}Conn() {{ end }}
313
313
{{ if .IncludeComments }}
314
314
// TIP: -- 2. Get the resource from AWS using an API Get, List, or Describe-
315
315
// type function, or, better yet, using a finder.
@@ -428,7 +428,7 @@ func resource{{ .Resource }}Update(ctx context.Context, d *schema.ResourceData,
428
428
429
429
// TIP: -- 1. Get a client connection to the relevant service
430
430
{{- end }}
431
- conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client{{ else }}Conn{{ end }}
431
+ conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client() {{ else }}Conn() {{ end }}
432
432
{{ if .IncludeComments }}
433
433
// TIP: -- 2. Populate a modify input structure and check for changes
434
434
//
@@ -501,7 +501,7 @@ func resource{{ .Resource }}Delete(ctx context.Context, d *schema.ResourceData,
501
501
502
502
// TIP: -- 1. Get a client connection to the relevant service
503
503
{{- end }}
504
- conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client{{ else }}Conn{{ end }}
504
+ conn := meta.(*conns.AWSClient).{{ .Service }}{{ if .AWSGoSDKV2 }}Client() {{ else }}Conn() {{ end }}
505
505
{{ if .IncludeComments }}
506
506
// TIP: -- 2. Populate a delete input structure
507
507
{{- end }}
0 commit comments