You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 965b918
Browse filesBrowse the repository at this point in the historyBrowse files
Note that the credentials obtained from the providers for a given account and mode will be cached,
277
+
and as a consequence it is strongly advised that the credentials objects returned are self-refreshing,
278
+
as descibed in the `AWS SDK for Javascript documentation <https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Credentials.html>`_.
279
+
280
+
Reference
281
+
---------
282
+
283
+
.. js:module:: aws-cdk
284
+
285
+
CredentialProviderSource *(interface)*
286
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287
+
288
+
.. js:class:: CredentialProviderSource
289
+
290
+
.. js:attribute:: name
291
+
292
+
A friendly name forthe provider, which will be usedin error messages, for example.
293
+
294
+
:type: ``string``
295
+
296
+
.. js:method:: isAvailable()
297
+
298
+
Whether the credential provider is even online. Guaranteed to be called before any of the other functions are called.
299
+
300
+
:returns: ``Promise<boolean>``
301
+
302
+
.. js:method:: canProvideCredentials(accountId)
303
+
304
+
Whether the credential provider can provide credentials for the given account.
305
+
306
+
:param string accountId: the account ID for which credentials are needed.
307
+
:returns: ``Promise<boolean>``
308
+
309
+
.. js:method:: getProvider(accountId, mode)
310
+
311
+
Construct a credential provider for the given account and the given access mode.
312
+
Guaranteed to be called only ifcanProvideCredentails() returned true at some point.
313
+
314
+
:param string accountId: the account ID for which credentials are needed.
315
+
:param aws-cdk.Mode mode: the kind of operations the credentials are intended to perform.
316
+
:returns: ``Promise<aws.Credentials>``
317
+
318
+
Mode *(enum)*
319
+
^^^^^^^^^^^^^
320
+
321
+
.. js:class:: Mode
322
+
323
+
.. js:data:: ForReading
324
+
325
+
Credentials are inteded to be used for read-only scenarios.
326
+
327
+
.. js:data:: ForWriting
328
+
329
+
Credentials are intended to be used for read-write scenarios.
330
+
331
+
Plugin *(interface)*
332
+
^^^^^^^^^^^^^^^^^^^^
333
+
334
+
.. js:class:: Plugin()
335
+
336
+
.. js:attribute:: version
337
+
338
+
The version of the plug-in interface used by the plug-in. This will be used by
339
+
the plug-in host to handle version changes. Currently, the only valid value for
340
+
this attribute is ``'1'``.
341
+
342
+
:type: ``string``
343
+
344
+
.. js:method:: init(host)
345
+
346
+
When defined, this functionis invoked right after the plug-in has been loaded,
347
+
so that the plug-in is able to initialize itself. It may call methods of the
348
+
:js:class:`~aws-cdk.PluginHost` instance it receives to register new
0 commit comments