-
Notifications
You must be signed in to change notification settings - Fork 597
/
index.html
863 lines (712 loc) · 68.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
<!doctype html>
<html itemscope itemtype="http://schema.org/WebPage" lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.115.4">
<meta name="robots" content="index, follow">
<link rel="shortcut icon" href="/aws-sdk-go-v2/favicons/favicon.ico" >
<link rel="apple-touch-icon" href="/aws-sdk-go-v2/favicons/apple-touch-icon-180x180.png" sizes="180x180">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-36x36.png" sizes="36x36">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-48x48.png" sizes="48x48">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-72x72.png" sizes="72x72">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-144x144.png" sizes="144x144">
<link rel="icon" type="image/png" href="/aws-sdk-go-v2/favicons/android-192x192.png" sizes="192x192">
<title>Configuring Authentication | AWS SDK for Go V2</title>
<meta name="description" content="Customizing service client authentication.">
<meta property="og:title" content="Configuring Authentication" />
<meta property="og:description" content="Customizing service client authentication." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/auth/" /><meta property="article:section" content="docs" />
<meta property="article:published_time" content="2023-12-01T00:00:00+00:00" />
<meta property="article:modified_time" content="2023-12-19T10:46:55-05:00" />
<meta itemprop="name" content="Configuring Authentication">
<meta itemprop="description" content="Customizing service client authentication."><meta itemprop="datePublished" content="2023-12-01T00:00:00+00:00" />
<meta itemprop="dateModified" content="2023-12-19T10:46:55-05:00" />
<meta itemprop="wordCount" content="1200">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Configuring Authentication"/>
<meta name="twitter:description" content="Customizing service client authentication."/>
<link rel="preload" href="/aws-sdk-go-v2/scss/main.min.87610f09204d68e51368928a578a8f99ecd38bf9a2435e6664f3dd133ddcdf44.css" as="style">
<link href="/aws-sdk-go-v2/scss/main.min.87610f09204d68e51368928a578a8f99ecd38bf9a2435e6664f3dd133ddcdf44.css" rel="stylesheet" integrity="">
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK"
crossorigin="anonymous"></script>
<script defer
src="https://unpkg.com/lunr@2.3.9/lunr.min.js"
integrity="sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli"
crossorigin="anonymous"></script>
</head>
<body class="td-page">
<header>
<nav class="js-navbar-scroll navbar navbar-expand navbar-dark flex-column flex-md-row td-navbar">
<a class="navbar-brand" href="/aws-sdk-go-v2/">
<span class="navbar-logo"><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 304 182" style="enable-background:new 0 0 304 182"><style>.st0{fill:#fff}.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#f90}</style><g><path class="st0" d="M86.4 66.4c0 3.7.4 6.7 1.1 8.9.8 2.2 1.8 4.6 3.2 7.2.5.8.7 1.6.7 2.3.0 1-.6 2-1.9 3L83.2 92c-.9.6-1.8.9-2.6.9-1 0-2-.5-3-1.4C76.2 90 75 88.4 74 86.8c-1-1.7-2-3.6-3.1-5.9-7.8 9.2-17.6 13.8-29.4 13.8-8.4.0-15.1-2.4-20-7.2s-7.4-11.2-7.4-19.2c0-8.5 3-15.4 9.1-20.6s14.2-7.8 24.5-7.8c3.4.0 6.9.3 10.6.8s7.5 1.3 11.5 2.2v-7.3c0-7.6-1.6-12.9-4.7-16-3.2-3.1-8.6-4.6-16.3-4.6-3.5.0-7.1.4-10.8 1.3-3.7.9-7.3 2-10.8 3.4-1.6.7-2.8 1.1-3.5 1.3s-1.2.3-1.6.3c-1.4.0-2.1-1-2.1-3.1v-4.9c0-1.6.2-2.8.7-3.5.5-.7 1.4-1.4 2.8-2.1 3.5-1.8 7.7-3.3 12.6-4.5 4.9-1.3 10.1-1.9 15.6-1.9 11.9.0 20.6 2.7 26.2 8.1 5.5 5.4 8.3 13.6 8.3 24.6V66.4zM45.8 81.6c3.3.0 6.7-.6 10.3-1.8 3.6-1.2 6.8-3.4 9.5-6.4 1.6-1.9 2.8-4 3.4-6.4.6-2.4 1-5.3 1-8.7v-4.2c-2.9-.7-6-1.3-9.2-1.7-3.2-.4-6.3-.6-9.4-.6-6.7.0-11.6 1.3-14.9 4s-4.9 6.5-4.9 11.5c0 4.7 1.2 8.2 3.7 10.6C37.7 80.4 41.2 81.6 45.8 81.6zm80.3 10.8c-1.8.0-3-.3-3.8-1-.8-.6-1.5-2-2.1-3.9L96.7 10.2c-.6-2-.9-3.3-.9-4 0-1.6.8-2.5 2.4-2.5h9.8c1.9.0 3.2.3 3.9 1 .8.6 1.4 2 2 3.9l16.8 66.2 15.6-66.2c.5-2 1.1-3.3 1.9-3.9.8-.6 2.2-1 4-1h8c1.9.0 3.2.3 4 1 .8.6 1.5 2 1.9 3.9l15.8 67 17.3-67c.6-2 1.3-3.3 2-3.9.8-.6 2.1-1 3.9-1h9.3c1.6.0 2.5.8 2.5 2.5.0.5-.1 1-.2 1.6s-.3 1.4-.7 2.5l-24.1 77.3c-.6 2-1.3 3.3-2.1 3.9-.8.6-2.1 1-3.8 1h-8.6c-1.9.0-3.2-.3-4-1s-1.5-2-1.9-4L156 23l-15.4 64.4c-.5 2-1.1 3.3-1.9 4s-2.2 1-4 1H126.1zM254.6 95.1c-5.2.0-10.4-.6-15.4-1.8s-8.9-2.5-11.5-4c-1.6-.9-2.7-1.9-3.1-2.8-.4-.9-.6-1.9-.6-2.8v-5.1c0-2.1.8-3.1 2.3-3.1.6.0 1.2.1 1.8.3.6.2 1.5.6 2.5 1 3.4 1.5 7.1 2.7 11 3.5 4 .8 7.9 1.2 11.9 1.2 6.3.0 11.2-1.1 14.6-3.3s5.2-5.4 5.2-9.5c0-2.8-.9-5.1-2.7-7s-5.2-3.6-10.1-5.2L246 52c-7.3-2.3-12.7-5.7-16-10.2-3.3-4.4-5-9.3-5-14.5.0-4.2.9-7.9 2.7-11.1 1.8-3.2 4.2-6 7.2-8.2 3-2.3 6.4-4 10.4-5.2 4-1.2 8.2-1.7 12.6-1.7 2.2.0 4.5.1 6.7.4 2.3.3 4.4.7 6.5 1.1 2 .5 3.9 1 5.7 1.6 1.8.6 3.2 1.2 4.2 1.8 1.4.8 2.4 1.6 3 2.5.6.8.9 1.9.9 3.3v4.7c0 2.1-.8 3.2-2.3 3.2-.8.0-2.1-.4-3.8-1.2-5.7-2.6-12.1-3.9-19.2-3.9-5.7.0-10.2.9-13.3 2.8-3.1 1.9-4.7 4.8-4.7 8.9.0 2.8 1 5.2 3 7.1s5.7 3.8 11 5.5l14.2 4.5c7.2 2.3 12.4 5.5 15.5 9.6s4.6 8.8 4.6 14c0 4.3-.9 8.2-2.6 11.6-1.8 3.4-4.2 6.4-7.3 8.8-3.1 2.5-6.8 4.3-11.1 5.6C264.4 94.4 259.7 95.1 254.6 95.1z"/><g><path class="st1" d="M273.5 143.7c-32.9 24.3-80.7 37.2-121.8 37.2-57.6.0-109.5-21.3-148.7-56.7-3.1-2.8-.3-6.6 3.4-4.4 42.4 24.6 94.7 39.5 148.8 39.5 36.5.0 76.6-7.6 113.5-23.2C274.2 133.6 278.9 139.7 273.5 143.7z"/><path class="st1" d="M287.2 128.1c-4.2-5.4-27.8-2.6-38.5-1.3-3.2.4-3.7-2.4-.8-4.5 18.8-13.2 49.7-9.4 53.3-5 3.6 4.5-1 35.4-18.6 50.2-2.7 2.3-5.3 1.1-4.1-1.9C282.5 155.7 291.4 133.4 287.2 128.1z"/></g></g></svg></span><span class="font-weight-bold">AWS SDK for Go V2</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar">
<ul class="navbar-nav mt-2 mt-lg-0">
<li class="nav-item mr-4 mb-2 mb-lg-0">
<a class="nav-link active" href="/aws-sdk-go-v2/docs/" ><span class="active">Developer Guide</span></a>
</li>
<li class="nav-item mr-4 mb-2 mb-lg-0">
<a class="nav-link" href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2" target="_blank" ><span>API Reference</span></a>
</li>
<li class="nav-item mr-4 mb-2 mb-lg-0">
<a class="nav-link" href="https://github.com/aws/aws-sdk-go-v2" target="_blank" ><span>GitHub</span></a>
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input
type="search"
class="form-control td-search-input"
placeholder=" Search this site…"
aria-label="Search this site…"
autocomplete="off"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.f7b818cc28b8e9e5e837a0faaac05d9e.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
</div>
</nav>
</header>
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-nowrap">
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
<div id="td-sidebar-menu" class="td-sidebar__inner">
<form class="td-sidebar__search d-flex align-items-center">
<input
type="search"
class="form-control td-search-input"
placeholder=" Search this site…"
aria-label="Search this site…"
autocomplete="off"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.f7b818cc28b8e9e5e837a0faaac05d9e.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type="button" data-toggle="collapse" data-target="#td-section-nav" aria-controls="td-section-nav" aria-expanded="false" aria-label="Toggle section navigation">
</button>
</form>
<nav class="collapse td-sidebar-nav" id="td-section-nav">
<ul class="td-sidebar-nav__section pr-md-3 ul-0">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child active-path" id="m-aws-sdk-go-v2docs-li">
<a href="/aws-sdk-go-v2/docs/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section tree-root" id="m-aws-sdk-go-v2docs"><span class="">Developer Guide</span></a>
<ul class="ul-1">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsgetting-started-li">
<a href="/aws-sdk-go-v2/docs/getting-started/" title="Getting Started with the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsgetting-started"><span class="">Getting Started</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child active-path" id="m-aws-sdk-go-v2docsconfiguring-sdk-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/" title="Configuring the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docsconfiguring-sdk"><span class="">Configuring the SDK</span></a>
<ul class="ul-2 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child active-path" id="m-aws-sdk-go-v2docsconfiguring-sdkauth-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/auth/" title="Configuring Authentication" class="align-left pl-0 active td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsconfiguring-sdkauth"><span class="td-sidebar-nav-active-item">Authentication</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsconfiguring-sdkendpoints-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/endpoints/" title="Configuring Client Endpoints" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsconfiguring-sdkendpoints"><span class="">Endpoints</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsconfiguring-sdkcustom-http-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/custom-http/" title="Customizing the HTTP Client" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsconfiguring-sdkcustom-http"><span class="">HTTP Client</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsconfiguring-sdklogging-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/logging/" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsconfiguring-sdklogging"><span class="">Logging</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsconfiguring-sdkretries-timeouts-li">
<a href="/aws-sdk-go-v2/docs/configuring-sdk/retries-timeouts/" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsconfiguring-sdkretries-timeouts"><span class="">Retries and Timeouts</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsmigrating-li">
<a href="/aws-sdk-go-v2/docs/migrating/" title="Migrating to the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docsmigrating"><span class="">Migrating</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsmaking-requests-li">
<a href="/aws-sdk-go-v2/docs/making-requests/" title="Using the AWS SDK for Go V2 with AWS Services" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsmaking-requests"><span class="">Using AWS Services</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docshandling-errors-li">
<a href="/aws-sdk-go-v2/docs/handling-errors/" title="Handling Errors in the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docshandling-errors"><span class="">Handling Errors</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child" id="m-aws-sdk-go-v2docssdk-utilities-li">
<a href="/aws-sdk-go-v2/docs/sdk-utilities/" title="Using the AWS SDK for Go V2 Utilities" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docssdk-utilities"><span class="">SDK Utilities</span></a>
<ul class="ul-2 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssdk-utilitiesrds-li">
<a href="/aws-sdk-go-v2/docs/sdk-utilities/rds/" title="Amazon RDS Utilities" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssdk-utilitiesrds"><span class="">Amazon RDS</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssdk-utilitiescloudfront-li">
<a href="/aws-sdk-go-v2/docs/sdk-utilities/cloudfront/" title="Amazon CloudFront Utilities" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssdk-utilitiescloudfront"><span class="">Amazon CloudFront</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssdk-utilitiesec2-imds-li">
<a href="/aws-sdk-go-v2/docs/sdk-utilities/ec2-imds/" title="Amazon EC2 Instance Metadata Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssdk-utilitiesec2-imds"><span class="">Amazon EC2 IMDS</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssdk-utilitiess3-li">
<a href="/aws-sdk-go-v2/docs/sdk-utilities/s3/" title="Amazon S3 Utilities" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssdk-utilitiess3"><span class="">Amazon S3</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsmiddleware-li">
<a href="/aws-sdk-go-v2/docs/middleware/" title="Customizing the AWS SDK for Go V2 Client Requests" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsmiddleware"><span class="">Middleware</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child" id="m-aws-sdk-go-v2docsfaq-li">
<a href="/aws-sdk-go-v2/docs/faq/" title="Frequently Asked Questions" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docsfaq"><span class="">FAQ / Troubleshooting</span></a>
<ul class="ul-2 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docsfaqtiming-operations-li">
<a href="/aws-sdk-go-v2/docs/faq/timing-operations/" title="Timing SDK operations" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsfaqtiming-operations"><span class="">Timing Operations</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docsunit-testing-li">
<a href="/aws-sdk-go-v2/docs/unit-testing/" title="Unit Testing with the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docsunit-testing"><span class="">Testing</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child" id="m-aws-sdk-go-v2docscloud9-go-li">
<a href="/aws-sdk-go-v2/docs/cloud9-go/" title="Using AWS Cloud9 with the AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docscloud9-go"><span class="">Using Cloud9 with the SDK</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child" id="m-aws-sdk-go-v2docssecurity-li">
<a href="/aws-sdk-go-v2/docs/security/" title="Security for this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docssecurity"><span class="">Security</span></a>
<ul class="ul-2 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecuritycompliance-validation-li">
<a href="/aws-sdk-go-v2/docs/security/compliance-validation/" title="Compliance Validation for this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecuritycompliance-validation"><span class="">Compliance Validation</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecurityiam-li">
<a href="/aws-sdk-go-v2/docs/security/iam/" title="Identity and Access Management for this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecurityiam"><span class="">Identity and Access Management</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecurityinfrastructure-security-li">
<a href="/aws-sdk-go-v2/docs/security/infrastructure-security/" title="Infrastructure Security for this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecurityinfrastructure-security"><span class="">Infrastructure Security</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecuritydisaster-recovery-resiliency-li">
<a href="/aws-sdk-go-v2/docs/security/disaster-recovery-resiliency/" title="Resilience for this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecuritydisaster-recovery-resiliency"><span class="">Resilience</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecuritydata-protection-li">
<a href="/aws-sdk-go-v2/docs/security/data-protection/" title="Data Protection in this AWS Product or Service" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecuritydata-protection"><span class="">Data Protection</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docssecuritytls-li">
<a href="/aws-sdk-go-v2/docs/security/tls/" title="TLS Version in AWS SDK for Go V2" class="align-left pl-0 td-sidebar-link td-sidebar-link__page" id="m-aws-sdk-go-v2docssecuritytls"><span class="">TLS Version</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child" id="m-aws-sdk-go-v2docscode-examples-li">
<a href="/aws-sdk-go-v2/docs/code-examples/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examples"><span class="">Code Examples</span></a>
<ul class="ul-2 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatch-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/" title="Amazon CloudWatch Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatch"><span class="">Amazon CloudWatch</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchcreatecustommetric-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/createcustommetric/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchcreatecustommetric"><span class="">CreateCustomMetricv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchcreateenablemetricalarm-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/createenablemetricalarm/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchcreateenablemetricalarm"><span class="">CreateEnableMetricAlarmv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchdescribealarms-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/describealarms/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchdescribealarms"><span class="">DescribeAlarmsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchdisablealarm-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/disablealarm/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchdisablealarm"><span class="">DisableAlarmv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchlistmetrics-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/listmetrics/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchlistmetrics"><span class="">ListMetricsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplescloudwatchputevent-li">
<a href="/aws-sdk-go-v2/docs/code-examples/cloudwatch/putevent/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplescloudwatchputevent"><span class="">PutEventv2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplesdynamodb-li">
<a href="/aws-sdk-go-v2/docs/code-examples/dynamodb/" title="Amazon DynamoDB Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesdynamodb"><span class="">Amazon DynamoDB</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesdynamodbdescribetable-li">
<a href="/aws-sdk-go-v2/docs/code-examples/dynamodb/describetable/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesdynamodbdescribetable"><span class="">DescribeTablev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesdynamodbscanitems-li">
<a href="/aws-sdk-go-v2/docs/code-examples/dynamodb/scanitems/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesdynamodbscanitems"><span class="">ScanItemsv2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/" title="Amazon EC2 Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2"><span class="">Amazon EC2</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2createimage-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/createimage/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2createimage"><span class="">CreateImagev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2createinstance-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/createinstance/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2createinstance"><span class="">CreateInstancev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2describeinstances-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/describeinstances/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2describeinstances"><span class="">DescribeInstancesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2describevpcendpoints-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/describevpcendpoints/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2describevpcendpoints"><span class="">DescribeVpcEndpointsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2monitorinstances-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/monitorinstances/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2monitorinstances"><span class="">MonitorInstancesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2rebootinstances-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/rebootinstances/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2rebootinstances"><span class="">RebootInstancesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2startinstances-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/startinstances/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2startinstances"><span class="">StartInstancesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesec2stopinstances-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ec2/stopinstances/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesec2stopinstances"><span class="">StopInstancesv2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-exampless3-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/" title="Amazon S3 Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3"><span class="">Amazon S3</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3copyobject-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/copyobject/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3copyobject"><span class="">CopyObjectv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3createbucket-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/createbucket/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3createbucket"><span class="">CreateBucketv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3deletebucket-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/deletebucket/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3deletebucket"><span class="">DeleteBucketv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3deleteobject-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/deleteobject/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3deleteobject"><span class="">DeleteObjectv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3generatepresignedurl-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/generatepresignedurl/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3generatepresignedurl"><span class="">GeneratePresignedURLv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3getbucketacl-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/getbucketacl/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3getbucketacl"><span class="">GetBucketAclv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3getobjectacl-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/getobjectacl/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3getobjectacl"><span class="">GetObjectAclv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3listbuckets-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/listbuckets/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3listbuckets"><span class="">ListBucketsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3listobjects-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/listobjects/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3listobjects"><span class="">ListObjectsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampless3putobject-li">
<a href="/aws-sdk-go-v2/docs/code-examples/s3/putobject/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampless3putobject"><span class="">PutObjectv2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplessns-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/" title="Amazon SNS Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessns"><span class="">Amazon SNS</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessnscreatetopic-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/createtopic/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessnscreatetopic"><span class="">CreateTopicv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessnslistsubscriptions-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/listsubscriptions/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessnslistsubscriptions"><span class="">ListSubscriptionsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessnslisttopics-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/listtopics/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessnslisttopics"><span class="">ListTopicsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessnspublish-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/publish/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessnspublish"><span class="">Publishv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessnssubscribe-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sns/subscribe/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessnssubscribe"><span class="">Subscribev2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplessqs-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/" title="Amazon SQS Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqs"><span class="">Amazon SQS</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqschangemsgvisibility-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/changemsgvisibility/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqschangemsgvisibility"><span class="">ChangeMsgVisibilityv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsconfigurelpqueue-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/configurelpqueue/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsconfigurelpqueue"><span class="">ConfigureLPQueuev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqscreatelpqueue-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/createlpqueue/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqscreatelpqueue"><span class="">CreateLPQueuev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqscreatequeue-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/createqueue/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqscreatequeue"><span class="">CreateQueuev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsdeadletterqueue-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/deadletterqueue/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsdeadletterqueue"><span class="">DeadLetterQueuev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsdeletemessage-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/deletemessage/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsdeletemessage"><span class="">DeleteMessagev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsdeletequeue-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/deletequeue/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsdeletequeue"><span class="">DeleteQueuev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsgetqueueurl-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/getqueueurl/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsgetqueueurl"><span class="">GetQueueURLv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqslistqueues-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/listqueues/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqslistqueues"><span class="">ListQueuesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsreceivelpmessage-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/receivelpmessage/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsreceivelpmessage"><span class="">ReceiveLPMessagev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqsreceivemessage-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/receivemessage/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqsreceivemessage"><span class="">ReceiveMessagev2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplessqssendmessage-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sqs/sendmessage/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessqssendmessage"><span class="">SendMessagev2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-exampleskms-li">
<a href="/aws-sdk-go-v2/docs/code-examples/kms/" title="AWS KMS Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampleskms"><span class="">AWS KMS</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampleskmscreatekey-li">
<a href="/aws-sdk-go-v2/docs/code-examples/kms/createkey/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampleskmscreatekey"><span class="">CreateKeyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampleskmsdecryptdata-li">
<a href="/aws-sdk-go-v2/docs/code-examples/kms/decryptdata/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampleskmsdecryptdata"><span class="">DecryptDatav2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampleskmsencryptdata-li">
<a href="/aws-sdk-go-v2/docs/code-examples/kms/encryptdata/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampleskmsencryptdata"><span class="">EncryptDatav2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-exampleskmsreencryptdata-li">
<a href="/aws-sdk-go-v2/docs/code-examples/kms/reencryptdata/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-exampleskmsreencryptdata"><span class="">ReEncryptDatav2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplessts-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sts/" title="AWS STS Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplessts"><span class="">AWS STS</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesstsassumerole-li">
<a href="/aws-sdk-go-v2/docs/code-examples/sts/assumerole/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesstsassumerole"><span class="">AssumeRolev2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplesssm-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ssm/" title="AWS Systems Manager Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesssm"><span class="">AWS Systems Manager</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesssmdeleteparameter-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ssm/deleteparameter/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesssmdeleteparameter"><span class="">DeleteParameterv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesssmgetparameter-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ssm/getparameter/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesssmgetparameter"><span class="">GetParameterv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesssmputparameter-li">
<a href="/aws-sdk-go-v2/docs/code-examples/ssm/putparameter/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesssmputparameter"><span class="">PutParameterv2</span></a>
</li>
</ul>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section with-child collapse" id="m-aws-sdk-go-v2docscode-examplesiam-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/" title="IAM Examples" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiam"><span class="">IAM</span></a>
<ul class="ul-3 foldable">
<li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamaccesskeylastused-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/accesskeylastused/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamaccesskeylastused"><span class="">AccessKeyLastUsedv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamattachuserpolicy-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/attachuserpolicy/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamattachuserpolicy"><span class="">AttachUserPolicyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamcreateaccesskey-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/createaccesskey/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamcreateaccesskey"><span class="">CreateAccessKeyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamcreateaccountalias-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/createaccountalias/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamcreateaccountalias"><span class="">CreateAccountAliasv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamcreatepolicy-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/createpolicy/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamcreatepolicy"><span class="">CreatePolicyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamcreateuser-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/createuser/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamcreateuser"><span class="">CreateUserv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamdeleteaccesskey-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/deleteaccesskey/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamdeleteaccesskey"><span class="">DeleteAccessKeyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamdeleteaccountalias-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/deleteaccountalias/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamdeleteaccountalias"><span class="">DeleteAccountAliasv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamdeleteservercert-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/deleteservercert/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamdeleteservercert"><span class="">DeleteServerCertv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamdeleteuser-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/deleteuser/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamdeleteuser"><span class="">DeleteUserv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamdetachuserpolicy-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/detachuserpolicy/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamdetachuserpolicy"><span class="">DetachUserPolicyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamgetpolicy-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/getpolicy/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamgetpolicy"><span class="">GetPolicyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamgetservercert-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/getservercert/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamgetservercert"><span class="">GetServerCertv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamlistaccesskeys-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/listaccesskeys/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamlistaccesskeys"><span class="">ListAccessKeysv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamlistaccountaliases-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/listaccountaliases/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamlistaccountaliases"><span class="">ListAccountAliasesv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamlistadmins-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/listadmins/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamlistadmins"><span class="">ListAdminsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamlistservercerts-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/listservercerts/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamlistservercerts"><span class="">ListServerCertsv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamlistusers-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/listusers/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamlistusers"><span class="">ListUsersv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamupdateaccesskey-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/updateaccesskey/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamupdateaccesskey"><span class="">UpdateAccessKeyv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamupdateservercert-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/updateservercert/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamupdateservercert"><span class="">UpdateServerCertv2</span></a>
</li><li class="td-sidebar-nav__section-title td-sidebar-nav__section without-child collapse" id="m-aws-sdk-go-v2docscode-examplesiamupdateuser-li">
<a href="/aws-sdk-go-v2/docs/code-examples/iam/updateuser/" class="align-left pl-0 td-sidebar-link td-sidebar-link__section" id="m-aws-sdk-go-v2docscode-examplesiamupdateuser"><span class="">UpdateUserv2</span></a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</div>
</aside>
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none">
<div class="td-page-meta ml-2 pb-1 pt-2 mb-0">
<a href="https://github.com/aws/aws-sdk-go-v2/tree/documentation/content/en/docs/configuring-sdk/auth.md" class="td-page-meta--view" target="_blank" rel="noopener"><i class="fa fa-file-alt fa-fw"></i> View page source</a>
<a href="https://github.com/aws/aws-sdk-go-v2/edit/documentation/content/en/docs/configuring-sdk/auth.md" class="td-page-meta--edit" target="_blank" rel="noopener"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
<a href="https://github.com/aws/aws-sdk-go-v2/new/documentation/content/en/docs/configuring-sdk/auth.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A" class="td-page-meta--child" target="_blank" rel="noopener"><i class="fa fa-edit fa-fw"></i> Create child page</a>
<a href="https://github.com/aws/aws-sdk-go-v2/issues/new?title=Configuring%20Authentication" class="td-page-meta--issue" target="_blank" rel="noopener"><i class="fas fa-tasks fa-fw"></i> Create documentation issue</a>
<a href="https://github.com/aws/aws-sdk-go-v2/issues/new" class="td-page-meta--project-issue" target="_blank" rel="noopener"><i class="fas fa-tasks fa-fw"></i> Create project issue</a>
</div>
<div class="td-toc"><nav id="TableOfContents">
<ul>
<li>
<ul>
<li><a href="#definitions">Definitions</a>
<ul>
<li><a href="#authscheme"><code>AuthScheme</code></a></li>
<li><a href="#authschemeresolver"><code>AuthSchemeResolver</code></a></li>
<li><a href="#option"><code>Option</code></a></li>
<li><a href="#identity"><code>Identity</code></a></li>
<li><a href="#identityresolver"><code>IdentityResolver</code></a></li>
<li><a href="#signer"><code>Signer</code></a></li>
<li><a href="#authresolverparameters"><code>AuthResolverParameters</code></a></li>
</ul>
</li>
<li><a href="#auth-scheme-resolution-workflow">Auth scheme resolution workflow</a></li>
<li><a href="#natively-supported-authschemes">Natively-supported <code>AuthScheme</code>s</a>
<ul>
<li><a href="#identity-configuration">Identity configuration</a></li>
<li><a href="#signer-configuration">Signer configuration</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav></div>
</aside>
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
<nav aria-label="breadcrumb" class="td-breadcrumbs">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="https://aws.github.io/aws-sdk-go-v2/docs/">Developer Guide</a>
</li>
<li class="breadcrumb-item">
<a href="https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/">Configuring the SDK</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
<a href="https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/auth/" aria-disabled="true" class="btn-link disabled">Authentication</a>
</li>
</ol>
</nav>
<div class="td-content">
<h1>Configuring Authentication</h1>
<div class="lead">Customizing service client authentication.</div>
<header class="article-meta">
</header>
<p>The AWS SDK for Go V2 provides the ability to configure the authentication
behavior service. In most cases, the default configuration will suffice, but
configuring custom authentication allows for additional behavior such as
working with pre-release service features.</p>
<h2 id="definitions">Definitions</h2>
<p>This section provides a high-level description of authentication components in
the AWS SDK for Go V2.</p>
<h3 id="authscheme"><code>AuthScheme</code></h3>
<p>An <a href="https://pkg.go.dev/github.com/aws/smithy-go/transport/http#AuthScheme">AuthScheme</a> is the
interface that defines the workflow through which the SDK retrieves a caller
identity and attaches it to an operation request.</p>
<p>An auth scheme uses the following components, described in detail further
below:</p>
<ul>
<li>A unique ID which identifies the scheme</li>
<li>An identity resolver, which returns a caller identity used in the signing
process (e.g. your AWS credentials)</li>
<li>A signer, which performs the actual injection of caller identity into the
operation’s transport request (e.g. the <code>Authorization</code> HTTP header)</li>
</ul>
<p>Each service client options includes an <code>AuthSchemes</code> field, which by default
is populated with the list of auth schemes supported by that service.</p>
<h3 id="authschemeresolver"><code>AuthSchemeResolver</code></h3>
<p>Each service client options includes an <code>AuthSchemeResolver</code> field. This
interface, defined per-service, is the API called by the SDK to determine the
possible authentication options for each operation.</p>
<p><strong>IMPORTANT:</strong> The auth scheme resolver does NOT dictate what auth scheme is
used. It returns a list of schemes that <em>can</em> be used (“options”), the final
scheme is selected through a fixed algorithm described
<a href="#auth-scheme-resolution-workflow">here</a>.</p>
<h3 id="option"><code>Option</code></h3>
<p>Returned from a call to <code>ResolverAuthSchemes</code>, an <a href="https://pkg.go.dev/github.com/aws/smithy-go/auth#Option">Option</a> represents a possible authentication option.</p>
<p>An option consists of three sets of information:</p>
<ul>
<li>An ID representing the possible scheme</li>
<li>An opaque set of properties to be provided to the scheme’s identity resolver</li>
<li>An opaque set of properties to be provided to the scheme’s signer</li>
</ul>
<h4 id="a-note-on-properties">a note on properties</h4>
<p>For 99% of use cases, callers need not be concerned with the opaque properties
for identity resolution and signing. The SDK will pull out the necessary
properties for each scheme and pass them to the strongly-typed interfaces
exposed in the SDK. For example, the default auth resolver for services encode
the SigV4 option to have signer properties for the signing name and region, the
values of which are passed to the client’s configured
<a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/signer/v4#Signer">v4.HTTPSigner</a> implementation when SigV4
is selected.</p>
<h3 id="identity"><code>Identity</code></h3>
<p>An <a href="https://pkg.go.dev/github.com/aws/smithy-go/auth#Identity">Identity</a> is an abstract
representation of who the SDK caller is.</p>
<p>The most common type of identity used in the SDK is a set of <code>aws.Credentials</code>.
For most use cases, the caller need not concern themselves with <code>Identity</code> as
an abstraction and can work with the concrete types directly.</p>
<p><strong>Note:</strong> to preserve backwards compatibility and prevent API confusion, the
AWS SDK-specific identity type <code>aws.Credentials</code> does not directly satisfy the
<code>Identity</code> interface. This mapping is handled internally.</p>
<h3 id="identityresolver"><code>IdentityResolver</code></h3>
<p><a href="https://pkg.go.dev/github.com/aws/smithy-go/auth#IdentityResolver">IdentityResolver</a> is the
interface through which an <code>Identity</code> is retrieved.</p>
<p>Concrete versions of <code>IdentityResolver</code> exist in the SDK in strongly-typed form
(e.g. <a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#CredentialsProvider">aws.CredentialsProvider</a>), the
SDK handles this mapping internally.</p>
<p>A caller will only need to directly implement the <code>IdentityResolver</code> interface
when defining an external auth scheme.</p>
<h3 id="signer"><code>Signer</code></h3>
<p><a href="https://pkg.go.dev/github.com/aws/smithy-go/transport/http#Signer">Signer</a> is the interface
through which a request is supplemented with the retrieved caller <code>Identity</code>.</p>
<p>Concrete versions of <code>Signer</code> exist in the SDK in strongly-typed form
(e.g. <a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/signer/v4#HTTPSigner">v4.HTTPSigner</a>), the SDK
handles this mapping internally.</p>
<p>A caller will only need to directly implement the <code>Signer</code> interface
when defining an external auth scheme.</p>
<h3 id="authresolverparameters"><code>AuthResolverParameters</code></h3>
<p>Each service takes a specific set of inputs which are passed to its resolution
function, defined in each service package as <code>AuthResolverParameters</code>.</p>
<p>The base resolver parameters are as follows:</p>
<table>
<thead>
<tr>
<th>name</th>
<th>type</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Operation</code></td>
<td><code>string</code></td>
<td>The name of the operation being invoked.</td>
</tr>
<tr>
<td><code>Region</code></td>
<td><code>string</code></td>
<td>The client’s AWS region. Only present for services that use SigV4[A].</td>
</tr>
</tbody>
</table>
<p>If you are implementing your own resolver, you should never need to construct
your own instance of its parameters. The SDK will source these values
per-request and pass them to your implementation.</p>
<h2 id="auth-scheme-resolution-workflow">Auth scheme resolution workflow</h2>
<p>When you call an AWS service operation through the SDK, the following sequence
of actions occurs after the request has been serialized:</p>
<ol>
<li>The SDK calls the client’s <code>AuthSchemeResolver.ResolveAuthSchemes()</code> API,
sourcing the input parameters as necessary, to obtain a list of possible
<a href="https://pkg.go.dev/github.com/aws/smithy-go/auth#Option">Options</a> for the operation.</li>
<li>The SDK iterates over that list and selects the first scheme that satisfies
the following conditions.
<ul>
<li>A scheme with matching ID is present in the client’s own <code>AuthSchemes</code> list</li>
<li>The scheme’s identity resolver exists (is non-<code>nil</code>) on the client’s Options
(checked via the scheme’s <code>GetIdentityResolver</code> method, the mapping to the
concrete identity resolver types described above is handled internally) (1)</li>
</ul>
</li>
<li>Assuming a viable scheme was selected, the SDK invokes its
<code>GetIdentityResolver()</code> API to retrieve the caller’s identity. For example,
the builtin SigV4 auth scheme will map to the client’s <code>Credentials</code> provider
internally.</li>
<li>The SDK calls the identity resolver’s <code>GetIdentity()</code> (e.g.
<code>aws.CredentialProvider.Retrieve()</code> for SigV4).</li>
<li>The SDK calls the endpoint resolver’s <code>ResolveEndpoint()</code> to find the
endpoint for the request. The endpoint may include additional metadata that
influences the signing process (e.g. unique signing name for S3 Object Lambda).</li>
<li>The SDK calls the auth scheme’s <code>Signer()</code> API to retrieve its signer, and
uses its <code>SignRequest()</code> API to sign the request with the
previously-retrieved caller identity.</li>
</ol>
<p>(1) If the SDK encounters the anonymous option (ID <code>smithy.api#noAuth</code>) in the
list, it is selected automatically, as there is no corresponding identity
resolver.</p>
<h2 id="natively-supported-authschemes">Natively-supported <code>AuthScheme</code>s</h2>
<p>The following auth schemes are natively supported by AWS SDK for Go V2.</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Scheme ID</th>
<th>Identity resolver</th>
<th>Signer</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">SigV4</a></td>
<td><code>aws.auth#sigv4</code></td>
<td><a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#Credentials">aws.CredentialsProvider</a></td>
<td><a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/signer/v4#Signer">v4.HTTPSigner</a></td>
<td>The current default for most AWS service operations.</td>
</tr>
<tr>
<td>SigV4A</td>
<td><code>aws.auth#sigv4a</code></td>
<td>aws.CredentialsProvider</td>
<td>n/a</td>
<td>SigV4A usage is limited at this time, the signer implementation is internal.</td>
</tr>
<tr>
<td>SigV4Express</td>
<td><code>com.amazonaws.s3#sigv4express</code></td>
<td><a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3#ExpressCredentialsProvider">s3.ExpressCredentialsProvider</a></td>
<td>v4.HTTPSigner</td>
<td>Used for <a href="https://aws.amazon.com/s3/storage-classes/express-one-zone/">Express One Zone</a>.</td>
</tr>
<tr>
<td>HTTP Bearer</td>
<td><code>smithy.api#httpBearerAuth</code></td>
<td><a href="https://pkg.go.dev/github.com/aws/smithy-go/auth/bearer#TokenProvider">smithybearer.TokenProvider</a></td>
<td><a href="https://pkg.go.dev/github.com/aws/smithy-go/auth/bearer#Signer">smithybearer.Signer</a></td>
<td>Used by <a href="https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/codecatalyst">codecatalyst</a>.</td>
</tr>
<tr>
<td>Anonymous</td>
<td><code>smithy.api#noAuth</code></td>
<td>n/a</td>
<td>n/a</td>
<td>No authentication - no identity is required, and the request is not signed or authenticated.</td>
</tr>
</tbody>
</table>
<h3 id="identity-configuration">Identity configuration</h3>
<p>In AWS SDK for Go V2, the identity components of an auth scheme are
configured in SDK client <code>Options</code>. The SDK will automatically pick up and use
the values for these components for the scheme it selects when an operation is
called.</p>
<p><strong>Note:</strong> For backwards compatibility reasons, the SDK implicitly allows the
use of the anonymous auth scheme if no identity resolvers are configured.
This can be manually achieved by setting all identity resolvers on a client’s
<code>Options</code> to <code>nil</code> (the sigv4 identity resolver can also be set to
<code>aws.AnonymousCredentials{}</code>).</p>
<h3 id="signer-configuration">Signer configuration</h3>
<p>In AWS SDK for Go V2, the signer components of an auth scheme are
configured in SDK client <code>Options</code>. The SDK will automatically pick up and use
the values for these components for the scheme it selects when an operation is
called. No additional configuration is necessary.</p>
<h4 id="custom-auth-scheme">Custom auth scheme</h4>
<p>In order to define a custom auth scheme and configure it for use, the caller
must do the following:</p>
<ol>
<li>Define an <a href="https://pkg.go.dev/github.com/aws/smithy-go/transport/http#AuthScheme">AuthScheme</a>
implementation</li>
<li>Register the scheme on the SDK client’s <code>AuthSchemes</code> list</li>
<li>Instrument the SDK client’s <code>AuthSchemeResolver</code> to return an auth <code>Option</code>
with the scheme’s ID where applicable</li>
</ol>
<div class="pageinfo pageinfo-warning">
<p>The following services have unique or customized authentication behavior. We
recommend you delegate to the default implementation and wrap accordingly if
you require custom authentication behavior therein:</p>
<table>
<thead>
<tr>
<th>Service</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>S3</td>
<td>Conditional use of SigV4A and SigV4Express depending on operation input.</td>
</tr>
<tr>
<td>EventBridge</td>
<td>Conditional use of SigV4A depending on operation input.</td>
</tr>
<tr>
<td>Cognito</td>
<td>Certain operations are anonymous-only.</td>
</tr>
<tr>
<td>SSO</td>
<td>Certain operations are anonymous-only.</td>
</tr>
<tr>
<td>STS</td>
<td>Certain operations are anonymous-only.</td>
</tr>
</tbody>
</table>
</div>
<div class="text-muted mt-5 pt-3 border-top">
Last modified December 19, 2023: <a href="https://github.com/aws/aws-sdk-go-v2/commit/766cb48e5344b1b6f9ee7969acd9ecf0a5ecc83a">Add authentication config guide (#2426) (766cb48e53)</a>
</div>
</div>
</main>
</div>
</div>
<footer class="bg-dark py-5 row d-print-none">
<div class="container-fluid mx-sm-5">
<div class="row">
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
<ul class="list-inline mb-0">
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="Blog" aria-label="Blog">
<a class="text-white" target="_blank" rel="noopener" href="https://aws.amazon.com/blogs/developer/category/developer-tools/aws-sdk-for-go/" aria-label="Blog">
<i class="fa fa-rss"></i>
</a>
</li>
</ul>
</div>
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
<ul class="list-inline mb-0">
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="GitHub" aria-label="GitHub">
<a class="text-white" target="_blank" rel="noopener" href="https://github.com/aws/aws-sdk-go-v2" aria-label="GitHub">
<i class="fab fa-github"></i>
</a>
</li>
</ul>
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">© 2024 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
</div>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js"
integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA=="
crossorigin="anonymous"></script>
<script src='/js/tabpane-persist.js'></script>
<script src="/aws-sdk-go-v2/js/main.min.91798a335c881f1b6b805085ba4aa22d1dbd2b0b18d105d05189fa104ddae350.js" integrity="sha256-kXmKM1yIHxtrgFCFukqiLR29KwsY0QXQUYn6EE3a41A=" crossorigin="anonymous"></script>
</body>
</html>