UserPolicyAttachment.reference constructor

UserPolicyAttachment.reference(
  1. String urn
)

Creates a typed reference to an existing UserPolicyAttachment resource.

Implementation

UserPolicyAttachment.reference(String urn)
  : super(
      'aws:iam/userPolicyAttachment:UserPolicyAttachment',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  policyArn = registerOutput<String>('policyArn');
  user = registerOutput<String>('user');
}