File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -407,18 +407,18 @@ <h2 id="authenticate-with-access-key-and-secret">Authenticate with access key an
407
407
< h2 id ="assuming-a-role "> Assuming a role< a href ="#assuming-a-role " title ="Permalink to this headline " class ="headerlink "> ¶</ a > </ h2 >
408
408
< p > You can tell the API client to use specific role by providing a ARN to
409
409
the < code > roleArn</ code > key. You can also specify a < code > roleSessionName</ code > .</ p >
410
- < pre > < code class ="language-php hljs "> < div class ="btn-copy " title ="copy to clipboard "> </ div >
411
- < span class ="hljs-keyword "> use</ span > < span class ="hljs-title "> AsyncAws</ span > \< span class ="hljs-title "> Core</ span > \< span class ="hljs-title "> AwsClientFactory</ span > ;
410
+ < pre > < code class ="language-php hljs "> < div class ="btn-copy " title ="copy to clipboard "> </ div > < span class ="hljs-keyword "> use</ span > < span class ="hljs-title "> AsyncAws</ span > \< span class ="hljs-title "> Core</ span > \< span class ="hljs-title "> AwsClientFactory</ span > ;
412
411
413
412
< span class ="hljs-variable "> $client</ span > = < span class ="hljs-keyword "> new</ span > < span class ="hljs-title class_ "> AwsClientFactory</ span > ([
414
413
< span class ="hljs-string "> 'accessKeyId'</ span > => < span class ="hljs-string "> 'AKIAIOSFODNN7EXAMPLE'</ span > ,
415
414
< span class ="hljs-string "> 'accessKeySecret'</ span > => < span class ="hljs-string "> 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'</ span > ,
416
415
< span class ="hljs-string "> 'roleArn'</ span > => < span class ="hljs-string "> 'arn:aws:iam::1234567891011:role/name-of-my-role'</ span > ,
417
416
< span class ="hljs-string "> 'roleSessionName'</ span > => < span class ="hljs-string "> 'my-session-name'</ span > , < span class ="hljs-comment "> // Optionnal</ span >
418
- ]);
419
-
420
- > **Warning**: Hard-coding your credentials can be dangerous because it’s easy to commit your credentials into an SCM
421
- > repository accidentally</ code > </ pre >
417
+ ]);</ code > </ pre >
418
+ < blockquote >
419
+ < p > < strong > Warning</ strong > : Hard-coding your credentials can be dangerous because it’s easy to commit your credentials into an SCM
420
+ repository accidentally</ p >
421
+ </ blockquote >
422
422
423
423
</ main >
424
424
</ div >
You can’t perform that action at this time.
0 commit comments