UserPolicyAttachment constructor

UserPolicyAttachment(
  1. String name, {
  2. UserPolicyAttachmentArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new UserPolicyAttachment. name The Pulumi resource name. args Arguments used to configure this UserPolicyAttachment. The set of arguments for UserPolicyAttachment. options Resource options controlling this resource's behavior.

Implementation

UserPolicyAttachment(
  String name, {
  UserPolicyAttachmentArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:iam/userPolicyAttachment:UserPolicyAttachment',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  policyArn = registerOutput<String>('policyArn');
  user = registerOutput<String>('user');
}