Skip to content

Commit b974ec9

Browse files
committed
Update website from commit async-aws/aws@11379d8
1 parent 13e730a commit b974ec9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

authentication/hard-coded.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,18 +407,18 @@ <h2 id="authenticate-with-access-key-and-secret">Authenticate with access key an
407407
<h2 id="assuming-a-role">Assuming a role<a href="#assuming-a-role" title="Permalink to this headline" class="headerlink"></a></h2>
408408
<p>You can tell the API client to use specific role by providing a ARN to
409409
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>;
412411

413412
<span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> <span class="hljs-title class_">AwsClientFactory</span>([
414413
<span class="hljs-string">'accessKeyId'</span> =&gt; <span class="hljs-string">'AKIAIOSFODNN7EXAMPLE'</span>,
415414
<span class="hljs-string">'accessKeySecret'</span> =&gt; <span class="hljs-string">'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'</span>,
416415
<span class="hljs-string">'roleArn'</span> =&gt; <span class="hljs-string">'arn:aws:iam::1234567891011:role/name-of-my-role'</span>,
417416
<span class="hljs-string">'roleSessionName'</span> =&gt; <span class="hljs-string">'my-session-name'</span>, <span class="hljs-comment">// Optionnal</span>
418-
]);
419-
420-
&gt; **Warning**: Hard-coding your credentials can be dangerous because it’s easy to commit your credentials into an SCM
421-
&gt; 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>
422422

423423
</main>
424424
</div>

0 commit comments

Comments
 (0)