sparse-intern-71089
03/22/2021, 10:14 PMbrave-planet-10645
03/23/2021, 10:22 AMgetGroup()
method which returns details of the group but also the users in the group:
const group = aws.iam.getGroup({
groupName: "groupname"
})
export const users = group.then(x => x.users);
salmon-ghost-86211
03/23/2021, 4:33 PMget
method AND a getGroup
method. When would I use only get
?salmon-ghost-86211
03/23/2021, 9:51 PMis a Pulumi object that loads a Pulumi group object. It isn't often useful, but occasionally you want to have a Pulumi object managed in one Project/stack, and used in a different one. This is the method that allows that.get
is a wrapper around the AWS SDK getGroup function. It doesn't return a Pulumi object, it returns a GetGroupResult. It's handy for when you want information about an object that isn't managed by Pulumi, as in this case.getGroup