IdentityPoolRoleAttachment.reference constructor

IdentityPoolRoleAttachment.reference(
  1. String urn
)

Creates a typed reference to an existing IdentityPoolRoleAttachment resource.

Implementation

IdentityPoolRoleAttachment.reference(String urn)
  : super(
      'aws:cognito/identityPoolRoleAttachment:IdentityPoolRoleAttachment',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  identityPoolId = registerOutput<String>('identityPoolId');
  region = registerOutput<String>('region');
  roleMappings = registerOutput<List<IdentityPoolRoleAttachmentRoleMapping>?>('roleMappings', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<IdentityPoolRoleAttachmentRoleMapping>(guardedValue, (value) => IdentityPoolRoleAttachmentRoleMapping.fromMap((value as Map).cast<String, dynamic>())); });
  roles = registerOutput<Map<String, String>>('roles', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}