MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / getRole

Function getRole

javascriptv3/example_code/iam/actions/get-role.js:15–21  ·  view source on GitHub ↗
(roleName)

Source from the content-addressed store, hash-verified

13 * @param {string} roleName
14 */
15export const getRole = (roleName) => {
16 const command = new GetRoleCommand({
17 RoleName: roleName,
18 });
19
20 return client.send(command);
21};
22// snippet-end:[iam.JavaScript.getRoleV3]
23
24// Invoke main function if this file was run directly.

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected