sparse-intern-71089
09/18/2020, 7:34 AMmillions-furniture-75402
09/18/2020, 1:19 PMaws iam list-policies
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iam.html#IAM.Client.list_policies
Though, I’m not seeing a method on iam.Policy
for .list_policies()
.
The aws sdk is also available directly in pulumi.agreeable-toddler-25853
09/18/2020, 1:56 PMmillions-furniture-75402
09/18/2020, 2:31 PMsdk
property that has the AWS SDK instance. Then I setup the client I need for the service, and call the method needed:
import * as aws from "@pulumi/aws";
const iamClient = new aws.sdk.IAM();
const policies = iamClient.listPolicies();
console.log(polices);
agreeable-toddler-25853
09/18/2020, 2:47 PM